@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

*,*::before,*::after{box-sizing:border-box}  body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}  ul[role="list"],ol[role="list"]{list-style:none}  html:focus-within{scroll-behavior:smooth}  body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}  a:not([class]){text-decoration-skip-ink:auto}  img,picture{max-width:100%;display:block}  input,button,textarea,select{font:inherit}

body{
    font-family: 'Space Grotesk', sans-serif;
}
a {
    text-decoration: none;
    outline:0;
    -webkit-tap-highlight-color: transparent;
    color: #3D3D3D;
}
a:visited{
    color: #3D3D3D;
}
::-webkit-file-upload-button {
    display: none;
}

.container{
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    font-style: normal;
    color: #3D3D3D;
    display:flex;
}
.spacer{
    flex:1
}
.row{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:4px;
    flex-wrap: wrap;
}
.row > .form-group{
    flex: 1;
}
.center{
    align-items: center;
    justify-content: center;
}

.page{
    flex:1;
    min-height:100vh;
    display:none;
    flex-direction: column;
    align-items: center;
}
.page.visible{
    display:flex;
}
input{
    display: flex;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    color: rgba(61, 61, 61);
    background-position: center;
    background-repeat: no-repeat;
}
.input-block{
    display: flex;
    flex-direction: column;
    gap:4px;
}

label{
    font-size: 12px;
    line-height: 100%;
    color: #A3A3A3;
}

#login-page{
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
}
.login-block{
    display: flex;
    flex-direction: column;
    width:400px;
    padding:24px;
}
.login-block form{
    display: flex;
    flex-direction: column;
    gap: 16px;

}

.header{
    z-index:1000;
    display: flex;
    height: 96px;
    width: 100%;
    background: #FAFAFA;
    box-shadow: 0 0 24px rgb(0 0 0 / 16%);
    flex-direction: row;
    align-items: center;
    padding:24px;
    gap: 4px;
}
.header .logo{
    font-size: 24px;
    color: #A3A3A3;
}
.button{
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white;
    user-select: none;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 16px;
    color: rgba(61, 61, 61);
    opacity: 0.8;
    background-position: center;
    background-repeat: no-repeat;

}
.button:hover{
    color: rgba(61, 61, 61);
    opacity: 1;
}

.button.fill{
    opacity: 1;
    color: white;
    background: #33804D;
}

.button.fill:hover{
    opacity: 0.95;
}

.button.left{
    background-image: url('../img/chevron_left.svg');
}
.button.right{
    background-image: url('../img/chevron_right.svg');
}

.button.close{
    margin-top: 24px;
    background-image: url('../img/close.svg');
}

.button.small{
    padding: 8px;
}

.button.small.plus{
    font-size: 40px;
    line-height: 20px;
}

.toast-close {
    margin-left: 8px;
}

.gantt{
    display: flex;
    width: 100vw;
    flex-direction: row;
}
.resources{
    z-index: 1000;
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 360px;
    min-height: calc(100vh - 96px);
    background: #FFFFFF;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}
.subheader-block{
    z-index: 100;
    position: absolute;
    background-color: white;
    display: flex;
    height: 80px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #F5F5F5;
}
.subheader-block.fixed {
    position: absolute;
    top: 0;
}
.resources .subheader-block{
    width: 360px;
    padding:24px;
    gap: 4px;
}
#gantt-periods-headers{
    padding-left: 360px;
}
.subheader-title{
    line-height: 30px;
    font-size: 24px;
    color: #3D3D3D;
}
.subheader-subtitle{
    font-size: 12px;
    line-height: 100%;
    color: #A3A3A3;
}
.resources-block{
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.resource-item{
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F5F5;
    padding: 16px 24px;
    gap:8px;
}
.resource-photo{
    background: linear-gradient(0deg, rgba(61, 61, 61, 0.4), rgba(61, 61, 61, 0.4));
    background-size: contain;
    background-position: 0 50%;
    background-repeat: no-repeat;
    border-radius: 2px;
    flex:1;
    min-height:60px;
}
.resource-title{
    display: flex;
    flex-direction: row;
}
.resource-title-block{
    flex:1;
    gap:4px;
    display: flex;
    flex-direction: column;
}
.resource-name{
    font-size: 16px;
    color: #3D3D3D;
}
.resource-price{
    font-size: 12px;
    line-height: 16px;
    color: #33804D;
    display: flex;
    flex-direction: row;
    gap:8px;
}
.resource-price-day{
}
.resource-subtitle{
    font-size: 12px;
    color: #A3A3A3;
}
a.resource-subtitle{
    text-decoration: underline;
}
.resource-price-block{
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.scroll-wrapper{
    position: relative;
    max-width: 100vw;
    height: calc(100vh - 96px);
    overflow: auto;
}
.gantt-rows{
    display: flex;
    flex-direction: column;
}

.bookings-columns{
    padding-left: 360px;
    flex:1;
    display: flex;
    flex-direction: row;
}

.gantt .column{
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 400px;
    box-sizing: border-box;
    width: 400px;
    overflow: hidden;
    border-right: 1px solid #F5F5F5;
}
#gantt-periods-headers .column{
    background-color: white;
}
.gantt-rows .column:last-child{
    border-right: none;
}

.gantt-rows .column.hover{
    background-color: rgba(241, 241, 241, 0.5);
}
.column-title{
    font-size: 24px;
    text-align: center;
    color: #3D3D3D;
    margin-bottom:4px;
}
.column-subtitle{
    font-size: 12px;
    line-height: 100%;
    text-align: center;
    color: #A3A3A3;
}

.selected .column-title,.selected .column-subtitle{
    color: #33804D;
}

#modal {
    z-index: 1000;
    position: absolute;
    display: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
#modal-block {
    display:flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    min-width: 300px;
    min-height: 100px;
    max-width: 500px;
    max-height: 100vh;
    overflow:auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 11;
}
#modal.large #modal-block{
    min-width: 50vh;
    width: 90vw;
    max-width: 90vw;
    min-height: 90vh;
}
#modal-close {
    z-index: 10000;
    background-color: rgba(0,0,0,0.3);
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-image: url('../img/close.svg');
    background-position: center;
    background-repeat: no-repeat;
}
#modal-content{
    flex:1;
}

#customers-table_wrapper{
    padding:24px;
    height: 60vh;
}
#modal-content form{
    padding:24px;
    display: flex;
    flex-direction: column;
    gap:8px;
}

#modal-content input[type=text]{
    width:100%;
}
#modal-content form button{
    padding: 8px 12px;
}


.toggler-wrapper {
    display: flex;
    width:100%;
    height:45px;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.toggler-wrapper input[type="checkbox"] {
    display: none;
}

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider {
    background-color: #33804D;
}

.toggler-wrapper .toggler-slider {
    background-color: #ccc;
    position: absolute;
    right:0;
    border-radius: 100px;
    width: 45px;
    height: 25px;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.toggler-wrapper .toggler-knob {
    position: absolute;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
    left: calc(100% - 19px - 3px);
}

input[type=number],input[type=file]{
    width: 100%;
}

.toggler-knob {
    width: calc(25px - 6px);
    height: calc(25px - 6px);
    border-radius: 50%;
    left: 3px;
    top: 3px;
    background-color: #fff;
}


#modal-content select {
    flex: 1;
    display: flex;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    color: rgba(61, 61, 61);
    background-position: center;
    background-repeat: no-repeat;
}
.select2-container {
    flex: 1;
}
.select2-selection__rendered {
    line-height: 38px !important;
}
.select2-container .select2-selection--single {
    height: 41px !important;
}
.select2-selection__arrow {
    height: 40px !important;
}
.d-none{
    display: none;
}
.modal-image {
    height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.bookings-columns{
    position:relative;
}
.booking{
    display: flex;
    position: absolute;
    height: 40px;
    width: 100px;
}
.booking-wrapper{
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    display: flex;
}
.booking-block{
    display: flex;
    flex-direction: column;
    width:100%;
    height:100%;
    padding:8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #33804D;
    box-shadow: 0px 8px 16px -2px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(4px);

    border-radius: 4px;
}
.left{
    display: flex;
    flex-direction: column;
    gap:4px;
}
.booking-customer{
    font-size: 16px;
    color: #3D3D3D;
}

.booking-location{
    font-size: 12px;
    color: #3D3D3D;
}
.booking-customer, .booking-has-driver, .booking-start, .booking-end{
    font-size: 10px;
    color: #A3A3A3;
    background: white;
    white-space: nowrap;
}
.booking-price{
    font-size: 16px;
    color: #33804D;
}

.booking-wrapper.compact .first-row{
    display: none;
}
.booking-wrapper.compact .spacer{
    display: none;
}
.booking-wrapper.compact .row{
    flex-direction: column;
}

#booking-row{
    position: fixed;
    background: #F5F5F5;
    display: block;
    width: 100%;
    top: 300px;
    left: 0;
    height: 50px;
    z-index: -1;
}

.price-block{
    padding:8px;
    background: rgba(51, 128, 77, 0.04);
    margin-bottom: 12px;
}
#booking-price-total-label{
    font-size: 16px;
    color: #A3A3A3;
}

#booking-price-text{
    font-size: 16px;
    color: #33804D;
}
#booking-price-rate-text, #booking-price-duration-text{
    font-size: 12px;
    color: #A3A3A3;
}
.report-container{
    display: flex;
    flex-direction: column;
    gap:4px;
    position: absolute;
    top: 0;
    bottom:0;
    left: 0;
    right:0;
}
.report-controls{
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
}
.report-table {
    flex:1;
    width:100%;
    min-width:500px;
    border-spacing:0;
}
.report-table thead{
    background: #F5F5F5;
}
.report-table th {
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    line-height: 130%;
    color: #999999;
    padding: 8px 10px;
}
.report-table tr {
    min-height: 40px;
}
.report-table td {
    padding: 8px 10px;
}
.report-table tbody tr:hover {
    background: rgb(245, 245, 245);
}
.report-table td:first-child{
    padding-left: 10px;
}
.report-table td:last-child{
    padding-right: 10px;
}
.report-table th:first-child{
    padding-left: 10px;
}
.report-table th:last-child{
    padding-right: 10px;
}

.report-table tfoot{
    background-color: #33804D;
}
.report-table tfoot th{
    font-size:16px;
    padding: 12px 10px;
    background-color: #33804D;
    color:white;
}
.number{
    text-align:right !important;
}
.addition-row{
    display:none;
    background: rgb(245, 245, 245);
}
.addition-row td{
    color: #999999;
}
.addition-cell{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.addition-toggler{
    cursor: pointer;
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    border-radius:16px;
    min-width: 32px;
    min-height: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../img/chevron_down.svg');
}
.addition-toggler:hover{
    background-color: #D9D9D9;
}
.addition-toggler.up{
    background-image: url('../img/chevron_up.svg');
}
.button.export{
    height: 40px;
    margin-right: 32px;
    margin-top: 24px;
}