

/* ===== ORIGINAL INLINE STYLE BLOCK 1 ===== */

#zonePage table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: auto;
}

#zonePage th,
#zonePage td {
    padding: 14px 12px;
    border: 1px solid #E0E1E2;
    text-align: center;
    font-size: 15px;
    white-space: nowrap;
}
#zonePage th {
    position: sticky;
    top: 0;
    z-index: 5;
}

#zonePage tbody tr:nth-child(even) {
    background: #EDEDED;
}

#zonePage th {
    background: #6FA8DC;
    color: white;
}
    body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #EDEDED;
}
.icon-tooltip {
    position: relative;
    overflow: visible;
}

.icon-tooltip::after {
    content: attr(data-tooltip);

    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);

    min-width: 140px;
    height: 38px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFFFFF;
    color: #000000;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;

    border-radius: 8px;

    box-shadow: 0 10px 24px rgba(31,31,31,0.35);

    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;

    z-index: 9999;
    pointer-events: none;

    white-space: nowrap;
}

.icon-tooltip::before {
    display: none;
}

.icon-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}
/* HEADER */
.header {
    width: 100%;
    height: 70px;
    background: #6FA8DC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.35);
    border-bottom: 1px solid white;
}


.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

    .hidden {
        display: none;
    }

#homePage {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 30px;
    align-items: center;
    background-color: #EDEDED;
}

    #homePage h1 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #000000;
}

    .home-btn {
    padding: 18px 40px;
    margin: 15px;
    font-size: 20px;
    min-width: 250px;
        border: none;
        background: #6FA8DC;
        color: white;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(31, 31, 31, 0.35);
    }

.home-btn:hover {
    background: #6FA8DC;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(31, 31, 31, 0.45);
}

    .back-btn {
        position: fixed;
    top: 14px;
    left: 30px;
        z-index: 3000;
        padding: 10px 15px;
        border: none;
        background: #000000;
        color: white;
        border-radius: 6px;
        cursor: pointer;
    }

    .viewer {
       position: fixed;
    top: 70px;
    left: 2.5vw;
    width: 95vw;
    height: calc(100vh - 80px);
    overflow: auto;
    border: 2px solid #6FA8DC;
    background: #FFFFFF;
}

    .map-container {
        position: relative;
        min-width: 1400px;
        display: inline-block;
    }

    .map-container img {
        width: 100%;
        display: block;
    }

    .asset {
        position: absolute;
        width: 8px;
        height: 8px;
        background: #000000;
        border: 1px solid white;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }

   

    .toolbar {
    position: fixed;
    top: 14px;
    right: 30px;
    z-index: 3000;
    display: flex;
    gap: 10px;
    align-items: center;
}
    .dashboard-topbar-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #6FA8DC;
    box-shadow: 0 10px 24px rgba(31,31,31,0.35);
    border-bottom: 1px solid white;
    z-index: 1500;
}

   button {
    padding: 10px 15px;
    margin-left: 10px;
    border: none;
    background: #FFFFFF;
    color: #000000;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.icon-btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: white !important;
    font-size: 26px;
    padding: 0 6px;
    margin: 0;
}

.icon-btn:hover {
    background: transparent !important;
    transform: scale(1.15);
}
    button:hover {
        background: #6FA8DC;
    }
    
.search-box {
    position: fixed;
    top: 14px;
    left: 140px;
    z-index: 3000;
    display: flex;
    gap: 10px;
}


.search-box input {
        width: 300px;
    padding: 10px 14px;
    border: 1px solid #6FA8DC;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: #000000;
background: #FFFFFF;
}

.search-box button {
    background: #6FA8DC;
    color: white;
}
.search-box input::placeholder {
    color: #000000;
    opacity: 0.65;
}
.search-box button:hover {
    background: #E0E1E2;
}

.highlight-marker {
    width: 14px !important;
    height: 14px !important;
    background: yellow !important;
    border: 2px solid red !important;
    box-shadow: 0 0 20px yellow;
}
.side-panel {
    position: fixed;
    top: 70px;
    width: 340px;
    height: calc(100vh - 70px);
    background: #FFFFFF;
    z-index: 5000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;

    left: -360px;   /* hidden by default */
    right: auto;
    box-shadow: 6px 0 20px rgba(0,0,0,0.18);
}

/* VIEWER MODE */
.side-panel.viewer-mode {
    left: -360px;
    right: auto;
    transition: left 0.35s ease;
}

.side-panel.viewer-mode.open {
    left: 0;
}

/* ADMIN MODE */
.side-panel.admin-mode {
    right: -360px;
    left: auto;
    box-shadow: -6px 0 20px rgba(0,0,0,0.18);
    transition: right 0.35s ease;
}

.side-panel.admin-mode.open {
    right: 0;
}

.side-panel h2 {
    margin-top: 0;
    color: #000000;
}

.detail-row {
    margin-bottom: 15px;
    font-size: 15px;
}

.detail-row span {
    font-weight: bold;
    color: #6FA8DC;
}
.detail-row div {
    color: #000000;
}

.close-panel {
    float: right;
    cursor: pointer;
    font-size: 24px;
    color: #EDEDED;
}

.list-panel {
    position: fixed;
    top: 70px;
    left: -320px;
    width: 300px;
    height: calc(100vh - 70px);

    background: #E0E1E2;
    color: #6FA8DC;

    box-shadow: 6px 0 20px rgba(0,0,0,0.25);
    z-index: 5000;
    transition: left 0.35s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.list-panel.open {
    left: 0;
}
#zonePanel {
    position: fixed;
    top: 70px;
    right: -320px;
    left: auto !important;
    width: 300px;
    height: calc(100vh - 70px);

    background: #E0E1E2;
    backdrop-filter: blur(10px);

    color: #6FA8DC;
    box-shadow: -6px 0 20px rgba(0,0,0,0.35);
    z-index: 5000;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#zonePanel.open {
    right: 0 !important;
}

.list-item {
    padding: 12px;
    border-bottom: 1px solid #6FA8DC;
    cursor: pointer;
}
.list-item small {
    color: #6FA8DC;
}
.list-item {
    color: #6FA8DC;
}

.list-item:hover {
   background: #E0E1E2;
}
.home-panel {
    padding: 20px;
    text-align: center;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

.subtitle {
    font-size: 18px;
    color: #000000;
    margin-bottom: 35px;
}

.feature-row {
    display: flex;
    gap: 28px;
    margin-top: 90px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1300px;
    text-align: center;
}

.feature-card {
    background: transparent;
    padding: 0;
    width: 190px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: none;
    cursor: default;
}

.feature-card:hover {
    transform: none;
    background: transparent;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    color: #6FA8DC;
    font-size: 18px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
    margin: 0;
}
#zoneSelector {
    padding: 18px 25px;
    margin: 15px;
    font-size: 20px;
    min-width: 250px;
    border: none;
    background: #6FA8DC;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31,31,31,0.35);
    appearance: none;
    transition: 0.3s;
}

#zoneSelector:hover {
    background: #6FA8DC;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(31,31,31,0.45);
}
.kpi-toggle-btn {
    position: fixed;
    top: 88px;
    left: 18px;
    z-index: 4000;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #6FA8DC;
    font-size: 34px;
    font-weight: bold;

    cursor: pointer;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}
.maintenance-toggle-btn {
    position: fixed;
    top: 140px;
    left: 18px;
    z-index: 4000;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #6FA8DC;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    margin: 0;

    transition: transform 0.2s ease;
}
.unit-toggle-btn {
    position: fixed;
    top: 192px;
    left: 18px;
    z-index: 4000;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #6FA8DC;
    font-size: 30px;
    cursor: pointer;

    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}

.unit-toggle-btn:hover {
    transform: scale(1.15);
    background: transparent !important;
}
.analysis-toggle-btn {
    position: fixed;
    top: 244px;
    left: 18px;
    z-index: 4000;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #6FA8DC;
    font-size: 28px;
    cursor: pointer;

    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}

.analysis-toggle-btn:hover {
    transform: scale(1.15);
    background: transparent !important;
}

.maintenance-toggle-btn:hover {
    transform: scale(1.15);
}

.maintenance-zone-btn {
    padding: 10px 14px;
    margin: 6px;
    background: #6FA8DC;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.kpi-toggle-btn:hover {
    transform: scale(1.15);
    background: transparent !important;
}

/* KPI PANEL */
#kpiPanel {
    position: fixed;
    top: 90px;
    left: -340px;
    width: 300px;
    height: calc(100vh - 110px);

    background: white;
    border-radius: 0 16px 16px 0;
    box-shadow: 8px 0 24px rgba(0,0,0,0.25);

    z-index: 4500;
    padding: 20px;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    transition: left 0.35s ease;
}

#kpiPanel.open {
    left: 0;
}

.kpi-card {
    background: #EDEDED;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 5px solid #6FA8DC;
}

.kpi-card h4 {
    margin: 0;
    color: #6FA8DC;
    font-size: 14px;
}

.kpi-card p {
    margin: 8px 0 0 0;
    font-size: 22px;
    font-weight: bold;
    color: #000000;
}

/* =========================================================
   HOME — FACILITY INTELLIGENCE DASHBOARD
   Visual redesign only. Existing functional pages are untouched.
   ========================================================= */
body.home-active {
    background:#EDEDED;
}
body.home-active > .header { display:none; }
body.home-active #settingsMenu { top:76px; right:22px; }

#homePage.home-dashboard {
    min-height:100vh;
    height:100vh;
    box-sizing:border-box;
    display:flex;
    flex-direction:row;
    align-items:stretch;
    padding:0;
    margin:0;
    background:#EDEDED;
    color:#111;
    overflow:hidden;
}

.home-sidebar {
    width:235px;
    min-width:235px;
    height:100vh;
    background:#000;
    color:#fff;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    padding:28px 18px 20px;
    position:relative;
    z-index:20;
}
.home-brand {
    display:flex;
    align-items:center;
    gap:14px;
    padding:4px 10px 26px;
    border-bottom:1px solid #000000;
}
.home-brand-mark {
    width:40px;
    height:40px;
    border-radius:6px;
    background:#fff;
    color:#6FA8DC;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:800;
    flex:none;
}
.home-brand-name { font-size:18px; font-weight:800; letter-spacing:.2px; }
.home-brand-sub { font-size:8px; color:#E0E1E2; margin-top:3px; }
.home-nav { margin-top:26px; display:flex; flex-direction:column; gap:8px; }
.home-nav-title {
    color:#777;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
    padding:0 12px 8px;
}
.home-nav button,
.home-nav select {
    width:100%;
    min-height:52px;
    margin:0;
    padding:0 15px;
    border:0;
    border-radius:13px;
    background:transparent;
    color:#FFFFFF;
    box-shadow:none;
    font-size:14px;
    font-weight:700;
    text-align:left;
    cursor:pointer;
}
.home-nav button:hover { background:#000000; transform:none; }
.home-nav button.active {
    background:#6FA8DC;
    color:#fff;
    box-shadow:0 8px 20px rgba(111,168,220,.25);
}
.home-nav .nav-icon { width:26px; display:inline-block; text-align:center; margin-right:9px; font-size:12px; }
.home-nav select {
    appearance:auto;
    background:#000000;
    border:1px solid #000000;
}
#homePage .about-toggle-btn { position:relative; }
#homePage .about-toggle-btn.active { background:#6FA8DC; color:#fff; }

.home-sidebar-footer {
    margin-top:auto;
    padding:18px 10px 2px;
    color:#777;
    font-size:8px;
    line-height:1.6;
}

.home-main {
    min-width:0;
    flex:1;
    height:100vh;
    overflow:auto;
    box-sizing:border-box;
}
.home-topbar {
    height:80px;
    background:#fff;
    border-bottom:1px solid #E0E1E2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px 0 34px;
    box-sizing:border-box;
    position:sticky;
    top:0;
    z-index:15;
}
.home-topbar-left { display:flex; align-items:center; gap:16px; min-width:0; }
.home-eyebrow { display:none !important; }
.home-title { font-size:15px; font-weight:800; margin:2px 0 0; color:#111; }
.home-topbar-actions { display:flex; align-items:center; gap:10px; }
.home-top-btn {
    height:42px !important;
    min-width:0 !important;
    padding:0 16px !important;
    margin:0 !important;
    background:#fff !important;
    color:#222 !important;
    border:1px solid #E0E1E2 !important;
    border-radius:11px !important;
    box-shadow:0 4px 12px rgba(0,0,0,.06) !important;
}
.home-top-btn.primary { background:#6FA8DC !important; color:#fff !important; border-color:#6FA8DC !important; }
.home-top-btn:hover { background:#EDEDED !important; transform:none !important; }
.home-top-btn.primary:hover { background:#6FA8DC !important; }

/* Compact appearance toggle beside Settings. */
#homePage .aj-theme-switch-top {
    height:42px !important;
    min-width:82px !important;
    padding:0 10px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    background:#fff !important;
    color:#222 !important;
    border:1px solid #E0E1E2 !important;
    border-radius:999px !important;
    box-shadow:0 4px 12px rgba(0,0,0,.06) !important;
    cursor:pointer !important;
    transition:background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.aj-theme-switch-top:hover {
    background:#F5F6F7 !important;
    transform:none !important;
}
.aj-theme-symbol {
    font-size:13px;
    line-height:1;
    opacity:.62;
}
.aj-theme-symbol.aj-sun { opacity:.45; }
.aj-theme-track {
    position:relative;
    width:34px;
    height:18px;
    border-radius:999px;
    background:#D7DCE0;
    border:1px solid #C8CED3;
    box-sizing:border-box;
    transition:background-color .18s ease, border-color .18s ease;
}
.aj-theme-knob {
    position:absolute;
    top:2px;
    left:2px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.28);
    transition:transform .18s ease;
}
#homePage .aj-theme-switch-top.is-dark {
    background:#181B1E !important;
    color:#F5F7F8 !important;
    border-color:#343A3F !important;
}
#homePage .aj-theme-switch-top.is-dark .aj-theme-track {
    background:#6FA8DC;
    border-color:#6FA8DC;
}
#homePage .aj-theme-switch-top.is-dark .aj-theme-knob {
    transform:translateX(16px);
}
#homePage .aj-theme-switch-top.is-dark .aj-theme-symbol { opacity:.9; }
.aj-settings-icon-btn {
    width:42px !important;
    min-width:42px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:18px !important;
}


.home-content { padding:28px 30px 34px; box-sizing:border-box; max-width:1700px; margin:0 auto; }
.home-hero {
    background:#fff;
    border-radius:22px;
    padding:24px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    border:1px solid #E0E1E2;
    box-shadow:0 10px 28px rgba(0,0,0,.05);
    margin-bottom:20px;
}
.home-hero h1 { margin:0; font-size:16px; line-height:1.05; }
.home-hero p { margin:9px 0 0; color:#666; font-size:10px; }
.home-status-pill {
    display:flex;
    align-items:center;
    gap:9px;
    background:#6FA8DC;
    color:#fff;
    padding:12px 17px;
    border-radius:12px;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
}
.home-status-dot { width:9px; height:9px; background:#fff; border-radius:50%; box-shadow:0 0 0 4px rgba(255,255,255,.2); }

.home-filterbar {
    background:#fff;
    border:1px solid #E0E1E2;
    border-radius:16px;
    padding:13px;
    display:grid;
    grid-template-columns:repeat(4,minmax(150px,1fr)) auto;
    gap:10px;
    margin-bottom:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.home-filterbar select,
.home-filterbar button {
    height:42px;
    width:100%;
    margin:0;
    padding:0 12px;
    border-radius:10px;
    border:1px solid #E0E1E2;
    background:#fff;
    color:#222;
    font-size:12px;
    box-shadow:none;
}
.home-filterbar button { background:#111; color:#fff; font-weight:700; }
.home-filterbar button:hover { background:#333; }

.home-kpi-grid {
    display:grid;
    grid-template-columns:repeat(7,minmax(130px,1fr));
    gap:12px;
    margin-bottom:18px;
}
.home-kpi-card {
    background:#fff;
    border:1px solid #E0E1E2;
    border-radius:15px;
    padding:15px 16px;
    min-height:92px;
    box-sizing:border-box;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
    position:relative;
    overflow:hidden;
}
.home-kpi-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:#6FA8DC; }
.home-kpi-label { font-size:8px; color:#777; font-weight:700; text-transform:uppercase; letter-spacing:.6px; }
.home-kpi-value { font-size:20px; font-weight:800; margin-top:7px; color:#111; }
.home-kpi-meta { font-size:5px; color:#999; margin-top:3px; }

.home-grid-top {
    display:grid;
    grid-template-columns:1.25fr 1fr 1.25fr;
    gap:16px;
    margin-bottom:16px;
}
.home-grid-bottom {
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:16px;
    margin-bottom:16px;
}
.home-panel-card {
    background:#fff;
    border:1px solid #E0E1E2;
    border-radius:17px;
    padding:18px;
    box-sizing:border-box;
    min-width:0;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.home-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.home-panel-head h3 { margin:0; font-size:15px; color:#111; }
.home-panel-head span { font-size:10px; color:#999; }
.home-chart-area { min-height:210px; display:flex; align-items:center; justify-content:center; position:relative; }
.home-chart-tooltip {
    position:fixed; z-index:99999; pointer-events:none; display:none;
    min-width:150px; max-width:260px; padding:9px 11px;
    background:#000000; color:#FFFFFF; border:1px solid rgba(255,255,255,.16);
    border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.22);
    font-size:11px; line-height:1.35;
}
.home-chart-tooltip.open { display:block; }
.home-chart-tooltip .tip-title { font-weight:800; margin-bottom:3px; }
.home-chart-tooltip .tip-value { color:#6FA8DC; font-weight:800; }
.home-donut-svg { width:158px; height:158px; flex:none; overflow:visible; }
.home-donut-segment { cursor:pointer; transition:opacity .15s ease, transform .15s ease; transform-origin:79px 79px; }
.home-donut-segment:hover { opacity:.78; transform:scale(1.025); }
.home-bar-fill { cursor:pointer; }
.home-bar-row { cursor:default; }
.home-bar-row:hover .home-bar-fill { filter:brightness(.92); }
.home-donut-wrap { display:flex; align-items:center; justify-content:center; gap:20px; width:100%; }
.home-donut {
    width:158px;
    height:158px;
    border-radius:50%;
    position:relative;
    flex:none;
    background:#E0E1E2;
}
.home-donut::after {
    content:"";
    position:absolute;
    width:88px;
    height:88px;
    border-radius:50%;
    background:#fff;
    left:35px;
    top:35px;
}
.home-donut-center {
    position:absolute;
    inset:0;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    pointer-events:none;
}
.home-donut-center b { font-size:22px; }
.home-donut-center span { font-size:10px; color:#888; margin-top:2px; }
.home-legend { display:flex; flex-direction:column; gap:8px; min-width:120px; max-width:180px; }
.home-legend-row { display:flex; align-items:center; gap:7px; font-size:11px; color:#444; }
.home-legend-dot { width:9px; height:9px; border-radius:3px; flex:none; }
.home-legend-row strong { margin-left:auto; color:#111; }

.home-bars { width:100%; display:flex; flex-direction:column; gap:9px; }
.home-bar-row { display:grid; grid-template-columns:82px 1fr 52px; gap:8px; align-items:center; font-size:10px; }
.home-bar-label { color:#555; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-bar-track { height:13px; background:#EDEDED; border-radius:7px; overflow:hidden; }
.home-bar-fill { height:100%; background:#6FA8DC; border-radius:7px; min-width:2px; transition:width .25s ease; }
.home-bar-value { text-align:right; font-weight:700; color:#222; }
.home-empty { color:#999; font-size:12px; padding:50px 0; text-align:center; }

.home-attention {
    display:grid;
    grid-template-columns:1.35fr .65fr;
    gap:16px;
    margin-bottom:16px;
}
.home-table-wrap { overflow:auto; }
.home-table { width:100%; border-collapse:collapse; min-width:650px; }
.home-table th { background:#111; color:#fff; font-size:10px; text-transform:uppercase; letter-spacing:.5px; padding:10px 9px; text-align:left; }
.home-table td { padding:10px 9px; border-bottom:1px solid #E0E1E2; font-size:11px; color:#333; }
.home-table tr:nth-child(even) td { background:#FFFFFF; }
.home-badge { display:inline-flex; align-items:center; padding:4px 7px; border-radius:999px; font-size:9px; font-weight:800; }
.home-badge.ok { background:#E9F6EC; color:#25733A; }
.home-badge.warn { background:#FFF1DE; color:#9A5C00; }
.home-badge.bad { background:#FCE8E8; color:#B3261E; }
.home-badge.neutral { background:#E0E1E2; color:#000000; }
.home-insight-list { display:flex; flex-direction:column; gap:10px; }
.home-insight { padding:12px; border:1px solid #E0E1E2; border-radius:11px; background:#FFFFFF; }
.home-insight b { display:block; font-size:11px; margin-bottom:4px; }
.home-insight span { color:#777; font-size:10px; line-height:1.45; }

.home-quick-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.home-quick-actions button { margin:0; min-height:54px; border:1px solid #E0E1E2; border-radius:12px; background:#fff; color:#222; box-shadow:0 5px 14px rgba(0,0,0,.04); font-size:12px; font-weight:700; }
.home-quick-actions button:hover { background:#EDEDED; transform:none; }

@media (max-width:1200px) {
    .home-sidebar { width:235px; min-width:235px; }
    .home-kpi-grid { grid-template-columns:repeat(4,1fr); }
    .home-grid-top, .home-grid-bottom { grid-template-columns:1fr 1fr; }
    .home-grid-top .home-panel-card:last-child { grid-column:1 / -1; }
    .home-attention { grid-template-columns:1fr; }
}
@media (max-width:800px) {
    #homePage.home-dashboard { overflow:auto; }
    .home-sidebar { width:76px; min-width:76px; padding:18px 10px; }
    .home-brand { justify-content:center; padding:0 0 18px; }
    .home-brand > div:last-child, .home-nav-title, .home-nav button span:not(.nav-icon), .home-sidebar-footer { display:none; }
    .home-brand-mark { width:48px; height:48px; }
    .home-nav button { padding:0; text-align:center; }
    .home-nav .nav-icon { margin:0; }
    .home-main { min-width:calc(100vw - 76px); }
    .home-topbar { padding:0 16px; }
    .home-topbar-actions .home-top-btn:not(.primary) { display:none; }
    .home-content { padding:18px 14px 28px; }
    .home-hero { align-items:flex-start; flex-direction:column; }
    .home-filterbar { grid-template-columns:1fr 1fr; }
    .home-kpi-grid { grid-template-columns:1fr 1fr; }
    .home-grid-top, .home-grid-bottom { grid-template-columns:1fr; }
    .home-grid-top .home-panel-card:last-child { grid-column:auto; }
    .home-quick-actions { grid-template-columns:1fr 1fr; }
}


/* Home navigation overrides for legacy icon-button positioning */
#homePage .home-nav .kpi-toggle-btn,
#homePage .home-nav .maintenance-toggle-btn,
#homePage .home-nav .unit-toggle-btn,
#homePage .home-nav .analysis-toggle-btn {
    position:static !important; left:auto !important; top:auto !important; right:auto !important;
    display:block; width:100%; height:auto; font-size:14px; color:#FFFFFF;
    background:transparent !important; border:0 !important; box-shadow:none !important;
    padding:0 15px; margin:0; transform:none; justify-content:flex-start;
}
#homePage .home-nav .kpi-toggle-btn:hover,
#homePage .home-nav .maintenance-toggle-btn:hover,
#homePage .home-nav .unit-toggle-btn:hover,
#homePage .home-nav .analysis-toggle-btn:hover { background:#000000 !important; transform:none; }
#homePage .icon-tooltip::after { display:none; }

/* ===== ORIGINAL INLINE STYLE BLOCK 2 ===== */

#ajSaveChangesBtn.aj-save-changes-btn{
    min-width:126px; height:38px; padding:0 14px; border:0; border-radius:8px;
    background:#6FA8DC; color:#fff; font-size:13px; font-weight:700; cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.14);
}
#ajSaveChangesBtn.aj-save-changes-btn:hover{filter:brightness(.96);}
#ajSaveChangesBtn.aj-save-changes-btn:disabled{opacity:.55; cursor:default; filter:none;}
#ajSaveStatus.aj-save-status{font-size:11px; font-weight:600; color:#777; white-space:nowrap; margin:0 4px;}
#ajSaveStatus.aj-save-status.dirty{color:#b06b00;}
#ajSaveStatus.aj-save-status.saved{color:#3b7a45;}


/* ===== ORIGINAL INLINE STYLE BLOCK 3 ===== */

/* Keep long Admin asset-edit forms inside the modal with a dedicated vertical scrollbar.
   The action buttons remain visible while the form content scrolls. */
#customModal > div {
    max-height: 92vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#customModal #modalBody {
    max-height: calc(92vh - 150px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px !important;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

#customModal #modalBody::-webkit-scrollbar {
    width: 9px;
}

#customModal #modalBody::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 10px;
}

#customModal #modalBody::-webkit-scrollbar-thumb {
    background: #aaaaaa;
    border-radius: 10px;
    border: 2px solid #eeeeee;
}

#customModal #modalBody::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

#customModal > div > div:last-child {
    flex-shrink: 0 !important;
}

@media (max-width: 700px) {
    #customModal {
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    #customModal > div {
        width: min(620px, 100%) !important;
        max-height: 94vh !important;
        padding: 24px !important;
    }
    #customModal #modalBody {
        max-height: calc(94vh - 135px) !important;
    }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 4 ===== */

/* Narrower navigation so the working area gets more space. */
#homePage.home-dashboard .home-sidebar{
  width:245px !important;
  min-width:245px !important;
  padding-left:14px !important;
  padding-right:14px !important;
}
#homePage.home-dashboard .home-brand{padding-left:8px !important;padding-right:8px !important;gap:11px !important;}
#homePage.home-dashboard .home-nav button{padding-left:11px !important;padding-right:11px !important;}

/* Overview maintenance status line. */
.aj-maintenance-countdown{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 12px;padding:10px 12px;border:1px solid #E4E6E8;border-radius:10px;
  background:#F7F8F9;color:#4B535A;font-size:12px;font-weight:700;
}
.aj-maintenance-countdown strong{color:#111;font-weight:900;}
.aj-maintenance-countdown .countdown-days{font-variant-numeric:tabular-nums;white-space:nowrap;}
.aj-mini-cal-head{justify-content:space-between !important;gap:10px;}
.aj-mini-cal-head .aj-mini-cal-head-title{min-width:0;}
.aj-mini-cal-nav{display:flex;align-items:center;gap:6px;flex:none;}
.aj-mini-cal-nav button{
  width:34px !important;height:32px !important;min-width:34px !important;padding:0 !important;
  margin:0 !important;border:1px solid #DADDE1 !important;border-radius:8px !important;
  background:#fff !important;color:#111 !important;font-weight:900 !important;cursor:pointer !important;
}
.aj-mini-cal-nav button:hover{background:#6FA8DC !important;color:#fff !important;border-color:#6FA8DC !important;}

/* Show every zone label in a scrollable day cell instead of '+N more'. */
.aj-mini-cal-day .event-count{
  max-height:34px !important;overflow-y:auto !important;white-space:normal !important;
  scrollbar-width:thin;padding-right:2px;
}
.aj-mini-cal-day .event-count::-webkit-scrollbar{width:4px;}
.aj-mini-cal-day .event-count::-webkit-scrollbar-thumb{background:rgba(80,80,80,.35);border-radius:5px;}
.aj-mini-cal-day.last .event-count::-webkit-scrollbar-thumb{background:rgba(255,255,255,.55);}

/* Requested maintenance palette: light maroon period + maroon deadline. */
.aj-cal-key.period{background:#F3D6D9 !important;}
.aj-cal-key.last{background:#7B1E2B !important;}
.aj-mini-cal-day.period{background:#F3D6D9 !important;}
.aj-mini-cal-day.last{background:#7B1E2B !important;color:#fff !important;}
.aj-mini-cal-day.last .num{color:#7B1E2B !important;}
.aj-mini-cal-day.complete-period{background:#DDEFE2 !important;color:#285B39 !important;}
.aj-mini-cal-day.complete-last{background:#2E7D4F !important;color:#fff !important;}
.aj-mini-cal-day.complete-last .num{background:#fff !important;color:#2E7D4F !important;}
.aj-mini-cal-day.completion-early{background:#DCEBFA !important;color:#245B8A !important;box-shadow:inset 0 0 0 3px #6FA8DC;}
.aj-mini-cal-day.completion-late{background:#F6D6DA !important;color:#8E2432 !important;box-shadow:inset 0 0 0 3px #B52B3A;}
.aj-mini-cal-day.completion-ontime{box-shadow:inset 0 0 0 2px #4F9A67;}
.aj-mini-cal-day.complete-period .event-count{color:#285B39 !important;}
.aj-mini-cal-day.complete-last .event-count{color:#fff !important;}

/* Dark-mode equivalents for the new calendar elements. */
body.aj-dark-mode .aj-maintenance-countdown{background:#22272B;border-color:#343A3F;color:#BFC6CB;}
body.aj-dark-mode .aj-maintenance-countdown strong{color:#F2F4F5;}
body.aj-dark-mode .aj-mini-cal-nav button{background:#1A1D20 !important;color:#F2F4F5 !important;border-color:#3A4147 !important;}
body.aj-dark-mode .aj-mini-cal-nav button:hover{background:#6FA8DC !important;color:#fff !important;border-color:#6FA8DC !important;}
body.aj-dark-mode .aj-mini-cal{background:#1A1D20;border-color:#343A3F;}
body.aj-dark-mode .aj-mini-cal-head{background:#202428;border-color:#343A3F;}
body.aj-dark-mode .aj-mini-cal-title{color:#F2F4F5;}
body.aj-dark-mode .aj-mini-cal-dow{background:#171A1D;color:#AEB5BA;border-color:#2C3135;}
body.aj-dark-mode .aj-mini-cal-day{background:#1A1D20;border-color:#2C3135;color:#F2F4F5;}
body.aj-dark-mode .aj-mini-cal-day.muted{background:#15181A;color:#656D73;}
body.aj-dark-mode .aj-mini-cal-day.period{background:#4A2A30 !important;color:#F4DDE0 !important;}
body.aj-dark-mode .aj-mini-cal-day.last{background:#7B1E2B !important;color:#fff !important;}
body.aj-dark-mode .aj-mini-cal-day.complete-period{background:#254533 !important;color:#CDE7D5 !important;}
body.aj-dark-mode .aj-mini-cal-day.complete-last{background:#2E7D4F !important;color:#fff !important;}
body.aj-dark-mode .aj-mini-cal-day.completion-early{background:#20384D !important;color:#CFE5FA !important;}
body.aj-dark-mode .aj-mini-cal-day.completion-late{background:#4A2A30 !important;color:#F4DDE0 !important;}

/* Native/app confirmation dialog stays inside the application surface. */
#customModal.aj-app-modal-layer{z-index:20000 !important;}


/* ===== ORIGINAL INLINE STYLE BLOCK 5 ===== */

/* Sidebar scrolling fix: the complete left navigation can scroll independently. */
.home-sidebar {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 0 0 235px;
    scrollbar-width: thin;
    scrollbar-color: #555 #000;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.home-sidebar::-webkit-scrollbar { width: 7px; }
.home-sidebar::-webkit-scrollbar-track { background: #000; }
.home-sidebar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 1px solid #000;
}
.home-sidebar::-webkit-scrollbar-thumb:hover { background: #777; }

/* Prevent long navigation labels from forcing horizontal overflow. */
.home-nav,
.home-sidebar-footer,
.home-brand {
    min-width: 0;
}
.home-nav button,
.home-nav select {
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .home-sidebar { flex-basis: 210px; }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 6 ===== */

.aj-maint-completion-tooltip{position:fixed;z-index:100000;display:block;width:min(390px,calc(100vw - 24px));max-height:min(70vh,620px);overflow:auto;box-sizing:border-box;padding:14px 15px;background:#fff;color:#222;border:1px solid #D9DEE3;border-radius:12px;box-shadow:0 16px 42px rgba(0,0,0,.24);font-size:11px;line-height:1.4;pointer-events:none;}
.aj-maint-completion-tooltip .tooltip-title{font-size:14px;font-weight:900;color:#111;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #E5E8EA;}
.aj-maint-completion-tooltip .tooltip-subtitle{color:#777;margin-bottom:8px;}
.aj-maint-completion-tooltip .tooltip-item{padding:9px 0;border-bottom:1px solid #ECEEEF;}
.aj-maint-completion-tooltip .tooltip-item:last-child{border-bottom:0;padding-bottom:0;}
.aj-maint-completion-tooltip .tooltip-unit{font-size:12px;font-weight:900;color:#8A3030;margin-bottom:5px;}
.aj-maint-completion-tooltip .tooltip-meta{color:#666;margin-top:2px;}
.aj-maint-completion-tooltip .tooltip-gap{font-weight:800;margin-top:5px;}
.aj-maint-completion-tooltip .tooltip-timing-early{color:#245B8A;}
.aj-maint-completion-tooltip .tooltip-timing-late{color:#8E2432;}
.aj-maint-completion-tooltip .tooltip-timing-ontime{color:#2E7D4F;}
body.aj-dark-mode .aj-maint-completion-tooltip{background:#1A1D20;color:#E8EAED;border-color:#343A3F;box-shadow:0 18px 48px rgba(0,0,0,.5);}
body.aj-dark-mode .aj-maint-completion-tooltip .tooltip-title{color:#F2F4F5;border-color:#343A3F;}
body.aj-dark-mode .aj-maint-completion-tooltip .tooltip-subtitle,body.aj-dark-mode .aj-maint-completion-tooltip .tooltip-meta{color:#AEB5BA;}
body.aj-dark-mode .aj-maint-completion-tooltip .tooltip-item{border-color:#30353A;}
body.aj-dark-mode .aj-maint-completion-tooltip .tooltip-unit{color:#E69A9A;}


/* ===== ORIGINAL INLINE STYLE BLOCK 7 ===== */

.aj-demo-plan-notice{
    position:absolute; top:12px; left:50%; transform:translateX(-50%);
    z-index:1200; padding:8px 14px; border-radius:8px;
    background:#111; color:#fff; font:700 12px Arial,sans-serif;
    letter-spacing:.2px; box-shadow:0 4px 14px rgba(0,0,0,.22);
    pointer-events:none; white-space:nowrap;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 8 ===== */

/* New equipment markers */
.asset.outdoor-asset,
.asset.indoor-asset { box-sizing:border-box; }
.asset.outdoor-asset { width:11px; height:11px; border:2px solid #FFFFFF; z-index:1100; }
.asset.indoor-asset { width:9px; height:9px; border:2px solid #FFFFFF; z-index:1050; }
.asset.avoided-asset { opacity:.45; border-style:dashed; }

/* Placement queue */
#unplacedPanel .placement-summary{background:#EDEDED;border:1px solid #E0E1E2;border-radius:10px;padding:10px;margin:0 0 12px;font-size:11px;line-height:1.45;color:#333}
#unplacedPanel .placement-group{background:#fff;border:1px solid #E0E1E2;border-radius:10px;margin:8px 0;overflow:hidden}
#unplacedPanel .placement-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;background:#F7F8F9}
#unplacedPanel .placement-group-title{font-weight:800;color:#000;font-size:12px}
#unplacedPanel .placement-group-meta{font-size:10px;color:#777;margin-top:2px}
#unplacedPanel .placement-start{margin:0!important;padding:7px 10px!important;background:#6FA8DC!important;color:#fff!important;border:0!important;border-radius:7px!important;font-size:10px!important;box-shadow:none!important}
#unplacedPanel .placement-start:hover{background:#6FA8DC!important}
#unplacedPanel .placement-items{padding:5px 10px 8px}
#unplacedPanel .placement-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 4px;border-top:1px solid #EDEDED;font-size:10px}
#unplacedPanel .placement-item b{color:#000}
#unplacedPanel .placement-item small{color:#777}
.aj-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 10px}
.aj-field{display:flex;flex-direction:column;gap:4px}
.aj-field.full{grid-column:1/-1}
.aj-field label{font-size:10px;font-weight:800;color:#555}
.aj-field input{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #E0E1E2;border-radius:8px;font-size:12px;outline:none}
.aj-field input:focus{border-color:#6FA8DC;box-shadow:0 0 0 2px rgba(111,168,220,.15)}
.aj-missing{color:#B3261E;font-size:10px;font-weight:700;margin:0 0 10px}
.aj-note{background:#EDEDED;border-left:3px solid #6FA8DC;padding:9px 10px;border-radius:7px;font-size:10px;line-height:1.45;color:#444;margin-bottom:10px}
.aj-avoid-btn{background:#000!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:9px 12px!important;font-size:11px!important;margin:0!important;box-shadow:none!important}
.aj-avoid-btn:hover{background:#000!important}
.aj-required{color:#B3261E}
@media(max-width:700px){.aj-form-grid{grid-template-columns:1fr}.aj-field.full{grid-column:auto}}

/* =========================================================
   AjOptiX VNext dashboard layout
   - KPI strip is the only horizontal-scrolling region.
   - Charts are strictly outdoor/indoor separated.
   - No dashboard-wide horizontal overflow.
   ========================================================= */
#homePage.home-dashboard { overflow-x:hidden !important; }
.home-main { overflow-x:hidden !important; }
.home-content { width:100%; max-width:1700px; overflow-x:hidden; }
.home-kpi-strip-wrap { width:100%; overflow:hidden; margin-bottom:18px; }
.home-kpi-grid {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:12px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 10px 2px;
    box-sizing:border-box;
    scrollbar-width:thin;
    scrollbar-color:#6FA8DC #EDEDED;
    scroll-behavior:smooth;
}
.home-kpi-grid::-webkit-scrollbar { height:8px; }
.home-kpi-grid::-webkit-scrollbar-track { background:#EDEDED; border-radius:8px; }
.home-kpi-grid::-webkit-scrollbar-thumb { background:#6FA8DC; border-radius:8px; }
.home-kpi-card {
    flex:0 0 166px !important;
    width:166px !important;
    min-width:166px !important;
    height:104px !important;
    min-height:104px !important;
    padding:14px 14px 12px 16px !important;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.home-kpi-label { font-size:10px !important; letter-spacing:.55px; line-height:1.15; }
.home-kpi-value { font-size:23px !important; line-height:1.05; margin-top:6px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-kpi-meta { font-size:9.5px !important; line-height:1.2; margin-top:5px !important; }
.home-chart-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin-bottom:16px;
    width:100%;
    min-width:0;
}
.home-chart-grid .home-panel-card { min-width:0; min-height:276px; }
.home-chart-grid .home-panel-wide { grid-column:1 / -1; min-height:250px; }
.home-chart-grid .home-chart-area { min-width:0; min-height:214px; width:100%; overflow:hidden; }
.home-panel-head h3 { font-size:16px !important; line-height:1.2; }
.home-panel-head span { font-size:10px !important; white-space:nowrap; }
.home-donut-svg { width:150px; height:150px; }
.home-donut-wrap { gap:16px; min-width:0; }
.home-legend { min-width:105px; max-width:175px; gap:7px; }
.home-legend-row { font-size:10.5px; min-width:0; }
.home-legend-row span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-bar-row { grid-template-columns:82px minmax(0,1fr) 58px; gap:7px; }
.home-bars { max-width:100%; }
.home-chart-area .home-empty { padding:30px 0; }
.home-chart-note { font-size:10px; color:#888; margin-top:7px; text-align:center; }
.home-zone-share { width:100%; display:flex; align-items:center; justify-content:center; gap:24px; }
.home-zone-share .home-donut-svg { width:180px; height:180px; }
.home-zone-share .home-legend { max-width:420px; width:100%; }

@media (max-width:1250px) {
    .home-chart-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-chart-grid .home-panel-wide { grid-column:1 / -1; }
}
@media (max-width:820px) {
    .home-dashboard, #homePage.home-dashboard { overflow-x:hidden !important; }
    .home-main { overflow-x:hidden !important; }
    .home-content { padding:18px 14px 28px; overflow-x:hidden; }
    .home-chart-grid { grid-template-columns:1fr; }
    .home-chart-grid .home-panel-wide { grid-column:auto; }
    .home-chart-grid .home-panel-card { min-height:270px; }
    .home-kpi-card { flex-basis:154px !important; width:154px !important; min-width:154px !important; }
}

.legacy-kpi-anchor { display:none !important; position:absolute !important; width:0 !important; height:0 !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }

/* =========================================================
   AJOPTIX FINAL DASHBOARD POLISH
   Prevent dashboard-wide overflow; only KPI strip may scroll.
   Keep every chart card on a predictable grid with fixed chart space.
   ========================================================= */
#homePage.home-dashboard, #homePage.home-dashboard * { box-sizing:border-box; }
#homePage.home-dashboard { overflow-x:hidden !important; }
#homePage.home-dashboard .home-main,
#homePage.home-dashboard .home-content { min-width:0 !important; max-width:none !important; overflow-x:hidden !important; }
#homePage.home-dashboard .home-content { width:100%; padding-bottom:30px; }

#homePage.home-dashboard .home-kpi-strip-wrap { width:100%; min-width:0; overflow:hidden; margin:0 0 18px; }
#homePage.home-dashboard .home-kpi-grid {
  width:100%; min-width:0; display:flex !important; flex-wrap:nowrap !important;
  gap:12px; overflow-x:auto !important; overflow-y:hidden !important;
  padding:2px 2px 9px; margin:0; scrollbar-width:thin;
  scrollbar-color:#6FA8DC #EDEDED;
}
#homePage.home-dashboard .home-kpi-grid::-webkit-scrollbar{height:7px}
#homePage.home-dashboard .home-kpi-grid::-webkit-scrollbar-track{background:#EDEDED;border-radius:10px}
#homePage.home-dashboard .home-kpi-grid::-webkit-scrollbar-thumb{background:#6FA8DC;border-radius:10px}
#homePage.home-dashboard .home-kpi-card {
  flex:0 0 170px !important; width:170px !important; min-width:170px !important;
  height:108px !important; min-height:108px !important;
  padding:13px 14px 11px 16px !important; overflow:hidden;
}
#homePage.home-dashboard .home-kpi-label { font-size:9.5px !important; line-height:1.15 !important; }
#homePage.home-dashboard .home-kpi-value { font-size:22px !important; line-height:1.05 !important; margin-top:6px !important; white-space:nowrap !important; }
#homePage.home-dashboard .home-kpi-meta { font-size:9px !important; line-height:1.18 !important; margin-top:5px !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

#homePage.home-dashboard .home-chart-grid {
  width:100%; min-width:0; display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-auto-rows:minmax(285px,auto); gap:16px; margin:0 0 16px;
  align-items:stretch;
}
#homePage.home-dashboard .home-chart-grid > .home-panel-card {
  min-width:0 !important; width:100% !important; min-height:285px !important;
  height:285px !important; padding:16px !important; overflow:hidden;
  display:flex; flex-direction:column;
}
#homePage.home-dashboard .home-chart-grid > .home-panel-wide {
  grid-column:1 / -1 !important; height:270px !important; min-height:270px !important;
}
#homePage.home-dashboard .home-panel-head {
  flex:0 0 auto; min-width:0; min-height:38px; margin-bottom:7px !important;
  align-items:flex-start !important;
}
#homePage.home-dashboard .home-panel-head h3 {
  margin:0 !important; font-size:15px !important; line-height:1.18 !important;
  font-weight:800 !important; max-width:72%; overflow:hidden;
}
#homePage.home-dashboard .home-panel-head span {
  font-size:9.5px !important; line-height:1.2 !important; text-align:right;
  max-width:35%; white-space:normal !important; color:#999;
}
#homePage.home-dashboard .home-chart-area {
  flex:1 1 auto !important; min-width:0 !important; width:100% !important;
  min-height:0 !important; height:auto !important; overflow:hidden !important;
  display:flex; align-items:center; justify-content:center;
}
#homePage.home-dashboard .home-donut-wrap {
  width:100%; min-width:0; gap:10px !important; justify-content:center !important;
}
#homePage.home-dashboard .home-donut-svg { width:132px !important; height:132px !important; flex:0 0 132px !important; }
#homePage.home-dashboard .home-legend {
  min-width:0 !important; width:min(175px,48%) !important; max-width:175px !important;
  gap:5px !important; overflow:hidden;
}
#homePage.home-dashboard .home-legend-row { min-width:0; width:100%; gap:6px; font-size:10px !important; line-height:1.15 !important; }
#homePage.home-dashboard .home-legend-row span:nth-child(2) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#homePage.home-dashboard .home-legend-row strong { flex:0 0 auto; font-size:10px; }
#homePage.home-dashboard .home-bars { width:100% !important; max-width:100% !important; gap:7px !important; }
#homePage.home-dashboard .home-bar-row {
  width:100%; grid-template-columns:76px minmax(0,1fr) 62px !important;
  gap:7px !important; font-size:10px !important; min-width:0;
}
#homePage.home-dashboard .home-bar-label { min-width:0; font-size:10px !important; }
#homePage.home-dashboard .home-bar-track { min-width:0; height:12px !important; }
#homePage.home-dashboard .home-bar-value { font-size:10px !important; white-space:nowrap; }
#homePage.home-dashboard .home-zone-share { width:100%; min-width:0; gap:12px; }
#homePage.home-dashboard .home-zone-share .home-donut-svg { width:150px !important; height:150px !important; flex:0 0 150px !important; }
#homePage.home-dashboard .home-zone-share .home-legend { max-width:520px !important; width:50% !important; }
#homePage.home-dashboard .home-zone-share-svg { width:150px !important; height:150px !important; flex:0 0 150px !important; overflow:visible !important; }
#homePage.home-dashboard .home-zone-donut-segment { cursor:pointer; transition:opacity .15s ease; transform:none !important; }
#homePage.home-dashboard .home-zone-donut-segment:hover { opacity:.78; }

@media(max-width:1250px){
  #homePage.home-dashboard .home-chart-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #homePage.home-dashboard .home-chart-grid > .home-panel-wide { grid-column:1 / -1 !important; }
}
@media(max-width:820px){
  #homePage.home-dashboard .home-chart-grid { grid-template-columns:1fr !important; grid-auto-rows:280px; }
  #homePage.home-dashboard .home-chart-grid > .home-panel-card,
  #homePage.home-dashboard .home-chart-grid > .home-panel-wide { height:280px !important; min-height:280px !important; grid-column:auto !important; }
  #homePage.home-dashboard .home-kpi-card { flex-basis:154px !important; width:154px !important; min-width:154px !important; }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 9 ===== */

/* Sidebar: one logical navigation entry for the complete register. */
#homePage .home-nav .aj-asset-list-nav {
    width:100%; min-height:52px; margin:0; padding:0 15px;
    border:0; border-radius:13px; background:transparent; color:#fff;
    box-shadow:none; font-size:14px; font-weight:700; text-align:left;
    cursor:pointer; display:block;
}
#homePage .home-nav .aj-asset-list-nav:hover { background:#000; transform:none; }
#homePage .home-nav .aj-asset-list-nav.active { background:#6FA8DC; color:#fff; box-shadow:0 8px 20px rgba(111,168,220,.25); }
#homePage .home-nav .aj-asset-list-nav .nav-icon { width:26px; display:inline-block; text-align:center; margin-right:9px; font-size:17px; }

/* The old dashboard snapshot is replaced by the dedicated register page. */
#homePage .home-attention { display:none !important; }

/* Full-screen register. Horizontal scrolling is deliberately limited to
   the data tables; the application itself never gains page-wide x-scroll. */
#ajAssetListPage {
    position:fixed; inset:0; z-index:8500; display:none;
    background:#EDEDED; color:#111; overflow:auto;
    box-sizing:border-box;
}
#ajAssetListPage.aj-open { display:block; }
#ajAssetListPage, #ajAssetListPage * { box-sizing:border-box; }
.aj-register-shell { min-height:100%; padding:24px 28px 36px; max-width:1800px; margin:0 auto; }
.aj-register-topbar {
    position:sticky; top:0; z-index:20; background:rgba(255,255,255,.97);
    border:1px solid #E0E1E2; border-radius:16px; padding:14px 16px;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.06); margin-bottom:16px;
}
.aj-register-title-wrap { min-width:0; }
.aj-register-eyebrow { font-size:10px; font-weight:800; letter-spacing:1.3px; text-transform:uppercase; color:#777; }
.aj-register-title { font-size:21px; font-weight:800; margin-top:3px; line-height:1.15; }
 .aj-register-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.aj-register-actions #ajRegisterCloseBtn { min-width:132px; font-weight:800; }

.aj-register-btn {
    height:38px; padding:0 13px; border-radius:10px; border:1px solid #E0E1E2;
    background:#fff; color:#222; font-size:12px; font-weight:700; cursor:pointer; margin:0;
    box-shadow:0 3px 9px rgba(0,0,0,.05);
}
.aj-register-btn.primary { background:#6FA8DC; border-color:#6FA8DC; color:#fff; }
.aj-register-btn.dark { background:#111; border-color:#111; color:#fff; }
.aj-register-btn:hover { background:#EDEDED; transform:none; }
.aj-register-btn.primary:hover { background:#6FA8DC; }
.aj-register-btn.dark:hover { background:#333; }
.aj-register-mode {
    display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 10px;
    border-radius:999px; background:#F1F2F3; color:#555; font-size:10px; font-weight:800;
}
.aj-register-mode.admin { background:#E9F6EC; color:#25733A; }
.aj-mode-dot { width:7px; height:7px; border-radius:50%; background:#999; }
.aj-register-mode.admin .aj-mode-dot { background:#70AD47; }

.aj-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.aj-action-card {
    background:#fff; border:1px solid #E0E1E2; border-radius:15px; padding:15px;
    min-height:126px; box-shadow:0 6px 18px rgba(0,0,0,.04); overflow:hidden;
}
.aj-action-card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:9px; }
.aj-action-card h3 { margin:0; font-size:14px; line-height:1.2; }
.aj-action-count { font-size:21px; font-weight:800; color:#111; }
.aj-action-sub { color:#777; font-size:10px; line-height:1.35; }
.aj-action-list { margin-top:9px; max-height:78px; overflow:auto; }
.aj-action-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; border-top:1px solid #F0F0F0; font-size:10px; }
.aj-action-item b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aj-action-badge { flex:none; padding:3px 6px; border-radius:999px; font-size:9px; font-weight:800; }
.aj-action-badge.bad { background:#FCE8E8; color:#B3261E; }
.aj-action-badge.warn { background:#FFF1DE; color:#9A5C00; }
.aj-action-badge.stop { background:#EDEDED; color:#111; }
.aj-empty-small { color:#999; font-size:10px; padding:6px 0; }

.aj-register-panel {
    background:#fff; border:1px solid #E0E1E2; border-radius:16px; padding:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.04); margin-bottom:16px; min-width:0;
}
.aj-register-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:13px; }
.aj-register-panel-head h2 { margin:0; font-size:16px; line-height:1.2; }
.aj-register-panel-head span { color:#999; font-size:10px; text-align:right; }
.aj-register-filters {
    display:grid; grid-template-columns:1.35fr repeat(6,minmax(125px,1fr)) auto;
    gap:8px; margin-bottom:12px;
}
.aj-register-filters input, .aj-register-filters select {
    width:100%; height:38px; padding:0 10px; border:1px solid #E0E1E2;
    border-radius:9px; background:#fff; color:#222; font-size:11px; outline:none; margin:0;
}
.aj-register-filters input:focus, .aj-register-filters select:focus { border-color:#6FA8DC; box-shadow:0 0 0 2px rgba(111,168,220,.12); }
.aj-register-filter-actions { display:flex; gap:7px; }
.aj-register-filter-actions button { margin:0; height:38px; padding:0 11px; font-size:11px; border-radius:9px; }

.aj-register-scroll { overflow-x:auto; overflow-y:visible; width:100%; border:1px solid #E0E1E2; border-radius:11px; }
.aj-outdoor-card { border:1px solid #E0E1E2; border-radius:12px; margin-bottom:12px; overflow:hidden; background:#fff; }
.aj-outdoor-card:last-child { margin-bottom:0; }
.aj-outdoor-head {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:11px 13px; background:#F7F8F9; border-bottom:1px solid #E0E1E2;
}
.aj-outdoor-id { min-width:0; }
.aj-outdoor-id b { font-size:12px; }
.aj-outdoor-id small { display:block; margin-top:3px; color:#777; font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aj-outdoor-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.aj-register-pill { padding:4px 7px; border-radius:999px; font-size:9px; font-weight:800; white-space:nowrap; }
.aj-register-pill.run { background:#E9F6EC; color:#25733A; }
.aj-register-pill.stop { background:#FCE8E8; color:#B3261E; }
.aj-register-pill.neutral { background:#EDEDED; color:#555; }
.aj-register-pill.blue { background:#EAF3FB; color:#3D6F9E; }
.aj-outdoor-actions { display:flex; gap:6px; }
.aj-mini-btn { border:1px solid #E0E1E2; background:#fff; color:#222; border-radius:7px; padding:5px 8px; font-size:9px; font-weight:800; cursor:pointer; margin:0; box-shadow:none; }
.aj-mini-btn:hover { background:#EDEDED; }
.aj-mini-btn.primary { background:#6FA8DC; border-color:#6FA8DC; color:#fff; }
.aj-register-table-wrap {
    width:100%; overflow-x:auto; overflow-y:visible; border:1px solid #D9DBDE;
    border-radius:10px; background:#fff; scrollbar-width:thin;
}
.aj-register-table {
    width:max-content; min-width:100%; border-collapse:separate; border-spacing:0;
    table-layout:fixed; font-variant-numeric:tabular-nums;
}
.aj-register-table col.od-sr { width:105px; }
.aj-register-table col.od-model { width:145px; }
.aj-register-table col.od-zone { width:135px; }
.aj-register-table col.od-group { width:125px; }
.aj-register-table col.od-brand { width:105px; }
.aj-register-table col.od-type { width:115px; }
.aj-register-table col.od-tr { width:80px; }
.aj-register-table col.od-hp { width:80px; }
.aj-register-table col.od-effective { width:100px; }
.aj-register-table col.od-date { width:125px; }
.aj-register-table col.od-status { width:105px; }
.aj-register-table col.od-maint { width:125px; }
.aj-register-table col.od-placement { width:95px; }
.aj-register-table col.id-sr { width:105px; }
.aj-register-table col.id-model { width:145px; }
.aj-register-table col.id-location { width:160px; }
.aj-register-table col.id-type { width:115px; }
.aj-register-table col.id-id { width:125px; }
.aj-register-table col.id-capacity { width:100px; }
.aj-register-table col.id-date { width:125px; }
.aj-register-table col.id-placement { width:95px; }
.aj-register-table th {
    background:#111; color:#fff; padding:8px 9px; font-size:9px; font-weight:800;
    text-transform:uppercase; letter-spacing:.28px; text-align:left; white-space:nowrap;
    border-right:1px solid #2B2B2B; border-bottom:1px solid #2B2B2B;
}
.aj-register-table thead tr.aj-group-head th {
    background:#6FA8DC; color:#fff; text-align:center; font-size:9px;
    letter-spacing:.55px; padding:7px 8px; position:sticky; top:0; z-index:4;
}
.aj-register-table thead tr.aj-column-head th {
    position:sticky; top:30px; z-index:3;
}
.aj-register-table th.aj-od-group-header { background:#5D98C9 !important; }
.aj-register-table th.aj-id-group-header { background:#4F8FBE !important; }
.aj-register-table td {
    padding:9px 9px; border-right:1px solid #F0F1F2; border-bottom:1px solid #E4E5E7;
    font-size:10px; line-height:1.25; color:#333; white-space:nowrap; vertical-align:middle;
    background:#fff;
}
.aj-register-table tbody tr:nth-child(even) td { background:#FAFAFA; }
.aj-register-table tbody tr:last-child td { border-bottom:0; }
.aj-register-table td.aj-od-cell { background:#F7FAFD; font-weight:600; }
.aj-register-table tbody tr:nth-child(even) td.aj-od-cell { background:#F2F7FB; }
.aj-register-table .muted { color:#999; font-weight:400; }
.aj-register-table .aj-unit-main { font-weight:800; color:#111; }
.aj-register-table .aj-unit-sub { display:block; margin-top:2px; color:#888; font-size:9px; font-weight:400; }
.aj-register-table .aj-indoor-start { border-left:2px solid #6FA8DC; }

/* Single global Excel-style register: one header for every asset. */
.aj-global-register-wrap { overflow-x:auto; overflow-y:visible; }
.aj-global-register-table { border-collapse:separate; border-spacing:0; }
.aj-global-register-table thead tr.aj-column-head th {
    position:sticky; top:0; z-index:8;
    background:#111; color:#fff;
    height:38px; padding:8px 9px;
    font-size:9px; line-height:1.15;
    white-space:nowrap;
    box-shadow:0 1px 0 #2B2B2B;
}
.aj-global-register-table tbody td { height:38px; }
.aj-global-register-table tbody tr.aj-outdoor-start td {
    border-top:2px solid #6FA8DC;
}
.aj-global-register-table tbody tr:first-child td { border-top:0; }
.aj-global-register-table td.aj-od-cell {
    background:#F7FAFD;
    font-weight:600;
}
.aj-global-register-table tbody tr:nth-child(even) td.aj-od-cell { background:#F2F7FB; }
.aj-global-register-table td.aj-indoor-start { border-left:3px solid #6FA8DC; }
.aj-global-register-table td.aj-no-linked {
    color:#999; background:#FAFAFA; font-size:10px; font-weight:500;
    text-align:left; white-space:nowrap;
}
.aj-inline-edit {
    display:block; margin:4px auto 0; padding:3px 6px;
    border:1px solid #6FA8DC; border-radius:6px;
    background:#fff; color:#3D6F9E; font-size:8px; font-weight:800;
    cursor:pointer;
}
.aj-inline-edit:hover { background:#6FA8DC; color:#fff; }

.aj-register-table .aj-status-cell,
.aj-register-table .aj-maint-cell,
.aj-register-table .aj-placement-cell { text-align:center; }
.aj-register-table .aj-no-indoor-cell {
    color:#999; font-size:10px; font-weight:400; text-align:left; white-space:normal;
    min-width:400px;
}
.aj-register-table .aj-no-indoor-cell b { color:#666; }
.aj-indoor-section { padding:0; background:#fff; }
.aj-indoor-title {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:9px 12px 7px; background:#fff;
}
.aj-indoor-title b { font-size:10px; }
.aj-indoor-title span { color:#999; font-size:9px; }
.aj-no-indoor { padding:12px; border:1px dashed #D7D9DC; border-radius:8px; color:#999; font-size:10px; }
.aj-table-note {
    display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px;
    background:#F7F8F9; color:#777; font-size:9px; border-top:1px solid #E0E1E2;
}
.aj-table-note b { color:#444; }
@media(max-width:900px){
    .aj-register-table thead tr.aj-group-head th { position:static; }
    .aj-register-table thead tr.aj-column-head th { position:static; }
}
.aj-register-footer { color:#888; font-size:9px; line-height:1.45; margin-top:8px; }

@media(max-width:1300px){
    .aj-register-filters { grid-template-columns:1.4fr repeat(4,minmax(120px,1fr)); }
    .aj-register-filter-actions { grid-column:1/-1; }
}
@media(max-width:900px){
    .aj-register-shell { padding:14px; }
    .aj-register-topbar { align-items:flex-start; flex-direction:column; }
    .aj-register-actions { justify-content:flex-start; }
    .aj-action-grid { grid-template-columns:1fr; }
    .aj-register-filters { grid-template-columns:1fr 1fr; }
}
@media(max-width:620px){
    .aj-register-filters { grid-template-columns:1fr; }
    .aj-register-title { font-size:18px; }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 10 ===== */

/* =========================================================
   AJOPTIX DASHBOARD TOOLBAR FIX
   Keeps search, admin controls and common controls in separate
   non-overlapping regions. No application logic is changed.
   ========================================================= */

/* Back button: fixed left anchor with reserved width. */
#dashboardPage > .back-btn {
    position: fixed;
    top: 14px;
    left: 30px;
    z-index: 3200;
    height: 42px;
    min-width: 92px;
    padding: 0 18px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Search occupies the left-center area and never sits underneath admin controls. */
#dashboardPage > .search-box {
    position: fixed;
    top: 14px;
    left: 140px;
    z-index: 3100;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
#dashboardPage > .search-box > div {
    flex: 0 1 300px;
    min-width: 220px;
}
#dashboardPage > .search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    margin: 0;
    box-sizing: border-box;
}
#dashboardPage > .search-box button {
    height: 42px;
    min-width: 82px;
    padding: 0 15px;
    margin: 0;
    flex: 0 0 auto;
}

/* Admin controls are centered in their own lane. */
#dashboardPage > #adminToolbar {
    position: fixed !important;
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    z-index: 3200;
    min-height: 42px;
    max-width: min(680px, calc(100vw - 700px));
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
    white-space: nowrap;
}
#dashboardPage > #adminToolbar button,
#dashboardPage > #adminToolbar .aj-save-changes-btn {
    margin: 0 !important;
    flex: 0 0 auto;
}
#dashboardPage > #adminToolbar .aj-save-changes-btn {
    height: 38px;
    min-width: 126px;
    padding: 0 14px;
}
#dashboardPage > #adminToolbar .aj-save-status {
    flex: 0 0 auto;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Viewer/common controls remain anchored to the right and never overlap admin controls. */
#dashboardPage > #commonToolbar {
    position: fixed;
    top: 14px;
    right: 30px;
    left: auto;
    z-index: 3200;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}
#dashboardPage > #commonToolbar button {
    height: 42px;
    margin: 0;
    white-space: nowrap;
}

/* Do not allow a hidden admin toolbar to occupy space. */
#dashboardPage > #adminToolbar[style*="display:none"] {
    display: none !important;
}

/* Medium desktop: compact the three lanes before they can collide. */
@media (max-width: 1450px) {
    #dashboardPage > .search-box {
        left: 130px;
    }
    #dashboardPage > .search-box > div {
        flex-basis: 250px;
    }
    #dashboardPage > #adminToolbar {
        max-width: 620px;
        gap: 4px;
    }
    #dashboardPage > #adminToolbar .aj-save-status {
        max-width: 105px;
        font-size: 10px;
    }
    #dashboardPage > #commonToolbar {
        right: 18px;
        gap: 5px;
    }
    #dashboardPage > #commonToolbar button {
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* Small desktop/tablet: use two rows rather than allowing overlap. */
@media (max-width: 1100px) {
    #dashboardPage > .search-box {
        left: 130px;
    }
    #dashboardPage > .search-box > div {
        flex-basis: 220px;
    }
    #dashboardPage > #adminToolbar {
        top: 64px !important;
        left: 50% !important;
        transform: translateX(-50%);
        max-width: calc(100vw - 40px);
        background: rgba(111,168,220,.96);
        border-radius: 10px;
        padding: 4px 8px;
    }
    #dashboardPage > #commonToolbar {
        right: 18px;
    }
}

@media (max-width: 720px) {
    #dashboardPage > .back-btn {
        left: 12px;
        min-width: 72px;
    }
    #dashboardPage > .search-box {
        left: 95px;
        right: 12px;
        width: auto;
    }
    #dashboardPage > .search-box > div {
        flex: 1 1 auto;
        min-width: 0;
    }
    #dashboardPage > .search-box button {
        min-width: 70px;
    }
    #dashboardPage > #commonToolbar {
        top: 114px;
        left: 12px;
        right: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    #dashboardPage > #adminToolbar {
        top: 64px !important;
        left: 12px !important;
        right: 12px !important;
        transform: none;
        max-width: none;
        justify-content: flex-start;
        overflow-x: auto;
    }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 11 ===== */

/* Navigation: blue highlight appears only while hovering. */
#homePage .home-nav button,
#homePage .home-nav select {
    background: transparent !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}

#homePage .home-nav button:hover,
#homePage .home-nav button:focus-visible {
    background: #6FA8DC !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(111,168,220,.25) !important;
}

/* Do not keep the current/active page blue after the cursor leaves it. */
#homePage .home-nav button.active,
#homePage .home-nav button.active:hover {
    background: #6FA8DC !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}
/* Override the active state specifically when the mouse is not over the button. */
#homePage .home-nav button.active:not(:hover) {
    background: transparent !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 12 ===== */

/* =========================================================
   AJOPTIX SIDEBAR HOVER + APPEARANCE
   UI-only layer. No application data or navigation logic changed.
   ========================================================= */

/* Workspace navigation uses the same subtle dark hover treatment
   as the Tools navigation: no permanent blue selection block. */
#homePage .home-nav button,
#homePage .home-nav .aj-asset-list-nav {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#homePage .home-nav button:hover,
#homePage .home-nav button:focus-visible,
#homePage .home-nav .aj-asset-list-nav:hover,
#homePage .home-nav .aj-asset-list-nav:focus-visible {
    background: #0b0d10 !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(111,168,220,.16) !important;
    transform: none !important;
    outline: none;
}

/* Do not show the blue active block on Overview or Asset List. */
#homePage .home-nav button.active,
#homePage .home-nav .aj-asset-list-nav.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

#homePage .home-nav button.active:hover,
#homePage .home-nav .aj-asset-list-nav.active:hover {
    background: #0b0d10 !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(111,168,220,.16) !important;
}

/* Settings popover */
.aj-settings-menu {
    display: none;
    position: fixed;
    top: 75px;
    right: 20px;
    width: 230px;
    padding: 16px;
    background: #fff;
    color: #111;
    border: 1px solid #E0E1E2;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    z-index: 9000;
    box-sizing: border-box;
}
.aj-settings-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}
.aj-settings-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}
.aj-theme-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.aj-theme-btn,
.aj-settings-action {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #E0E1E2;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    margin: 0;
}
.aj-theme-btn:hover,
.aj-settings-action:hover {
    background: #F2F3F4;
    transform: none;
}
.aj-theme-btn.selected {
    background: #6FA8DC;
    color: #fff;
    border-color: #6FA8DC;
}
.aj-settings-divider {
    height: 1px;
    background: #E5E6E7;
    margin: 14px 0;
}

/* =========================================================
   DARK MODE
   Applied by adding .aj-dark-mode to <body>.
   ========================================================= */
body.aj-dark-mode {
    background: #111315 !important;
    color: #F2F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard {
    background: #111315 !important;
    color: #F2F4F5 !important;
}
body.aj-dark-mode .home-main {
    background: #111315 !important;
}
body.aj-dark-mode .home-topbar {
    background: #181B1E !important;
    border-bottom-color: #2A2E32 !important;
}
body.aj-dark-mode .home-title,
body.aj-dark-mode .home-hero h1,
body.aj-dark-mode .home-panel-head h3,
body.aj-dark-mode .home-kpi-value,
body.aj-dark-mode .home-table th,
body.aj-dark-mode .home-table td,
body.aj-dark-mode .home-filterbar,
body.aj-dark-mode .home-content {
    color: #F2F4F5 !important;
}
body.aj-dark-mode .home-eyebrow,
body.aj-dark-mode .home-hero p,
body.aj-dark-mode .home-panel-head span,
body.aj-dark-mode .home-kpi-label,
body.aj-dark-mode .home-kpi-meta,
body.aj-dark-mode .home-chart-note,
body.aj-dark-mode .home-legend-row,
body.aj-dark-mode .home-bar-label,
body.aj-dark-mode .home-sidebar-footer {
    color: #AEB5BA !important;
}
body.aj-dark-mode .home-hero,
body.aj-dark-mode .home-filterbar,
body.aj-dark-mode .home-kpi-card,
body.aj-dark-mode .home-panel,
body.aj-dark-mode .home-chart-card,
body.aj-dark-mode .home-table-wrap,
body.aj-dark-mode .home-insight,
body.aj-dark-mode .home-card {
    background: #1A1D20 !important;
    border-color: #2C3135 !important;
    color: #F2F4F5 !important;
}
body.aj-dark-mode .home-top-btn,
body.aj-dark-mode .home-filterbar select,
body.aj-dark-mode .home-filterbar input,
body.aj-dark-mode .home-filterbar button {
    background: #1A1D20 !important;
    color: #F2F4F5 !important;
    border-color: #343A3F !important;
}
body.aj-dark-mode .home-top-btn.primary,
body.aj-dark-mode .home-filterbar button {
    background: #6FA8DC !important;
    border-color: #6FA8DC !important;
    color: #fff !important;
}
body.aj-dark-mode .home-table th {
    background: #111315 !important;
    border-color: #2C3135 !important;
}
body.aj-dark-mode .home-table td {
    border-color: #2C3135 !important;
}
body.aj-dark-mode .home-nav-title {
    color: #858D93 !important;
}
body.aj-dark-mode .home-sidebar {
    background: #000 !important;
}

/* Dark mode for Asset Register / Action Centre */
body.aj-dark-mode #ajAssetListPage,
body.aj-dark-mode .aj-register-page {
    background: #111315 !important;
    color: #F2F4F5 !important;
}
body.aj-dark-mode #ajAssetListPage .aj-register-header,
body.aj-dark-mode #ajAssetListPage .aj-register-panel,
body.aj-dark-mode #ajAssetListPage .aj-action-card,
body.aj-dark-mode #ajAssetListPage .aj-register-card {
    background: #1A1D20 !important;
    border-color: #2C3135 !important;
    color: #F2F4F5 !important;
}
body.aj-dark-mode #ajAssetListPage input,
body.aj-dark-mode #ajAssetListPage select,
body.aj-dark-mode #ajAssetListPage button {
    background: #1A1D20;
    color: #F2F4F5;
    border-color: #343A3F;
}
body.aj-dark-mode #ajAssetListPage table th {
    background: #0F1113 !important;
    color: #fff !important;
}
body.aj-dark-mode #ajAssetListPage table td {
    color: #E6E9EB !important;
    border-color: #2C3135 !important;
}

/* Settings popover follows the selected appearance. */
body.aj-dark-mode .aj-settings-menu {
    background: #1A1D20 !important;
    color: #F2F4F5 !important;
    border-color: #343A3F !important;
}
body.aj-dark-mode .aj-settings-section-label {
    color: #9BA3A9 !important;
}
body.aj-dark-mode .aj-theme-btn,
body.aj-dark-mode .aj-settings-action {
    background: #22272B !important;
    color: #F2F4F5 !important;
    border-color: #3A4147 !important;
}
body.aj-dark-mode .aj-theme-btn:hover,
body.aj-dark-mode .aj-settings-action:hover {
    background: #2B3136 !important;
}
body.aj-dark-mode .aj-theme-btn.selected {
    background: #6FA8DC !important;
    border-color: #6FA8DC !important;
    color: #fff !important;
}
body.aj-dark-mode .aj-settings-divider {
    background: #343A3F !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 13 ===== */

/* =========================================================
   AJOPTIX DARK MODE — DASHBOARD SURFACE POLISH
   Dark mode only. Keeps chart colors/data and application logic intact.
   ========================================================= */

body.aj-dark-mode #homePage.home-dashboard .home-chart-grid > .home-panel-card,
body.aj-dark-mode #homePage.home-dashboard .home-attention .home-panel-card {
    background:#1A1D20 !important;
    border-color:#343A3F !important;
    color:#F2F4F5 !important;
    box-shadow:0 8px 22px rgba(0,0,0,.22) !important;
}

/* Chart headings and supporting labels */
body.aj-dark-mode #homePage.home-dashboard .home-panel-head h3 {
    color:#F2F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-panel-head span {
    color:#9FA7AD !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-chart-area,
body.aj-dark-mode #homePage.home-dashboard .home-donut-wrap,
body.aj-dark-mode #homePage.home-dashboard .home-legend,
body.aj-dark-mode #homePage.home-dashboard .home-bars {
    color:#DDE2E5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-legend-row,
body.aj-dark-mode #homePage.home-dashboard .home-legend-row span,
body.aj-dark-mode #homePage.home-dashboard .home-bar-label,
body.aj-dark-mode #homePage.home-dashboard .home-bar-value {
    color:#C9D0D4 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-legend-row strong {
    color:#F2F4F5 !important;
}

/* Replace the pale chart tracks with a dark neutral track. */
body.aj-dark-mode #homePage.home-dashboard .home-bar-track {
    background:#30353A !important;
    border-color:#3A4147 !important;
}

/* SVG donut centres were generated with a hard-coded white fill.
   Override only the centre fill; segment colors remain unchanged. */
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg circle[fill="#FFFFFF"] {
    fill:#1A1D20 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#111"],
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#111111"] {
    fill:#F2F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#888"],
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#999"] {
    fill:#9FA7AD !important;
}

/* Zone Capacity Share and all other bar-chart labels */
body.aj-dark-mode #homePage.home-dashboard .home-zone-share .home-legend-row strong,
body.aj-dark-mode #homePage.home-dashboard .home-bar-value {
    color:#F2F4F5 !important;
}

/* KPI cards and the KPI strip also use the same dark surface. */
body.aj-dark-mode #homePage.home-dashboard .home-kpi-card {
    background:#1A1D20 !important;
    border-color:#343A3F !important;
    color:#F2F4F5 !important;
    box-shadow:0 8px 22px rgba(0,0,0,.22) !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-label {
    color:#9FA7AD !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-value {
    color:#F2F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-meta {
    color:#9FA7AD !important;
}

/* KPI scrollbar track */
body.aj-dark-mode #homePage.home-dashboard .home-kpi-grid {
    scrollbar-color:#6FA8DC #24282C !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-grid::-webkit-scrollbar-track {
    background:#24282C !important;
}

/* Main dashboard surfaces */
body.aj-dark-mode #homePage.home-dashboard .home-hero,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar,
body.aj-dark-mode #homePage.home-dashboard .home-table-wrap,
body.aj-dark-mode #homePage.home-dashboard .home-insight-list {
    background:#1A1D20 !important;
    border-color:#343A3F !important;
    color:#F2F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-filterbar select,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar input {
    background:#22272B !important;
    color:#F2F4F5 !important;
    border-color:#3A4147 !important;
}

/* Attention table */
body.aj-dark-mode #homePage.home-dashboard .home-table tbody tr:nth-child(even) td {
    background:#1E2226 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-table tbody tr:nth-child(odd) td {
    background:#1A1D20 !important;
}

/* Empty chart state */
body.aj-dark-mode #homePage.home-dashboard .home-empty {
    color:#9FA7AD !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 14 ===== */

/* =========================================================
   TOP CONTROLS + ABOUT PAGE
   ========================================================= */
#homePage .aj-export-icon-btn {
    width:42px !important;
    min-width:42px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:17px !important;
    line-height:1 !important;
}
#homePage .aj-export-icon-btn span { display:block; transform:translateY(-1px); }

#homePage .aj-theme-switch-top {
    width:94px !important;
    min-width:94px !important;
    padding:0 9px !important;
    gap:6px !important;
    justify-content:center !important;
}
#homePage .aj-theme-switch-top .aj-theme-symbol {
    width:16px;
    text-align:center;
    flex:0 0 16px;
    font-size:15px;
    opacity:.28;
    transition:opacity .18s ease, transform .18s ease, order .18s ease;
}
#homePage .aj-theme-switch-top .aj-theme-track {
    order:1;
    flex:0 0 40px;
    width:40px;
    min-width:40px;
    height:20px;
}
#homePage .aj-theme-switch-top .aj-theme-knob {
    width:14px;
    height:14px;
    top:2px;
    left:2px;
}
#homePage .aj-theme-switch-top:not(.is-dark) .aj-moon {
    order:0;
    opacity:1;
    transform:scale(1.05);
}
#homePage .aj-theme-switch-top:not(.is-dark) .aj-sun {
    order:2;
    opacity:.28;
}
#homePage .aj-theme-switch-top.is-dark .aj-sun {
    order:0;
    opacity:1;
    transform:scale(1.05);
}
#homePage .aj-theme-switch-top.is-dark .aj-moon {
    order:2;
    opacity:.28;
}
#homePage .aj-theme-switch-top.is-dark .aj-theme-knob { transform:translateX(16px); }

.aj-about-page {
    position:fixed;
    inset:0;
    z-index:11000;
    background:#F2F3F4;
    overflow:auto;
    color:#17202A;
}
.aj-about-shell { min-height:100%; }
.aj-about-topbar {
    height:72px;
    background:#fff;
    border-bottom:1px solid #E2E5E7;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 32px;
    box-sizing:border-box;
    position:sticky;
    top:0;
    z-index:2;
}
.aj-about-top-title { font-size:12px; font-weight:900; letter-spacing:.12em; }
.aj-about-back {
    border:0;
    border-radius:10px;
    background:#111;
    color:#fff;
    padding:12px 18px;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}
.aj-about-content { max-width:1280px; margin:0 auto; padding:28px 34px 48px; box-sizing:border-box; }
.aj-about-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.aj-about-heading-row h1 { margin:0 0 7px; font-size:30px; line-height:1.15; }
.aj-about-heading-row h2 { margin:0; color:#60758A; font-size:18px; }
.aj-about-badge { background:#2D789E; color:#fff; padding:8px 14px; border-radius:999px; font-size:12px; font-weight:800; }
.aj-about-divider { height:1px; background:#D9DEE2; margin:20px 0 28px; }
.aj-about-profile { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.aj-about-avatar { width:68px; height:68px; border-radius:16px; background:#6FA8DC; color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:900; box-shadow:0 7px 16px rgba(0,0,0,.12); }
.aj-about-profile h3 { margin:0 0 4px; font-size:21px; }
.aj-about-profile p { margin:0; color:#4F6578; font-size:14px; font-weight:700; }
.aj-about-intro { margin:0 0 24px; font-size:16px; line-height:1.65; color:#243746; }
.aj-about-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.aj-about-card { background:#fff; border:1px solid #DDE3E7; border-radius:18px; padding:21px 23px; box-shadow:0 7px 18px rgba(0,0,0,.05); }
.aj-about-card h3 { margin:0 0 11px; font-size:18px; color:#203342; }
.aj-about-card p, .aj-about-card li { color:#5A7184; font-size:14px; line-height:1.6; }
.aj-about-card p { margin:0; }
.aj-about-card ul { margin:0; padding-left:19px; }
.aj-about-footer-card { margin-top:18px; background:#fff; border:1px solid #DDE3E7; border-radius:14px; padding:14px 18px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:#5A7184; font-size:13px; }
.aj-about-footer-card strong { color:#243746; font-size:13px; }
body.aj-dark-mode .aj-about-page { background:#0D0F10; color:#F5F7F8; }
body.aj-dark-mode .aj-about-topbar,
body.aj-dark-mode .aj-about-card,
body.aj-dark-mode .aj-about-footer-card { background:#181B1E; border-color:#2C3135; }
body.aj-dark-mode .aj-about-heading-row h2,
body.aj-dark-mode .aj-about-profile p,
body.aj-dark-mode .aj-about-intro,
body.aj-dark-mode .aj-about-card p,
body.aj-dark-mode .aj-about-card li,
body.aj-dark-mode .aj-about-footer-card { color:#AAB3BA; }
body.aj-dark-mode .aj-about-card h3,
body.aj-dark-mode .aj-about-footer-card strong { color:#F2F4F5; }
body.aj-dark-mode .aj-about-divider { background:#30363B; }
body.aj-dark-mode .aj-about-back { background:#F2F4F5; color:#111; }

@media(max-width:820px){
    .aj-about-content { padding:22px 18px 36px; }
    .aj-about-grid { grid-template-columns:1fr; }
    .aj-about-heading-row h1 { font-size:26px; }
    .aj-about-topbar { padding:0 18px; }
}


/* ===== ORIGINAL INLINE STYLE BLOCK 15 ===== */

/* =========================================================
   AJOPTIX DARK MODE — REFERENCE / PREMIUM DASHBOARD STYLE
   Inspired by the supplied reference: near-black workspace,
   layered charcoal surfaces, subtle borders, bright primary text,
   muted secondary text, and restrained shadows.
   Dark mode only; light mode is untouched.
   ========================================================= */

body.aj-dark-mode {
    background:#0D0F10 !important;
    color:#F5F7F8 !important;
}

body.aj-dark-mode #homePage.home-dashboard {
    background:#0D0F10 !important;
    color:#F5F7F8 !important;
}

body.aj-dark-mode .home-main {
    background:#0D0F10 !important;
}

/* Top navigation: dark, compact, clearly separated from content. */
body.aj-dark-mode .home-topbar {
    background:#121416 !important;
    border-bottom:1px solid #25292D !important;
    box-shadow:0 1px 0 rgba(255,255,255,.02) !important;
}
body.aj-dark-mode .home-title { color:#F7F8F9 !important; }
body.aj-dark-mode .home-eyebrow { color:#858D93 !important; }
body.aj-dark-mode .home-topbar-actions { gap:10px !important; }
body.aj-dark-mode .home-top-btn {
    background:#181B1E !important;
    color:#F3F5F6 !important;
    border:1px solid #2C3135 !important;
    box-shadow:none !important;
}
body.aj-dark-mode .home-top-btn:hover {
    background:#202428 !important;
    border-color:#3A4147 !important;
}
body.aj-dark-mode .home-top-btn.primary,
body.aj-dark-mode .home-top-btn.primary:hover {
    background:#6FA8DC !important;
    color:#fff !important;
    border-color:#6FA8DC !important;
    box-shadow:0 6px 18px rgba(111,168,220,.18) !important;
}
body.aj-dark-mode #homePage .aj-top-theme-btn.is-dark {
    background:#1D2226 !important;
    color:#F5F7F8 !important;
    border-color:#3A4147 !important;
}

/* Sidebar: close to the reference's layered dark navigation. */
body.aj-dark-mode .home-sidebar {
    background:#141617 !important;
    border-right:1px solid #24282C !important;
}
body.aj-dark-mode .home-brand {
    border-bottom-color:#24282C !important;
}
body.aj-dark-mode .home-brand-name { color:#F7F8F9 !important; }
body.aj-dark-mode .home-brand-sub { color:#B9C0C5 !important; }
body.aj-dark-mode .home-nav-title { color:#737B81 !important; }
body.aj-dark-mode .home-nav button,
body.aj-dark-mode .home-nav select {
    color:#EDEFF0 !important;
}
/* No permanent selection fill: only hover/focus gets the reference effect. */
body.aj-dark-mode .home-nav button.active {
    background:transparent !important;
    color:#F5F7F8 !important;
    box-shadow:none !important;
}
body.aj-dark-mode .home-nav button:hover,
body.aj-dark-mode .home-nav button:focus-visible {
    background:#222629 !important;
    color:#FFFFFF !important;
    box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
    outline:none !important;
}
body.aj-dark-mode .home-nav button:active {
    background:#292E32 !important;
}
body.aj-dark-mode .home-sidebar-footer { color:#6F777D !important; }

/* Main workspace background: deep neutral, not flat grey. */
body.aj-dark-mode #homePage.home-dashboard .home-content {
    background:#0D0F10 !important;
}

/* All major dashboard surfaces. */
body.aj-dark-mode #homePage.home-dashboard .home-hero,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar,
body.aj-dark-mode #homePage.home-dashboard .home-kpi-card,
body.aj-dark-mode #homePage.home-dashboard .home-chart-grid > .home-panel-card,
body.aj-dark-mode #homePage.home-dashboard .home-table-wrap,
body.aj-dark-mode #homePage.home-dashboard .home-insight-list,
body.aj-dark-mode #homePage.home-dashboard .home-insight,
body.aj-dark-mode #homePage.home-dashboard .home-card,
body.aj-dark-mode #homePage.home-dashboard .home-panel,
body.aj-dark-mode #homePage.home-dashboard .home-chart-card,
body.aj-dark-mode #homePage.home-dashboard .home-attention .home-panel-card {
    background:#181B1E !important;
    color:#F3F5F6 !important;
    border-color:#2A2F33 !important;
    box-shadow:0 10px 28px rgba(0,0,0,.20) !important;
}

/* Hero hierarchy. */
body.aj-dark-mode #homePage.home-dashboard .home-hero h1 {
    color:#F7F8F9 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-hero p {
    color:#9DA5AA !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-status-pill {
    background:#202B35 !important;
    color:#EAF3FA !important;
    border:1px solid #304454 !important;
}

/* Filter bar and controls. */
body.aj-dark-mode #homePage.home-dashboard .home-filterbar select,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar input {
    background:#111416 !important;
    color:#EDEFF0 !important;
    border-color:#30363B !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-filterbar select:hover,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar input:hover,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar select:focus,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar input:focus {
    border-color:#465058 !important;
    outline:none !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-filterbar button {
    background:#24292D !important;
    color:#F3F5F6 !important;
    border-color:#343A3F !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-filterbar button:hover {
    background:#2C3237 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-filterbar button.primary,
body.aj-dark-mode #homePage.home-dashboard .home-filterbar button[style*="background"] {
    color:#fff !important;
}

/* KPI cards: reference-like compact hierarchy. */
body.aj-dark-mode #homePage.home-dashboard .home-kpi-card {
    background:#181B1E !important;
    border-color:#2A2F33 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-card:hover {
    background:#1C2023 !important;
    border-color:#363C41 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-label {
    color:#858D93 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-value {
    color:#F7F8F9 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-meta {
    color:#7F888E !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-grid {
    scrollbar-color:#4E5962 #171A1D !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-kpi-grid::-webkit-scrollbar-track {
    background:#171A1D !important;
}

/* Chart cards. This explicitly covers every chart panel so no white card survives. */
body.aj-dark-mode #homePage.home-dashboard .home-chart-grid .home-panel-card,
body.aj-dark-mode #homePage.home-dashboard .home-chart-grid .home-panel-wide,
body.aj-dark-mode #homePage.home-dashboard .home-panel-card {
    background:#181B1E !important;
    border:1px solid #2A2F33 !important;
    color:#F3F5F6 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-panel-head h3 {
    color:#F5F7F8 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-panel-head span,
body.aj-dark-mode #homePage.home-dashboard .home-chart-note {
    color:#858D93 !important;
}

/* Chart internals. */
body.aj-dark-mode #homePage.home-dashboard .home-chart-area,
body.aj-dark-mode #homePage.home-dashboard .home-donut-wrap,
body.aj-dark-mode #homePage.home-dashboard .home-legend,
body.aj-dark-mode #homePage.home-dashboard .home-bars {
    color:#D9DEE1 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-legend-row,
body.aj-dark-mode #homePage.home-dashboard .home-legend-row span,
body.aj-dark-mode #homePage.home-dashboard .home-bar-label {
    color:#AEB6BB !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-legend-row strong,
body.aj-dark-mode #homePage.home-dashboard .home-bar-value,
body.aj-dark-mode #homePage.home-dashboard .home-zone-share .home-legend-row strong {
    color:#F1F4F5 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-bar-track {
    background:#2A2F33 !important;
    border-color:#343A3F !important;
}

/* SVG donut centers and generated SVG text. */
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg circle[fill="#FFFFFF"] {
    fill:#181B1E !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#111"],
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#111111"] {
    fill:#F7F8F9 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#888"],
body.aj-dark-mode #homePage.home-dashboard .home-chart-area svg text[fill="#999"] {
    fill:#8F989E !important;
}

/* Attention / data tables. */
body.aj-dark-mode #homePage.home-dashboard .home-table {
    background:#181B1E !important;
    color:#E8ECEE !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-table th {
    background:#111416 !important;
    color:#F3F5F6 !important;
    border-color:#2A2F33 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-table td {
    color:#D5DBDE !important;
    border-color:#2A2F33 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-table tbody tr:nth-child(even) td {
    background:#1B1F22 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-table tbody tr:nth-child(odd) td {
    background:#181B1E !important;
}

/* Empty / secondary information. */
body.aj-dark-mode #homePage.home-dashboard .home-empty,
body.aj-dark-mode #homePage.home-dashboard .home-insight span {
    color:#858D93 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-insight b {
    color:#E9EDEF !important;
}

/* Keep the dark scrollbar consistent with the reference aesthetic. */
body.aj-dark-mode #homePage.home-dashboard .home-main {
    scrollbar-color:#414A51 #101214 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-main::-webkit-scrollbar {
    width:10px;
}
body.aj-dark-mode #homePage.home-dashboard .home-main::-webkit-scrollbar-track {
    background:#101214 !important;
}
body.aj-dark-mode #homePage.home-dashboard .home-main::-webkit-scrollbar-thumb {
    background:#414A51 !important;
    border-radius:8px;
    border:2px solid #101214;
}

/* Settings remains layered and readable. */
body.aj-dark-mode .aj-settings-menu {
    background:#181B1E !important;
    color:#F3F5F6 !important;
    border-color:#30363B !important;
    box-shadow:0 18px 45px rgba(0,0,0,.42) !important;
}
body.aj-dark-mode .aj-theme-btn,
body.aj-dark-mode .aj-settings-action {
    background:#202428 !important;
    color:#EDEFF0 !important;
    border-color:#343A3F !important;
}
body.aj-dark-mode .aj-theme-btn:hover,
body.aj-dark-mode .aj-settings-action:hover {
    background:#292E32 !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 16 ===== */

#homePage.home-dashboard .home-hero h1 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 17 ===== */

/* Surgical fix: restore the maintenance-calendar legend swatches only. */
.aj-calendar-legend .aj-cal-key.period{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#F3D6D9 !important;
  border:1px solid #E5B8BE !important;
  opacity:1 !important;
}
.aj-calendar-legend .aj-cal-key.last{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#7B1E2B !important;
  border:1px solid #7B1E2B !important;
  opacity:1 !important;
}
.aj-calendar-legend .aj-cal-key.complete-period{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#DDEFE2 !important;
  border:1px solid #B9DCC4 !important;
  opacity:1 !important;
}
.aj-calendar-legend .aj-cal-key.complete-last{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#2E7D4F !important;
  border:1px solid #2E7D4F !important;
  opacity:1 !important;
}
.aj-calendar-legend .aj-cal-key.completion-early{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#DCEBFA !important;
  border:1px solid #6FA8DC !important;
  opacity:1 !important;
}
.aj-calendar-legend .aj-cal-key.completion-late{
  display:inline-block !important;
  width:14px !important;height:14px !important;
  background-color:#F6D6DA !important;
  border:1px solid #B52B3A !important;
  opacity:1 !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 18 ===== */

/* Keep every chart legend fully accessible without a "+N more" summary. */
#homePage.home-dashboard .home-legend{
  max-height:170px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color:#B8C0C7 transparent;
}
#homePage.home-dashboard .home-legend::-webkit-scrollbar{width:6px;}
#homePage.home-dashboard .home-legend::-webkit-scrollbar-track{background:transparent;}
#homePage.home-dashboard .home-legend::-webkit-scrollbar-thumb{background:#B8C0C7;border-radius:8px;}
#homePage.home-dashboard .home-zone-share .home-legend{max-height:170px !important;}

/* Application-native maintenance confirmation dialog. */
#customModal > div.aj-confirm-dialog{
  width:min(500px,calc(100vw - 32px)) !important;
  max-width:500px !important;
  padding:28px !important;
  border:1px solid #E1E4E7 !important;
  border-radius:16px !important;
  box-shadow:0 22px 55px rgba(0,0,0,.28) !important;
}
#customModal > div.aj-confirm-dialog #modalTitle{
  font-size:20px !important;
  color:#111 !important;
  margin-bottom:12px !important;
}
#customModal .aj-maint-confirm-body{
  color:#4B535A;
  font-size:13px;
  line-height:1.55;
  padding:14px 16px;
  background:#F5F7F8;
  border:1px solid #E3E6E8;
  border-left:4px solid #6FA8DC;
  border-radius:10px;
}
#customModal > div.aj-confirm-dialog #modalCancelBtn,
#customModal > div.aj-confirm-dialog #modalOkBtn{
  min-width:92px !important;
  height:42px !important;
  border:1px solid #D8DDE1 !important;
  border-radius:9px !important;
  font-size:13px !important;
  font-weight:800 !important;
  cursor:pointer !important;
}
#customModal > div.aj-confirm-dialog #modalCancelBtn{background:#fff !important;color:#222 !important;}
#customModal > div.aj-confirm-dialog #modalOkBtn{background:#111 !important;color:#fff !important;border-color:#111 !important;}
#customModal > div.aj-confirm-dialog #modalCancelBtn:hover{background:#F2F4F5 !important;}
#customModal > div.aj-confirm-dialog #modalOkBtn:hover{background:#2B2F33 !important;}
body.aj-dark-mode #customModal > div.aj-confirm-dialog{
  background:#1A1D20 !important;
  border-color:#343A3F !important;
  color:#F2F4F5 !important;
}
body.aj-dark-mode #customModal > div.aj-confirm-dialog #modalTitle{color:#F2F4F5 !important;}
body.aj-dark-mode #customModal .aj-maint-confirm-body{
  background:#22272B;
  border-color:#363D43;
  color:#C8CED2;
}
body.aj-dark-mode #customModal > div.aj-confirm-dialog #modalCancelBtn{
  background:#22272B !important;color:#F2F4F5 !important;border-color:#3A4147 !important;
}
body.aj-dark-mode #customModal > div.aj-confirm-dialog #modalOkBtn{
  background:#6FA8DC !important;color:#fff !important;border-color:#6FA8DC !important;
}


/* ===== ORIGINAL INLINE STYLE BLOCK 19 ===== */

/* =========================================================
   AJOPTIX ZONE-BASED MAINTENANCE SCHEDULING
   Working schedule is staged in memory. It becomes persistent only
   when the existing Admin Dashboard Save Changes action is clicked.
   ========================================================= */
.aj-maint-schedule-btn{height:38px!important;padding:0 13px!important;background:#E7A33E!important;color:#111!important;border:none!important;border-radius:9px!important;font-weight:800!important;white-space:nowrap!important;}
.aj-maint-schedule-btn:hover{filter:brightness(.96);transform:translateY(-1px);}
.aj-home-maintenance-calendar-card{cursor:pointer;margin:0 0 18px!important;}
.aj-home-maintenance-calendar-card:focus{outline:2px solid #6FA8DC;outline-offset:2px;}
.aj-calendar-open-btn{margin:0!important;padding:9px 13px!important;border:0!important;border-radius:9px!important;background:#111!important;color:#fff!important;font-weight:800!important;cursor:pointer;}
.aj-calendar-open-btn:hover{background:#6FA8DC!important;}
.aj-calendar-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 0 12px;color:#777;font-size:12px;font-weight:700;}
.aj-cal-key{width:14px;height:14px;border-radius:4px;display:inline-block;vertical-align:-2px;margin-right:6px;border:1px solid rgba(0,0,0,.08);}
.aj-cal-key.period{background:#FCE1E1;}
.aj-cal-key.last{background:#7B1E2B !important;}
.aj-cal-key.complete-period{background:#DDEFE2 !important;}
.aj-cal-key.complete-last{background:#2E7D4F !important;}
.aj-cal-key.completion-early{background:#DCEBFA !important;border-color:#6FA8DC !important;}
.aj-cal-key.completion-late{background:#F6D6DA !important;border-color:#B52B3A !important;}
.aj-cal-key.completion-ontime{background:#E1F4E7 !important;border-color:#4F9A67 !important;}
.aj-mini-cal{width:100%;border:1px solid #E3E5E8;border-radius:14px;overflow:hidden;background:#fff;}
.aj-mini-cal-head{display:flex;justify-content:flex-start;align-items:center;padding:12px 14px;background:#F7F8F9;border-bottom:1px solid #E3E5E8;}
.aj-mini-cal-title{font-size:16px;font-weight:800;color:#111;}
.aj-mini-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);}
.aj-mini-cal-dow{padding:8px 4px;text-align:center;font-size:10px;font-weight:800;color:#777;background:#FAFAFA;border-bottom:1px solid #E8E8E8;}
.aj-mini-cal-day{min-height:56px;padding:7px;border-right:1px solid #ECEDEF;border-bottom:1px solid #ECEDEF;background:#fff;position:relative;}
.aj-mini-cal-day:nth-child(7n){border-right:0;}
.aj-mini-cal-day.muted{background:#FAFAFA;color:#B8BCC1;}
.aj-mini-cal-day.period{background:#FCE1E1;}
.aj-mini-cal-day.last{background:#D92D2D;color:#fff;}
.aj-mini-cal-day .num{font-size:12px;font-weight:800;display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;}
.aj-mini-cal-day.last .num{background:#fff;color:#D92D2D;}
.aj-mini-cal-day .event-count{display:block;font-size:9px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8A3030;font-weight:700;}
.aj-mini-cal-day.last .event-count{color:#fff;}
.aj-cal-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;white-space:nowrap;}
.aj-cal-nav button{margin:0!important;min-width:40px;width:auto;height:38px;padding:0 12px!important;border:1px solid #DADDE1!important;background:#fff!important;color:#111!important;border-radius:9px!important;font-weight:800!important;line-height:1!important;box-sizing:border-box;}
.aj-cal-nav button.aj-today-btn{min-width:72px;}
.aj-cal-nav button:hover{background:#6FA8DC!important;color:#fff!important;}

#ajMaintenanceCalendarPage{display:none;position:fixed;inset:0;z-index:12000;background:#EDEDED;overflow:auto;}
#ajMaintenanceCalendarPage .aj-mcp-top{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #DDD;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 4px 16px rgba(0,0,0,.08);}
#ajMaintenanceCalendarPage .aj-mcp-title{font-size:24px;font-weight:900;color:#111;}
#ajMaintenanceCalendarPage .aj-mcp-sub{font-size:12px;color:#777;margin-top:3px;}
#ajMaintenanceCalendarPage .aj-mcp-body{max-width:1450px;margin:0 auto;padding:24px;}
.aj-full-cal-card{background:#fff;border:1px solid #DDD;border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.08);padding:18px;margin-bottom:20px;}
.aj-full-cal-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px;}
#ajMaintenanceCalendarPage .aj-full-cal-controls > .aj-cal-nav{margin-left:auto;}
.aj-full-cal-controls h2{margin:0;font-size:20px;color:#111;}
.aj-full-cal-controls button{margin:0!important;}
.aj-full-cal-grid .aj-mini-cal-day{min-height:100px;}
.aj-full-cal-grid .aj-mini-cal-day .event-count{font-size:10px;white-space:normal;line-height:1.25;}
.aj-schedule-table-wrap{overflow:auto;border:1px solid #E1E3E6;border-radius:12px;}
.aj-schedule-table{width:100%;border-collapse:collapse;min-width:900px;background:#fff;}
.aj-schedule-table th{background:#111;color:#fff;text-align:left;padding:11px 12px;font-size:11px;white-space:nowrap;}
.aj-schedule-table td{padding:11px 12px;border-bottom:1px solid #E7E8EA;font-size:12px;color:#222;vertical-align:middle;}
.aj-schedule-table tr:last-child td{border-bottom:0;}
.aj-schedule-table .zone-name{font-weight:800;}
.aj-schedule-table .period-pill{display:inline-block;padding:5px 8px;border-radius:7px;background:#FCE1E1;color:#8A3030;font-weight:800;}
.aj-schedule-table .last-pill{display:inline-block;padding:5px 8px;border-radius:7px;background:#D92D2D;color:#fff;font-weight:800;}
.aj-zone-form-table{width:100%;border-collapse:collapse;min-width:1000px;}
.aj-zone-form-table th{background:#111;color:#fff;padding:10px;text-align:left;font-size:11px;}
.aj-zone-form-table td{padding:9px;border-bottom:1px solid #E6E7E9;}
.aj-zone-form-table input,.aj-zone-form-table select{width:100%;height:38px;border:1px solid #D8DBDF;border-radius:8px;padding:0 9px;box-sizing:border-box;background:#fff;color:#111;}
.aj-zone-form-note{background:#F4F7FA;border-left:4px solid #6FA8DC;padding:12px 14px;border-radius:8px;margin-bottom:14px;color:#555;font-size:12px;line-height:1.5;}
.aj-empty-schedule{padding:24px;text-align:center;color:#777;border:1px dashed #CCC;border-radius:10px;}
.aj-schedule-helper{font-size:12px;color:#777;line-height:1.45;margin-top:4px;}
.aj-scheduler-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.aj-schedule-state{font-size:11px;font-weight:800;color:#777;}
.aj-primary-btn,.aj-save-schedule-btn{margin:0!important;border:0!important;border-radius:9px!important;padding:10px 14px!important;font-weight:800!important;cursor:pointer!important;}
.aj-primary-btn{background:#111!important;color:#fff!important;}
.aj-primary-btn:hover{background:#6FA8DC!important;}
.aj-save-schedule-btn{background:#6FA8DC!important;color:#fff!important;}
.aj-save-schedule-btn:hover{filter:brightness(.95);}
.aj-zone-editor-wrap{overflow:auto;border:1px solid #E1E3E6;border-radius:12px;}
.aj-zone-editor-table{width:100%;min-width:980px;border-collapse:collapse;}
.aj-zone-editor-table th{background:#111;color:#fff;text-align:left;padding:11px 12px;font-size:11px;white-space:nowrap;}
.aj-zone-editor-table td{padding:9px 10px;border-bottom:1px solid #E7E8EA;vertical-align:middle;}
.aj-zone-editor-table tr:last-child td{border-bottom:0;}
.aj-zone-editor-table input,.aj-zone-editor-table select{width:100%;height:38px;border:1px solid #D8DBDF;border-radius:8px;padding:0 9px;box-sizing:border-box;background:#fff;color:#111;font:inherit;}
.aj-zone-editor-table .zone-count{font-size:11px;color:#777;margin-top:3px;}
.aj-upcoming-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;}
.aj-upcoming-item{border:1px solid #E2E4E7;border-radius:12px;padding:14px;background:#FAFAFA;}
.aj-upcoming-zone{font-size:15px;font-weight:900;color:#111;}
.aj-upcoming-date{margin-top:7px;font-size:13px;font-weight:800;color:#8A3030;}
.aj-upcoming-meta{margin-top:5px;font-size:11px;color:#777;line-height:1.45;}
.aj-upcoming-last{display:inline-block;margin-top:8px;padding:4px 7px;border-radius:6px;background:#D92D2D;color:#fff;font-size:10px;font-weight:800;}
.aj-maint-kpi-card .home-kpi-value{font-variant-numeric:tabular-nums;}
.aj-checklist-head{align-items:flex-start;}
.aj-checklist-summary{padding:8px 11px;border-radius:9px;background:#F3F6F8;color:#333;font-size:12px;font-weight:900;white-space:nowrap;}
.aj-checklist-zone{border:1px solid #E0E3E6;border-radius:14px;overflow:hidden;margin-bottom:14px;background:#fff;}
.aj-checklist-zone-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#F7F8F9;border-bottom:1px solid #E0E3E6;}
.aj-checklist-zone-title{font-size:15px;font-weight:900;color:#111;}
.aj-checklist-zone-meta{font-size:11px;color:#777;margin-top:3px;}
.aj-checklist-progress{font-size:11px;font-weight:900;color:#555;}
.aj-checklist-table-wrap{overflow:auto;}
.aj-checklist-table{width:100%;border-collapse:collapse;min-width:900px;}
.aj-checklist-table th{background:#111;color:#fff;text-align:left;padding:10px 11px;font-size:11px;white-space:nowrap;}
.aj-checklist-table td{padding:9px 11px;border-bottom:1px solid #E9EAEC;font-size:12px;color:#222;vertical-align:middle;}
.aj-checklist-table tr:last-child td{border-bottom:0;}
.aj-checklist-table .unit-type{font-weight:800;}
.aj-checklist-table .unit-serial{font-weight:900;}
.aj-checklist-table .unit-model{color:#555;}
.aj-maint-check{width:18px;height:18px;accent-color:#2E8B57;cursor:pointer;}
.aj-maint-check:disabled{opacity:.42;cursor:not-allowed;}
.aj-maint-date{height:34px;border:1px solid #D8DBDF;border-radius:8px;padding:0 8px;background:#fff;color:#111;box-sizing:border-box;}
.aj-maint-date:disabled{background:#F1F2F3;color:#A0A4A8;border-color:#E1E3E5;cursor:not-allowed;opacity:.72;}
.aj-checklist-table tr.aj-maint-completed{background:#FAFAFA;}
.aj-checklist-table tr.aj-maint-completed td{color:#8A8F94;}
body.aj-dark-mode .aj-maint-check:disabled{opacity:.35;}
body.aj-dark-mode .aj-maint-date:disabled{background:#16191C;color:#737A82;border-color:#2C3136;opacity:.68;}
.aj-timing-pill{display:inline-block;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:900;white-space:nowrap;}
.aj-timing-pill.pending{background:#F2F3F5;color:#666;}
.aj-overdue-note{display:inline-block;margin-left:6px;padding:2px 5px;border-radius:5px;background:#FCE1E1;color:#8E2432;font-size:9px;font-weight:800;}
.aj-timing-pill.ontime{background:#E1F4E7;color:#25733A;}
.aj-timing-pill.late{background:#FCE1E1;color:#A52A2A;}
.aj-timing-pill.early{background:#EAF2FB;color:#245B8A;}
.aj-checklist-note{padding:10px 12px;color:#777;font-size:11px;border-top:1px solid #E8E9EB;background:#FAFAFA;}
.aj-schedule-table .serial-summary{display:flex;flex-wrap:wrap;gap:5px;}
.aj-schedule-table .serial-chip{display:inline-block;padding:4px 7px;border-radius:6px;background:#F3F5F7;color:#333;font-size:10px;font-weight:800;}
body.aj-dark-mode .aj-checklist-summary{background:#262B2F;color:#E8EAED;}
body.aj-dark-mode .aj-checklist-zone{background:#171A1D;border-color:#34393E;}
body.aj-dark-mode .aj-checklist-zone-head{background:#202428;border-color:#34393E;}
body.aj-dark-mode .aj-checklist-zone-title,body.aj-dark-mode .aj-checklist-table td{color:#E8EAED;}
body.aj-dark-mode .aj-checklist-table th{background:#0B0D0F;}
body.aj-dark-mode .aj-checklist-table td{border-color:#30353A;}
body.aj-dark-mode .aj-maint-date{background:#202428;color:#F1F3F5;border-color:#454B52;}
body.aj-dark-mode .aj-maint-date:disabled{background:#16191C;color:#737A82;}
body.aj-dark-mode .aj-checklist-note{background:#15181B;border-color:#30353A;color:#9CA3AA;}
body.aj-dark-mode .aj-schedule-table .serial-chip{background:#292E32;color:#E5E7EB;}
@media(max-width:900px){
  .aj-scheduler-actions{justify-content:flex-start;}
}
@media(max-width:900px){
  .aj-home-maintenance-calendar-card .home-panel-head{align-items:flex-start;gap:10px;}
  #ajMaintenanceCalendarPage .aj-mcp-top{align-items:flex-start;flex-direction:column;}
  #ajMaintenanceCalendarPage .aj-mcp-body{padding:14px;}
}


/* ===== ORIGINAL INLINE STYLE BLOCK 20 ===== */

.aj-checklist-table tr.aj-maint-completed .aj-maint-check,
.aj-checklist-table tr.aj-maint-completed .aj-maint-date{
  opacity:.72;
  cursor:pointer;
}
.aj-checklist-table tr.aj-maint-completed .aj-maint-date:focus,
.aj-checklist-table tr.aj-maint-completed .aj-maint-check:focus{
  opacity:1;
}
