@media (min-width: 1820px) and (max-width: 2558.9px) {
    #contentContainer {
        margin-left: var(--sidebar-and-margin-left);
    }
}

@media (min-width: 1820px) {
    #sidebar {
        margin-left: 0;
    }

    #sidebarCollapse {
        display: none; /* Skryj ovládací ikony na větších obrazovkách */
    }
}

@media (width < 1625px) {
    [data-tooltip].tooltip-notice::before,
    [data-tooltip].tooltip-note::before {
        display: none;
    }
}

@media (width < 1479px) {
    .topMenuCover {
        width: 100%;
        border: none;
        border-bottom: 2px solid var(--blue-secondary);
        border-radius: 0;
        justify-items: center;
        flex-wrap: wrap;
    }

    .customAlert {
        margin-top: 2.5rem;
        margin-bottom: 0;
    }

    #notifications .notificationHeaderContainer,
    .mainContainer .pageNameContainer {
        margin: 2.5rem 0 2rem 0;
    }

    .notificationList__selectedDate {
        left: 85% !important;
        text-wrap: nowrap;
    }
}

@media (max-width: 1200px) {
    .tableContainer {
        overflow-x: auto;
    }

    .tableContainer table {
        min-width: 1200px;
    }

}

@media (width < 1000px) {
    .detailBox {
        max-width: 100dvw;

        & h2 {
            margin-right: 0 !important;
        }
    }
    .detailBoxContainer .detailBoxCover {
        display: flex;
        justify-content: flex-end;
        flex-direction: column-reverse;
        margin: 0 0.5rem;
        gap: 0.5rem;
    }
    .boxSmall{
        width: 100%;
    }
    .help-page-container{
        margin: 2rem 0 0 0;
        padding: .5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        & .help-aside {
           display: none;
        }
    }
    .help-bottom {
        width: 100%;
        display: grid !important;
        grid-template-rows: auto 2fr;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        justify-items: center;
    }

    .help-bottom h2 {
        grid-row: 1;
        grid-column: 2;
        text-align: center;
        width: 100%;
    }

    .help-bottom > div:nth-child(2) {
        grid-row: 2;
        grid-column: 1;
    }

    .help-bottom > div:nth-child(3) {
        grid-row: 2;
        grid-column: 3;
    }
}

@media (width < 832px) {
    .mainContainer .filterCover div {
        & input, label {
            width: 100% !important;
        }

        &:last-child {
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }
    }

    .notificationHeaderContainer {
        & .notificationHeaderCover {
            display: flex;
            justify-content: start;
            align-items: start !important;
            flex-direction: column !important;

            & .customButton {
                margin: 1rem 0 0 0 !important;
            }
        }

        .notificationList__selectedDate {
            margin-top: -30px;
            margin-left: -2rem;
        }
    }

    .detailBoxContainer {
        flex-direction: column-reverse;
        gap: .5rem;
        & h2 {
            text-align: center;
        }
    }

   #role-detail .detailBox{
        width: 100%;
        border: none;
    }

    .roleDetailTopTable tr{
        display: block;

        & th,
        & td {
            display: block;
            width: 100%;
            padding: .8rem .4rem;
        }

        & th{
            background-color: rgba(0, 0, 0, 0.05);
        }
    }
    .help-content{
        width: 100% !important;
    }
}

@media (width < 714px) {
    .mainContainer .filterCover div {
        width: 47%;
    }
}

@media (width < 620px){
    .formHeaderCover {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (width < 576px) {
    .topMenuCover {
        min-height: 5rem;
    }

    .topMenuContainer {
        position: static !important;
    }

    .mainContainer {
        padding-top: 0;
    }

    .customAlert:not(.loginAlert) {
        margin-top: 0;
    }

    .loginAlert {
        margin-top: 0;
    }

    #notifications {
        padding-top: 0;
    }

    #notifications .container-fluid {
        margin-top: .5rem;
    }

    .modal-body table tbody {
        font-size: .8rem !important;

        & tr td,
        & tr th {
            padding: .5rem 0;
        }

        & tr td {
            padding: .5rem .5rem .5rem 0;
        }
    }

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

    .detailBox {
        margin-top: 0;

        & .card .card-body {
            padding: 0 .2rem;
        }
    }

    .detailTable {
        padding: 0 .2rem;
    }

    .smallDetailColumn {
        flex-direction: column;
        justify-content: center;
    }

    #notification-detail {
        padding-top: 0 !important;
    }

    .warningDiv {
        margin: 0 .4rem;
    }

    #registrations{
        align-items: start !important;
    }

    .boxSmall{
        margin-top: 5rem;
        padding: 2rem 1rem !important;
    }

    .inviteInputsCover div {
        width: 100%;
    }

    #registrations .box-login{
        border: none;
        margin-top: 3rem !important;
        padding: 1rem;
    }

    #lost_password input{
        width: 100% !important;
    }

    .help-bottom {
        grid-template-rows: auto 3fr;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .help-bottom h2 {
        grid-row: 1;
        grid-column: 1;
    }

    .help-bottom > div:nth-child(2) {
        grid-row: 2;
        grid-column: 1;
    }

    .help-bottom > div:nth-child(3) {
        grid-row: 3;
        grid-column: 1;
    }

    .help-bottom > div div{
       justify-content: center;
    }

    .help-page-container{
        margin-top: 1rem !important;
        padding: .5rem !important;
    }

    .help-content .h5{
        font-size: 1rem;
    }
}

@media (width < 538px) {

    .mainContainer .py-5 {
        padding-top: 0 !important;
    }

    .mainContainer .filterCover div {
        width: 100%;
    }

    .notificationDetailTable {
        min-width: auto;
    }

    .detailBox {
        border: none;
        box-shadow: none;
    }

    .detailTable {
        padding: 0 5px;
        min-width: auto !important;
        width: 100dvw;
    }

    .detailBox tbody tr td {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: .5rem;
    }

    .help-form-container div:first-child,
    .help-form-container div:nth-child(2){
        flex-direction: column !important;
        width: 100% !important;
    }
}

@media (width < 500px) {
    .modal-dialog {
        min-width: 95dvw !important;
    }

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

    .notificationHeaderCover {
        margin: auto;
    }

    .notificationList__selectedDate {
        margin: 4rem 0 0 0 !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
    }

    .notificationContainer {
        padding-top: 1rem !important;
    }

    .detailBoxContainer div {
        display: flex;
        gap: .2rem;
    }

    .smallScreenColumn {
        display: flex;
        justify-content: start;
        flex-direction: column !important;

        & .customButton {
            margin: 1rem 0 0 0 !important;
        }
    }

    #notification-detail .card-body{
        padding: 0;
    }

    #task-detail .detailTable tr,
    #notification-detail .notificationDetailTable tr{
        font-size: 3.3dvw;
        max-width: 50dvw;
        & th{
            text-wrap: wrap;
            max-width: 20dvw;
        }
    }
}

@media (width < 448px) {
    .topMenuCover {
        justify-content: space-between;
        gap: 0;
        min-height: 120px;

        & li {
            text-align: center;
            padding: 0;
            margin: 0 !important;
            min-width: 46%;
        }
    }

    .modal-header h4 {
        font-size: 5dvw;
    }
}

@media (height < 925px ) {
    .help-page-container{
        margin-top: 2rem;
        padding: 1rem;
    }
}

@media (height < 450px ) {
    #loginFormContainer {
        padding-top: 2.5rem;
    }

    .loginBox {
        margin-top: 0;

        & p:first-child {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 1.2rem;
        }

        & img {
            width: 40% !important;
        }

        & .text-muted {
            margin-top: .5rem !important;
        }
    }

    .loginAlert {
        margin: 0;
    }
}
@media (height < 400px ) {
    #registrations .box-login {
        margin-top: 3rem !important;
    }
}
/*----------------------------
    > 2K resolution
------------------------------*/
@media ( width > 2559px) {
    body,
    .mainContainer,
    .topMenuContainer,
    .topMenuContainer .dropdown-item {
        font-size: 102%;
    }

    .pagination .page-link {
        font-size: 120%;
    }

    .notificationList__selectedDate {
        font-size: 150%;
    }

    .notificationHeaderContainer,
    .pageNameContainer {
        & .notificationHeader {
            font-size: 150%;
        }

        & p {
            font-size: 2.5rem;
        }

        & a {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
        }
    }

    #contentContainer {
        margin-left: 260px;
    }

    #sidebar {
        width: 260px;
        font-size: 110%;
        font-style: normal;

        & li {
            margin-bottom: 10px;
        }

        & .nav-link span {
            width: 3rem;
        }

        .table-responsive,
        #datepicker,
        #contractSearch,
        #ui-datepicker-div,
        .form-select,
        #datepicker,
        #contractSearch,
        #confirmDeleteModal .modal-footer > *,
        #confirmStatusChangeModal .modal-footer > * {
            font-size: 110%;
        }

        #resetFilters {
            font-size: 108%;
        }

        select option {
            font-size: 10px !important;
        }

        .notificationFiltersCover {
            gap: 0 !important;
            margin-top: 100px;

            & div {
                max-width: 12vw !important;
            }

            & div label {
                font-size: 110%;
            }

            & div select,
            .form-select {
                width: 100% !important;
            }
        }

        .formContainer {
            max-width: 70vw;

            & input,
            & select {
                border: 1px solid gray;
                font-size: 1.5rem;
                height: 3rem;
            }

            & .buttonsCover button,
            .buttonsCover a {
                font-size: 1.5rem !important;
            }
        }

        .completedButton a {
            font-size: 1rem !important;
        }

        .ui-datepicker-prev .ui-icon, .ui-datepicker-next .ui-icon {
            transform: scale(1.5);
            margin-top: 1px !important;
        }

        .alert,
        .success,
        .danger {
            font-size: 120%;
        }

        .tableIcons a {
            width: 40px !important;
            height: 40px !important;

            & > * {
                font-size: 150%;
            }
        }

        .notificationFiltersCover .form-select option {
            font-size: 1.2rem !important;
        }
    }

    #ui-datepicker-div {
        max-width: 305px;
    }
}

/*----------------------------
    > 4K resolution
------------------------------*/
@media ( width > 3715px) {
    body {
        font-size: 110%;
    }

    .tableContainer {
        font-size: 110%;
    }

    .topMenuCover {
        min-width: 20vw;
        border-bottom: 5px solid var(--blue-secondary);
    }

    .topMenuCover,
    .topMenuCover .dropdown-item,
    .topMenuCover .btn {
        font-size: 2rem;
        gap: 10rem;
    }

    #sidebar {
        width: 400px;
        font-size: 160%;

        & div:last-child {
            font-size: 80%;
        }
    }

    #contentContainer {
        margin-left: 400px;
    }


    .mainContainer {
        max-width: 2750px;
    }

    .notificationContainer {
        font-size: 1.8rem;
    }

    .notificationList__selectedDate {
        font-size: 250%;
    }

    .formContainer,
    #notification_nameFrom,
    #notification_loadingDate,
    #notification_attachments,
    .form-check-label {
        font-size: 1.2rem;
    }

    .formContainer {
        & h1 {
            font-weight: 600;
            font-size: 3rem;
        }

        & input, & select {
            font-size: 1.2rem !important;
        }

        & .buttonsCover button,
        .buttonsCover a {
            font-size: 1.4rem !important;
        }

    }

    .tableIcons {
        border: 7px solid transparent;
    }

    .tableIcons a {
        border-radius: 10px;
        width: 40px !important;
        height: 40px !important;

        & svg {
            width: 25px !important;
            height: 25px !important;
        }
    }

    .form-check .form-check-input {
        margin: 0 1rem 0 0;
    }

    .completedButton a {
        font-size: 1.8rem !important;
    }

    /* Datepicker */
    #ui-datepicker-div {
        font-size: 2rem;
    }

    .ui-datepicker-prev .ui-icon, .ui-datepicker-next .ui-icon {
        transform: scale(2); /* Zazoomuje ikonu o 50% */
        margin-top: 3px !important;
    }


    /*--------------
        Detail
     ---------------*/
    #notification-detail {
        font-size: 2rem;

        & h2 {
            font-size: 4rem;
        }

        & .buttonsCover a {
            font-size: 2rem;
        }
    }

    .modal-content {
        font-size: 130%;
        width: 800px;
    }

    .alert,
    .success,
    .danger {
        font-size: 120%;
    }

    #ui-datepicker-div {
        font-size: 1.5rem;
        max-width: 455px;
    }

    .notificationFiltersCover input,
    .notificationFiltersCover select,
    .notificationFiltersCover .btn {
        font-size: 1.6rem;

    }
}

/*----------------------------
    > 8K resolution
------------------------------*/
@media ( width > 6815px) {
    body {
        font-size: 3rem;
    }

    #contentContainer {
        margin-left: 550px;
    }

    #sidebar {
        width: 750px;

        & div {
            margin-bottom: 2rem;
        }

        & div:last-child {
            font-size: 60%;
        }
    }

    #contentContainer {
        margin-left: 750px;
    }

    .notificationList__selectedDate {
        font-size: 7rem;
    }
}

/*----------------------------
    > Planned Tasks
------------------------------*/
.checkbox-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
}

.checkbox-box .form-check {
    width: fit-content;
}

.checkbox-box .form-check-input {
    width: 20px;
    height: 20px;
    text-align: center;
    margin: 0 .5rem 0 0;
}

#planned_task_daysOfWeek,
#planned_task_months,
#planned_task_days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: .7rem;

    & .form-check {
        display: flex;
        flex-wrap: nowrap;
        padding: .5rem .2rem;
        border-radius: 10px;
        background-color: var(--light-primary);
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    }

    & .form-check:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: var(--blue-tertiary);
    }

    & .form-check input:hover {
        border-color: var(--blue-600);
        background-color: white;
    }
}
