﻿i#collapsemenuIcon.hidden {
    display: none;
}
/* ============================================================
   2. TABLET STYLES (Max-width: 1366px)
   Applies when screen is 1366px or SMALLER.
   ============================================================ */
@media screen and (max-width: 1366) {


    html, body {
        width: 0px !important;
    }
}





/* ============================================================
   2. TABLET STYLES (Max-width: 1280px)
   Applies when screen is 1280px or SMALLER.
   ============================================================ */
@media screen and (max-width: 1280px) {
    i#collapsemenuIcon.hidden {
        display: block;
        opacity: 1;
    }

    .screen-content {
        padding: 12px;
    }

    .main-screen-card .screen-title {
        font-size: 20px;
    }

    .dashboard-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .number-display {
        position: absolute;
        top: 0 !important;
        left: 14% !important;
        /* transform: translate(-50%, -50%);*/
        width: 400px !important;
        height: 230px !important;
    }

    .gcc-map-text {
        font-size: 1.8rem;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        line-height: 40px;
    }

    .map-container {
        height: 350px;
    }

    .info-box {
        padding: 12px;
    }

        .info-box:before {
            border-width: 1px;
        }

        .info-box p {
            font-size: 1.2rem;
        }

    .sidebar {
        position: fixed;
        right: -380px;
        width: 380px;
        transition: right 0.3s ease;
    }

    html[dir='ltr'] .sidebar {
        position: fixed;
        left: -380px;
        right: auto;
        width: 380px;
        transition: left 0.3s ease;
    }

    div#page-container {
        max-width: 100%;
    }

    span.screen-title-dashboard {
        font-size: 20px !important;
    }

    .screen-content-data {
        width: 100%;
    }

    .screen-content.collapsed-menu .sidebar {
        position: fixed !important;
        right: 0 !important;
        margin: 0 !important;
        z-index: 9999 !important;
        transition: right 0.3s ease;
    }

    .screen-content.collapsed-menu .page-top-bar {
        margin-right: 380px;
    }

    html[dir='ltr'] .screen-content.collapsed-menu .sidebar {
        left: 0 !important;
        right: auto !important;
        transition: left 0.3s ease;
    }

    html[dir='ltr'] .screen-content.collapsed-menu .page-top-bar {
        margin-left: 380px;
        margin-right: 0;
    }

    .page-title-component {
        max-height: 100px;
        min-height: 100px;
    }

    #layout-preview {
        min-height: calc((100vh / var(--zoom) - 285px));
        max-height: calc((100vh / var(--zoom) - 285px));
    }

    .text-box-container * {
        font-size: 14px !important;
        line-height: 15pt !important;
    }

    .kpi-header {
        font-size: 12pt !important;
    }

    .kpi-value {
        font-size: 28pt !important;
    }

    .screen-footer-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 15px;
    }

    .right-footer-part {
        min-width: 60px;
        width: auto;
        flex-shrink: 0;
        padding-top: 10px;
    }

    .left-footer-part {
        flex: 1;
        margin-left: 15px;
        overflow: hidden;
    }

    [dir='ltr'] .left-footer-part {
        margin-left: 0;
        margin-right: 15px;
    }

    .element-single-view.selected p {
        margin-top: 16px;
        margin-right: 16px;
    }

    [dir='ltr'] .element-single-view.selected p {
        margin-right: 0px !important;
        margin-left: 16px !important;
    }
}

/* ============================================================
   3. MOBILE STYLES (Max-width: 768px)
   Applies when screen is 768px or SMALLER.
   ============================================================ */
@media screen and (max-width: 768px) {

    .screen-content {
        padding: 12px;
        overflow-y: auto;
    }

    .screen-content-data {
        width: calc(100vw / var(--zoom) - 24px);
        height: auto;
    }
    .control-section.chart-element {
        min-height: 450px;
    }

    /*.screen-content.collapsed-menu .page-top-bar {
        margin-right: 380px;
    }*/

    .main-screen-card {
        height: auto;
        display: block;
        padding: 12px;
        font-family: var(--main-font), sans-serif;
    }

        .main-screen-card .screen-title {
            font-size: 20px;
            color: var(--primary-font-color);
        }

        .main-screen-card .top-part {
            flex: 1;
            direction: rtl;
            justify-content: center;
        }

        .main-screen-card .main-logo img {
            height: 80px;
            width: 100%;
            margin: 0 auto;
        }

    .menu-content {
        padding-top: 12px;
    }

    .menu-items-card {
        max-width: 100%;
        gap: 12px;
    }

    .menu-card {
        border-radius: 10px;
        padding: 12px;
        text-align: center;
        height: auto;
        cursor: pointer;
        min-width: 100%;
    }

    .screen-details-content {
        display: none;
    }

    .dashboard-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .number-display {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 200px;
    }

    .gcc-map-text {
        font-size: 1.5rem;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
    }

    .map-container {
        height: 300px;
    }

    .number {
        gap: 3px;
    }

    .info-box {
        padding: 15px;
    }

        .info-box p {
            font-size: 1rem;
        }

    .menu-item h2 {
        font-size: 18px;
    }

    .menu-items {
        max-width: 100%;
    }

    .screen-footer-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px;
    }

    .right-footer-part {
        min-width: 40px;
        width: auto;
        flex-shrink: 0;
        padding-top: 8px;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }

    .left-footer-part {
        flex: 1;
        margin-left: 10px;
        overflow: hidden;
        border-radius: 0;
    }

    [dir='ltr'] .left-footer-part {
        margin-left: 0;
        margin-right: 10px;
    }

    .marquee-track {
        gap: 15px;
    }

    .footer-text,
    .first-footer-value {
        font-size: 16px;
    }

    .page-top-bar {
        height: auto;
        position: relative;
        z-index: 10;
    }

    .dashboard-header {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        overflow: visible;
    }

    .dashboard-header-left {
        flex: 1;
        min-width: 0;
        width: auto !important;
    }

    /* ── Breadcrumb row: scroll horizontally, NEVER wrap ── */
    .dashboard-title-section {
        display: flex;
        flex-wrap: nowrap !important;
        flex: 1;
        width: auto !important;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
    }

        .dashboard-title-section::-webkit-scrollbar {
            display: none;
        }


    .lang-theme-controls.dashboard-controls {
        flex-shrink: 0;
        gap: 6px;
    }

        .lang-theme-controls.dashboard-controls span.theme-icon,
        .lang-theme-controls.dashboard-controls .lang-options span.selected {
            width: 24px;
            height: 24px;
            line-height: 24px;
            font-size: 12px;
        }

            .lang-theme-controls.dashboard-controls span.theme-icon i {
                font-size: 13px;
            }

    /*.right-footer-part {
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
    }

    .left-footer-part {
        border-radius: 20px 20px;
    }*/

    .sidebar {
        position: fixed;
        right: -90%;
        margin: 0;
        width: 90%;
        max-width: 100%;
        min-width: 250px;
        left: auto;
    }

    div#page-container {
        width: 100%;
        max-width: 100%;
    }

    span.screen-title-dashboard {
        font-size: 20px !important;
        text-align: center;
    }

    .page-title-component {
        gap: 20px !important;
        justify-content: normal !important;
        align-items: baseline !important;
        padding: 12px !important;
    }

    .text-box-container,
    .e-panel-content,
    .e-panel-container,
    .panel-element-container,
    #layout-preview .e-panel {
        height: auto !important;
    }

    #layout-preview .e-panel {
        position: relative !important;
        top: auto !important;
        display: block;
        margin-bottom: 24px;
    }

    #main-content-screen, .screen-content-pt-0, .screen-content-data {
        padding-bottom: 77px !important;
    }

    .screen-content-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000;
    }
    .screen-footer-content {
        height: 117px !important;
    }
}

/* ============================================================
   4. SMALL MOBILE STYLES (Max-width: 480px)
   Applies when screen is 480px or SMALLER.
   ============================================================ */
@media screen and (max-width: 480px) {
    .number-display {
        width: 250px;
        height: 150px;
    }

    .gcc-map-text {
        font-size: 1.2rem;
    }

    .info-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .screen-footer-content {
        padding: 6px 8px;
    }

    .right-footer-part {
        min-width: 40px;
        width: auto;
        padding-top: 6px;
    }

    .left-footer-part {
        margin-left: 8px;
    }

    [dir='ltr'] .left-footer-part {
        margin-left: 0;
        margin-right: 8px;
    }

    .footer-text,
    .first-footer-value {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .number-display {
        width: 250px;
        height: 150px;
    }

    .gcc-map-text {
        font-size: 1.2rem;
    }

    .info-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .screen-footer-content {
        padding: 6px 8px;
    }

    .right-footer-part {
        min-width: 40px;
        width: auto;
        padding-top: 6px;
    }

    .left-footer-part {
        margin-left: 8px;
    }

    [dir='ltr'] .left-footer-part {
        margin-left: 0;
        margin-right: 8px;
    }

    .footer-text,
    .first-footer-value {
        font-size: 14px;
    }
}
