/*Larger than 1980px screens*/
@media only screen and (min-width: 1980px) {
    .symptoms-card .k-multiselect.k-input .k-input-values {
        max-width: fit-content !important;
    }

    .reports-main-card, .settings-inner-section {
        max-width: 1800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media only screen and (max-width: 1604px) {
    .scheduler-calender {
        width: 94% !important;
    }
}

/*greater than 1400px screens*/
@media only screen and (min-width: 1400px) {
    .settings-inner-section.container {
        max-width: 860px !important;
    }

    .chat-rightcontent .e-chat-content {
        max-width: 1040px;
        padding-right: var(--bs-gutter-x, .75rem);
        padding-left: var(--bs-gutter-x, .75rem);
        margin-right: auto;
        margin-left: auto;
    }
}
/*lesser than 1456px screens*/
@media only screen and (max-width: 1303px) {
    .scheduler-calender {
        width: 92% !important;
    }
}

/*lesser than 1220px screens*/
@media only screen and (max-width: 1220px) {
    .provider-area {
        display: none !important;
    }

    .provider-area-tab {
        display: block !important;
    }

    .compliant-list-div {
        width: 264px !important;
        min-width: 264px !important;
    }

    .quick-action-card {
        flex-wrap: wrap;
        gap: 10px;
    }

        .quick-action-card img {
            width: 2rem;
        }

    .case-overview-card {
        height: auto !important;
        min-height: 172px !important;
    }
}

/*lesser than 1024px screens*/
@media only screen and (max-width: 1024px) {
    .sidebar {
        width: 4.2rem !important
    }

        .sidebar .menu_list {
            opacity: 0;
            display: none;
        }

        .sidebar #btnCollapse {
            display: none;
        }

        .sidebar #btnShow {
            display: block;
        }

    #mainSection {
        padding-left: 5.4rem !important;
    }

    .breadcrumb-area {
        display: none;
    }

    .sidecard-width {
        width: 90% !important;
    }

    .custom-sidecard.static-width {
        width: 100% !important;
    }

    .custom-sidecard .card-footer {
        width: 90% !important;
    }

    .pat-info-card {
        height: fit-content !important;
    }

    .view-care-width {
        width: 100% !important;
    }

    .modal-xl {
        max-width: 1000px !important;
        margin: 1.725rem;
    }

    .cms-container {
        width: 1000px !important;
        max-width: 1000px !important;
    }

    .filter-accordion-btn {
        display: flex !important;
    }

    .grid-menu-default {
        display: none !important;
    }

    .grid-menu-tab {
        display: block !important;
    }
}

/*lesser than 900px screens*/
@media only screen and (max-width: 900px) {
    .create-care-grid {
        height: 410px !important;
    }

    .create-care-list {
        height: 360px !important;
        min-height: inherit !important;
    }

        .create-care-list .k-list-scroller .k-list-content {
            height: inherit !important;
        }

        .create-care-list .k-list-scroller {
            height: inherit !important;
        }

    .pat-info-card {
        height: auto !important;
    }

    .btn-all-narratives {
        display: none;
    }

    .scheduler-calender {
        width: 89% !important;
    }
}

/* ===== Mobile override ===== */
@media (max-width: 768px) {

    /* Disable splitter flex behavior */
    .e-splitter.e-control {
        flex-direction: column !important;
    }

    .e-splitter .e-pane {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    .chat-integration .e-split-bar.e-split-bar-horizontal.e-last-bar {
        display: none !important;
    }
    /* Show / Hide logic */
    .mobile-hide {
        display: none !important;
    }

    .chat-leftcontent {
        width: 94%;
        box-shadow: 0px 0px 6px 2px rgba(96, 97, 112, 0.16);
    }

    .mobile-show {
        display: block !important;
    }

    /* Back button visible only on mobile */
    .mobile-back-btn {
        display: block !important;
    }

    .e-chat-ui .e-chat-content {
        padding: 0 1rem 10px !important;
    }
}

@media only screen and (max-width: 648px) {
    .scheduler-calender {
        width: 87% !important;
    }
}

/*lesser than 540px screens*/
@media only screen and (max-width: 540px) {
    .mobile-toggle {
        display: block !important;
    }

    .sidebar {
        display: none !important;
    }

    #mainSection {
        padding-left: 1rem !important;
    }

    .toggle {
        display: none !important;
    }

    .user-detail {
        display: none;
    }

    .logo-light, .logo-white {
        width: 6rem;
    }

    .login-content-area {
        width: 90% !important;
    }

    .login-copy-rights {
        justify-content: center !important;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }

    .scheduler-calender {
        width: 86% !important;
    }
}
