:root {
    --dark-primary: rgba(0, 0, 0, 0.85);
    --dark-secondary: rgb(39, 39, 39);
    --dark-tertiary: rgba(0, 0, 0, 0.4);
    --light-primary: #fff;
    --blue-light: #0ea8ff;
    --blue-secondary: #007bff;
    --blue-tertiary: rgba(5, 105, 255, 0.31);
    --text-primary: #b8c7ce;

    --black: #000000;
    --blue-100: #cee5ff;
    --blue-200: #b3d7ff;
    --blue-600: #0a58ca;
    --blue-650: #004bad;
    --blue-700: #084298;
    --blue-800: #052c65;
    --blue-900: #031633;
    --gray-100: rgba(233, 236, 239, 0.89);
    --gray-200: #e9ecef;
    --gray-300: #dadada;
    --gray-400: #e0e0e0;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #616060;
    --red-500: #dc3545;
    --red-600: #c52937;
    --success: #198754;
    --yellow-500: #ffc107;

    --box-background: #fff;
    --box-shadow: 2px 2px 10px #eee;

    --font-primary: 'Montserrat';
    --font-primary-light: #fff;
    --font-size-md: 1.2rem;

    --table-border-color-header: inset -0.5px 0 0 rgb(255, 255, 255);
    --table-border-color-body: inset -0.5px 0 0 rgb(218, 218, 218);
    --table-container-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    --table-border-shadow: rgba(0, 0, 0, 0.1);
    --table-row-odd: rgba(234, 234, 234, 0.37);
    --table-row-even: #ffffff;
    --table-row-hover-odd: #e0eeff;
    --table-row-hover-even: #eaf4ff;
    --table-column-max-width: 163px;
    --table-column-max-width-2K: 9.4vw;
    --sidebar-and-margin-left: 220px;

    --scrollbar-track: #b4b4b4;
    --scrollbar-gradient-1: rgb(7, 80, 143);
    --scrollbar-gradient-2: rgb(8, 44, 117);
    --scrollbar-gradient-3: rgb(3, 4, 79);
}

body {
    font-size: .85rem;
    font-family: var(--font-primary), sans-serif;
    font-weight: 500;
}

.h-screen {
    height: 100dvh;
}

input,
select {
    cursor: pointer;
    transition: 0.7s ease-in-out;

    &:hover:not(.form-check-input) {
        background: rgba(122, 120, 120, 0.1);
    }
}

.buttonDefault {
    transition: background-color 0.7s ease-in-out;
    border: none;
    border-radius: 5px;
    font-weight: 700;

    &:hover {
        filter: brightness(0.9);
    }
}

.customButton {
    transition: background-color 0.7s ease-in-out;
    border: none;

    &:hover {
        background-color: var(--blue-800);
    }
}

button:disabled {
    pointer-events: none;
}

label {
    font-weight: 600;
}

#contentContainer {
    min-height: calc(100dvh - 65px);
}

.hidden {
    display: none;
}

.contentCenter {
    min-height: calc(100dvh - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.formContainer input,
.formContainer select {
    border: 1px solid var(--gray-600);
    height: 2.7rem;
}

.attachmentButton {
    cursor: pointer !important;
    border: 1px solid transparent;
}

.formContainer {
    margin: 4rem auto;
}

#import_export_file_container.disabledCover,
#import_export_encode_container.disabledCover{
    opacity: .3;
    pointer-events: none;
}

@media (width > 800px) {
    .formContainer {
        border-radius: 5px;
        border: 1px solid var(--gray-600);
        box-shadow: var(--table-container-shadow), var(--table-container-shadow);
    }
}

@media (width > 1200px) {
    .formContainer {
        max-width: 95vw;
    }
}

@media (width > 1500px) {
    .formContainer {
        max-width: 1500px;
    }
}

@media (width < 691px) {
    .formContainer form .form-group{
        padding-right: 0 !important;
    }
}

@media (width < 538px) {
    .formContainer {
        margin: 0 auto;
    }

    #notifications{
        margin-top: 0;
    }

    .filterCover{
        flex-direction: column;
        align-items: center;
    }
}

/* ------------------------------

Info Icons

---------------------------------- */

.infoSpan {
    cursor: pointer;
}

.buttonsCover {
    display: flex;
    justify-content: end;
    margin-top: 2rem;
    gap: 2rem;
}

.buttonsCover button,
.buttonsCover a {
    font-weight: bold;
}

.contentBody {
    width: 100vw;
    overflow-x: hidden;
}



/*--------------------------
Top-Menu
----------------------------- */
.topMenuContainer {
    min-height: 40px;
}

.topMenuCover {
    width: auto;
    background: var(--blue-900);
    border-width: 0 0 3px 3px;
    border-color: var(--blue-secondary);
    border-style: solid;
    border-radius: 0 0 0 10px;

    & li {
        cursor: pointer;
    }

    & li:hover {
        filter: brightness(90%);
    }

    & li a,
    & .dropdown-toggle {
        text-decoration: none;
        transition: 0.5s ease-in-out;
    }

    & .dropdown-toggle:hover {
        filter: brightness(60%);
    }

    & .dropdown-menu a:hover {
        background: var(--blue-tertiary);
    }
}

/*---------------------------

Detail

 -----------------------------*/

.detailBox {
    width: auto;
    max-width: 1200px;
    margin-top: 3rem;
    border-top: 3px solid var(--blue-600);
    border-bottom: 3px solid var(--blue-600);
    border-left: 3px solid var(--blue-800);
    border-right: 3px solid var(--blue-800);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2), 15px 15px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    background-color: var(--light-primary);
    overflow-x: hidden;
    & .d-flex .text-blue-800 {
        margin-right: 4rem;
    }

    & table {
        min-width: 500px;
    }

    & table td {
        padding-left: 1.5rem;
    }
}

/* -----------------------------

Modal

 ------------------------------ */

.modal-header, .modal-footer, .modal-content {
    border-radius: 0;
}

.modal-dialog {
    max-width: fit-content;
    min-width: 500px;
    margin-left: auto;
    margin-right: auto;

    & .modal-header {
        display: flex;
        justify-content: space-between;
    }

    & .modal-title h4 {
        margin-bottom: 0;
    }

    & .modal-body,
    .modal-body table {
        margin-bottom: 0;
    }

    & .modal-content {
        padding: 0 1rem;
    }

    & .btn-close {
        margin-left: 2rem;
    }

    & .modal-header {
        border-bottom: none;
    }

    & .modal-footer {
        border-top: none;
    }
}

.modal-body table tbody tr td{
    text-wrap: nowrap;
}

.warningDiv {
    font-size: 0.8rem;
    text-align: start;
    max-width: 570px;
    text-wrap: wrap;
    margin: 0.5rem auto 0;
}

/*---------------------------

Default

 -----------------------------*/

#roles label.form-check-label {
    display: none;
}

.showPassword {
    cursor: pointer;
}

form *[required] {
    border: 1px solid var(--dark-primary);
}

.form-control.disabled, .form-select.disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

.top-header {
    background: var(--light-primary);
}

/* ------------------------------

Pagination

---------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
}

#paginationLimit {
    list-style-type: none;
    gap: 1.5rem;
}

.pagination .active > .page-link {
    background-color: var(--blue-700);
}

form {
    padding-bottom: 1.5rem;
}

label.required {
    display: flex;
    align-items: center;
    align-content: center;
}

label.required::after {
    content: '*';
    font-weight: bold;
    color: var(--red-500);
    margin-left: 8px;
    margin-right: 8px;
    transform: scale(1.8);
    transform-origin: left center;
}

/* ------------------------

New role form fix, center

-------------------------- */
.roleTable {
    margin-bottom: 0;
}

.roleTable tr th:last-child {
    text-align: center;
}

.roleRow {
    .permissionHeader {
        text-align: center !important;
    }

    & td:first-child {
        & h6 {
            padding: 0.8rem 0 0 0;
        }
    }

    & td div {
        margin: .2rem 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Checkbox */

    & .form-check {
        padding: 0;
    }

    & .form-check-input {
        width: 20px;
        height: 20px;
        margin: 0;
        text-align: center;
    }

    & tr th:first-child,
    & td:first-child {
        max-width: 1rem;
    }

    &:last-child {
        border: transparent;
    }
}

.custom-tooltip .tooltip-inner {
    background-color: var(--dark-secondary);
    color: var(--light-primary);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
}

.custom-tooltip .tooltip-arrow {
    border-top-color: var(--dark-secondary);
}

/* --------------------------------

DatePicker

---------------------------------- */
#ui-datepicker-div {
    width: 100%;
    max-width: 245px;
    z-index: 10 !important;

    & .ui-datepicker-month {
        width: 65%;
    }

    & .ui-datepicker-year {
        width: 35%;
    }
}

.ui-datepicker-current {
    display: none; /* Skryje tlačítko "Dnes" */
}

.ui-datepicker-prev, .ui-datepicker-next {
    margin-top: 10px;
}

.ui-datepicker-prev {
    left: 10px; /* Pozice tlačítka předchozí */
}

.ui-datepicker-next {
    right: 10px; /* Pozice tlačítka další */
}

/* ----------------------------

    Alert Container

------------------------------ */

.alertCover {
    display: block;
    padding: 8px 0;
}

#alertCoverGoogleMaps{
    z-index: 0;
    padding: 0.45rem 0;
}

.fadeAlert {
    transition: opacity 1s ease-in-out;
}

.fadeAlert.showAlert {
    display: block;
    opacity: 1;
}

.fadeAlert:not(.showAlert) {
    display: none;
    opacity: 0;
}

#planned_task_days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
}

/* ----------------------------

    Google map container

------------------------------ */

.googleMapContainer{
    height: 300px;
    width: 100%;
}

/* disabled Default google map error input overlay */
input.gm-err-autocomplete {
    background-image: none !important;
}

/* disabled Default google map error map overlay */
.gm-err-container,
.gm-err-container * {
    display: none !important;
}

.gm-style,
.gm-style * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.serviceFuelContainer{
    margin: 4rem auto 0 auto;
    display: block;
    width: fit-content;
    border-top: 3px solid var(--blue-600);
    border-bottom: 3px solid var(--blue-600);
    border-left: 3px solid var(--blue-800);
    border-right: 3px solid var(--blue-800);
    border-radius: 10px;
}

/* ----------------------------

        Checkbox

 ------------------------------- */

.form-check{
    display: flex;
    align-items: center;
    gap: .5rem;
}

.form-check > input {
    width: 20px;
    height: 20px;
    margin: 0;
    text-align: center;
}

.notificationTable {
    margin: 0 auto;
    max-width: 1920px;
    overflow-x: auto;
    -ms-overflow-style: auto;
}

.notificationTable th,
.notificationTable td {
    padding-left: .2rem;
    white-space: nowrap;
    vertical-align: middle;
    & a{
        text-decoration: none;
    }
}

/* ----------------------

        Cell shrink -  max width

 ----------------------- */

.cellShrinkWidth span {
    max-width: 350px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customCheckbox{
    padding:.5rem;
    border-radius:5px;
    background: rgb(188 188 188 / 14%);
    cursor:pointer;
    width:100%;
    display:flex;
    align-items:center;
    gap:.5rem;
    & label {
        cursor: pointer;
    }
}
