/**
    * Theme Name:       Salbos broneerimissüsteem - koristajate moodul

    * Version:          2.8.4
    * Requires PHP:     8.2
    * Text Domain:      salbos
    * Domain Path:      /lang
    * Author:           CONFEMAR OÜ
    * Author URI:       https://confemar.ee
*/

@keyframes toggle-left {
    0%   { margin: 0; }
    50%  { margin: 0 15px 0 -15px; }
    100% { margin: 0; }
}

@keyframes toggle-right {
    0%   { margin: 0; }
    50%  { margin: 0 -15px 0 15px; }
    100% { margin: 0; }
}

:root{
    --danger-text-color: #dc3545;
    --danger-bg-color: #f8d7da;
    --warning-text-color: #fb8c00;
    --warning-bg-color: #fff3cd;
    --success-text-color: #2da148;
    --success-bg-color: #d7f0dd;
    --emergency-text-color: #4650dd;
    --emergency-bg-color: #dadcf8;
    --checked-text-color: #0d6efd;
    --checked-bg-color: #cfe2ff;
    --selected-text-color: #5a6066;
    --selected-bg-color: #d6d6d6;
}


html{
    overflow-y: scroll !important;
    font-family: 'Montserrat';
    letter-spacing: .03em;
}

body{
    padding-right: 0 !important;
}

ul{
    padding: 0;
}


/* login  */

.image-block{
    height: 800px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.image-block::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.login-block{
    margin-left: -130px;
    z-index: 2;
}


/* navigation */

aside{
    max-width: 300px;
    z-index: 6;
    -webkit-transition: left .4s ease;
    -moz-transition: left .4s ease;
    -o-transition: left .4s ease;
    -ms-transition: left .4s ease;
    transition: left .4s ease;
}

nav{
    height: calc( 100% - 1rem );
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

nav::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

nav .nav-content{
    height: 100%;
    z-index: 7;
}

nav li a{
    color: #a4b0bf;
}

nav li a:hover, nav li a.active{
    color: #f1f1f1;
}

hr{
    opacity: .5;
}


/* header */

header{
    z-index: 3;
}

.note-alert{
    top: 15px;
    right: 15px;
    z-index: 20;
}

.filter-content{
    display: none;
    flex: 1 0 100%;
}


/* content */

main{
    margin: 0 0 0 300px;
}

.room-block{
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease;
}

.room-block .title{
    font-size: 1.8rem;
}

.room-block .title .name{
    font-size: .85rem;
    white-space: nowrap;
}

.room-block .icon{
    font-size: 1.5rem;
}

.room-block.card .card-body{
    line-height: 2em;
}

.room-block.selected.toggle-left, .room-block.removed.toggle-left{
    animation-name: toggle-left;
    animation-duration: .5s;
}

.room-block.selected.toggle-right, .room-block.removed.toggle-right{
    animation-name: toggle-right;
    animation-duration: .5s;
}


.room-block.card.KORISTATUD, .room-block.card.PROBLEEMNE_P, .room-block.card.LOPETATUD{
    color: var(--success-text-color) !important;
}

.room-block.card.KORISTATUD .card-header, .room-block.card.LOPETATUD .card-header{
   border-bottom: 1px solid var(--success-text-color) !important;
}

.room-block.card.KORISTATUD .card-body, .room-block.card.LOPETATUD .card-body{
    background-color: var(--success-bg-color) !important;
}

.room-block.card.KORISTAMATA, .room-block.card.KORISTAMATA_VK, .room-block.card.KORISTAMATA_SK, .room-block.card.LOPETAMATA{
    color: var(--danger-text-color) !important;
}

.room-block.card.KORISTAMATA .card-header, .room-block.card.KORISTAMATA_VK .card-header, .room-block.card.KORISTAMATA_SK .card-header, .room-block.card.LOPETAMATA .card-header{
   border-bottom: 1px solid var(--danger-text-color) !important;
}

.room-block.card.KORISTAMATA .card-body, .room-block.card.KORISTAMATA_VK .card-body, .room-block.card.KORISTAMATA_SK .card-body, .room-block.card.LOPETAMATA .card-body{
    background-color: var(--danger-bg-color) !important;
}

.room-block.card.AVARIILINE{
    color: var(--emergency-text-color) !important;
}

.room-block.card.AVARIILINE .card-header{
   border-bottom: 1px solid var(--emergency-text-color) !important;
}

.room-block.card.AVARIILINE .card-body{
    background-color: var(--emergency-bg-color) !important;
}


.room-block.card.SEES{
    color: var(--checked-text-color) !important;
}

.room-block.card.SEES .card-header{
   border-bottom: 1px solid var(--checked-text-color) !important;
}

.room-block.card.SEES .card-body{
    background-color: var(--checked-bg-color) !important;
}


.room-block.card.ALUSTATUD{
    color: var(--warning-text-color) !important;
}

.room-block.card.ALUSTATUD .card-header{
   border-bottom: 1px solid var(--warning-text-color) !important;
}

.room-block.card.ALUSTATUD .card-body{
    background-color: var(--warning-bg-color) !important;
}


.room-block.card.selected{
    color: var(--selected-text-color) !important;
}

.room-block.card.selected .card-header{
   border-bottom: 1px solid var(--selected-text-color) !important;
}

.room-block.card.selected .card-body{
    background-color: var(--selected-bg-color) !important;
}

.room-block.selected.toggle-left, .room-block.removed.toggle-left{
    animation-name: toggle-left;
    animation-duration: .5s;
}

.room-block.selected.toggle-right, .room-block.removed.toggle-right{
    animation-name: toggle-right;
    animation-duration: .5s;
}

.table:not(.print-table, .statistic-table, .log-table) td{
    padding: 1rem .5rem;
}

.table:not(.log-table) thead, .table:not(.print-table, .statistic-table, .log-table) tbody tr:last-of-type{
    border-bottom: 1px solid #212529;
}


/* images */

img.extra-bed{
    width: auto;
    height: 16px;
    margin-top: -3px
}


/* datepicker */

.ui-datepicker{
    display: none;
    left: auto !important;
    right: 16px;
    width: 100%;
    max-width: 250px;
    min-width: 190px;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #929292;
    padding: 10px;
    margin: 0 auto;
    z-index: 5 !important;
}

.datepicker-border{
    margin: 10px 0 0 0;
}

.ui-datepicker-title{
    background-color: #ffffff;
}

.ui-datepicker .ui-datepicker-header {
    display: block;
    text-align: center;
    height: 40px;
    line-height: 40px;
    color: #222222;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    width: 20px;
    cursor: pointer;
    z-index: 11;
    text-decoration: none;
}
  
.ui-datepicker .ui-datepicker-prev { left: 10px; }
.ui-datepicker .ui-datepicker-next { right: 10px; }
  
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span{
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'FiraSans';
    font-size: 32px;
    color: #0d6efd;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease; 
}

.ui-datepicker-calendar{
    width: 100%;
    border: 0px;
    border-collapse: separate;
    border-spacing: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
  
.ui-datepicker-calendar a:link{
    text-decoration: none;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition:  all .4s ease;
}
  
a.ui-state-default:link, a.ui-state-default:visited{
    color: #222222;
}
  
.ui-datepicker-calendar th, .ui-datepicker-calendar td{
    width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 7px 0;
    border: 1px solid transparent;
    text-align: center;
}

.ui-datepicker-calendar th{
    font-weight: normal;
    padding: 10px 0;
    color: #929292;
}

.ui-datepicker-calendar td:hover{
    cursor: pointer;
}
  
.ui-datepicker-calendar td:hover a.ui-state-default{
    color: #0d6efd;
}
  
.ui-state-disabled{
    color: #cccccc;
    cursor: default !important;
}
  
.ui-datepicker-today a.ui-state-default{
    color: #0d6efd;
}
  
.ui-datepicker-current-day{
    background-color: #0d6efd;
    border-radius: 50%;
}

.ui-state-active{
    color: #ffffff !important;
}


/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px){
    aside{
        left: -300px;
    }

    aside.displayed{
        left: 0;
    }

    main{
        margin: 0;
    }

    .image-block{
        height: 300px;
    }
    
    .login-block{
        margin-left: 1rem;
        margin-right: 1rem;
        margin-top: -250px;
    }
}

/* print style */
@media print{
    @page {
        size: landscape
    }
    
    body {
        margin: 0px;
        padding: 0px;
    }
}