@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root{
    --primary-color: #ae976d;
    --secondary-color: #3ab07c;
    --ternary-color: rgba(128,128,128,.4);
    --background-color: #F4F4F4;
    --bs-btn-border-radius: 8px;
    --page-width: 1660px;

    --colors-seda-900-nadpisy: #333333;
    --colors-seda-600-texty: #4d4d4d;
    --colors-seda-300-male-texty: #747474;
    --colors-seda-150-ikony: #C3C3C2;

    --colors-gold: #9b6600;
    --colors-gold-150: #FAF4E9;
    --colors-gold-hover: #c0a87f;
    --colors-border: #D4D4D4;
    --bs-btn-border-color: #D4D4D4;
    --bs-accordion-active-bg: #fafae9;
    --bs-nav-pills-link-active-bg: #fafae9;
}

body{
    font-family: 'Montserrat';
    background-color: var(--background-color);
    overflow-y: hidden !important; /*Removes flicker when tooltip is shown*/
}

.App {
    min-height: 100vh;
}

.navbar.header{
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px 0 #83603E0D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 32px;
    padding-right: 32px;
}

.navbar-brand{
    margin-right: 8px;
}

.App-navigation{
    position: fixed;
    background-color: white;
    height: calc(100vh - 152px);
    padding-right: 6px;
    width: 320px;
}

.App-navigation.closed{
    width: 64px;
}

.App-navigation-content{
    overflow-y: auto;
    padding-right: 6px;
    height: 100%;
}

.App-content-inner-wrapper{
    display: flex;
    justify-content: center;
}

.App-content-inner{
    flex-grow: 1;
    max-width: calc(var(--page-width) - 360px);
}

.login-body{
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #868686;
    font-family: 'Montserrat';
}

.login-container{
    display: flex;
    flex-direction: row;
    background-color: white;
    height: 100vh;
    width: 100vw;
    /*max-width: 1440px;*/
}

.login-logo{
    background: white url("../img/bg.jpg?v=3") no-repeat center center;
    background-size: auto 100%;
    /*width: 640px;*/
    width: 55%;
}

@media (min-aspect-ratio: 24/9){
    .login-logo {
        width: 45%;
    }
}

@media (max-width: 1024px) {
    .login-logo{
        display: none;
    }
}

@media (max-width: 1400px) {
    .login-content{
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


.login-content{
    margin-left: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
}

.login-card{
    width: 440px;
}

.login-title{
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 24px;
    line-height: 30px;
    margin-top: 14px;
    color: var(--colors-seda-900-nadpisy);
    margin-bottom: 4px;
}

.login-description{
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 24px;
    color: var(--colors-seda-300-male-texty);
}

input[type=password]{
    font-weight: bold;
    font-size: x-large;
}

.login-check-row{
    margin-left: -1.5em;
    display: flex;
    align-items: center;
    justify-content: space-around;
}


.btn{
    padding-left: 24px;
    padding-right: 24px;
    --bs-btn-font-weight: 600;
}

/*buttons override*/
.btn-primary{
    --bs-btn-color: #fff;
    --bs-btn-bg: #AE976D;
    --bs-btn-border-color: #AE976D;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #c0a87f;
    --bs-btn-hover-border-color: #AE976D;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a28d65;
    --bs-btn-active-border-color: #988766;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #a8a090;
    --bs-btn-disabled-border-color: #a8a090;
}

.btn-link {
    --bs-btn-color: var(--colors-gold);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--colors-gold-hover);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--colors-gold-hover);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    text-decoration: none;
}

.btn-login{
    margin-left: -12px;
}

.form-check-input{
    border-width: 2px;
    border-radius: 4px;
    padding: 4px;
    border-color: var(--colors-border);
}

.form-check-input:checked {
    background-color: #FAF4E9;
    border-color: var(--colors-gold);
}

.form-check-input:focus {
    border-color: var(--colors-gold);
    box-shadow: 0 0 0 .25rem rgba(174, 151, 109, .25);
}

.form-control:focus{
    border-color: var(--colors-gold);
    box-shadow: 0 0 0 .25rem rgba(174, 151, 109, .25);
}

.form-check-input:checked[type=checkbox] {
    color: var(--colors-gold);
    background-image: url('../img/check-gold.svg');
    /*background-size: 100%;*/
}

input[type=checkbox]{
    cursor: pointer;
}

.rdr-icon{
    width: 24px;
    height: 24px;
}

.rdr-icon.primary{
    color: var(--colors-gold);
}

.navbar{
    height: 64px;
    background-color: white;
    box-shadow: 0 5px 20px 0 #83603E0D;
    color: black;
    /*max-width: var(--page-width);*/
    margin-left: auto;
    margin-right: auto;
}

.navbar .logo-text, .modal-title{
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.navbar .dropdown-toggle{
    font-weight: 700;
    font-size: 16px;
}

.dropdown-toggle::after{
    border: none;
}

.dropdown-toggle{
    background-image: url("../img/chevron down.svg");
    background-repeat: no-repeat;
    background-position: 100% 50%;
    padding-right: 24px;
    padding-left: 8px;
}

.dropdown-toggle.btn-primary{
    background-image: url("../img/chevron down-white.svg");
    background-position: 50% 50%;
}

.inline-container{
    display: flex;
    align-items: center;
}

.badge{
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #FAF4E9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colors-gold);
    font-size: 16px;
    line-height: 20px;
}

.badge.lg{
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.App-content{
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1440px) {
    .App-content {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.calculations-header{
    height: 72px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.calculations-controls{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
}

.calculations-controls .dropdown{
    min-width: 256px;
    height: 40px;
}
.calculations-controls .dropdown .btn{
    font-weight: bold;
    font-size: 16px;
    /*line-height: 20px;*/
}

.calculations-controls .dropdown-toggle{
    width: 28px;
    min-width: 40px;
    padding: 0;
    background-color: var(--primary-color);
    border-left: solid 1px var(--colors-gold);
}

.calculations-controls .dropdown-toggle:hover{
    background-color: var(--colors-gold-hover);
}

.search-input{
    background: white url("../img/search.svg") no-repeat 95% 50%;
}

.title-description{
    display: flex;
    flex-direction: column;
}

.description{
    font-size: 12px;
    color: var(--colors-seda-300-male-texty);
}

.title{

}

.page-title{
    font-size: 28px;
    font-weight: 800;
    line-height: 34px;
    color: var(--colors-seda-900-nadpisy);
}

.App-body {
    height: calc(100vh - 152px);
    /*height: 500px;*/
    width: 100%;
    max-width: var(--page-width);
    background-color: #f4f4f4;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow-y: hidden;
    overflow-x: hidden;
}

.App-body:last-child{
    height: initial;
    overflow-y: auto;
}

.table-scroll-wrapper{
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 138px);
}


.primary{
    color: var(--colors-gold);
}

#calculations-table{
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 16px;
    word-break: break-word;
    color: var(--colors-seda-600-texty);
}

#calculations-table .row-cell{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-left: 12px;
}

#calculations-table{
    /*background: white;*/
}

#calculations-table th{
    background-color: #F4F4F480;
    font-size: 14px;
    font-weight: 600;
    color: #747474;
    padding: 12px 24px;
}

#calculations-table th:first-child{
    border-top-left-radius: 12px;
}

#calculations-table th:last-child{
    border-top-left-radius: 12px;
}

#calculations-table th .dt-column-order{
    position: relative;
    top: initial;
    right: initial;
    bottom: initial;
}

#calculations-table td{
    padding-left: 12px;
}

/* neutral state */
th.dt-orderable-asc .dt-column-order::before,
th.dt-orderable-desc .dt-column-order::after {
    content: '';
}

th .dt-column-order::before,
th .dt-column-order::after {
    font-size: 1rem !important;
    color: #C3C3C2;
    display: inline-block;
    opacity: 1 !important;
    transform: scaleY(0.6);
    margin-left: 4px;
    margin-top: -1px;
    margin-bottom: -1px;
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date{
    text-align: left;
}

/* up arrow */
th.dt-ordering-asc .dt-column-order::before {
    content: "▲";
    color: var(--colors-gold); /* bootstrap primary */
}

/* down arrow */
th.dt-ordering-desc .dt-column-order::after {
    content: "▼";
    color: var(--colors-gold); /* bootstrap primary */
}

.dropdown-item{
    padding: 16px;
}

#calculations-table tbody tr{
    cursor: pointer;
}

.navbar a{
    color: var(--colors-seda-900-nadpisy);
    text-decoration: none;
}

.navbar .dropdown a{
    font-weight: 600;
    color: var(--colors-seda-300-male-texty);
}

.navbar .dropdown a .rdr-icon{
    color: var(--primary-color);
    margin-right: 8px;
    display: inline-block;
}

.dropdown-item:active, .dropdown-item.active{
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item:active .rdr-icon, .dropdown-item.active .rdr-icon{
    color: white;
}



#calculations-table_wrapper button{
    color: var(--colors-seda-300-male-texty);
    border-color: #D4D4D4;
    font-weight: 600;
    font-size: 14px;
    line-height: 180%;
}

#calculations-table_wrapper .active button{
    background-color: var(--primary-color);
    color: white;
}

#calculations-table_wrapper button:focus{
    box-shadow: 0 0 0 0.25rem #AE976D64;
}

div.dt-container{
    background: white;
    border-radius: 12px;
    box-shadow: 0px 5px 20px 0px #83603E0D;
}

div.dt-container>div:last-child{
    padding: 32px;
    color: var(--colors-seda-300-male-texty);
    font-size: 14px;
    font-weight: 600;
    line-height: 180%;
}

.page-link.previous::before {
    content: "";
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    margin-right: 8px;
    margin-top: -2px;
    vertical-align: middle;
    background: url('../img/chevron rght.svg') no-repeat center center;
    transform: rotate(180deg); /* rotate + shift down */
}

/* Right arrow after "Další" */
.page-link.next::after {
    content: "";
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    margin-left: 8px;
    margin-top: -3px;
    vertical-align: middle;
    background: url('../img/chevron rght.svg') no-repeat center center;
}

.page-item.disabled .page-link.previous::before,
.page-item.disabled .page-link.next::after {
    content: "";
}

.form-control{
    font-weight: 600;
    font-size: 14px;
}

div.section-panel{
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    margin: 0;
    margin-bottom: 16px;
}

div.section-panel h2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-family: 'Montserrat';
    font-weight: 700;
    align-content: center;
    min-height: 24px;
    line-height: 24px;
}

.icon-button{
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 8px;
}

label{
    font-weight: 600;
    font-size: 16px;
    color: var(--colors-seda-300-male-texty);
    margin-top: 4px;
    margin-bottom: 4px;
}

input.form-control{
    font-size: 16px;
    font-weight: 600;
    color: var(--colors-seda-600-texty);
}

.server-info{
    color: var(--colors-seda-600-texty);
    font-weight: 600;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.form-floating>.form-control-plaintext~label::after, .form-floating>.form-control:focus~label::after, .form-floating>.form-control:not(:placeholder-shown)~label::after, .form-floating>.form-select~label::after{
    background: none;
}

.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
    transform: scale(.85) translateY(-.8rem) translateX(.15rem);
}

.alert-info, .alert-success{
    --bs-alert-color: white;
    --bs-alert-bg: var(--primary-color);
    --bs-alert-border-color: var(--colors-gold);
    font-weight: 500;
}

