/** Moodle 4 CC  database resources styles  **/
/** For this resource**/
@media (min-width: 992px){
.hasstickyfooter .drawer-left, .hasstickyfooter .drawer-right{
height: calc(100vh - 60px);
}
  .show-drawer-left .stickyfooter .sticky-footer-content-wrapper{
    margin-left: auto;
    margin-right: auto;
  }
} 
/** Updates July 2023 **/

.rounded { border-radius: 0.25rem !important; }

#page.drawers .activity-header { 
     margin:0px;
} 

table.boxaligncenter {
    width:100%;
}

.tertiary-navigation + hr { display:none; }
.activity-header { margin-bottom: -50px; }

form#viewactionselect {
    display: none;
}

.activity-information { display:none; }

form#options + hr {display:none;}

div#data-listview-content {
    margin-top: 30px;
}

.resource-info { padding:10px 0px;}

a.print-this {
    float: right;
    font-size: 70%;
}

div#data-listview-content > h3 {border-bottom: 2px solid #3a3a3a; }

div#data-singleview-content table td { padding: 0px 10px 10px}

#page-mod-data-view .notapproved { 
 border-radius: 0px;
}

div#data_adv_form table { background: #f2f3f4}
div#data_adv_form table td{ padding:0px 15px}
div#data_adv_form table td .btn{ margin:0px 0px 30px}
form#options .d-flex > div {display:none;} /* To hide the moodle filter search */


.stickyfooter {
    position:relative;
    background:none;
    bottom: -10px;
    border-top: 0px !important; 
    box-shadow:none;
}

/** 2022 CC - Database resources styles **/
.tag-wrap.category span {
    background-color: #3d6b99; 
}

p.tag-wrap.category span {
   padding: .35rem .5rem !important;
   font-size:.9rem;
}

.tag-wrap.resource-type span {
background-color: #8fa1b1;
}

.tag-wrap.country span {
background-color: #727F8F;
}

.tag-wrap.theme span {
background-color: #CD941B;
}

.tag-wrap.intended-audience span{
background-color: #5f88ad;
}

.tag-wrap br {
display: none; 
}

.path-mod-data #region-main .datapreferences form#options {
    padding-top: 0 !important;
}

.path-mod-data #region-main .defaulttemplate .mod-data-default-template { 
 margin: 0px !important;
}

.path-mod-data #region-main #data_adv_form table tr:nth-of-type(n + 1)  .template-token {
padding-bottom:1rem;
}

td.template-field.cell.c0 {
    text-align: left;
}

/* Hide empty filter tickbox */
input[name*="_allreq"] , input[name*="_allreq"]  + label { display:none !important;}

/* remove the first search bar and button */
p.search-info-text {
    margin-top: 0px !important;
}

label[for="advancedcheckbox"], label[for="advancedcheckbox"]+input {display:none !important}

input#advancedcheckbox, input#pref_search { display:none !important}


/*hack for select tag fit to mobile*/
.select-wrap, .select-wrap select{
width:100%;
}
@media (min-width: 768px){
.path-mod-data #region-main #data_adv_form table  .template-token label{
margin-right: 1rem;
}
}
@media (min-width: 1200px){
.path-mod-data #region-main #data_adv_form table .template-token label:not(:nth-of-type(1n)){
min-width: 110px;
}
.path-mod-data #region-main #data_adv_form table  .template-token br:not(:nth-of-type(5n)){
display:none;
}
.path-mod-data #region-main #data_adv_form table .template-token.search-theme br:nth-last-of-type(3){
display:block;
}
.path-mod-data #region-main #data_adv_form table .template-token.search-theme br:nth-last-of-type(2){
display:none;
}
}
@media (max-width: 1199.9px) and (min-width: 992px){
.path-mod-data #region-main #data_adv_form table .template-token label:not(:nth-of-type(3n)){
min-width: 180px;
}
.path-mod-data #region-main #data_adv_form table .template-token br:not(:nth-of-type(3n)){
display:none;
}
}
@media (max-width: 991.9px) and (min-width: 768px){
.path-mod-data #region-main #data_adv_form table .template-token label:not(:nth-of-type(2n)){
min-width: 207px;
}
.path-mod-data #region-main #data_adv_form table .template-token br:not(:nth-of-type(2n)){
display:none;
}
}
@media (min-width: 768px){
.path-mod-data #region-main .mod-data-default-template .template-field{
white-space:nowrap;
}
}

@media (max-width: 767.99px){

.path-mod-data #region-main #data_adv_form table .template-field {
width:90px;
}
}
/* Adjust spacing between tabs and search */
.datapreferences.my-5{
margin-top: 0 !important;
}
#intro.activity-description{
padding-bottom:0.3rem;
}
