:root {
    --bg: #09111f;
    --bg-soft: #0d1728;
    --sidebar: #0b1424;
    --panel: #111d30;
    --panel-soft: #152238;
    --panel-hover: #192941;
    --border: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(148, 163, 184, 0.26);
    --text: #f8fafc;
    --muted: #8fa1b9;
    --muted-2: #64748b;
    --cyan: #23c5dd;
    --cyan-dark: #0891b2;
    --cyan-soft: rgba(35, 197, 221, 0.12);
    --orange: #ff9b51;
    --orange-soft: rgba(255, 155, 81, 0.14);
    --green: #3dd598;
    --green-soft: rgba(61, 213, 152, 0.12);
    --violet: #9b87f5;
    --violet-soft: rgba(155, 135, 245, 0.13);
    --red: #fb7185;
    --red-soft: rgba(251, 113, 133, 0.12);
    --yellow: #facc15;
    --yellow-soft: rgba(250, 204, 21, 0.12);
    --sidebar-width: 264px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; }
::selection { color: #06101c; background: var(--cyan); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.025); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border: 3px solid transparent; border-radius: 20px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.42); background-clip: padding-box; }

.dashboard-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 76% -20%, rgba(35,197,221,.08), transparent 28%),
        linear-gradient(135deg, #09111f 0%, #0b1424 45%, #09111f 100%);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 18px;
    border-right: 1px solid var(--border);
    background: rgba(9, 17, 31, .92);
    backdrop-filter: blur(22px);
}

.brand, .auth-brand { display: flex; align-items: center; gap: 12px; }
.brand { justify-content: center; min-height: 100px; padding: 0 8px 22px; border-bottom: 1px solid var(--border); }
.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(35,197,221,.14));
}
.brand-logo-sidebar {
    width: 150px;
    max-height: 88px;
}
.brand-mark {
    position: relative;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #07131e;
    font-size: 20px;
    font-weight: 900;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--cyan), #8be8ef 58%, var(--orange));
    box-shadow: 0 10px 28px rgba(35,197,221,.2);
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(5,15,25,.22); border-radius: 9px; }
.brand-mark span { position: relative; z-index: 1; }
.brand strong, .auth-brand strong { display: block; letter-spacing: .12em; font-size: 15px; }
.brand small, .auth-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.sidebar-nav { min-height: 0; flex: 1; display: grid; align-content: start; gap: 9px; overflow-y: auto; margin: 0 -7px 0 0; padding: 22px 7px 22px 0; }
.nav-group { border: 1px solid transparent; border-radius: 14px; transition: border-color .2s ease, background .2s ease; }
.nav-group.open { border-color: var(--border); background: rgba(255,255,255,.018); }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-align: left; text-transform: uppercase; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.nav-group-toggle:hover { color: var(--text); }
.nav-group-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; transition: transform .22s ease; }
.nav-group.open .nav-group-toggle svg { transform: rotate(180deg); }
.nav-group-panel { display: grid; gap: 3px; max-height: 0; overflow: hidden; padding: 0 5px; opacity: 0; transition: max-height .3s ease, opacity .2s ease, padding .25s ease; }
.nav-group.open .nav-group-panel { max-height: 520px; padding: 0 5px 6px; opacity: 1; }
.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 9px;
    color: var(--muted);
    font-weight: 650;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; fill: currentColor; }
.nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--cyan); border-color: rgba(35,197,221,.16); background: var(--cyan-soft); box-shadow: inset 3px 0 0 var(--cyan); }

.sidebar-foot { margin-top: auto; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.025); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: var(--cyan); font-weight: 800; border-radius: 10px; background: var(--cyan-soft); }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 12px; }
.user-meta span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--cyan); border-color: rgba(35,197,221,.25); background: var(--cyan-soft); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle { color: var(--muted); }
.theme-icon { display: none !important; }
.theme-toggle:not([data-active-theme]) .theme-icon-sun,
.theme-toggle[data-active-theme="dark"] .theme-icon-sun,
.theme-toggle[data-active-theme="light"] .theme-icon-moon { display: block !important; }
.logout-button { width: 32px; height: 32px; color: var(--muted); border: 0; background: transparent; }
.logout-button svg { width: 17px; height: 17px; }

.app-main { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .25s ease; }
.sidebar { transition: transform .25s ease; }
.sidebar-toggle-desktop { display: grid; }
@media (min-width: 1025px) {
    html.sidebar-hidden .sidebar { transform: translateX(-101%); box-shadow: none; }
    html.sidebar-hidden .app-main { margin-left: 0; }
}
.sidebar-toggle-desktop[aria-pressed="true"] svg { transform: scaleX(-1); }
.topbar {
    height: 86px;
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 34px;
    border-bottom: 1px solid var(--border);
    background: rgba(9,17,31,.78);
    backdrop-filter: blur(22px);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar h1 { margin: 3px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.eyebrow, .panel-kicker, .login-kicker { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.date-chip, .system-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); font-size: 11px; font-weight: 650; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.025); }
.date-chip svg { width: 15px; height: 15px; fill: var(--cyan); }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.mobile-menu { display: none; }
.event-switcher { display: flex; align-items: center; gap: 8px; }
.event-switcher.timeline-standalone { display: none; }
.event-switcher label { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-combobox { width: min(280px, 22vw); position: relative; }
.event-combobox-toggle { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 10px 0 12px; color: var(--text); border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.03); cursor: pointer; }
.event-combobox-toggle > span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.event-combobox-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; transition: transform .2s ease; }
.event-combobox.open .event-combobox-toggle { border-color: rgba(35,197,221,.52); box-shadow: 0 0 0 3px var(--cyan-soft); }
.event-combobox.open .event-combobox-toggle svg { transform: rotate(180deg); }
.event-combobox-menu { width: min(360px, calc(100vw - 28px)); position: absolute; top: calc(100% + 8px); right: 0; z-index: 130; overflow: hidden; padding: 8px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 14px; background: #111d30; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.event-combobox-menu[hidden] { display: none; }
.event-switcher .event-search-box, .form-event-picker .event-search-box { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); letter-spacing: 0; text-transform: none; border: 1px solid var(--border); border-radius: 9px; background: rgba(6,13,24,.72); }
.event-search-box svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }
.event-search-box input { width: 100%; min-width: 0; padding: 0; color: var(--text); font-size: 11px; font-weight: 500; border: 0; outline: 0; background: transparent; }
.event-search-box input::placeholder { color: var(--muted-2); }
.event-option-list { max-height: 250px; margin-top: 7px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.event-option { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; color: var(--text); text-align: left; border: 0; border-radius: 9px; background: transparent; cursor: pointer; transition: color .18s ease, background .18s ease; }
.event-option[hidden] { display: none; }
.event-option:hover, .event-option:focus-visible { color: var(--text); outline: 0; background: rgba(255,255,255,.055); }
.event-option.selected { color: var(--cyan); background: var(--cyan-soft); }
.event-option span, .event-option strong, .event-option small { min-width: 0; display: block; }
.event-option strong { overflow: hidden; color: inherit; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.event-option small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.event-option i { flex: 0 0 auto; color: var(--cyan); font-size: 11px; font-style: normal; opacity: 0; }
.event-option.selected i { opacity: 1; }
.event-no-results { padding: 20px 12px; color: var(--muted); font-size: 10px; text-align: center; }
.event-no-results[hidden] { display: none; }
.form-event-picker { width: 100%; position: relative; }
.form-event-picker-toggle { width: 100%; min-height: 43px; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: var(--text); text-align: left; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(7,14,25,.72); cursor: pointer; transition: .2s ease; }
.form-event-picker-toggle > span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.form-event-picker-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; transition: transform .2s ease; }
.form-event-picker.enhanced > select { display: none; }
.form-event-picker.enhanced .form-event-picker-toggle { display: flex; }
.form-event-picker.open .form-event-picker-toggle { border-color: rgba(35,197,221,.52); box-shadow: 0 0 0 3px var(--cyan-soft); }
.form-event-picker.open .form-event-picker-toggle svg { transform: rotate(180deg); }
.form-event-picker.invalid .form-event-picker-toggle { border-color: rgba(251,113,133,.72); box-shadow: 0 0 0 3px var(--red-soft); }
.form-event-picker-menu { width: 100%; position: absolute; top: calc(100% + 7px); left: 0; z-index: 80; overflow: hidden; padding: 8px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 13px; background: #111d30; box-shadow: 0 22px 60px rgba(0,0,0,.42); }
.form-event-picker-menu[hidden] { display: none; }
.form-event-picker .event-option-list { max-height: 220px; }
.checklist-filter-event-picker { width: min(390px,100%); flex: 0 1 390px; }
.checklist-filter-event-picker .form-event-picker-menu { min-width: min(390px,calc(100vw - 48px)); }
.table-toolbar .checklist-filter-event-picker .event-search-box input { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.notification-menu { position: relative; }
.notification-toggle { position: relative; color: var(--muted); }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; color: #fff; font-size: 9px; font-weight: 850; border: 2px solid var(--bg); border-radius: 12px; background: var(--red); }
.notification-dropdown { width: min(390px, calc(100vw - 28px)); position: absolute; top: calc(100% + 12px); right: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 16px; background: #111d30; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.notification-dropdown[hidden] { display: none; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.notification-head strong, .notification-head span { display: block; }
.notification-head strong { font-size: 13px; }.notification-head span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.notification-head form { margin: 0; }.notification-head button { padding: 4px 0; color: var(--cyan); font-size: 9px; font-weight: 750; border: 0; background: transparent; cursor: pointer; }
.notification-list { max-height: 380px; overflow-y: auto; }
.notification-item { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background .2s ease; }
.notification-item:hover { background: rgba(255,255,255,.035); }.notification-item:last-child { border-bottom: 0; }
.notification-item > i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.notification-item.type-warning > i { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.notification-item.type-danger > i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.notification-item strong, .notification-item small, .notification-item time { display: block; }
.notification-item strong { font-size: 11px; }.notification-item small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }.notification-item time { margin-top: 7px; color: var(--muted-2); font-size: 8px; }
.notification-empty { padding: 30px 18px; color: var(--muted); font-size: 11px; text-align: center; }

.content-wrap { max-width: 1700px; margin: 0 auto; padding: 30px 34px 52px; }
.workspace-tab { display: none; animation: panelIn .35s ease both; }
.workspace-tab.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 13px 15px; font-size: 12px; line-height: 1.55; border: 1px solid; border-radius: 13px; animation: panelIn .25s ease; }
.alert button { padding: 0; color: currentColor; font-size: 20px; line-height: 1; border: 0; background: transparent; cursor: pointer; opacity: .75; }
.alert-success { color: #b8f5dd; border-color: rgba(61,213,152,.24); background: var(--green-soft); }
.alert-danger { color: #fecdd3; border-color: rgba(251,113,133,.24); background: var(--red-soft); }
.validation-alert ul { margin: 5px 0 0; padding-left: 18px; }

.hero-panel {
    position: relative;
    min-height: 214px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: 38px 42px;
    border: 1px solid rgba(35,197,221,.16);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(110deg, rgba(35,197,221,.1), transparent 42%),
        linear-gradient(135deg, #14243a, #101b2e 60%, #132238);
    box-shadow: var(--shadow);
}
.hero-copy, .hero-actions { position: relative; z-index: 2; }
.hero-copy h2 { max-width: 760px; margin: 10px 0 10px; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.03; letter-spacing: -.045em; }
.hero-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-decoration { position: absolute; inset: 0 0 0 auto; width: 42%; pointer-events: none; opacity: .8; }
.hero-decoration span { position: absolute; border: 1px solid rgba(35,197,221,.18); border-radius: 50%; }
.hero-decoration span:nth-child(1) { width: 340px; height: 340px; right: -70px; top: -90px; }
.hero-decoration span:nth-child(2) { width: 245px; height: 245px; right: -20px; top: -42px; }
.hero-decoration span:nth-child(3) { width: 9px; height: 9px; right: 88px; top: 64px; border: 0; background: var(--orange); box-shadow: 0 0 30px var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; font-weight: 750; font-size: 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #06131c; background: linear-gradient(135deg, var(--cyan), #6de0e9); box-shadow: 0 12px 28px rgba(35,197,221,.14); }
.btn-primary:hover { box-shadow: 0 15px 35px rgba(35,197,221,.22); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,.035); }
.btn-ghost:hover { border-color: rgba(35,197,221,.3); background: var(--cyan-soft); }
.btn-danger { color: #fff; background: #e5485e; }
.btn-small { min-height: 34px; padding: 7px 12px; border-radius: 9px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { position: relative; min-height: 156px; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(21,34,56,.94), rgba(15,26,44,.94)); box-shadow: 0 16px 42px rgba(0,0,0,.12); }
.metric-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -45px; bottom: -55px; border-radius: 50%; background: rgba(255,255,255,.025); }
.metric-card > span { display: block; margin-top: 15px; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-card > strong { display: block; margin-top: 6px; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.035em; }
.metric-card > strong.metric-value-exact { font-size: clamp(16px, 1.45vw, 24px); overflow-wrap: anywhere; line-height: 1.15; }
.metric-card > small { display: block; margin-top: 8px; color: var(--muted-2); font-size: 10px; }
.metric-card > strong.metric-value-invoiced { color: var(--green); text-shadow: 0 0 24px rgba(61,213,152,.16); }
.metric-card > strong.metric-value-uninvoiced { color: var(--orange); text-shadow: 0 0 24px rgba(255,155,81,.16); }
.metric-card > small.metric-count-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.metric-count-highlight { display: inline-flex; align-items: baseline; gap: 4px; min-height: 28px; padding: 4px 10px; line-height: 1; font-weight: 900; border: 1px solid transparent; border-radius: 9px; }
.metric-count-number { font-size: 15px; letter-spacing: -.02em; }
.metric-count-unit { font-size: 9px; letter-spacing: .08em; }
.metric-count-highlight.invoiced { color: #86efc2; border-color: rgba(61,213,152,.38); background: linear-gradient(135deg,rgba(61,213,152,.20),rgba(61,213,152,.09)); box-shadow: 0 7px 18px rgba(61,213,152,.08); }
.metric-count-highlight.uninvoiced { color: #fdba74; border-color: rgba(255,155,81,.40); background: linear-gradient(135deg,rgba(255,155,81,.22),rgba(255,155,81,.09)); box-shadow: 0 7px 18px rgba(255,155,81,.08); }
.metric-primary { border-color: rgba(35,197,221,.22); background: linear-gradient(145deg, rgba(20,52,66,.82), rgba(14,29,47,.96)); }
.metric-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--cyan); border-radius: 10px; background: var(--cyan-soft); }
.metric-icon svg { width: 18px; height: 18px; fill: currentColor; }
.icon-orange { color: var(--orange); background: var(--orange-soft); }
.icon-violet { color: var(--violet); background: var(--violet-soft); }
.icon-green { color: var(--green); background: var(--green-soft); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 18px; margin-top: 18px; }
.overview-finance-stack { display: grid; gap: 18px; margin-top: 18px; }
.secondary-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(16,29,48,.88); box-shadow: 0 18px 52px rgba(0,0,0,.13); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 23px 0; }
.panel-head h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.chart-wrap { position: relative; height: 290px; padding: 15px 18px 20px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; }
.legend-rab { background: var(--cyan); }.legend-rap { background: var(--violet); }.legend-profit { background: var(--orange); }
.category-mice { background: #3b82f6; }.category-pengadaan { background: #f97316; }.category-event { background: #22c55e; }
.chart-legend i.category-actual { background: #14b8a6; }
.chart-head-tools { display: grid; justify-items: end; gap: 10px; }
.chart-filters { justify-content: flex-end; }
.chart-filters select { min-width: 112px; }
.finance-chart-wrap { overflow: hidden; }
.finance-chart-wrap canvas { min-width: 0; max-width: 100%; display: block; }
.chart-footnote { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -8px 22px 18px; color: var(--muted); font-size: 9px; }
.chart-footnote span { display: inline-flex; align-items: center; gap: 5px; }.chart-footnote i { width: 12px; height: 7px; border-radius: 2px; background: var(--cyan); }.chart-footnote .bar-soft { opacity: .42; }.chart-footnote small { margin-left: auto; color: var(--muted-2); }

.type-list { display: grid; gap: 18px; padding: 25px 23px; }
.overview-portfolio-panel .type-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.type-row-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.type-row-head span { display: flex; align-items: center; gap: 8px; }
.type-row-head strong { color: var(--text); }
.type-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.type-mice { background: var(--green); }.type-pengadaan { background: var(--yellow); }.type-proposal { background: var(--violet); }.type-meeting { background: var(--red); }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.055); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-dark), var(--cyan)); }

.activity-list { padding: 14px 23px 20px; }
.activity-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.action-delete { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }.action-update { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }.action-login { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: 11px; font-weight: 650; }
.activity-item div > span { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.activity-module { padding: 5px 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; border: 1px solid var(--border); border-radius: 6px; }

.health-panel { padding-bottom: 22px; }
.health-ring { --progress: 0; width: 150px; height: 150px; display: grid; place-items: center; margin: 25px auto 22px; border-radius: 50%; background: conic-gradient(var(--cyan) calc(var(--progress) * 1%), rgba(255,255,255,.06) 0); position: relative; }
.health-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.health-ring > div { position: relative; z-index: 1; text-align: center; }
.health-ring strong, .health-ring span { display: block; }.health-ring strong { font-size: 28px; }.health-ring span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.health-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 22px; }
.health-stats div { padding: 11px; text-align: center; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); }
.health-stats span, .health-stats strong { display: block; }.health-stats span { color: var(--muted); font-size: 9px; }.health-stats strong { margin-top: 6px; font-size: 12px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 6px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.summary-strip { display: grid; gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--border); }
.five-cols { grid-template-columns: repeat(5, minmax(0,1fr)); }
.summary-strip > div { min-height: 99px; position: relative; padding: 20px; background: rgba(16,29,48,.96); }
.summary-strip span, .summary-strip strong, .summary-strip small { display: block; }.summary-strip span { color: var(--muted); font-size: 10px; }.summary-strip strong { margin-top: 9px; font-size: 19px; letter-spacing: -.025em; overflow-wrap: anywhere; line-height: 1.2; }.summary-strip small { position: absolute; right: 16px; top: 18px; color: var(--cyan); font-size: 9px; font-weight: 800; }
.summary-accent { background: linear-gradient(145deg, rgba(35,197,221,.15), rgba(16,29,48,.96)) !important; }.summary-accent strong { color: var(--cyan); }.summary-accent.violet { background: linear-gradient(145deg, rgba(155,135,245,.16), rgba(16,29,48,.96)) !important; }.summary-accent.violet strong { color: var(--violet); }.summary-accent.green { background: linear-gradient(145deg, rgba(61,213,152,.14), rgba(16,29,48,.96)) !important; }.summary-accent.green strong { color: var(--green); }

.data-panel { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--border); }
.table-toolbar input, .table-toolbar select { min-height: 38px; padding: 9px 11px; color: var(--text); font-size: 11px; outline: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(7,14,25,.65); }
.table-toolbar input:focus, .table-toolbar select:focus { border-color: rgba(35,197,221,.45); box-shadow: 0 0 0 3px var(--cyan-soft); }
.table-toolbar select { min-width: 145px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-top: 1px solid var(--border); }
.table-pagination > span, .table-pagination > div > span { color: var(--muted); font-size: 10px; }
.table-pagination > div { display: flex; align-items: center; gap: 10px; }
.table-pagination button:disabled { cursor: not-allowed; opacity: .4; }
.logbook-table { min-width: 1450px; table-layout: fixed; }
.logbook-table th, .logbook-table td { overflow-wrap: anywhere; white-space: normal; }
.logbook-table td { vertical-align: top; line-height: 1.55; }
.logbook-table th:nth-child(1) { width: 52px; }
.logbook-table th:nth-child(2) { width: 92px; }
.logbook-table th:nth-child(3) { width: 115px; }
.logbook-table th:nth-child(4) { width: 285px; }
.logbook-table th:nth-child(5) { width: 180px; }
.logbook-table th:nth-child(6) { width: 135px; }
.logbook-table th:nth-child(7) { width: 140px; }
.logbook-table th:nth-child(8) { width: 105px; }
.logbook-table th:nth-child(9), .logbook-table th:nth-child(10) { width: 205px; }
.logbook-table th:last-child { width: 115px; }
.logbook-activity-cell, .logbook-problem-cell, .logbook-notes-cell { white-space: pre-wrap !important; }
.logbook-activity-cell { color: var(--text); }
.logbook-problem-cell { color: #fda4af !important; }
.logbook-wrap-cell, .logbook-notes-cell { color: var(--muted); }
.search-box { min-width: 240px; max-width: 380px; flex: 1; position: relative; }
.search-box svg { width: 16px; height: 16px; position: absolute; left: 11px; top: 50%; z-index: 1; transform: translateY(-50%); fill: var(--muted); }
.search-box input { width: 100%; padding-left: 35px; }
.result-count { margin-left: auto; color: var(--muted-2); font-size: 10px; white-space: nowrap; }.result-count strong { color: var(--text); }

.table-scroll-top { width: 100%; overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 7px; }
.table-scroll-top.is-hidden { display: none; }
.table-scroll-top-inner { height: 1px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 1170px; border-spacing: 0; border-collapse: separate; }
.wide-table { min-width: 2500px; }
.data-table th, .data-table td { padding: 13px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.data-table th { position: sticky; top: 0; z-index: 2; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #111e31; }
.data-table td { color: #c5d0df; font-size: 10px; }
.data-table tbody tr { transition: background .17s ease; }.data-table tbody tr:hover { background: rgba(35,197,221,.025); }
.data-table tbody tr[hidden] { display: none; }
.data-table tfoot td { color: var(--text); font-size: 10px; font-weight: 750; border-bottom: 0; background: rgba(35,197,221,.055); }
.data-table th.col-freeze, .data-table td.col-freeze { position: sticky; left: 0; z-index: 3; background: var(--panel); }
.data-table th.col-freeze { z-index: 4; }
.data-table tbody tr:hover td.col-freeze { background: linear-gradient(rgba(35,197,221,.025), rgba(35,197,221,.025)), var(--panel); }
.table-scroll.is-scrolled .col-freeze { box-shadow: 6px 0 12px -6px rgba(0,0,0,.5); }
.row-number { color: var(--muted-2) !important; }.primary-cell { color: var(--text); font-size: 11px; }.text-positive { color: var(--green) !important; }.note-cell { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 5px; }
.table-action { padding: 6px 8px; color: var(--cyan); font-size: 9px; font-weight: 750; border: 1px solid rgba(35,197,221,.18); border-radius: 7px; background: var(--cyan-soft); cursor: pointer; }.table-action:hover { border-color: rgba(35,197,221,.4); }.table-action.danger { color: #fda4af; border-color: rgba(251,113,133,.17); background: var(--red-soft); }

.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 4px 8px; font-size: 8px; font-weight: 800; letter-spacing: .03em; border: 1px solid transparent; border-radius: 7px; }
.badge-success, .badge-green { color: #86efc2; border-color: rgba(61,213,152,.18); background: var(--green-soft); }.badge-info, .badge-cyan { color: #8ce8f1; border-color: rgba(35,197,221,.18); background: var(--cyan-soft); }.badge-warning, .badge-yellow { color: #fde047; border-color: rgba(250,204,21,.18); background: var(--yellow-soft); }.badge-danger, .badge-red { color: #fda4af; border-color: rgba(251,113,133,.18); background: var(--red-soft); }.badge-purple { color: #c4b5fd; border-color: rgba(155,135,245,.2); background: var(--violet-soft); }.badge-muted { color: #b0bed0; border-color: var(--border); background: rgba(148,163,184,.07); }

.empty-state { display: grid; place-items: center; min-height: 150px; color: var(--muted); font-size: 11px; text-align: center; }.empty-state.compact { min-height: 100px; }

.gantt-panel { margin-bottom: 18px; overflow: hidden; }
.overview-gantt-panel { margin-top: 18px; }
.gantt-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.gantt-filters label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.gantt-filters input, .gantt-filters select { height: 34px; padding: 0 10px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: rgba(7,14,25,.65); }
.gantt-month-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.gantt-month-label input { padding: 7px 9px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: rgba(7,14,25,.65); }
.gantt-wrap { max-height: 380px; overflow: auto; padding: 18px 22px 22px; }
.gantt-grid { width: max-content; min-width: 100%; border-spacing: 0; border-collapse: separate; }
.gantt-grid th, .gantt-grid td { height: 31px; min-width: 27px; padding: 0; text-align: center; font-size: 8px; border-right: 1px solid rgba(148,163,184,.08); border-bottom: 1px solid rgba(148,163,184,.08); }
.gantt-grid th { color: var(--muted-2); background: rgba(7,14,25,.45); }.gantt-grid .gantt-task { width: 190px; min-width: 190px; position: sticky; left: 0; z-index: 2; padding: 0 10px; text-align: left; color: #d9e2ee; background: #111d30; }.gantt-cell.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }.gantt-cell.today { box-shadow: inset 0 -2px 0 var(--orange); }
.overview-gantt-grid .gantt-task { width: 245px; min-width: 245px; }
.code-cell { color: var(--cyan); font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.cell-meta { display: block; margin-top: 4px; color: var(--cyan); font-size: 8px; font-weight: 750; letter-spacing: .03em; }
.excel-import-box { position: relative; display: grid; place-items: center; gap: 8px; margin: 20px 0 8px; padding: 34px 20px; text-align: center; border: 1px dashed rgba(35,197,221,.35); border-radius: 15px; background: var(--cyan-soft); }
.excel-import-box svg { width: 34px; height: 34px; fill: var(--cyan); }.excel-import-box strong { font-size: 14px; }.excel-import-box span { max-width: 360px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.excel-import-box input { width: 100%; margin-top: 8px; padding: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; background: rgba(7,14,25,.55); }

.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; animation: modalFade .2s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,7,15,.78); backdrop-filter: blur(8px); }
.modal-dialog { width: min(680px, 100%); max-height: calc(100vh - 48px); position: relative; z-index: 1; overflow-y: auto; padding: 24px; border: 1px solid var(--border-strong); border-radius: 21px; background: #111d30; box-shadow: 0 30px 100px rgba(0,0,0,.5); animation: modalUp .25s ease; }
.modal-wide { width: min(1020px, 100%); }
@keyframes modalUp { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }.modal-head h3 { margin: 7px 0 0; font-size: 21px; }.modal-close { width: 34px; height: 34px; padding: 0; color: var(--muted); font-size: 25px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--border); }.modal-actions.centered { justify-content: center; }
.modal-confirm { width: min(430px, 100%); text-align: center; }.modal-confirm h3 { margin: 12px 0 7px; }.modal-confirm p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.confirm-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto; color: #fecdd3; font-size: 22px; font-weight: 800; border-radius: 50%; background: var(--red-soft); box-shadow: 0 0 0 7px rgba(251,113,133,.04); }
body.modal-open { overflow: hidden; }

.form-grid { display: grid; gap: 15px; }.two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }.three-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }.full-field { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }.field > span { color: var(--muted); font-size: 10px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--text); outline: 0; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(7,14,25,.72); transition: .2s ease; }.field textarea { min-height: 80px; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(35,197,221,.5); box-shadow: 0 0 0 3px var(--cyan-soft); }

.mobile-overlay { display: none; }

/* Authentication */
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(35,197,221,.09), transparent 32%),
        #08111e;
}
.auth-simple-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(390px, 100%);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #101d30;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    margin-bottom: 24px;
}
.brand-logo-login { width: 190px; max-height: 116px; }
.login-brand .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 15px; letter-spacing: .12em; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.login-head { margin-bottom: 24px; text-align: center; }
.login-head h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.login-head p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-form { display: grid; gap: 17px; }
.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 750;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.btn-login { width: 100%; min-height: 47px; margin-top: 3px; }
.auth-theme-toggle { position: fixed; top: 22px; right: 22px; z-index: 5; background: var(--panel); }

/* Operational Management */
.ops-hero { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 32px 36px; overflow: hidden; border: 1px solid rgba(155,135,245,.2); border-radius: var(--radius-xl); background: linear-gradient(120deg, rgba(155,135,245,.13), transparent 45%), linear-gradient(140deg, #14243a, #101b2e); box-shadow: var(--shadow); }
.ops-hero h2 { margin: 9px 0 8px; font-size: clamp(30px,3.3vw,44px); letter-spacing: -.045em; }
.ops-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.btn-block { width: calc(100% - 44px); margin: 2px 22px 22px; }
.ops-command-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-areas:
        "status status"
        "checklist checklist";
    align-items: stretch;
    gap: 18px;
}
.ops-overview-top-metrics, .ops-dashboard-grid { display: contents; }
.ops-command-grid .ops-checklist-dashboard { grid-area: checklist; }
.ops-command-grid .metric-card { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ops-command-grid > div > .panel { min-width: 0; overflow: hidden; }
.ops-command-grid .metric-status-card { grid-area: status; min-height: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 26px; }
.ops-command-grid .metric-status-card .metric-icon { flex: none; }
.ops-command-grid .metric-status-card > span { margin: 0; flex: none; }
.ops-command-grid .metric-status-card .metric-status-breakdown { flex: 1 1 320px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 0; }
.ops-command-grid .metric-status-card .metric-status-breakdown > div { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 0; border-top: none; }
.ops-card-progress { height: 6px; overflow: hidden; margin-top: 14px; border-radius: 20px; background: rgba(255,255,255,.06); }
.ops-card-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-dark),var(--cyan)); }
.ops-dashboard-panel-head { min-height: 82px; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.ops-dashboard-panel-head h3 { font-size: 19px; }
.ops-dashboard-panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ops-dashboard-panel-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.ops-gantt-date-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 7px; }
.ops-gantt-date-filter label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 750; }
.ops-gantt-date-filter input { width: 128px; height: 34px; padding: 0 9px; color: var(--text); color-scheme: dark; border: 1px solid var(--border); border-radius: 9px; background: rgba(7,14,25,.65); }
.ops-gantt-date-filter input[aria-invalid="true"] { border-color: rgba(255,107,107,.75); box-shadow: 0 0 0 2px rgba(255,107,107,.10); }
.ops-gantt-filter-separator { align-self: flex-end; padding-bottom: 8px; color: var(--muted-2); font-size: 11px; }
.ops-gantt-date-filter .btn { height: 34px; }
.ops-schedule-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid var(--border); background: var(--border); }
.ops-schedule-summary > div { min-width: 0; padding: 11px 15px; background: rgba(16,29,48,.96); }
.ops-schedule-summary span, .ops-schedule-summary strong { display: block; }
.ops-schedule-summary span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ops-schedule-summary strong { margin-top: 5px; font-size: 15px; letter-spacing: -.02em; }
.ops-dashboard-gantt-wrap { min-height: 190px; max-height: 235px; padding: 12px 18px 10px; }
.ops-dashboard-gantt-wrap .empty-state { min-height: 166px; }
.ops-overview-gantt-grid .gantt-task { width: 205px; min-width: 205px; }
.ops-date-range-gantt-grid .ops-gantt-month-row th { height: 27px; }
.ops-date-range-gantt-grid .ops-gantt-month-group { min-width: 0; color: var(--text); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-right-color: rgba(35,197,221,.22); background: rgba(35,197,221,.07); }
.ops-date-range-gantt-grid .ops-gantt-day-row th { min-width: 29px; }
.ops-date-range-gantt-grid .ops-gantt-gap-before { border-left: 4px solid var(--bg); }
.ops-date-range-gantt-grid .gantt-cell.active { border-right-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -1px 0 rgba(255,255,255,.13); }
.ops-date-range-gantt-grid .gantt-cell.active.range-start { border-radius: 5px 0 0 5px; }
.ops-date-range-gantt-grid .gantt-cell.active.range-end { border-radius: 0 5px 5px 0; }
.ops-date-range-gantt-grid .gantt-cell.active.range-start.range-end { border-radius: 5px; }
.ops-date-range-gantt-grid .gantt-cell.active.today { box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 0 var(--orange); }
.ops-gantt-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 9px 18px 11px; color: var(--muted); font-size: 8px; border-top: 1px solid var(--border); }
.ops-gantt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ops-gantt-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }
.phase-pre { background: #9b87f5; }.phase-production { background: #23c5dd; }.phase-event { background: #ff9b51; }.phase-post { background: #3dd598; }
.ops-checklist-dashboard-body { display: grid; grid-template-columns: minmax(215px,.8fr) minmax(0,1.4fr); grid-template-rows: auto 1fr; gap: 12px; padding: 16px; }
.ops-checklist-highlight { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(61,213,152,.16); border-radius: 14px; background: linear-gradient(135deg,rgba(61,213,152,.10),rgba(61,213,152,.025)); }
.ops-checklist-dashboard-body > .ops-checklist-highlight { grid-row: 1 / 3; }
.ops-checklist-ring { width: 88px; height: 88px; flex: 0 0 88px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--green) var(--checklist-progress),rgba(255,255,255,.065) 0); }
.ops-checklist-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel); }
.ops-checklist-ring > div { position: relative; z-index: 1; text-align: center; }
.ops-checklist-ring strong, .ops-checklist-ring span { display: block; }
.ops-checklist-ring strong { color: var(--green); font-size: 19px; letter-spacing: -.025em; }
.ops-checklist-ring span { margin-top: 2px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.ops-checklist-highlight > div:last-child span, .ops-checklist-highlight > div:last-child strong, .ops-checklist-highlight > div:last-child small { display: block; }
.ops-checklist-highlight > div:last-child span { color: var(--muted); font-size: 9px; }
.ops-checklist-highlight > div:last-child strong { margin-top: 5px; font-size: 19px; }
.ops-checklist-highlight > div:last-child small { margin-top: 5px; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.ops-checklist-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ops-checklist-status-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); }
.ops-checklist-status-grid span, .ops-checklist-status-grid strong, .ops-checklist-status-grid small { display: block; }
.ops-checklist-status-grid span { color: var(--muted); font-size: 8px; }
.ops-checklist-status-grid strong { margin-top: 6px; font-size: 17px; }
.ops-checklist-status-grid small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.ops-checklist-status-grid .status-pending-card strong { color: var(--orange); }
.ops-checklist-status-grid .status-process-card strong { color: var(--cyan); }
.ops-checklist-status-grid .status-done-card strong { color: var(--green); }
.ops-checklist-preview { min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; }
.ops-checklist-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.025); }
.ops-checklist-preview-head strong { font-size: 9px; }
.ops-checklist-preview-head span { color: var(--muted-2); font-size: 8px; }
.ops-checklist-preview-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--border); }
.ops-checklist-preview a.ops-checklist-preview-item { color: inherit; text-decoration: none; transition: background .17s ease; }
.ops-checklist-preview a.ops-checklist-preview-item:hover { background: var(--cyan-soft); }
.ops-checklist-preview-item > div:last-child > strong { color: var(--cyan); font-size: 11px; }
.ops-checklist-preview-item:last-child { border-bottom: 0; }
.ops-checklist-preview-item > div:first-child { min-width: 0; }
.ops-checklist-preview-item > div:first-child strong, .ops-checklist-preview-item > div:first-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-checklist-preview-item > div:first-child strong { font-size: 9px; }
.ops-checklist-preview-item > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.ops-checklist-preview-item > div:last-child { display: grid; justify-items: end; gap: 5px; }
.ops-checklist-preview-item time { color: var(--muted-2); font-size: 8px; }
.ops-checklist-preview-item.is-overdue { background: rgba(251,113,133,.035); }
.ops-dashboard-secondary { margin-top: 18px; }
.ops-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-status-card { min-height: 188px; }
.metric-status-breakdown { display: grid; gap: 7px; margin-top: 9px; }
.metric-status-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--border); }
.metric-status-breakdown span { color: var(--muted); font-size: 9px; }
.metric-status-breakdown strong { font-size: 10px; }
.ops-overview-grid { align-items: stretch; }
.ops-overview-grid-single { grid-template-columns: minmax(0,1fr); }
.ops-budget-body { padding: 27px 23px 24px; }
.ops-budget-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ops-budget-panel-head { flex-wrap: wrap; }
.ops-budget-event-select { flex: none; min-height: 36px; padding: 0 12px; color: var(--text); font-size: 10px; font-weight: 650; outline: 0; border: 1px solid var(--border); border-radius: 9px; background: rgba(7,14,25,.65); color-scheme: dark; }
.ops-budget-value { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.ops-budget-value span, .ops-budget-value strong { display: block; }.ops-budget-value span { color: var(--muted); font-size: 10px; }.ops-budget-value strong { font-size: 23px; }
.ops-budget-value span small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.ops-budget-track { height: 10px; overflow: hidden; margin-bottom: 20px; border-radius: 20px; background: rgba(255,255,255,.055); }
.ops-budget-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-dark),var(--cyan),var(--orange)); }
.ops-budget-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ops-budget-stats div { padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); }
.ops-budget-stats span, .ops-budget-stats strong, .ops-budget-stats small { display: block; }.ops-budget-stats span { color: var(--muted); font-size: 9px; }.ops-budget-stats strong { margin-top: 7px; font-size: 12px; }.ops-budget-stats small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.ops-readiness-panel, .ops-logistics-snapshot { padding-bottom: 1px; }
.ops-status-list { display: grid; gap: 10px; padding: 23px 22px 19px; }
.ops-status-list > div { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); }
.ops-status-list span { color: var(--muted); font-size: 10px; }.ops-status-list strong { font-size: 12px; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }.status-done { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }.status-process { background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }.status-pending { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.ops-agenda-list { padding: 15px 23px 21px; }
.ops-agenda-item { display: grid; grid-template-columns: 44px minmax(0,1fr) 90px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ops-agenda-item:last-child { border-bottom: 0; }.ops-agenda-date { padding: 6px; text-align: center; border: 1px solid var(--border); border-radius: 9px; background: var(--cyan-soft); }.ops-agenda-date strong, .ops-agenda-date span { display: block; }.ops-agenda-date strong { color: var(--cyan); font-size: 14px; }.ops-agenda-date span { margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.ops-agenda-item > div:nth-child(2) strong, .ops-agenda-item > div:nth-child(2) span { display: block; }.ops-agenda-item > div:nth-child(2) strong { font-size: 11px; }.ops-agenda-item > div:nth-child(2) span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.ops-progress-mini { height: 5px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.06); }.ops-progress-mini span { display: block; height: 100%; border-radius: inherit; background: var(--cyan); }
.ops-logistic-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 26px 22px 23px; }.ops-logistic-totals div { padding: 17px 8px; text-align: center; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }.ops-logistic-totals strong, .ops-logistic-totals span { display: block; }.ops-logistic-totals strong { color: var(--cyan); font-size: 24px; }.ops-logistic-totals span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.ops-table { min-width: 930px; }
.finance-profit-cell strong, .finance-profit-cell small { display: block; }
.finance-profit-cell small { margin-top: 4px; font-size: 9px; }
.table-progress { width: 90px; height: 5px; display: inline-block; overflow: hidden; vertical-align: middle; border-radius: 9px; background: rgba(255,255,255,.06); }.table-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--violet),var(--cyan)); }.table-progress + small { margin-left: 6px; color: var(--muted); font-size: 9px; }
.text-danger { color: var(--red) !important; }.inline-form { display: inline; margin: 0; }.table-action.success { color: #86efc2; border-color: rgba(61,213,152,.18); background: var(--green-soft); }.contact-link { color: var(--cyan); }
.gantt-task small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 7px; font-weight: 500; }
.ops-kanban { position: relative; display: grid; grid-template-columns: repeat(3,minmax(250px,1fr)); gap: 14px; padding: 18px; overflow-x: auto; }
.ops-kanban-column { min-width: 250px; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background: rgba(7,14,25,.28); }
.ops-kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 3px 12px; }.ops-kanban-head span { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 750; }.ops-kanban-head strong { min-width: 24px; padding: 4px 7px; text-align: center; font-size: 9px; border-radius: 7px; background: var(--panel-soft); }
.ops-kanban-list { display: grid; align-content: start; gap: 9px; }
.ops-logistics-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); box-shadow: 0 10px 28px rgba(0,0,0,.1); }.ops-logistics-card[hidden] { display: none; }.ops-logistics-card-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.ops-logistics-card time { color: var(--muted-2); font-size: 8px; }.ops-logistics-card h3 { margin: 13px 0 12px; font-size: 13px; }.ops-logistics-card dl { display: grid; gap: 7px; margin: 0; }.ops-logistics-card dl div { display: flex; justify-content: space-between; gap: 12px; }.ops-logistics-card dt { color: var(--muted-2); font-size: 9px; }.ops-logistics-card dd { margin: 0; color: var(--muted); font-size: 9px; }.logistics-actions { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--border); }
.ops-board-empty, .ops-filter-empty { grid-column: 1 / -1; }.ops-filter-empty[hidden] { display: none; }
.finance-event-actions { min-width: 180px; flex-wrap: wrap; }
.table-action.is-disabled { color: var(--muted-2); border-color: var(--border); background: rgba(148,163,184,.05); cursor: not-allowed; opacity: .58; }

.checklist-event-groups { display: grid; gap: 12px; padding: 16px; }
.checklist-select-event-state { min-height: 230px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 30px; color: var(--muted); text-align: center; border: 1px dashed var(--border); border-radius: 14px; background: rgba(7,14,25,.16); }
.checklist-select-event-state[hidden] { display: none; }
.checklist-select-event-state strong { color: var(--text); font-size: 14px; }
.checklist-select-event-state span { max-width: 380px; font-size: 10px; line-height: 1.6; }
.checklist-event-group { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(7,14,25,.22); transition: border-color .18s ease, background .18s ease; }
.checklist-event-group[hidden] { display: none !important; }
.checklist-event-group[open] { border-color: rgba(35,197,221,.25); background: rgba(12,24,40,.55); }
.checklist-event-group > summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; list-style: none; cursor: pointer; user-select: none; }
.checklist-event-group > summary::-webkit-details-marker { display: none; }
.checklist-event-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.checklist-event-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: var(--cyan); border-radius: 10px; background: var(--cyan-soft); }
.checklist-event-icon svg { width: 18px; height: 18px; fill: currentColor; }
.checklist-event-heading strong, .checklist-event-heading span { display: block; }
.checklist-event-heading strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.checklist-event-heading span { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.checklist-event-stats { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; }
.checklist-event-stats > span:not(.badge) { white-space: nowrap; }
.checklist-event-stats > span strong { color: var(--text); }
.checklist-event-stats i { width: 9px; height: 9px; display: block; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px,-2px); transition: transform .18s ease; }
.checklist-event-group[open] .checklist-event-stats i { transform: rotate(225deg) translate(-1px,-1px); }
.checklist-event-items { display: grid; gap: 9px; padding: 13px; border-top: 1px solid var(--border); }
.checklist-event-item { display: grid; grid-template-columns: minmax(250px,1.2fr) minmax(330px,1fr) auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); }
.checklist-event-item[hidden] { display: none; }
.checklist-item-main { min-width: 0; }
.checklist-item-main > strong { display: block; margin-top: 8px; color: var(--text); font-size: 11px; }
.checklist-item-main > p { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.checklist-item-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; }
.checklist-item-meta div { min-width: 0; }
.checklist-item-meta dt { margin-bottom: 5px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.checklist-item-meta dd { overflow: hidden; margin: 0; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.checklist-item-actions { min-width: 164px; justify-content: flex-end; flex-wrap: wrap; }
.staff-master-table { min-width: 720px; }

/* Administration */
.admin-security-note { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 14px 16px; color: var(--muted); border: 1px solid rgba(61,213,152,.18); border-radius: 13px; background: var(--green-soft); }
.admin-security-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; color: var(--green); font-weight: 900; border-radius: 9px; background: rgba(61,213,152,.12); }
.admin-security-note strong, .admin-security-note span { display: block; }.admin-security-note strong { color: var(--text); font-size: 11px; }.admin-security-note span { margin-top: 4px; font-size: 9px; line-height: 1.5; }
.users-table { min-width: 1250px; }
.user-identity { display: flex; align-items: center; gap: 10px; }.user-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }.user-identity strong, .user-identity small { display: block; }.user-identity small { margin-top: 3px; color: var(--cyan); font-size: 8px; font-weight: 750; }
.username-cell { color: var(--cyan); font-weight: 700; }.user-actions { min-width: 142px; }.protected-label { color: var(--muted-2); font-size: 9px; font-style: italic; }
.archived-user-row td { opacity: .58; }.archived-user-row:hover td { opacity: .8; }
.form-note, .password-reset-copy { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }.form-note { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }.password-reset-copy { margin: -7px 0 19px; }.password-reset-copy strong { color: var(--text); }

/* Light theme */
html[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-soft: #edf2f7;
    --sidebar: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --panel-hover: #eaf1f7;
    --border: rgba(15,23,42,.11);
    --border-strong: rgba(15,23,42,.19);
    --text: #142033;
    --muted: #617086;
    --muted-2: #8491a3;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --cyan-soft: rgba(8,145,178,.10);
    --green: #059669;
    --green-soft: rgba(5,150,105,.10);
    --orange: #ea7b2a;
    --orange-soft: rgba(234,123,42,.11);
    --violet: #7458df;
    --violet-soft: rgba(116,88,223,.10);
    --red: #dc4058;
    --red-soft: rgba(220,64,88,.09);
    --yellow: #b8860b;
    --yellow-soft: rgba(184,134,11,.10);
    --shadow: 0 22px 60px rgba(15,23,42,.08);
}
html[data-theme="light"] .dashboard-body { background: radial-gradient(circle at 76% -20%,rgba(8,145,178,.08),transparent 28%),linear-gradient(135deg,#f8fafc,#eef4f8 55%,#f8fafc); }
html[data-theme="light"] .sidebar { background: rgba(255,255,255,.93); }
html[data-theme="light"] .topbar { background: rgba(248,250,252,.88); }
html[data-theme="light"] .event-combobox-toggle,
html[data-theme="light"] .event-search-box,
html[data-theme="light"] .gantt-filters input,
html[data-theme="light"] .gantt-filters select,
html[data-theme="light"] .excel-import-box input { background: #fff; }
html[data-theme="light"] .event-combobox-menu { color: #0f172a; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.18); }
html[data-theme="light"] .form-event-picker-toggle,
html[data-theme="light"] .form-event-picker-menu { color: #0f172a; background: #fff; }
html[data-theme="light"] .form-event-picker-menu { box-shadow: 0 22px 60px rgba(15,23,42,.18); }
html[data-theme="light"] .event-option { color: #0f172a; }
html[data-theme="light"] .event-option:hover,
html[data-theme="light"] .event-option:focus-visible { color: #0f172a; background: rgba(15,23,42,.05); }
html[data-theme="light"] .event-option.selected { color: #047c91; background: rgba(8,145,178,.10); }
html[data-theme="light"] .notification-dropdown { background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.18); }
html[data-theme="light"] .nav-group.open,
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .user-card,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .date-chip,
html[data-theme="light"] .system-status,
html[data-theme="light"] .btn-ghost { background: rgba(15,23,42,.025); }
html[data-theme="light"] .hero-panel { background: linear-gradient(110deg,rgba(8,145,178,.11),transparent 44%),linear-gradient(135deg,#fff,#edf7fa); }
html[data-theme="light"] .ops-hero { background: linear-gradient(120deg,rgba(116,88,223,.1),transparent 48%),linear-gradient(140deg,#fff,#f2effd); }
html[data-theme="light"] .metric-card { background: linear-gradient(145deg,#fff,#f4f7fb); box-shadow: 0 15px 38px rgba(15,23,42,.06); }
html[data-theme="light"] .metric-primary { background: linear-gradient(145deg,#edfafd,#fff); }
html[data-theme="light"] .metric-count-highlight.invoiced { color: #047857; }
html[data-theme="light"] .metric-count-highlight.uninvoiced { color: #c2410c; }
html[data-theme="light"] .panel { background: rgba(255,255,255,.94); box-shadow: 0 14px 42px rgba(15,23,42,.055); }
html[data-theme="light"] .summary-strip > div { background: #fff; }
html[data-theme="light"] .summary-accent { background: linear-gradient(145deg,rgba(8,145,178,.10),#fff) !important; }
html[data-theme="light"] .summary-accent.violet { background: linear-gradient(145deg,rgba(116,88,223,.10),#fff) !important; }
html[data-theme="light"] .summary-accent.green { background: linear-gradient(145deg,rgba(5,150,105,.09),#fff) !important; }
html[data-theme="light"] .table-toolbar input,
html[data-theme="light"] .table-toolbar select,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .gantt-month-label input { background: #fff; }
html[data-theme="light"] .data-table th { color: #68778d; background: #eef3f7; }
html[data-theme="light"] .data-table td { color: #46556a; }
html[data-theme="light"] .data-table tbody tr:hover { background: rgba(8,145,178,.035); }
html[data-theme="light"] .data-table tbody tr:hover td.col-freeze { background: linear-gradient(rgba(8,145,178,.035), rgba(8,145,178,.035)), var(--panel); }
html[data-theme="light"] .data-table tfoot td { background: rgba(8,145,178,.06); }
html[data-theme="light"] .logbook-problem-cell { color: #be3146 !important; }
html[data-theme="light"] .gantt-grid th { background: #f1f5f9; }
html[data-theme="light"] .gantt-grid .gantt-task { color: #243247; background: #fff; }
html[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,.48); }
html[data-theme="light"] .modal-dialog,
html[data-theme="light"] .login-card { background: #fff; box-shadow: 0 30px 90px rgba(15,23,42,.18); }
html[data-theme="light"] .auth-body { background: radial-gradient(circle at 50% 0%,rgba(8,145,178,.10),transparent 32%),#eef3f8; }
html[data-theme="light"] .progress-track,
html[data-theme="light"] .ops-budget-track,
html[data-theme="light"] .ops-card-progress,
html[data-theme="light"] .ops-progress-mini,
html[data-theme="light"] .table-progress { background: rgba(15,23,42,.08); }
html[data-theme="light"] .health-ring { background: conic-gradient(var(--cyan) calc(var(--progress) * 1%),rgba(15,23,42,.07) 0); }
html[data-theme="light"] .ops-schedule-summary > div { background: #fff; }
html[data-theme="light"] .ops-gantt-date-filter input { color-scheme: light; background: #fff; }
html[data-theme="light"] .ops-budget-event-select { color-scheme: light; background: #fff; }
html[data-theme="light"] .ops-date-range-gantt-grid .ops-gantt-month-group { color: #243247; background: rgba(8,145,178,.08); }
html[data-theme="light"] .ops-date-range-gantt-grid .ops-gantt-gap-before { border-left-color: #eef3f8; }
html[data-theme="light"] .ops-checklist-ring { background: conic-gradient(var(--green) var(--checklist-progress),rgba(15,23,42,.08) 0); }
html[data-theme="light"] .ops-checklist-ring::before { background: #fff; }
html[data-theme="light"] .ops-checklist-highlight { background: linear-gradient(135deg,rgba(5,150,105,.09),rgba(5,150,105,.025)); }
html[data-theme="light"] .ops-checklist-status-grid > div,
html[data-theme="light"] .ops-checklist-preview-head { background: rgba(15,23,42,.018); }
html[data-theme="light"] .ops-checklist-preview-item.is-overdue { background: rgba(220,64,88,.035); }
html[data-theme="light"] .health-stats div,
html[data-theme="light"] .ops-budget-stats div,
html[data-theme="light"] .ops-status-list > div,
html[data-theme="light"] .ops-logistic-totals div { background: rgba(15,23,42,.018); }
html[data-theme="light"] .ops-kanban-column { background: #f4f7fa; }
html[data-theme="light"] .ops-logistics-card { background: #fff; box-shadow: 0 9px 24px rgba(15,23,42,.06); }
html[data-theme="light"] .checklist-event-group { background: #f8fafc; }
html[data-theme="light"] .checklist-event-group[open] { background: #fff; }
html[data-theme="light"] .checklist-event-item { background: #f8fafc; }
html[data-theme="light"] .checklist-select-event-state { background: #f8fafc; }
html[data-theme="light"] .admin-security-note { border-color: rgba(5,150,105,.18); }
html[data-theme="light"] .form-note { background: rgba(15,23,42,.018); }
html[data-theme="light"] .badge-success,
html[data-theme="light"] .badge-green { color: #047857; }
html[data-theme="light"] .badge-info,
html[data-theme="light"] .badge-cyan { color: #0e7490; }
html[data-theme="light"] .badge-warning,
html[data-theme="light"] .badge-yellow { color: #9a6700; }
html[data-theme="light"] .badge-danger,
html[data-theme="light"] .badge-red { color: #be3146; }
html[data-theme="light"] .badge-purple { color: #6846d1; }
html[data-theme="light"] .badge-muted { color: #5f6e82; }
html[data-theme="light"] .alert-success { color: #047857; }
html[data-theme="light"] .alert-danger { color: #be3146; }
html[data-theme="light"] .text-positive { color: #047857 !important; }

@media (max-width: 1280px) {
    :root { --sidebar-width: 235px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .topbar-right .system-status { display: none; }
    .event-combobox { width: 210px; }
    .five-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .summary-strip > div:last-child { grid-column: span 2; }
    .three-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1024px) {
    :root { --sidebar-width: 264px; }
    .sidebar { transform: translateX(-101%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
    .sidebar.open { transform: translateX(0); }
    .mobile-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(2,7,15,.65); backdrop-filter: blur(3px); }.mobile-overlay.open { display: block; }
    .app-main { margin-left: 0; }
    .mobile-menu { display: grid; }
    .sidebar-toggle-desktop { display: none; }
    .overview-grid, .secondary-grid { grid-template-columns: 1fr; }
    .overview-portfolio-panel .type-list { grid-template-columns: 1fr; }
    .type-panel { min-height: 0; }
}

@media (max-width: 760px) {
    .topbar { height: 74px; padding: 0 18px; }.topbar-right { gap: 0; }.topbar-right .date-chip, .topbar-right .system-status { display: none; }.topbar h1 { font-size: 19px; }
    .event-switcher { margin-right: 6px; }.event-switcher > label { display: none; }.event-combobox { width: 155px; }
    .event-combobox-menu { width: auto; position: fixed; top: 68px; right: 14px; left: 14px; }
    .content-wrap { padding: 20px 16px 38px; }
    .hero-panel { min-height: 300px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 24px; }.hero-actions { margin-top: 4px; }.hero-decoration { width: 75%; opacity: .5; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 11px; }.metric-card { min-height: 150px; padding: 17px; }.metric-card > strong { font-size: 19px; }
    .section-heading { align-items: flex-start; flex-direction: column; }.section-actions { width: 100%; }.section-actions .btn { flex: 1; }
    .five-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }.summary-strip > div:last-child { grid-column: 1 / -1; }.summary-strip > div { min-height: 90px; padding: 16px; }.summary-strip strong { font-size: 16px; }
    .table-toolbar { align-items: stretch; flex-wrap: wrap; }.search-box { width: 100%; max-width: none; flex-basis: 100%; }.table-toolbar select, .table-toolbar > input { flex: 1; min-width: 135px; }.checklist-filter-event-picker { width: 100%; max-width: none; flex-basis: 100%; }.result-count { display: none; }
    .table-pagination { align-items: stretch; flex-direction: column; }
    .table-pagination > div { justify-content: space-between; }
    .two-cols, .three-cols { grid-template-columns: 1fr; }.full-field { grid-column: auto; }
    .modal { padding: 10px; }.modal-dialog { max-height: calc(100vh - 20px); padding: 20px; border-radius: 18px; }.modal-actions .btn { flex: 1; }
    .chart-legend { display: none; }.chart-wrap { height: 240px; }
    .chart-head-tools { width: 100%; justify-items: stretch; }
    .chart-filters { justify-content: flex-start; }
    .gantt-filters { align-items: flex-start; flex-direction: column; }
    .auth-simple-shell { padding: 16px; }
    .login-card { padding: 27px 21px; }
    .ops-hero { min-height: 260px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 27px 23px; }
    .ops-command-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "status"
            "checklist";
    }
    .ops-command-grid .metric-card { min-height: 170px; }
    .ops-command-grid .metric-status-card .metric-status-breakdown { grid-template-columns: 1fr; }
    .ops-dashboard-panel-head { align-items: stretch; flex-direction: column; }
    .ops-dashboard-panel-actions { justify-content: space-between; }
    .ops-checklist-dashboard-body { grid-template-columns: 1fr; grid-template-rows: auto; }
    .ops-checklist-dashboard-body > .ops-checklist-highlight { grid-row: auto; }
    .checklist-event-item { grid-template-columns: minmax(0,1fr); }
    .checklist-item-actions { min-width: 0; justify-content: flex-start; }
    .ops-kanban { grid-template-columns: repeat(3,minmax(245px,1fr)); }
}

@media (max-width: 500px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 138px; }
    .five-cols { grid-template-columns: 1fr; }.summary-strip > div:last-child { grid-column: auto; }
    .hero-actions { width: 100%; }.hero-actions .btn { flex: 1; }
    .panel-head { padding: 19px 17px 0; }.type-list, .activity-list { padding-left: 17px; padding-right: 17px; }
    .gantt-month-label { align-items: flex-start; flex-direction: column; }
    .ops-gantt-date-filter { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 10px minmax(0,1fr) auto; align-items: end; }
    .ops-gantt-date-filter input { width: 100%; min-width: 0; }
    .ops-gantt-filter-separator { text-align: center; }
    .event-combobox { width: 112px; }.event-combobox-toggle > span { font-size: 10px; }
    .topbar-left .eyebrow { display: none; }.topbar h1 { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ops-budget-stats { grid-template-columns: 1fr; }
    .ops-checklist-dashboard-body { padding: 15px; }
    .ops-checklist-highlight { align-items: flex-start; }
    .ops-checklist-ring { width: 76px; height: 76px; flex-basis: 76px; }
    .ops-checklist-status-grid { gap: 6px; }
    .ops-checklist-status-grid > div { padding: 10px 8px; }
    .ops-checklist-preview-item { grid-template-columns: minmax(0,1fr); }
    .ops-checklist-preview-item > div:last-child { justify-items: start; grid-auto-flow: column; justify-content: space-between; }
    .checklist-event-group > summary { align-items: flex-start; flex-direction: column; }
    .checklist-event-stats { width: 100%; justify-content: space-between; }
    .checklist-item-meta { grid-template-columns: 1fr; }
    .ops-agenda-item { grid-template-columns: 42px minmax(0,1fr); }.ops-progress-mini { grid-column: 1 / -1; width: 100%; }
    .auth-theme-toggle { top: 14px; right: 14px; }
}

@media print {
    .sidebar, .topbar, .section-actions, .table-toolbar, .row-actions, .alert { display: none !important; }
    .app-main { margin: 0; }.content-wrap { max-width: none; padding: 0; }.workspace-tab { display: block !important; page-break-after: always; }
    body, .panel, .summary-strip > div { color: #111827; background: white !important; }.panel, .summary-strip { border-color: #d1d5db; box-shadow: none; }.data-table td, .data-table th { color: #111827; border-color: #e5e7eb; }
}