h1, h2, h3, h4, h5, h6, .bold{
    font-weight: bold;
    margin: 0;
    cursor: default;
}

.scale-80 {
    transform: scale(0.8);
}

.fit-content{
    width: fit-content;
}


/* ------------ NAVBAR ------------ */
.navbar{
    height: 56px;
    line-height: 56px;
    background-color: whitesmoke;
    width: 100%;
    position: relative;
    z-index: 100;
}

.navbar > .menu{
    position: fixed;
    background-color: whitesmoke;
    z-index: 2;
    height: inherit;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 0 5px grey;
}

.menu-section{
    height: inherit;
    display: flex;
}

.left-menu > a {
    padding: 0 15px;
    background-color: var(--main-bgclr);
    overflow-y: hidden;
    transition: padding 0.2s ease-in-out;
}

.left-menu > a {
    padding: 0 15px;
    background-color: var(--main-bgclr);
    overflow-y: hidden;
    transition: padding 0.2s ease-in-out, width 0.2s ease-in-out;
    width: 115px;
}

.left-menu > a:hover {
    padding: 0 7px 0 8px;
    width: 130px;
}

a:hover .logo {
    height: 114%;
    top: -7%;
    left: -3%;
}

.logo {
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    transition: top 0.2s ease-in-out, left 0.2s ease-in-out, height 0.2s ease-in-out;
}

.nav-links{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    cursor: default;
}

.nav-links > li{
    height: 100%;
    text-align: center;
    font-size: 1.25vw;
    font-weight: bold;
    padding: 0 1.2vw;
    transition: border 0.05s;
}

.nav-links > li.selected{
    border-bottom: 5px solid var(--main-itclr2);
    height: calc(100% - 5px);
    color: var(--main-black);
}

.nav-links span{
    cursor: pointer;
}

.nav-links > li > a{
    font-size: 1.25vw;
    font-weight: bold;
}

.nav-links > li:hover{
    background-color: #ebebeb;
}

/* --------- SUBMENUS ----------- */
.sub-menu{
    position: absolute;
    width: calc(100% - 1px);
    height: 0;
    max-height: 345px;
    top: 56px;
    left: 1px;
    z-index: 2;
    background-color: whitesmoke;
    border-top: solid 0 var(--main-itclr2);
    box-shadow: 0 1px 4px darkgrey;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: scroll;
    transition: border-top-width 0.2s, height 0.2s, padding-top 0.2s;
}

.sub-menu.show {
    max-height: 300px;
    height: auto;
    border-top-width: 2px;
    padding-top: 5px;
}

.sub-menu > img{
    height: 0;
    transition: height 0.2s;
}
.sub-menu.show > img{
    height: 50px;
}

.sub-menu > div{
    width: 100%;
    height: auto;
}

.sub-menu > div > ul {
    padding: 0;
}

.sub-menu li {
    text-align: left;
    font-size: 20px;
    height: fit-content;
    line-height: 30px;
    font-weight: 100;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    grid-gap: 30px;
}

.sub-menu .title{
    color: var(--main-itclr2);
    font-weight: bold;
}

.left-margin{
}

.sub-menu span:not(.title) {
    max-width: 250px;
    min-width: 250px;
    overflow: hidden;
    display: inline-block;
    line-height: 25px;
}

.sub-menu a,
.sub-menu span{
    font-size: max(17px, 0.9vw);
}

.sub-menu br {
    display: none;
}

/*
.submenu{
    display: none;
    background-color: whitesmoke;
    position: absolute;
    width: max-content;
    left: 0;
    border-radius: 0  0 10px 10px;
    border: 1px solid #ebebeb;
    padding: 0;
    min-width: -webkit-fill-available;
    font-size: 1vw;
}

.submenu li{
    position: relative;
    padding: 0 50px;
    line-height: 40px;
}

.right-submenu{
    left: 100%;
    top: -1px;
    border-radius: 0;
    min-width: 0;
}

.right-submenu::before{
    content: '';
}

.right-submenu::after{
    content: '';
}

.nav-links li:hover > .submenu{
    display: block;
}
*/

.right-menu{
    margin-right: 10px;
}

.right-menu .user-name{
    font-size: 1.1vw;
    color: var(--main-itclr2);
    font-weight: bold;
    margin-right: 10px;
}

.right-menu button{
    background-color: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}

.right-menu button span:not(.tooltip){
    transition: transform 0.5s;
}

.right-menu button:hover span:not(.tooltip){
    transform: rotate(360deg);
}

.navbar .language-select{
    margin-right: 20px;
}

/* -------------- BREADCRUMBS ------------ */
.breadcrumbs{
    background-color: var(--main-bgclr);
    height: 25px;
    box-shadow: rgb(33 35 38 / 18%) 0px 10px 10px -10px;
    padding-left: 160px;
    display: flex;
    align-content: center;
    width: 100%;
    position: fixed;
    top: 56px;
    z-index: 99;
}

.breadcrumbs > span,
.breadcrumbs > a{
    margin-right: 8px;
    font-size: 17px;
    line-height: 25px;
    opacity: 0.6;
}

.breadcrumbs > a:hover{
    opacity: 1;
}

.fake-breadcrumbs{
    height: 25px;
    width: 100%;
}

/* ------------ CONTENT ------------ */

.base-content {
    position: relative;
    height: calc(100% - 57px);
}

.content-container{
    display: flex;
    position: absolute;
    width: 100%;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    background:
            radial-gradient(whitesmoke 15%, transparent 16%) 0 0,
            radial-gradient(whitesmoke 15%, transparent 16%) 8px 8px,
            radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
            radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
    background-size: 16px 16px;
    background-color: white;
}

/* If there are breadcrumbs, min height is 100% - navbar height - breadcrumbs height*/
#breadcrumbs-container ~ .content-container{
    min-height: calc(100% - 25px);
    max-height: calc(100% - 25px);
}

.content {
    padding: 50px;
    width: 100%;
    max-width: calc(100vw - 150px);
    height: calc(100% - 130px);
}

.page-actions{
    width: 50px;
    background-color: var(--main-bgclr);
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    min-height: calc(100% - 54px);
    box-shadow: rgb(0 0 0 / 15%) 2px 0px 3px 0px;
    z-index: 5;
}

.fake-page-actions{
    width: 50px;
    height: 100%;
}

.page-actions *[class*="icon-"],
.page-actions .material-icons-outlined{
    font-size: 45px;
    opacity: 0.7;
    position: relative;
    left: -3px;
    margin: 7px 0;
    font-weight: 100;
}

.page-actions *[class*="icon-"]:hover,
.page-actions .material-icons-outlined:hover{
    opacity: 1;
}


/* ------------ CARDS -------------- */
.card{
    background-color: whitesmoke;
    min-height: 150px;
    min-width: 400px;
    margin: 30px;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-header {
    background-color: var(--main-itclr3);
    color: white;
    min-height: 30px;
    max-height: 65px;
    padding: 7px 10px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 23px;
    height: -webkit-fill-available;
    opacity: 0.8;
    transition: background-color 0.2s ease-in-out,
                opacity 0.2s ease-in-out;
}

.card:hover .card-header {
    background-color: var(--main-bgclr);
    color: var(--main-itclr3);
    opacity: 1;
}

.card-header button{
    border: none;
    background-color: transparent;
}

.card-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    max-width: -webkit-fill-available;
    margin: 5px 10px 5px 15%;
    width: 70%;
}

.card-header-section{
    width: 10%;
    display: flex;
}

.card-title + .card-header-section{
    justify-content: flex-end;
}

.card-header-section:first-of-type {
    position: absolute;
    right: calc(100%);
    width: 50px;
    flex-direction: column;
    top: 0;
    grid-gap: 5px;
    align-items: center;
}

.card-body {
    height: 100%;
    width: 100%;
    position: relative;
    font-size: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.card-shower{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-gap: 50px;
}

.card-shower ~ table {
    display: none;
}

/* ------------ MISCELLANEA -------------- */

.django-ckeditor-widget{
    width: 100%;
}

.django-ckeditor-widget > div{
    width: 100% !important;
}



/*********** JQUERY UI DATEPICKER *********/


div#ui-datepicker-div {
    border: solid 3px var(--main-itclr3);
    border-radius: 10px;
    box-shadow: 2px 2px 3px var(--main-itclr3);
    background-color: var(--main-bgclr);
    z-index: 1000 !important;
}

.ui-datepicker .ui-datepicker-title select {
    background-color: transparent;
    border: none;
    text-align: right;
    color: var(--main-itclr3);
    font-weight: bold;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-title select:hover {
    color: var(--main-itclr2);
}

.ui-datepicker .ui-datepicker-title select option {
    color: black;
}

.ui-datepicker .ui-datepicker-header {
    background-color: transparent;
}

.ui-datepicker td .ui-state-default {
    background-color: transparent;
    text-align: center;
    border: none;
    outline: none;
}

.ui-datepicker td .ui-state-default:hover {
    outline: solid 2px orange;
    border: none !important;
    color: var(--main-itclr2);
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    color: var(--main-itclr3);
    font-weight: bold;
    font-size: 115%;
}

/* ---------- RANGE FIELDS --------- */
input[type="range"] {
    -webkit-appearance: none;
    height: 12px;
    border-radius: 5px;
    background: var(--main-itclr2);
    outline: none;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--main-itclr3);
    border-radius: 50%;
    box-shadow: 2px 2px 2px grey;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--main-bgclr);
}

input[type="range"]::-webkit-slider-runnable-track {cursor: pointer;}

/* ------- DISABLED INPUTS -------- */
*[disabled]{
    cursor: default !important;
}

*:not(button)[disabled]{
    background-color: #e3e3e3 !important;
}