@media only screen and (min-width:1200px) {
    .header {
        margin-left: 250px;
    }

    .main-wrapper {
        margin-left: 250px;
        margin-right: 24px;
    }

    .toggle-sidebar .main-wrapper {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }

    .search-bar-toggle {
        display: none;
    }
}

@media only screen and (min-width:576px) {
    .header-nav .search-bar-toggle {
        display: none;
    }
}

@media (max-width: 1199px) {
    .main-wrapper {
        padding: 24px;
        margin: 0px 24px;
    }

    .header-rightbox {
        gap: 12px;
    }

    body .header .toggle-sidebar-btn {
        display: block !important;
        color: var(--secondarytextColor);
    }

    .header {
        padding: 21.5px 24px;
        margin: 0;
    }

    .sidebar {
        left: -250px;
    }

    .toggle-sidebar .sidebar {
        left: 0;
        border-radius: 0px 24px 24px 0px;
        background: rgba(245, 246, 248, 1);
        box-shadow: 0px 0px 40px 0px rgba(230, 232, 235, 0.5);
    }

    .toggle-sidebar-close .sidebar {
        left: -250px;
    }

    .toggle-sidebar .close-menu-btn-outer {
        position: fixed;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        left: calc(100% - 110px);
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .toggle-sidebar .close-menu-btn {
        font-size: 14px;
        padding: 6px 14px;
        border: 0;
        background: var(--primarytextColor);
        color: var(--white);
        border-radius: 4px;
        display: flex;
        gap: 4px;
        align-items: center;
        white-space: nowrap;
    }

    .toggle-sidebar::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        z-index: 1;
        background-color: var(--primarybgColor);
        filter: blur(8px);
        -webkit-filter: blur(8px);
    }

    .toggle-sidebar .header,
    .toggle-sidebar .main-wrapper {
        filter: blur(2px);
    }

    .header-nav .nav-profile-name {
        display: none;
    }

    .header-nav .user_profile {
        display: none;
    }

    .sidebar .language-layout {
        width: 100%;
    }

    .sidebar .language-content .btn {
        width: 100%;
    }

    .sidebar .language-content .dropdown-toggle::after {
        margin-left: auto;
    }

    .sidebar .language-content .dropdown-menu {
        width: 100%;
    }

    .page-title {
        min-width: inherit;
    }
}

@media (max-width: 775px) {
    .header-left-box, .header-right-box {
        justify-content: flex-start;
    }

    .header-flexbox .search-bar {
        margin-bottom: 0px;
    }

    .employee-directory-content .header-flexbox {
        gap: 0;
    }

    .main-wrapper {
        padding: 16px;
        margin: 0px 16px;
    }

    .header {
        padding: 21.5px 16px;
    }

    .employee-directory-content .bg-icon-text-lg .icon img {
        height: 50px;
    }

    .employee-directory-content .bg-icon-text-lg .text p {
        font-size: 12px;
    }

    .New-Employee-modal.theme-modal .btn-footer,
    .Edit-Employee-modal.theme-modal .btn-footer {
        padding-top: 20px;
    }

    .Whos_off_layout .header-flexbox {
        justify-content: flex-start;
    }

    .report_card_content {
        display: flex;
    }
    .document_card_content {
        display: block !important;
    }
    .top_four_card {
        width: 49%;
    }
}

@media (max-width: 599px) {
    .header .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
        background: white;
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .header .search-bar-show {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }

    .company-middle-content-box {
        min-height: inherit;
        max-width: 100%;
    }

    .modal.theme-modal .modal-text {
        width: 130px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .company-name-input {
        width: 100%;
    }

    .header-flexbox.office-header-desktop {
        display: none;
    }

    .header-flexbox.office-header-mobile {
        display: block;
    }

    .header-right-box {
        width: 100%;
    }

    .office-header-mobile.header-flexbox .add-filter-box {
        margin-bottom: 0;
        width: 99px;
        border: 1px solid var(--borderColor);
        padding: 7px 10px;
        font-size: 12px;
        line-height: 16.2px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 4px;
        color: var(--secondarytextColor);
    }

    .office-header-mobile.header-flexbox.office-header-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 16px;
        margin-bottom:8px;
    }

    .office-header-mobile h2.card-title {
        margin: 0 !important;
    }

    .office-header-mobile .full-btn-outer {
        width: 100%;
        margin-bottom: 16px;
    }

        .office-header-mobile .full-btn-outer .btn {
            width: 100%;
            justify-content: center;
        }

    .image-uploader-custom .upload-preview {
        height: 40px;
        width: 40px;
        min-width: 40px;
    }

    .pagination-layout {
        flex-wrap: wrap;
        justify-content: center;
    }

    .employee-directory-content .column-reverse-mobile {
        flex-direction: column-reverse;
    }

    .column-reverse-mobile .header-right-box {
        justify-content: space-between;
    }

        .column-reverse-mobile .header-right-box .themeBtn {
            margin: 0;
        }

    .header-left-box {
        width: 100%;
    }

    .header-flexbox .search-bar {
        flex: 1;
    }

    .header-flexbox .search-bar {
        min-width: inherit;
        flex: 1;
        margin-bottom: 0;
    }

    .header-flexbox .search-form {
        width: inherit;
    }

    .employee-directory-content .header-flexbox {
        gap: 10px;
    }

    .Edit-Employee-modal .theme-tabs li.nav-item #pills-Settings-tab {
        font-size: 0;
        height: 32px;
        justify-content: center;
        gap: 0px;
    }

    .bg-icon-text-lg .icon img {
        height: 50px;
    }

    .Whos_off_layout .header-flexbox {
        justify-content: flex-start;
    }

    .Whos_off_layout .header-flexbox {
        width: 100%;
    }

        .Whos_off_layout .header-flexbox .card-title {
            width: 100%;
            margin-bottom: 10px !important;
        }

    .Whos_off_layout .header-center-box {
        width: 100%;
    }

    .Whos_off_layout .month-year-picker {
        width: 100%;
    }

    .Whos_off_layout .header-right-box {
        flex-wrap: wrap;
    }

    .Whos_off_layout .header-flexbox .search-bar, .Whos_off_layout .header-flexbox .dropdown {
        width: 100%;
        flex: inherit;
    }

    .top_card_content {
        min-height: 90px;
    }

    .report_content .icon img {
        max-width: 160px;
    }
    .breakgame {
        width: 100%;
    }
    .my-time-on .calendar-outer {
        order: 1;
    }

    .my-time-on .header-right-box {
        order: 3;
    }

    .my-time-on h2.card-title {
        order: 2;
    }
}

@media (max-width: 399px) {
    .report_card_content {
        display: block;
    }
}

@media (max-width: 360px) {
    .pagination_content .pagination li a {
        width: 27px;
        padding: 4px 5px;
    }

    .pagination-content {
        gap: 3px;
    }
}

@media (max-width: 565px) {
    .previous-btn.page-link,
    .next-btn.page-link{
        display: none !important;
    }
}
@media (max-width: 738px) {
    .pagination-layout {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center !important;
    }
}
.responsive-search-field {
    width: 50%;
}
@media (max-width: 725px) {
    .responsive-search-field {
        width: 60% !important;
    }
}


@media (max-width: 500px) {
    .responsive-search-field {
        width: 100% !important;
    }
}
/* response next button and pagination number */

/* Ensure pagination wraps properly */
.pagination-content {
    flex-wrap: wrap;
    gap: 8px;
}

/* Adjust spacing between pagination elements */
.pagination_content nav ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* Make sure buttons shrink gracefully */
.previous-btn,
.next-btn {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
}

/* Hide some page numbers on small screens */
@media (max-width: 450px) {
    .pagination_content nav ul.pagination li:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        display: none;
    }

    .pagination_content nav ul.pagination li.disabled {
        display: inline-block;
    }
}

/* Reduce margin/padding on very small devices */
@media (max-width: 375px) {
    .previous-btn,
    .next-btn {
        padding: 5px 6px;
        font-size: 11px;
    }
}
@media (min-width: 250px) and (max-width: 460px) {
    .responsiveview-modal-body {
        height: 80px !important;
    }
    .responsive-modal-body {
        height: 100px !important;
    }
}

@media (min-height: 250px) and (max-height: 960px) {
    .responsiveview-modal-body {
        height: 80px !important;
    }
    .responsive-modal-body {
        height: 100px !important;
    }
}
