:root {
    --bg: #f7f8fc;
    --panel: #ffffff;
    --line: #dfe5ef;
    --ink: #151d3b;
    --muted: #5f6980;
    --brand: #2d317f;
    --brand-strong: #20245f;
    --brand-dark: #151d3b;
    --brand-panel: #252974;
    --accent: #f28c18;
    --accent-strong: #b85b04;
    --accent-dark: #9a4f05;
    --accent-soft: #fff3df;
    --noc-green: #198754;
    --noc-blue: var(--brand);
    --noc-yellow: #b7791f;
    --noc-orange: var(--accent);
    --noc-red: #c03221;
    --noc-gray: #5f6b7a;
    --noc-green-bg: #e8f5ee;
    --noc-blue-bg: #f5f7ff;
    --noc-yellow-bg: #fff7e6;
    --noc-orange-bg: var(--accent-soft);
    --noc-red-bg: #fdecea;
    --noc-gray-bg: #eef1f5;
    --ok: var(--noc-green);
    --warn: var(--noc-yellow);
    --crit: var(--noc-red);
    --orange: var(--noc-orange);
    --offline: var(--noc-gray);
}

.exec-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ink);
}

.exec-header,
.exec-filter-bar,
.exec-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 29, 59, .04);
}

.exec-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.exec-eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.exec-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
}

.exec-subtitle,
.exec-section-head p {
    margin: 5px 0 0;
    color: var(--muted);
}

.exec-header-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.exec-header-meta > span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--noc-blue-bg);
}

.exec-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
    gap: 10px;
    padding: 12px 14px;
    align-items: end;
}

.exec-filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.exec-section {
    overflow: hidden;
}

.exec-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.exec-section-head h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.exec-widget {
    padding: 14px 18px 18px;
}

.exec-loading {
    color: var(--muted);
}

.exec-empty,
.exec-error,
.exec-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--noc-gray-bg);
    color: var(--muted);
}

.exec-error {
    background: var(--noc-red-bg);
    color: var(--noc-red);
    border-color: rgba(192, 50, 33, .25);
    font-weight: 800;
}

.exec-state-stable {
    background: var(--noc-green-bg);
    color: var(--noc-green);
}

.exec-state-attention {
    background: var(--noc-red-bg);
    color: var(--noc-red);
}

.exec-summary-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.exec-link-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.exec-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.exec-metric {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--noc-gray);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
}

.exec-metric:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.exec-metric span,
.exec-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.exec-metric strong {
    font-size: 30px;
    line-height: 1;
}

.exec-metric small {
    color: var(--muted);
    line-height: 1.25;
}

.exec-status-ok,
.exec-status-healthy,
.exec-status-fresh {
    border-left-color: var(--noc-green) !important;
}

.exec-status-watch,
.exec-status-stale,
.exec-status-at_risk,
.exec-status-risk {
    border-left-color: var(--noc-orange) !important;
}

.exec-status-critical,
.exec-status-unavailable {
    border-left-color: var(--noc-red) !important;
}

.exec-alert-list {
    display: grid;
    gap: 10px;
}

.exec-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--noc-gray);
    border-radius: 8px;
    padding: 14px;
}

.exec-alert-critical {
    border-left-color: var(--noc-red);
    background: linear-gradient(90deg, var(--noc-red-bg), transparent 38%);
}

.exec-alert-high {
    border-left-color: var(--noc-orange);
    background: linear-gradient(90deg, var(--noc-orange-bg), transparent 38%);
}

.exec-alert-medium {
    border-left-color: var(--noc-yellow);
}

.exec-alert h3 {
    margin: 4px 0 5px;
    font-size: 17px;
}

.exec-alert p {
    margin: 0 0 8px;
}

.exec-severity,
.exec-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--noc-gray-bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.exec-alert-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.exec-alert-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--muted);
    font-size: 12px;
}

.exec-next {
    margin-top: 8px !important;
}

.exec-alert-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 116px;
}

.exec-alert-actions button,
.exec-alert-actions a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    padding: 7px 9px;
    font-weight: 800;
    text-align: center;
}

.exec-action-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(110px, .5fr) minmax(160px, .8fr) minmax(220px, 1.2fr) auto;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}

.exec-mini-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.exec-mini-summary span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--noc-blue-bg);
}

.exec-subhead {
    margin: 16px 0 8px;
    font-size: 14px;
}

.exec-table-wrap {
    overflow-x: auto;
}

.exec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.exec-table th,
.exec-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.exec-table td {
    font-size: 13px;
}

@media (max-width: 1100px) {
    .exec-filter-bar,
    .exec-action-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .exec-header,
    .exec-alert {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .exec-filter-bar,
    .exec-action-form {
        grid-template-columns: 1fr;
    }
    .exec-alert-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

html[data-theme="dark"] .feedback-summary span,
html[data-theme="dark"] .feedback-filter,
html[data-theme="dark"] .feedback-panel,
html[data-theme="dark"] .feedback-row,
html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .feedback-comment,
html[data-theme="dark"] .feedback-attachment,
html[data-theme="dark"] .feedback-form-card,
html[data-theme="dark"] .feedback-btn:not(.primary),
html[data-theme="dark"] .vote-btn,
html[data-theme="dark"] .ar-btn:not(.primary),
html[data-theme="dark"] .ar-metrics div,
html[data-theme="dark"] .ar-filter,
html[data-theme="dark"] .ar-panel,
html[data-theme="dark"] .ar-row,
html[data-theme="dark"] .ar-card,
html[data-theme="dark"] .ar-facts div,
html[data-theme="dark"] .ar-change-box div,
html[data-theme="dark"] .ar-text-block,
html[data-theme="dark"] .ar-comment {
    background: var(--panel) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .feedback-filter input,
html[data-theme="dark"] .feedback-filter select,
html[data-theme="dark"] .feedback-comment-form textarea,
html[data-theme="dark"] .feedback-comment-form input,
html[data-theme="dark"] .feedback-triage input,
html[data-theme="dark"] .feedback-triage select,
html[data-theme="dark"] .feedback-form-card input,
html[data-theme="dark"] .feedback-form-card select,
html[data-theme="dark"] .feedback-form-card textarea,
html[data-theme="dark"] .ar-filter input,
html[data-theme="dark"] .ar-filter select,
html[data-theme="dark"] .ar-comment-form textarea,
html[data-theme="dark"] .ar-manage textarea,
html[data-theme="dark"] .ar-manage select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .feedback-panel-head,
html[data-theme="dark"] .feedback-footer,
html[data-theme="dark"] .feedback-row,
html[data-theme="dark"] .feedback-kv div,
html[data-theme="dark"] .feedback-activity div,
html[data-theme="dark"] .ar-footer,
html[data-theme="dark"] .ar-row,
html[data-theme="dark"] .ar-card-head {
    border-color: var(--line) !important;
}

html[data-theme="dark"] .feedback-row:hover,
html[data-theme="dark"] .ar-row:hover,
html[data-theme="dark"] .feedback-btn.ghost,
html[data-theme="dark"] .ar-btn.ghost,
html[data-theme="dark"] .vote-btn.active {
    background: #1e293b !important;
}

html[data-theme="dark"] .feedback-title,
html[data-theme="dark"] .feedback-main,
html[data-theme="dark"] .feedback-summary b,
html[data-theme="dark"] .feedback-panel-head strong,
html[data-theme="dark"] .feedback-card h1,
html[data-theme="dark"] .feedback-section-head h2,
html[data-theme="dark"] .feedback-body,
html[data-theme="dark"] .feedback-comment div:first-child,
html[data-theme="dark"] .feedback-comment p,
html[data-theme="dark"] .feedback-kv dd,
html[data-theme="dark"] .feedback-activity span,
html[data-theme="dark"] .feedback-form-head h1,
html[data-theme="dark"] .ar-title h1,
html[data-theme="dark"] .ar-main,
html[data-theme="dark"] .ar-row strong,
html[data-theme="dark"] .ar-card h2,
html[data-theme="dark"] .ar-card strong,
html[data-theme="dark"] .ar-text-block p {
    color: var(--ink) !important;
}

html[data-theme="dark"] .feedback-desc,
html[data-theme="dark"] .feedback-meta,
html[data-theme="dark"] .feedback-panel-head,
html[data-theme="dark"] .feedback-footer,
html[data-theme="dark"] .feedback-meta-line,
html[data-theme="dark"] .feedback-section-head span,
html[data-theme="dark"] .feedback-kv dt,
html[data-theme="dark"] .feedback-activity small,
html[data-theme="dark"] .feedback-empty,
html[data-theme="dark"] .feedback-form-head p,
html[data-theme="dark"] .feedback-form-card label span,
html[data-theme="dark"] .feedback-form-card small,
html[data-theme="dark"] .ar-row span,
html[data-theme="dark"] .ar-filter label,
html[data-theme="dark"] .ar-empty,
html[data-theme="dark"] .ar-footer {
    color: var(--muted) !important;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1120;
    --panel: #111827;
    --line: #263244;
    --ink: #e5edf7;
    --muted: #94a3b8;
    --noc-green: #4ade80;
    --noc-blue: #60a5fa;
    --noc-yellow: #fbbf24;
    --noc-orange: #fb923c;
    --noc-red: #fb7185;
    --noc-gray: #94a3b8;
    --noc-green-bg: rgba(34, 197, 94, .16);
    --noc-blue-bg: rgba(37, 99, 235, .20);
    --noc-yellow-bg: rgba(245, 158, 11, .18);
    --noc-orange-bg: rgba(249, 115, 22, .18);
    --noc-red-bg: rgba(244, 63, 94, .18);
    --noc-gray-bg: rgba(148, 163, 184, .16);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .main-panel,
html[data-theme="dark"] .content-wrap,
html[data-theme="dark"] .compact-ops-page,
html[data-theme="dark"] .dashboard-shell {
    background: var(--bg);
    color: var(--ink);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .noc-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .ops-filter-card,
html[data-theme="dark"] .attention-board,
html[data-theme="dark"] .attention-tile,
html[data-theme="dark"] .ops-kpi-card,
html[data-theme="dark"] .ticket-stats-panel,
html[data-theme="dark"] .work-group,
html[data-theme="dark"] .work-ticket,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item {
    background: var(--panel) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

.theme-switcher .form-select {
    min-width: 88px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 11.5px;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .table,
html[data-theme="dark"] .table-noc,
html[data-theme="dark"] .compact-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .table-noc th,
html[data-theme="dark"] .compact-table th,
html[data-theme="dark"] .table th {
    background: #172033 !important;
    color: var(--muted) !important;
    border-color: var(--line) !important;
}

html[data-theme="dark"] .table-noc td,
html[data-theme="dark"] .compact-table td,
html[data-theme="dark"] .table td {
    background: transparent !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

html[data-theme="dark"] .table-noc tbody tr:hover td,
html[data-theme="dark"] .table-noc tbody tr:focus-within td,
html[data-theme="dark"] .compact-table tbody tr:hover td,
html[data-theme="dark"] .compact-table tbody tr:focus-within td,
html[data-theme="dark"] .work-ticket:hover,
html[data-theme="dark"] .ticket-stat-mini:hover,
html[data-theme="dark"] .ticket-stat-row:hover {
    background: #1e293b !important;
}

html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .help-note,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .compact-revoke-form,
html[data-theme="dark"] .rich-editor-surface,
html[data-theme="dark"] .rich-editor-toolbar,
html[data-theme="dark"] .ticket-stats-card,
html[data-theme="dark"] .ticket-stat-mini,
html[data-theme="dark"] .ticket-stat-row,
html[data-theme="dark"] .ticket-staff-row,
html[data-theme="dark"] .work-group summary {
    background: #0f172a !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .kpi-hint,
html[data-theme="dark"] .metric .label,
html[data-theme="dark"] .summary-card .label,
html[data-theme="dark"] .topbar-subtitle,
html[data-theme="dark"] .pagination-count,
html[data-theme="dark"] .widget-note,
html[data-theme="dark"] small {
    color: var(--muted) !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .attention-header h3,
html[data-theme="dark"] .attention-tile strong,
html[data-theme="dark"] .ops-kpi-card strong,
html[data-theme="dark"] .work-group-title,
html[data-theme="dark"] .work-ticket-title,
html[data-theme="dark"] .ticket-stats-summary h2,
html[data-theme="dark"] .ticket-summary-pill strong {
    color: var(--ink) !important;
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .action-pill,
html[data-theme="dark"] .action-icon-btn {
    background-color: #172033;
    border-color: #334155;
    color: var(--ink);
}

html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .action-pill:hover,
html[data-theme="dark"] .action-icon-btn:hover {
    background-color: #243044;
    border-color: #475569;
    color: #fff;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .noc-card-header,
html[data-theme="dark"] .attention-header {
    border-color: var(--line) !important;
}

html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .mobile-section-nav,
html[data-theme="dark"] .mobile-section-link {
    background: #0f172a !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .mobile-section-link.active,
html[data-theme="dark"] .mobile-section-link:hover {
    background: #1e293b !important;
    color: #fff !important;
}

html[data-theme="dark"] .table-noc tr.row-warning td,
html[data-theme="dark"] .table-noc tr.row-degraded td,
html[data-theme="dark"] .table-noc tr.row-critical td {
    background: transparent !important;
}

html[data-theme="dark"] .lark-link-banner,
html[data-theme="dark"] .field-location-banner {
    background: rgba(249, 115, 22, .14);
    border-color: rgba(251, 146, 60, .45);
    color: #fed7aa;
}

html[data-theme="dark"] .field-location-banner.is-active {
    background: rgba(34, 197, 94, .14);
    border-color: rgba(74, 222, 128, .45);
    color: #bbf7d0;
}

body { background: var(--bg); color: var(--ink); font-size: 13px; }
a { color: var(--brand); text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: linear-gradient(180deg, var(--brand-strong), var(--brand-dark)); color: #dce7f5; border-right: 1px solid #11183a; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.brand-title { font-weight: 700; letter-spacing: .2px; }
.brand-subtitle { color: #93a4ba; font-size: 12px; }
.sidebar-nav { padding: 12px; gap: 3px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 10px; color: #b8c6d8; border-radius: 7px; padding: 9px 10px; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-panel { flex: 1; min-width: 0; }
.topbar { min-height: 58px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.topbar h1 { font-size: 17px; line-height: 1.15; margin: 0; font-weight: 700; }
.topbar-subtitle { color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.user-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11.5px; }
.content-wrap { padding: 14px 16px 24px; }
.compact-ops-page { display: grid; gap: 8px; }
.compact-ops-page .filter-bar,
.compact-ops-page .noc-card,
.compact-ops-page.compact-form-card,
.compact-ops-page .compact-form-card { border-radius: 8px; }
.compact-ops-page .filter-bar { padding: 8px; margin-bottom: 8px; }
.compact-ops-page .row { --bs-gutter-x: .55rem; --bs-gutter-y: .5rem; }
.compact-ops-page .summary-grid { gap: 8px; margin-bottom: 8px; }
.compact-ops-page .summary-card { padding: 8px 9px; border-radius: 8px; }
.compact-ops-page .summary-card .label,
.compact-ops-page .summary-card .metric-label { font-size: 9.5px; line-height: 1.1; letter-spacing: .04em; }
.compact-ops-page .summary-card .value,
.compact-ops-page .summary-card .metric-value { font-size: 17px; line-height: 1.1; }
.compact-ops-page .help-note,
.compact-ops-page .form-text,
.compact-ops-page .small { font-size: 10.5px; line-height: 1.2; }
.compact-ops-page .noc-card { margin-bottom: 8px; }
.compact-ops-page .noc-card-header { padding: 8px 10px 7px; }
.compact-ops-page .noc-card-title { font-size: 13px; line-height: 1.15; margin: 0; }
.compact-ops-page .table-noc,
.compact-ops-page .compact-table { font-size: 11.25px; line-height: 1.16; margin-bottom: 0; }
.compact-ops-page .table-noc th,
.compact-ops-page .compact-table th { padding: 5px 6px; font-size: 8.8px; line-height: 1.1; letter-spacing: .05em; white-space: normal; }
.compact-ops-page .table-noc td,
.compact-ops-page .compact-table td { padding: 5px 6px; max-width: 220px; overflow-wrap: anywhere; white-space: normal; vertical-align: top; }
.compact-ops-page .status-badge { padding: 2px 5px; font-size: 9.5px; gap: 3px; max-width: max-content; }
.compact-ops-page .action-pill { min-height: 27px; padding: 4px 7px; border-radius: 7px; font-size: 10.5px; line-height: 1; gap: 5px; }
.compact-ops-page .action-icon-btn { width: 27px; height: 27px; }
.compact-ops-page .form-label { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .03em; line-height: 1.1; text-transform: uppercase; }
.compact-ops-page .form-control,
.compact-ops-page .form-select { min-height: 30px; padding: 4px 8px; border-radius: 7px; font-size: 12px; }
.compact-ops-page textarea.form-control { min-height: 58px; }
.compact-ops-page hr { margin: 4px 0 2px; }
.compact-ops-page pre { font-size: 10.5px; line-height: 1.2; }
.compact-ops-page .table-wrap { overflow: visible; }
.compact-ops-page details.compact-session-action { position: relative; }
.compact-ops-page details.compact-session-action summary { list-style: none; cursor: pointer; display: inline-flex; }
.compact-ops-page details.compact-session-action summary::-webkit-details-marker { display: none; }
.compact-ops-page .compact-revoke-form { display: grid; gap: 5px; min-width: 190px; margin-top: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.compact-ops-page .summary-card .small-value { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 900px) { .compact-ops-page .table-wrap { overflow: auto; } }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card, .noc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 1px 2px rgba(16,24,39,.04); }
.kpi-card { padding: 14px; position: relative; overflow: hidden; }
.kpi-link { display: block; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.kpi-link:hover { color: inherit; transform: translateY(-1px); border-color: #b9c7d8; box-shadow: 0 8px 18px rgba(16,24,39,.08); }
.metric-card { display: block; color: inherit; border-left: 5px solid var(--noc-gray); }
.metric-card:hover { color: inherit; }
.metric-ok { border-left-color: var(--noc-green); }
.metric-info { border-left-color: var(--noc-blue); }
.metric-warning { border-left-color: var(--noc-yellow); }
.metric-degraded { border-left-color: var(--noc-orange); }
.metric-critical { border-left-color: var(--noc-red); }
.metric-neutral { border-left-color: var(--noc-gray); }
.noc-alert { border-radius: 9px; border: 1px solid var(--line); padding: 11px 14px; margin-bottom: 16px; font-weight: 650; }
.noc-alert.status-ok { border-color: #a8d9bd; background: var(--noc-green-bg); color: var(--noc-green); }
.noc-alert.status-info { border-color: #b7cffb; background: var(--noc-blue-bg); color: var(--noc-blue); }
.noc-alert.status-warning { border-color: #f1d08b; background: var(--noc-yellow-bg); color: var(--noc-yellow); }
.noc-alert.status-degraded { border-color: #efb06e; background: var(--noc-orange-bg); color: var(--noc-orange); }
.noc-alert.status-critical { border-color: #efaaa2; background: var(--noc-red-bg); color: var(--noc-red); }
.kpi-card.compact { padding: 12px 14px; }
.kpi-card.compact .kpi-value { font-size: 22px; }
.secondary-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -6px; }
.kpi-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 28px; font-weight: 750; line-height: 1.1; margin-top: 8px; }
.kpi-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.noc-card { margin-bottom: 8px; }
.noc-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.noc-card-title { font-size: 13px; line-height: 1.15; font-weight: 700; margin: 0; }
.table-wrap, .table-responsive { overflow-x: auto; }
.table-noc, .compact-table { margin: 0; font-size: 11.25px; line-height: 1.18; }
.table-noc th, .compact-table th { color: var(--muted); font-size: 8.8px; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; background: #f8fafc; white-space: normal; }
.table-noc td, .table-noc th, .compact-table td, .compact-table th { padding: 5px 6px; vertical-align: top; }
.table-noc td, .compact-table td { max-width: 220px; overflow-wrap: anywhere; white-space: normal; }
.compact-table-sm { font-size: 11px; }
.compact-table-sm td, .compact-table-sm th { padding: 4px 6px; white-space: nowrap; }
.dashboard-widget-table { max-height: 190px; overflow: auto; }
.dashboard-widget-table .table { margin-bottom: 0; }
.dashboard-widget-table thead th { position: sticky; top: 0; z-index: 2; }
.text-truncate-tooltip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.sortable-header { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; white-space: nowrap; }
.sortable-header:hover, .sortable-header.is-active { color: var(--brand); }
.sortable-header.is-active { font-weight: 900; }
.sortable-header .sort-muted { color: #94a3b8; font-size: 10px; }
.pagination-compact { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pagination-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.pagination-compact .page-link { min-width: 28px; padding: 3px 8px; font-size: 12px; text-align: center; }
.table-noc tbody tr,
.compact-table tbody tr {
    transition: background-color .12s ease, box-shadow .12s ease;
}
.table-noc tbody tr:hover,
.table-noc tbody tr:focus-within,
.compact-table tbody tr:hover,
.compact-table tbody tr:focus-within {
    box-shadow: inset 3px 0 0 #64748b;
}
.table-noc tbody tr:hover td,
.table-noc tbody tr:focus-within td,
.compact-table tbody tr:hover td,
.compact-table tbody tr:focus-within td {
    background: #eef2f7;
}
.table-noc tr.row-muted td,
.compact-table tr.row-muted td,
.table tr.row-muted td {
    background: #f8fafc;
    color: #64748b;
}
.table-noc tr.row-muted:hover td,
.table-noc tr.row-muted:focus-within td,
.compact-table tr.row-muted:hover td,
.compact-table tr.row-muted:focus-within td,
.table tr.row-muted:hover td,
.table tr.row-muted:focus-within td {
    background: #eef2f7;
}
.table-noc tr.row-muted a,
.compact-table tr.row-muted a,
.table tr.row-muted a {
    color: #475569;
}
.empty-state { padding: 28px; color: var(--muted); text-align: center; background: #fbfcfe; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-right: 6px; }
.status-ok { background: var(--noc-green-bg); color: var(--noc-green); }
.status-info { background: var(--noc-blue-bg); color: var(--noc-blue); }
.status-warning { background: var(--noc-yellow-bg); color: var(--noc-yellow); }
.status-degraded, .status-orange { background: var(--noc-orange-bg); color: var(--noc-orange); }
.status-critical { background: var(--noc-red-bg); color: var(--noc-red); }
.status-unknown, .status-offline { background: var(--noc-gray-bg); color: var(--noc-gray); }
.badge-soft, .status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; font-weight: 750; font-size: 11px; line-height: 1; white-space: nowrap; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.row-accent { border-left: 4px solid transparent; }
.row-ok { border-left-color: var(--noc-green); }
.row-info { border-left-color: var(--noc-blue); }
.row-warning { border-left-color: var(--noc-yellow); }
.row-degraded { border-left-color: var(--noc-orange); }
.row-critical { border-left-color: var(--noc-red); }
.row-unknown { border-left-color: var(--noc-gray); }
.table-noc tr.row-warning td { background: #fffbf2; }
.table-noc tr.row-degraded td { background: #fff8f1; }
.table-noc tr.row-critical td { background: #fff5f4; }
.table-noc tr.row-warning:hover td,
.table-noc tr.row-warning:focus-within td { background: #fff4db; }
.table-noc tr.row-degraded:hover td,
.table-noc tr.row-degraded:focus-within td { background: #ffeddc; }
.table-noc tr.row-critical:hover td,
.table-noc tr.row-critical:focus-within td { background: #ffe4e1; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--noc-gray); border-radius: 9px; padding: 12px 14px; }
.summary-card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.summary-card .value { font-size: 24px; font-weight: 750; margin-top: 3px; }
.summary-card.metric-ok { border-left-color: var(--noc-green); }
.summary-card.metric-info { border-left-color: var(--noc-blue); }
.summary-card.metric-warning { border-left-color: var(--noc-yellow); }
.summary-card.metric-degraded { border-left-color: var(--noc-orange); }
.summary-card.metric-critical { border-left-color: var(--noc-red); }
.summary-card.metric-muted { border-left-color: #64748b; }
.help-note { color: var(--muted); font-size: 12px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin-bottom: 14px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--noc-gray); border-radius: 9px; padding: 13px; }
.metric.metric-ok { border-left-color: var(--noc-green); }
.metric.metric-info { border-left-color: var(--noc-blue); }
.metric.metric-warning { border-left-color: var(--noc-yellow); }
.metric.metric-degraded { border-left-color: var(--noc-orange); }
.metric.metric-critical { border-left-color: var(--noc-red); }
.metric.metric-neutral { border-left-color: var(--noc-gray); }
.metric .label { color: var(--muted); font-size: 12px; }
.metric .value { font-size: 22px; font-weight: 750; margin-top: 4px; }
.auth-bg { min-height: 100vh; display: flex; align-items: center; background: #eef3f8; }
.login-panel { max-width: 420px; margin: 0 auto; }
@media (max-width: 1100px) { .kpi-grid, .metric-row, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sidebar { width: 210px; } }
@media (max-width: 760px) { .app-shell { display: block; } .sidebar { width: 100%; } .topbar { align-items: flex-start; gap: 12px; flex-direction: column; } .kpi-grid, .metric-row, .summary-grid { grid-template-columns: 1fr; } }

.dashboard-shell { display: grid; gap: 9px; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 96px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, var(--brand-panel), var(--brand-dark)); color: #fff; box-shadow: 0 8px 18px rgba(21,29,59,.12); }
.dashboard-hero .eyebrow { color: #93c5fd; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.dashboard-hero h2 { margin: 2px 0 2px; font-size: 20px; line-height: 1.1; }
.dashboard-hero p { margin: 0; max-width: 620px; color: #b8c6d8; font-size: 12px; line-height: 1.35; }
.dashboard-clock { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dashboard-clock div, .dashboard-clock button, .dashboard-compact-toggle { min-height: 34px; }
.dashboard-clock div, .dashboard-compact-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.07); }
.dashboard-clock span { color: #93a4ba; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.dashboard-clock strong { color: #fff; font-size: 12px; white-space: nowrap; }
.dashboard-compact-toggle { color: #dce7f5; font-size: 12px; font-weight: 800; cursor: pointer; }
.dashboard-compact-toggle input { margin: 0; }
.attention-board { border: 1px solid #d9e2ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.attention-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e6edf5; }
.attention-header h3, .section-title h3 { margin: 0; color: #0f172a; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.attention-header span, .widget-note { color: #64748b; font-size: 12px; }
.attention-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 8px; }
.attention-tile { display: grid; gap: 3px; min-height: 78px; padding: 8px; border: 1px solid #e2e8f0; border-top: 3px solid #64748b; border-radius: 7px; color: inherit; background: #fff; }
.attention-tile:hover { color: inherit; border-color: #bfdbfe; box-shadow: 0 10px 20px rgba(15,23,42,.07); }
.attention-tile strong { overflow: hidden; color: #0f172a; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.attention-tile span { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attention-tile em { align-self: end; color: var(--brand); font-size: 11px; font-style: normal; font-weight: 850; }
.attention-critical { border-top-color: #dc2626; background: #fff7f7; }
.attention-degraded { border-top-color: var(--accent); background: var(--accent-soft); }
.attention-warning { border-top-color: #d97706; background: #fffbeb; }
.attention-ok { border-top-color: #16a34a; background: #f0fdf4; }
.dashboard-kpi-section { display: grid; gap: 5px; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.ops-kpi-card { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; min-height: 82px; padding: 8px; border: 1px solid #d9e2ef; border-left: 4px solid #64748b; border-radius: 7px; color: inherit; background: #fff; box-shadow: 0 5px 14px rgba(15,23,42,.035); }
.ops-kpi-card:hover { color: inherit; transform: translateY(-1px); border-color: #bfdbfe; box-shadow: 0 12px 24px rgba(15,23,42,.07); }
.ops-kpi-card span { display: block; color: #64748b; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.ops-kpi-card strong { display: block; margin-top: 3px; color: #0f172a; font-size: 21px; line-height: 1; }
.ops-kpi-card small, .ops-kpi-card em { display: block; margin-top: 4px; overflow: hidden; color: #64748b; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ops-kpi-card em { color: #334155; font-weight: 750; }
.kpi-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #f5f7ff; color: var(--brand); font-size: 15px; }
.ops-kpi-card.metric-ok { border-left-color: #16a34a; }
.ops-kpi-card.metric-info { border-left-color: var(--brand); }
.ops-kpi-card.metric-warning { border-left-color: #d97706; }
.ops-kpi-card.metric-degraded { border-left-color: var(--accent); }
.ops-kpi-card.metric-critical { border-left-color: #dc2626; }
.ops-kpi-card.metric-unknown { border-left-color: #64748b; }
.lazy-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lazy-widget { overflow: hidden; }
.widget-body { min-height: 118px; }
.skeleton-table { display: grid; gap: 7px; padding: 10px; }
.skeleton-table span { height: 18px; border-radius: 6px; background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7); background-size: 200% 100%; animation: dashboard-skeleton 1.1s linear infinite; }
.skeleton-table span:first-child { width: 70%; }
.skeleton-table span:nth-child(2) { width: 100%; }
.skeleton-table span:nth-child(3) { width: 86%; }
.skeleton-table span:nth-child(4) { width: 92%; }
@keyframes dashboard-skeleton { to { background-position-x: -200%; } }
@media (max-width: 1280px) {
    .ops-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .attention-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-hero { display: grid; }
    .dashboard-clock { min-width: 0; }
}
@media (max-width: 860px) {
    .ops-kpi-grid, .attention-columns, .lazy-dashboard-grid, .dashboard-clock { grid-template-columns: 1fr; }
    .dashboard-hero h2 { font-size: 21px; }
}
.dashboard-compact { gap: 6px; }
.dashboard-compact .dashboard-hero { min-height: 74px; padding: 8px 10px; }
.dashboard-compact .dashboard-hero p { display: none; }
.dashboard-compact .attention-header { padding: 6px 8px; }
.dashboard-compact .attention-columns { gap: 5px; padding: 6px; }
.dashboard-compact .attention-tile { min-height: 62px; padding: 6px; }
.dashboard-compact .dashboard-kpi-section { gap: 4px; }
.dashboard-compact .ops-kpi-grid { gap: 5px; }
.dashboard-compact .ops-kpi-card { min-height: 68px; padding: 6px; grid-template-columns: 26px minmax(0,1fr); }
.dashboard-compact .ops-kpi-card strong { font-size: 18px; }
.dashboard-compact .ops-kpi-card small { display: none; }
.dashboard-compact .kpi-icon { width: 26px; height: 26px; font-size: 13px; }
.dashboard-compact .lazy-dashboard-grid { gap: 7px; }
.dashboard-compact .noc-card-header { padding: 7px 9px; }
.dashboard-compact .widget-body { min-height: 92px; }
.dashboard-compact .skeleton-table { padding: 8px; }

.followup-modal .modal-content { border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(15, 23, 42, .22); }
.followup-modal .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.followup-modal .modal-body { padding: 20px 22px 22px; }
.modal-eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.followup-modal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.followup-fact { border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; padding: 10px 12px; min-height: 74px; }
.followup-fact span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.followup-fact strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.25; word-break: break-word; }
.followup-fact small { display: block; color: var(--muted); margin-top: 5px; }
.followup-latest-note { border-left: 4px solid var(--noc-blue); background: var(--noc-blue-bg); border-radius: 9px; padding: 11px 13px; }
.followup-latest-note span { display: block; color: var(--noc-blue); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.followup-latest-note p { margin: 0; color: var(--ink); }
.followup-note-form { border-top: 1px solid var(--line); padding-top: 16px; }
.modal-action-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .followup-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .followup-modal-grid { grid-template-columns: 1fr; } .modal-action-row { justify-content: stretch; } .modal-action-row .btn { flex: 1 1 auto; } }


/* App-wide operations UI primitives */
.ops-shell { display: grid; gap: 16px; }
.ops-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 1px 2px rgba(16,24,39,.04); }
.ops-eyebrow, .ops-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-title { margin: 4px 0 6px; color: var(--ink); font-size: 30px; line-height: 1.12; font-weight: 850; }
.ops-copy { margin: 0; color: #526179; max-width: 760px; }
.ops-actions { display: grid; justify-items: end; gap: 10px; min-width: 320px; }
.ops-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.ops-tabs a { padding: 8px 11px; border-radius: 8px; color: #475569; font-size: 13px; font-weight: 750; text-decoration: none; }
.ops-tabs a:hover { background: #eef2f7; color: var(--ink); }
.ops-tabs a.active { background: var(--brand); color: #fff; }
.ops-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ops-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: #475569; background: #f8fafc; font-size: 13px; font-weight: 700; }
.ops-pill::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .75; }
.ops-pill-success { background: var(--noc-green-bg); border-color: #bbf7d0; color: var(--noc-green); }
.ops-pill-warning { background: var(--noc-yellow-bg); border-color: #f1d08b; color: var(--noc-yellow); }
.ops-pill-danger { background: var(--noc-red-bg); border-color: #efaaa2; color: var(--noc-red); }
.ops-pill-muted { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }
.btn-outline-danger {
    background: #fff;
    border: 1px solid #ef4444;
    color: #b91c1c;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}
.ops-filter-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px; box-shadow: 0 1px 2px rgba(16,24,39,.04); }
.ops-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.ops-filter-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ops-filter-grid input, .ops-filter-grid select, .ops-control { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 7px 10px; }
.ops-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,39,.04); }
.ops-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.ops-panel-header h2 { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.2; }
.ops-panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.ops-table .table, .ops-table .compact-table, .ops-table .table-noc { margin-bottom: 0; }
.ops-table .table th, .ops-table .compact-table th, .ops-table .table-noc th { background: #f8fafc; color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.ops-primary-text { display: grid; gap: 2px; }
.ops-primary-text a, .ops-primary-text strong { color: #0b63f6; font-weight: 800; }
.ops-primary-text span { color: var(--muted); font-size: 12px; }
.action-row,
.action-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.action-row {
    flex-wrap: wrap;
}
.action-inline {
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
}
.action-icon-btn,
.action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    border: 1px solid #d9e2ef;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.action-pill {
    padding: 4px 7px;
}
.action-icon-btn {
    width: 27px;
    padding: 0;
}
.form-label { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .03em; line-height: 1.1; text-transform: uppercase; }
.form-control,
.form-select { min-height: 30px; padding: 4px 8px; border-radius: 7px; font-size: 12px; }
textarea.form-control { min-height: 58px; }
.action-icon-btn:hover,
.action-pill:hover {
    border-color: #c9cef8;
    background: #f5f7ff;
    color: var(--brand);
    text-decoration: none;
}
.action-icon-btn.success,
.action-pill.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}
.action-icon-btn.success:hover,
.action-pill.success:hover {
    border-color: #34d399;
    background: #dcfce7;
}
.action-icon-btn.warning,
.action-pill.warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}
.action-icon-btn.danger,
.action-pill.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.action-menu .dropdown-toggle::after {
    display: none;
}
.action-menu .dropdown-menu {
    min-width: 190px;
    padding: 6px;
    border-color: #d9e2ef;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}
.action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 7px;
    padding: 7px 9px;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
}
.action-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.compact-indicators {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.compact-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}
.compact-indicator.warning { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.compact-indicator.danger { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.compact-indicator.success { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
.compact-indicator.info { border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }
.visibility-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 14px;
    padding: 1px 4px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    justify-self: start;
    vertical-align: middle;
    white-space: nowrap;
    width: max-content;
}
.compact-status-badge .status-badge,
.compact-status-badge .badge {
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 999px;
}
.free-install-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    max-width: max-content;
    min-height: 16px;
    padding: 1px 5px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
}
.straight-monthly-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    max-width: max-content;
    min-height: 16px;
    padding: 1px 5px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
}
.subscriber-install-label-form {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(160px, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border-top: 1px solid #e5edf6;
}
.subscriber-install-label-form-live {
    margin-top: 8px;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background: #fbfdff;
}
@media (max-width: 980px) {
    .action-inline .action-secondary {
        display: none;
    }
}
@media (max-width: 720px) {
    .subscriber-install-label-form {
        grid-template-columns: 1fr;
    }
}
.ops-empty { padding: 34px 18px; text-align: center; color: var(--muted); background: #fbfcfe; }
.ops-pagination { margin-top: 12px; }
.ops-summary-line { color: var(--muted); font-size: 13px; }
@media (max-width: 1200px) { .ops-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ops-hero { display: grid; } .ops-actions { justify-items: stretch; min-width: 0; } .ops-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-tabs a { text-align: center; } .ops-filter-grid { grid-template-columns: 1fr; } .ops-panel-header { display: grid; } }

/* Sticky modal actions keep save/cancel visible on long operational forms. */
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
}

.modal-sticky-header {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--bs-modal-bg, #fff);
}

.modal-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: var(--bs-modal-bg, #fff);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

.modal-sticky-actions .btn {
    min-width: 120px;
}

/* Payment forms are the modal flex container; keep the body as the only scroll surface. */
.billing-payment-modal-content {
    overflow: hidden;
}

.billing-payment-modal-content.billing-payment-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.billing-payment-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.payment-proof-upload-state {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bs-tertiary-bg, #f8fafc);
    transition: border-color .15s ease, background-color .15s ease;
}

.payment-proof-upload-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 11px;
}

.payment-proof-upload-heading > i {
    color: #64748b;
}

.payment-proof-upload-percent {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.payment-proof-progress {
    height: 6px;
    margin-top: 8px;
    background: rgba(148, 163, 184, .25);
}

.payment-proof-upload-state .form-text {
    margin-top: 6px;
}

.payment-proof-upload-state[data-state="uploading"],
.payment-proof-upload-state[data-state="processing"],
.payment-proof-upload-state[data-state="posting"] {
    border-color: #93c5fd;
    background: #eff6ff;
}

.payment-proof-upload-state[data-state="uploading"] .payment-proof-upload-heading > i,
.payment-proof-upload-state[data-state="processing"] .payment-proof-upload-heading > i,
.payment-proof-upload-state[data-state="posting"] .payment-proof-upload-heading > i {
    color: #2563eb;
}

.payment-proof-upload-state[data-state="success"] {
    border-color: #86efac;
    background: #f0fdf4;
}

.payment-proof-upload-state[data-state="success"] .payment-proof-upload-heading > i {
    color: #16a34a;
}

.payment-proof-upload-state[data-state="warning"] {
    border-color: #fdba74;
    background: #fff7ed;
}

.payment-proof-upload-state[data-state="warning"] .payment-proof-upload-heading > i {
    color: #ea580c;
}

.payment-submit-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

html[data-theme="dark"] .payment-proof-upload-state[data-state="uploading"],
html[data-theme="dark"] .payment-proof-upload-state[data-state="processing"],
html[data-theme="dark"] .payment-proof-upload-state[data-state="posting"] {
    background: rgba(37, 99, 235, .12);
}

html[data-theme="dark"] .payment-proof-upload-state[data-state="success"] {
    background: rgba(22, 163, 74, .12);
}

html[data-theme="dark"] .payment-proof-upload-state[data-state="warning"] {
    background: rgba(234, 88, 12, .12);
}

.pppoe-picker {
    position: relative;
}

.pppoe-search-results {
    position: static;
    z-index: 1080;
    max-height: 260px;
    margin-top: 4px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.pppoe-search-option {
    display: block;
    width: 100%;
    padding: 7px 9px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef2f7;
}

.pppoe-search-option:hover,
.pppoe-search-option:focus {
    background: #eff6ff;
    outline: 0;
}

.pppoe-search-option:last-child {
    border-bottom: 0;
}

.pppoe-search-title {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
}

.pppoe-search-meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.pppoe-selected-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.subscriber-live { display: grid; gap: 10px; }
.subscriber-ops { max-width: 1460px; margin: 0 auto; }
.subscriber-ops-bar {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.subscriber-ops-title { min-width: 0; }
.subscriber-ops-title h2 { margin: 1px 0 2px; color: #0f172a; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.subscriber-toolbar,
.subscriber-hero {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.subscriber-toolbar h2 { margin: 1px 0 2px; font-size: 19px; line-height: 1.15; }
.subscriber-eyebrow { color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.subscriber-subtitle,
.subscriber-actions,
.subscriber-identifiers,
.session-main,
.session-facts { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.subscriber-subtitle span { color: var(--muted); font-size: 12px; }
.subscriber-subtitle span:not(:last-child)::after { margin-left: 7px; color: #cbd5e1; content: '/'; }
.subscriber-hero { align-items: stretch; border-left: 5px solid var(--noc-gray); }
.subscriber-hero.metric-ok { border-left-color: var(--noc-green); }
.subscriber-hero.metric-critical { border-left-color: var(--noc-red); }
.subscriber-hero.metric-warning { border-left-color: var(--noc-yellow); }
.subscriber-hero.metric-info { border-left-color: var(--noc-blue); }
.subscriber-state { display: grid; gap: 5px; min-width: 230px; }
.subscriber-state .state-label,
.subscriber-copy span,
.subscriber-profile span,
.session-facts b { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.subscriber-state strong { color: #0f172a; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.subscriber-state > span:last-child { color: var(--muted); font-size: 12px; }
.subscriber-identifiers { justify-content: flex-end; }
.subscriber-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    gap: 2px 7px;
    align-items: center;
    min-width: 132px;
    max-width: 210px;
    padding: 7px 8px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
}
.subscriber-copy strong { overflow: hidden; color: #111827; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.subscriber-copy i { grid-row: 1 / span 2; grid-column: 2; color: #64748b; font-size: 12px; }
.subscriber-copy.copied { border-color: #86efac; background: #f0fdf4; }
.subscriber-current {
    display: grid;
    grid-template-columns: minmax(145px, .8fr) repeat(5, minmax(130px, 1fr));
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--noc-gray);
    border-radius: 9px;
}
.subscriber-current.metric-ok { border-left-color: var(--noc-green); }
.subscriber-current.metric-critical { border-left-color: var(--noc-red); }
.subscriber-current.metric-warning { border-left-color: var(--noc-yellow); }
.subscriber-current.metric-info { border-left-color: var(--noc-blue); }
.subscriber-status-cell {
    display: grid;
    gap: 4px;
    align-content: center;
    min-width: 0;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
}
.subscriber-status-cell > span,
.subscriber-status-cell small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.subscriber-status-cell div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.subscriber-current-copy { width: 100%; max-width: none; min-width: 0; padding: 6px 8px; }
.subscriber-current-copy strong { font-size: 12px; }
.subscriber-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.subscriber-ops .summary-card { min-width: 0; padding: 8px 10px; border-radius: 8px; }
.subscriber-ops .summary-card .label { font-size: 10px; font-weight: 900; }
.subscriber-ops .summary-card .value { margin-top: 2px; font-size: 18px; line-height: 1.15; }
.subscriber-small-value { overflow: hidden; font-size: 15px !important; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.subscriber-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 10px; }
.subscriber-ops-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 10px; align-items: start; }
.subscriber-side-stack { display: grid; gap: 10px; }
.subscriber-ops .noc-card { margin-bottom: 0; border-radius: 8px; }
.subscriber-ops .noc-card-header { padding: 8px 10px; }
.subscriber-ops .noc-card-title { font-size: 13px; }
.subscriber-session-list { display: grid; gap: 7px; padding: 9px; }
.subscriber-session { border: 1px solid #e2e8f0; border-left: 4px solid #64748b; border-radius: 7px; background: #fff; }
.subscriber-session.row-ok { border-left-color: var(--noc-green); }
.subscriber-session.row-critical { border-left-color: var(--noc-red); }
.session-main { justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid #edf2f7; }
.session-main strong { display: block; color: #0f172a; font-size: 13px; overflow-wrap: anywhere; }
.session-main span { color: var(--muted); font-size: 11px; }
.session-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 8px 9px; }
.session-facts span { min-width: 0; overflow: hidden; color: #111827; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.session-facts b { display: block; margin-bottom: 2px; }
.subscriber-profile { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 9px; }
.subscriber-profile div { min-width: 0; padding: 7px 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 7px; }
.subscriber-profile strong { display: block; margin-top: 2px; overflow: hidden; color: #111827; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.subscriber-profile-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subscriber-action-list { padding: 8px; }
@media (max-width: 1100px) {
    .subscriber-metrics,
    .subscriber-grid,
    .subscriber-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subscriber-current { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .subscriber-identifiers { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .subscriber-toolbar,
    .subscriber-ops-bar,
    .subscriber-hero { display: grid; }
    .subscriber-actions .action-pill { flex: 1 1 46%; justify-content: center; }
    .subscriber-metrics,
    .subscriber-grid,
    .subscriber-ops-grid,
    .subscriber-current,
    .session-facts,
    .subscriber-profile { grid-template-columns: 1fr; }
    .subscriber-copy { max-width: none; width: 100%; }
}

.rich-editor-wrap { border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.rich-editor-wrap.is-focused { border-color: #c9cef8; box-shadow: 0 0 0 3px rgba(45, 49, 127, .12); }
.rich-editor-comment-header { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 9px 0; color: #64748b; font-size: 11px; line-height: 1.1; }
.rich-editor-comment-header span { display: inline-flex; gap: 5px; align-items: center; color: var(--brand); font-weight: 600; }
.rich-editor-comment-header small { color: #94a3b8; font-size: 10px; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 5px; border-bottom: 1px solid #e4ebf3; background: #f8fafc; }
.rich-editor-comment-wrap .rich-editor-toolbar { border-bottom: 0; background: #fff; }
.rich-editor-toolbar button { display: inline-flex; place-items: center; justify-content: center; gap: 3px; min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid #d8e2ef; border-radius: 7px; background: #fff; color: #334155; font-size: 11px; font-weight: 700; line-height: 1; }
.rich-editor-toolbar button:hover { background: #f5f7ff; color: var(--brand); border-color: #c9cef8; }
.rich-editor-surface { min-height: 74px; max-height: 260px; overflow: auto; padding: 8px 9px; color: #1f2937; font-size: 12px; line-height: 1.35; outline: 0; }
.rich-editor-comment-wrap .rich-editor-surface { min-height: 88px; margin: 0 7px 7px; padding: 8px; border: 1px solid #e4ebf3; border-radius: 8px; background: #fbfdff; }
.rich-editor-surface:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.rich-editor-quick-row { display: flex; gap: 5px; overflow-x: auto; padding: 0 7px 7px; scrollbar-width: none; }
.rich-editor-quick-row::-webkit-scrollbar { display: none; }
.rich-editor-quick-row button { flex: 0 0 auto; min-height: 25px; padding: 3px 8px; border: 1px solid #dfe5ef; border-radius: 999px; background: #f5f7ff; color: var(--brand); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.rich-editor-quick-row button:hover { border-color: #c9cef8; background: #eef1ff; }
.rich-text-output p,
.rich-editor-surface p { margin: 0 0 6px; }
.rich-text-output ul,
.rich-text-output ol,
.rich-editor-surface ul,
.rich-editor-surface ol { margin: 4px 0 6px 18px; padding: 0; }
.rich-text-output blockquote,
.rich-editor-surface blockquote { margin: 5px 0; padding: 4px 7px; border-left: 3px solid #c9cef8; background: #f5f7ff; color: #334155; }
.compact-ops-page .rich-editor-surface { min-height: 58px; font-size: 11.75px; }
.compact-ops-page .rich-editor-comment-wrap .rich-editor-surface { min-height: 86px; font-size: 12px; }
@media (max-width: 767px) {
    .rich-editor-toolbar { gap: 5px; padding: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .rich-editor-toolbar::-webkit-scrollbar { display: none; }
    .rich-editor-toolbar button { min-width: 34px; height: 32px; border-radius: 8px; font-size: 12px; }
    .rich-editor-comment-header { padding: 8px 9px 0; font-size: 12px; }
    .rich-editor-comment-wrap .rich-editor-surface { min-height: 110px; font-size: 13px; line-height: 1.38; }
    .rich-editor-quick-row button { min-height: 31px; padding: 5px 10px; font-size: 11px; }
}

.flash-notice-stack {
    display: grid;
    position: fixed;
    z-index: 2080;
    top: 76px;
    right: 18px;
    width: min(430px, calc(100vw - 28px));
    gap: 8px;
    margin: 0;
    pointer-events: none;
}

.flash-notice {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: start;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-left: 5px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .22);
    min-height: 58px;
    padding: 10px 10px 10px 11px;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
}

.flash-notice.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
}

.flash-notice-success { border-color: #bbf7d0; border-left-color: #16a34a; background: #f0fdf4; }
.flash-notice-warning { border-color: #fde68a; border-left-color: #d97706; background: #fffbeb; }
.flash-notice-danger { border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2; }

.flash-notice-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 16px;
}

.flash-notice-success .flash-notice-icon { background: #16a34a; }
.flash-notice-warning .flash-notice-icon { background: #d97706; }
.flash-notice-danger .flash-notice-icon { background: #dc2626; }

.flash-notice-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding-top: 1px;
}

.flash-notice-copy strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.flash-notice-copy span {
    min-width: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

@media (min-width: 761px) {
    .flash-notice-copy span {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.flash-notice-copy span:only-child {
    text-transform: none;
}

.modal-page-content .flash-notice-stack {
    top: 14px;
    right: 14px;
    width: min(390px, calc(100vw - 28px));
}

.flash-notice-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #64748b;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0;
}

.flash-notice-close:hover,
.flash-notice-close:focus {
    color: #0f172a;
    background: #f1f5f9;
    outline: 0;
}

@media (max-width: 760px) {
    .flash-notice-stack {
        top: 68px;
        right: 9px;
        left: 9px;
        width: auto;
    }
    .flash-notice {
        grid-template-columns: 32px minmax(0, 1fr) 30px;
        min-height: 54px;
        border-radius: 9px;
        padding: 9px 9px 9px 10px;
    }
    .flash-notice-icon { width: 30px; height: 30px; font-size: 15px; }
    .flash-notice-copy span { font-size: 13px; }
}

.compact-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto auto;
    gap: 8px;
    align-items: center;
}

/* App-wide compact retrofit for older Bootstrap-style module pages. */
.content-wrap {
    max-width: 100%;
}

.content-wrap > .d-flex:first-child,
.content-wrap > .page-heading,
.content-wrap .section-title {
    margin-bottom: 8px;
}

.content-wrap h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 700;
}

.content-wrap h2,
.content-wrap h3 {
    line-height: 1.2;
}

.content-wrap .row {
    --bs-gutter-x: .55rem;
    --bs-gutter-y: .55rem;
}

.content-wrap .card,
.content-wrap .modal-content,
.content-wrap .dropdown-menu {
    border-color: var(--line, #dfe6ee);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16,24,39,.04);
}

.content-wrap .card-header,
.content-wrap .card-footer {
    padding: 7px 10px;
    background: #f8fafc;
    border-color: var(--line, #dfe6ee);
}

.content-wrap .card-body {
    padding: 10px;
}

.content-wrap .btn:not(.btn-lg) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 650;
    white-space: normal;
}

.content-wrap .btn-sm,
.content-wrap .action-pill.compact,
.content-wrap .action-icon-btn {
    min-height: 28px;
}

.content-wrap .form-label {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
}

.content-wrap .form-control:not(.form-control-lg),
.content-wrap .form-select:not(.form-select-lg) {
    min-height: 32px;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 12.5px;
    line-height: 1.25;
}

.content-wrap textarea.form-control:not(.form-control-lg) {
    min-height: 68px;
}

.content-wrap .alert {
    padding: 7px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 12.5px;
}

.content-wrap .summary-grid {
    gap: 8px;
    margin-bottom: 8px;
}

.content-wrap .summary-card {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
}

.content-wrap .summary-card .label,
.content-wrap .summary-card .metric-label {
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.content-wrap .summary-card .value,
.content-wrap .summary-card strong {
    font-size: 18px;
    line-height: 1.15;
}

.content-wrap .table {
    margin-bottom: 0;
}

.content-wrap .table > :not(caption) > * > * {
    padding: 5px 6px;
}

.content-wrap a,
.content-wrap code,
.content-wrap td,
.content-wrap th {
    overflow-wrap: anywhere;
}

.content-wrap .filter-bar {
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--line, #dfe6ee);
    border-radius: 8px;
    background: #fff;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.page-heading p {
    font-size: 12.5px;
}

.compact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.compact-form-grid label {
    display: grid;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
}

.compact-form-grid .form-control,
.compact-form-grid .form-select,
.compact-filter-bar .form-control,
.compact-filter-bar .form-select {
    min-height: 36px;
    font-size: 13px;
}

.grid-span-2 {
    grid-column: 1 / -1;
}

.two-col-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 12px;
}

.compact-kv {
    display: grid;
    gap: 7px;
}

.compact-kv > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 4px 0;
    border-bottom: 1px solid #eef2f7;
}

.compact-kv span {
    color: #64748b;
    font-size: 12px;
}

.compact-kv strong {
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hr-review-actions {
    display: grid;
    gap: 6px;
    min-width: 260px;
}

.hr-review-actions form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.hr-compact {
    gap: 6px;
}

.hr-compact .page-heading {
    gap: 6px;
    margin-bottom: 0;
}

.hr-compact .page-heading h1 {
    font-size: 20px;
    line-height: 1.1;
    margin: 0;
}

.hr-compact .page-heading p {
    font-size: 11px;
    line-height: 1.15;
}

.hr-compact .action-inline {
    gap: 5px;
}

.hr-compact .hr-daily-heading {
    align-items: center;
    margin-bottom: -2px;
}

.hr-compact .hr-daily-heading h1 {
    font-size: 17px;
}

.hr-compact .hr-daily-filter-card .noc-card-header {
    padding: 4px 6px;
}

.hr-compact .hr-daily-filter-card .action-inline {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(132px, .6fr) minmax(130px, .7fr) minmax(142px, .7fr) minmax(130px, .6fr) minmax(150px, .72fr) minmax(130px, .62fr) auto;
    gap: 5px;
    align-items: center;
}

.hr-compact .hr-daily-filter-card .form-control,
.hr-compact .hr-daily-filter-card .form-select {
    min-height: 27px;
    padding: 2px 7px;
    font-size: 11px;
    line-height: 1.1;
}

.hr-compact .ops-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
    margin-bottom: 0;
}

.hr-compact .ops-metric-grid.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hr-compact .hr-daily-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 6px 6px;
}

.hr-compact a.summary-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hr-compact a.summary-card:hover {
    border-color: #c9cef8;
    background: #f5f7ff;
}

.hr-compact a.summary-card.is-active {
    border-color: var(--brand);
    background: #f5f7ff;
    box-shadow: inset 0 0 0 1px rgba(45, 49, 127, .18);
}

.hr-compact .summary-grid.hr-source-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 5px 6px 6px;
}

.hr-source-heading {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 5px 7px 0;
    border-top: 1px solid var(--line);
}

.hr-source-heading strong { color: #334155; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.hr-source-heading span { color: #64748b; font-size: 9px; }

.hr-compact .summary-grid,
.hr-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
}

.hr-compact .summary-card {
    min-height: 39px;
    padding: 5px 7px;
    border-left-width: 3px;
}

.hr-compact .summary-card span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.hr-compact .summary-card .metric-label {
    font-size: 9px;
    line-height: 1;
}

.hr-compact .summary-card strong {
    display: block;
    margin-top: 1px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 650;
    line-height: 1;
}

.hr-compact .summary-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.1;
}

.hr-compact .noc-card {
    margin-bottom: 0;
    border-radius: 8px;
}

.hr-compact .noc-card-header {
    min-height: 30px;
    padding: 5px 7px;
}

.hr-compact .noc-card-title {
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.1;
}

.hr-compact .hr-daily-section {
    margin-bottom: 6px;
}

.hr-compact .hr-daily-section .noc-card-header p {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.1;
}

.hr-compact .compact-filter-bar {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, .28fr) minmax(130px, .32fr) auto auto;
    gap: 5px;
    padding: 6px;
}

.hr-compact .hr-dashboard-filter {
    grid-template-columns: minmax(130px, .3fr) minmax(150px, .4fr) minmax(150px, .4fr) auto auto;
}

.hr-compact .hr-employee-filter {
    grid-template-columns: minmax(180px, 1.2fr) repeat(7, minmax(108px, .55fr)) auto auto;
}

/* HR employee management directory */
.hr-employee-directory { gap: 8px; }
.hr-directory-heading { margin-bottom: 0; }
.hr-directory-kicker {
    display: block;
    margin-bottom: 2px;
    color: #2563eb;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.hr-directory-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}
.hr-directory-summary-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 9px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
}
.hr-directory-summary-card.metric-info { border-left-color: #3b82f6; }
.hr-directory-summary-card.metric-warning { border-left-color: #f59e0b; }
.hr-directory-summary-card.metric-critical { border-left-color: #ef4444; }
.hr-directory-summary-card.metric-degraded { border-left-color: #f97316; }
.hr-directory-summary-card:hover,.hr-directory-summary-card.is-active { border-color: #93c5fd; background: #eff6ff; }
.hr-directory-summary-card.is-active { box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .16); }
.hr-directory-summary-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #1d4ed8;
    border-radius: 8px;
    background: #dbeafe;
}
.hr-directory-summary-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.hr-directory-summary-card small { overflow: hidden; color: #64748b; font-size: 7.8px; font-weight: 800; letter-spacing: .045em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hr-directory-summary-card strong { margin-top: 2px; color: #0f172a; font-size: 21px; line-height: 1; }
.hr-directory-summary-card > .bi-arrow-right { color: #94a3b8; font-size: 10px; }

.hr-directory-filter-card { position: relative; z-index: 4; overflow: visible; }
.hr-directory-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1.55fr) minmax(145px, .7fr) minmax(145px, .75fr) minmax(145px, .72fr) auto auto auto;
    align-items: end;
    gap: 6px;
    padding: 7px;
}
.hr-directory-filter label { display: flex; min-width: 0; margin: 0; flex-direction: column; gap: 3px; }
.hr-directory-filter label > span { color: #64748b; font-size: 7.8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.hr-directory-search > div { position: relative; }
.hr-directory-search > div > i { position: absolute; z-index: 1; top: 50%; left: 9px; color: #94a3b8; font-size: 10px; transform: translateY(-50%); }
.hr-directory-search input { padding-left: 27px; }
.hr-directory-more { position: relative; }
.hr-directory-more > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 24px;
    padding: 2px 7px;
    color: #475569;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    white-space: nowrap;
}
.hr-directory-more > summary::-webkit-details-marker { display: none; }
.hr-directory-more > summary strong { display: grid; place-items: center; min-width: 16px; height: 16px; color: #fff; font-size: 7.5px; border-radius: 99px; background: #2563eb; }
.hr-directory-more > summary .bi-chevron-down { font-size: 8px; transition: transform .16s ease; }
.hr-directory-more[open] > summary { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }
.hr-directory-more[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.hr-directory-more-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: min(720px, calc(100vw - 355px));
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 7px;
    padding: 9px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}
.hr-directory-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 7px 7px;
}
.hr-directory-filter-chips > span { color: #64748b; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hr-directory-filter-chips > a { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 2px 6px; color: #1d4ed8; font-size: 8.5px; font-weight: 700; text-decoration: none; border: 1px solid #bfdbfe; border-radius: 99px; background: #eff6ff; }
.hr-directory-filter-chips > a:hover { border-color: #60a5fa; }
.hr-directory-filter-chips > a.clear-all { color: #64748b; border-color: transparent; background: transparent; }

.hr-directory-results { overflow: hidden; }
.hr-directory-results-heading { min-height: 40px !important; padding: 7px 9px !important; }
.hr-directory-results-heading .noc-card-title { font-size: 12.5px; }
.hr-directory-table { table-layout: fixed; }
.hr-directory-table th:nth-child(1) { width: 19%; }
.hr-directory-table th:nth-child(2) { width: 16%; }
.hr-directory-table th:nth-child(3) { width: 20%; }
.hr-directory-table th:nth-child(4) { width: 15%; }
.hr-directory-table th:nth-child(5) { width: 25%; }
.hr-directory-table th:nth-child(6) { width: 5%; }
.hr-directory-table td { height: 52px; padding: 6px 8px !important; }
.hr-directory-table td:not(:first-child):not(:last-child) { display: table-cell; }
.hr-directory-table td > strong,.hr-directory-table td > small { display: block; }
.hr-directory-table td > strong { overflow: hidden; color: #1e293b; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hr-directory-table td > small { overflow: hidden; margin-top: 2px; color: #64748b; font-size: 8.3px; text-overflow: ellipsis; white-space: nowrap; }
.hr-directory-row-attention > td:first-child { box-shadow: inset 3px 0 #f59e0b; }
.hr-directory-row-attention { background: #fffdf7; }
.hr-directory-person { display: block; min-width: 0; color: inherit; text-decoration: none; }
.hr-directory-person:hover .user-avatar-name { color: #1d4ed8; }
.hr-directory-person .user-avatar-copy { min-width: 0; }
.hr-directory-person .user-avatar-name,.hr-directory-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-directory-identity-meta { display: flex; align-items: center; gap: 5px; margin: 3px 0 0 34px; }
.hr-directory-identity-meta > span:not(.status-badge) { color: #64748b; font-size: 8px; font-weight: 750; }
.hr-directory-table td[data-label="Employment"] > strong { margin-top: 4px; }
.hr-directory-health { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.hr-directory-milestone { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 4px; align-items: center; min-width: 0; color: #64748b; }
.hr-directory-milestone > i { grid-row: 1 / 3; font-size: 11px; }
.hr-directory-milestone > strong { overflow: hidden; color: #334155; font-size: 8.8px; text-overflow: ellipsis; white-space: nowrap; }
.hr-directory-milestone > small { color: #64748b; font-size: 7.8px; }
.hr-directory-milestone.is-due { color: #b45309; }
.hr-directory-milestone.is-due > strong { color: #92400e; }
.hr-directory-milestone.is-overdue { color: #dc2626; }
.hr-directory-milestone.is-overdue > strong { color: #b91c1c; }
.hr-directory-health-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.hr-directory-health-flags .is-ready { display: inline-flex; align-items: center; gap: 4px; color: #15803d; font-size: 8px; font-weight: 700; }
.hr-directory-open { text-align: right; }
.hr-directory-open .action-pill { justify-content: center; }
.hr-directory-results .ops-empty { padding: 32px !important; text-align: center; }
.hr-directory-results .ops-empty > * { display: block; margin: 2px auto; }

html[data-theme="dark"] .hr-directory-summary-card,
html[data-theme="dark"] .hr-directory-more > summary,
html[data-theme="dark"] .hr-directory-more-panel { background: #0f172a; }
html[data-theme="dark"] .hr-directory-summary-card:hover,
html[data-theme="dark"] .hr-directory-summary-card.is-active,
html[data-theme="dark"] .hr-directory-more[open] > summary { background: #172554; }
html[data-theme="dark"] .hr-directory-summary-card strong,
html[data-theme="dark"] .hr-directory-table td > strong,
html[data-theme="dark"] .hr-directory-milestone > strong { color: #e2e8f0; }
html[data-theme="dark"] .hr-directory-row-attention { background: rgba(245, 158, 11, .07); }

@media (max-width: 1280px) {
    .hr-directory-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hr-directory-filter { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .hr-directory-search { grid-column: span 2; }
    .hr-directory-more-panel { right: auto; left: 0; width: min(720px, calc(100vw - 350px)); }
}

@media (max-width: 900px) {
    .hr-directory-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-directory-search { grid-column: 1 / -1; }
    .hr-directory-more { grid-column: auto; }
    .hr-directory-more-panel { position: static; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; box-shadow: none; }
    .hr-directory-table,.hr-directory-table tbody { display: block; }
    .hr-directory-table thead { display: none; }
    .hr-directory-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 7px; }
    .hr-directory-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .hr-directory-table td,.hr-directory-table td:not(:first-child):not(:last-child) { display: block; width: auto; height: auto; min-width: 0; border: 0; border-bottom: 1px solid var(--line); }
    .hr-directory-table td:first-child { grid-column: 1 / -1; }
    .hr-directory-table td::before { display: block; margin-bottom: 3px; color: #94a3b8; font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; content: attr(data-label); }
    .hr-directory-table td:first-child::before,.hr-directory-table td:last-child::before { display: none; }
    .hr-directory-table .hr-directory-open { grid-column: 1 / -1; border-bottom: 0; }
    .hr-directory-table .hr-directory-open .action-pill { width: 100%; }
    .hr-directory-row-attention > td:first-child { border-radius: 8px 8px 0 0; }
    html[data-theme="dark"] .hr-directory-table tr { background: #0f172a; }
}

@media (max-width: 620px) {
    .hr-directory-summary,.hr-directory-filter,.hr-directory-more-panel,.hr-directory-table tbody { grid-template-columns: 1fr; }
    .hr-directory-summary-card { min-height: 55px; }
    .hr-directory-filter > .action-pill { width: 100%; }
    .hr-directory-table tr { grid-template-columns: 1fr; }
    .hr-directory-table td,.hr-directory-table td:first-child,.hr-directory-table .hr-directory-open { grid-column: 1; }
}

.hr-management-snapshot {
    overflow: hidden;
    border-left: 3px solid var(--noc-blue);
}

.hr-management-signal-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    background: #f8fafc;
}

.hr-management-signal {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 8px;
    min-height: 55px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--noc-gray);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.hr-management-signal.metric-critical { border-left-color: var(--noc-red); }
.hr-management-signal.metric-warning { border-left-color: var(--noc-yellow); }
.hr-management-signal.metric-degraded { border-left-color: var(--noc-orange); }
.hr-management-signal.metric-info { border-left-color: var(--noc-blue); }
.hr-management-signal:hover { border-color: #a5b4fc; background: #f5f7ff; }
.hr-management-signal.is-clear { opacity: .68; }
.hr-management-signal > span { color: #475569; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hr-management-signal > strong { color: #0f172a; font-size: 18px; line-height: 1; }
.hr-management-signal > small { grid-column: 1 / -1; color: #64748b; font-size: 8.5px; }

.hr-regularization-queue {
    scroll-margin-top: 90px;
    border-top: 1px solid var(--line);
}

.hr-daily-section#attendance-exceptions { scroll-margin-top: 90px; }

.hr-regularization-queue:target {
    outline: 2px solid rgba(37, 99, 235, .35);
    outline-offset: -2px;
    background: #eff6ff;
}

.hr-regularization-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
}

.hr-regularization-heading > div,
.hr-regularization-person,
.hr-regularization-row > span:not(.hr-management-avatar) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hr-regularization-heading strong { color: #0f172a; font-size: 10.5px; }
.hr-regularization-heading small,
.hr-regularization-row small { color: #64748b; font-size: 8.5px; }
.hr-regularization-list { border-top: 1px solid var(--line); }

.hr-regularization-row {
    display: grid;
    grid-template-columns: 28px minmax(180px, 1.4fr) minmax(115px, .7fr) minmax(70px, .45fr) minmax(130px, .8fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.hr-regularization-row:last-child { border-bottom: 0; }
.hr-regularization-row > span > strong { overflow: hidden; color: #1e293b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hr-management-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 10px; font-weight: 800; }

html[data-theme="dark"] .hr-management-signal-grid { background: #111827; }
html[data-theme="dark"] .hr-management-signal,
html[data-theme="dark"] .hr-regularization-row { background: #0f172a; }
html[data-theme="dark"] .hr-management-signal > span,
html[data-theme="dark"] .hr-management-signal > small,
html[data-theme="dark"] .hr-regularization-heading small,
html[data-theme="dark"] .hr-regularization-row small { color: #94a3b8; }
html[data-theme="dark"] .hr-management-signal > strong,
html[data-theme="dark"] .hr-source-heading strong,
html[data-theme="dark"] .hr-regularization-heading strong,
html[data-theme="dark"] .hr-regularization-row > span > strong { color: #e2e8f0; }
html[data-theme="dark"] .hr-management-signal:hover,
html[data-theme="dark"] .hr-regularization-queue:target { background: #172554; }

/* Daily Attendance management command center */
.hr-ops-filter-form {
    display: grid;
    grid-template-columns: minmax(130px, .55fr) minmax(180px, .8fr) minmax(180px, .85fr) minmax(190px, 1fr) auto auto;
    gap: 7px;
    align-items: end;
    padding: 8px;
}

.hr-ops-filter-form > label,
.hr-advanced-filters label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
}

.hr-ops-filter-form label > span,
.hr-advanced-filters label > span {
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hr-advanced-filters { position: relative; }
.hr-advanced-filters > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #475569;
    background: #fff;
    font-size: 9.5px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}
.hr-advanced-filters > summary::-webkit-details-marker { display: none; }
.hr-advanced-filters[open] > summary { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.hr-advanced-filters > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: 430px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
}

.hr-management-command {
    overflow: hidden;
    margin-bottom: 7px !important;
    border-left: 4px solid #10b981;
}
.hr-management-command.state-warning { border-left-color: #f59e0b; }
.hr-management-command.state-critical { border-left-color: #ef4444; }
.hr-command-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 8px;
}
.hr-command-eyebrow { color: #64748b; font-size: 8.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hr-command-heading h2 { display: flex; align-items: center; gap: 7px; margin: 2px 0 1px; color: #047857; font-size: 17px; }
.hr-management-command.state-warning .hr-command-heading h2 { color: #b45309; }
.hr-management-command.state-critical .hr-command-heading h2 { color: #b91c1c; }
.hr-command-heading p { margin: 0; color: #64748b; font-size: 9.5px; }
.hr-command-actions { display: flex; gap: 6px; }
.hr-command-metrics {
    display: grid;
    grid-template-columns: minmax(235px, 1.65fr) repeat(6, minmax(90px, .72fr));
    gap: 6px;
    padding: 0 8px 8px;
}
.hr-attendance-progress,
.hr-command-metric {
    min-width: 0;
    min-height: 76px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}
.hr-attendance-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hr-attendance-progress span,
.hr-command-metric-label { color: #64748b; font-size: 8px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.hr-attendance-progress strong { color: #0f172a; font-size: 20px; line-height: 1; }
.hr-attendance-progress strong small { color: #64748b; font-size: 10px; }
.hr-attendance-progress > small,
.hr-command-metric small { display: block; margin-top: 4px; color: #64748b; font-size: 7.8px; line-height: 1.15; }
.hr-progress-track { overflow: hidden; height: 6px; margin-top: 7px; border-radius: 99px; background: #e2e8f0; }
.hr-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #22c55e); }
.hr-command-metric { display: flex !important; align-items: flex-start !important; justify-content: flex-start; flex-direction: column !important; border-left: 3px solid #94a3b8; color: inherit; text-decoration: none; }
.hr-command-metric.metric-ok { border-left-color: #22c55e; }
.hr-command-metric.metric-warning { border-left-color: #f59e0b; }
.hr-command-metric.metric-critical { border-left-color: #ef4444; }
.hr-command-metric.metric-info { border-left-color: #3b82f6; }
.hr-command-metric-label { display: flex; align-items: center; gap: 5px; width: 100%; min-height: 17px; line-height: 1.15; }
.hr-command-metric-label > i { color: #94a3b8; font-size: 11px; }
.hr-command-metric strong { display: block; width: 100%; margin: 3px 0 5px; color: #0f172a; font-size: 23px; line-height: 1; }
.hr-command-metric small { margin-top: auto; }
.hr-command-metric:hover,.hr-command-metric.is-active { border-color: #93c5fd; background: #eff6ff; }
.hr-command-metric.is-clear { border-left-color: #22c55e; background: #f0fdf4; }
.hr-command-drawer { margin: 0 !important; border: 0 !important; border-top: 1px solid #ede9fe !important; border-radius: 0 !important; }

.hr-management-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, .8fr);
    overflow: hidden;
    margin-bottom: 7px !important;
}
.hr-priority-queue { min-width: 0; border-right: 1px solid var(--line); }
.hr-priority-list { border-top: 1px solid var(--line); }
.hr-priority-row {
    display: grid;
    grid-template-columns: 28px minmax(145px, 1.05fr) minmax(190px, 1.35fr) minmax(105px, .65fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid #f59e0b;
    background: #fff;
}
.hr-priority-row.priority-critical { border-left-color: #ef4444; background: #fffafa; }
.hr-priority-row:last-of-type { border-bottom: 0; }
.hr-priority-person,.hr-priority-reason,.hr-priority-time { display: flex; flex-direction: column; min-width: 0; }
.hr-priority-person strong,.hr-priority-time strong { overflow: hidden; color: #1e293b; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.hr-priority-row small { color: #64748b; font-size: 8.5px; line-height: 1.2; }
.hr-priority-reason .status-badge { align-self: flex-start; margin-bottom: 2px; }
.hr-priority-more { display: block; padding: 7px 10px; color: #1d4ed8; font-size: 9px; font-weight: 750; text-align: center; text-decoration: none; background: #eff6ff; }
.hr-priority-clear { display: flex; align-items: center; gap: 10px; min-height: 92px; padding: 16px; color: #047857; border-top: 1px solid var(--line); background: #ecfdf5; }
.hr-priority-clear > i { font-size: 22px; }
.hr-priority-clear strong,.hr-priority-clear small { display: block; }
.hr-priority-clear small { color: #64748b; font-size: 9px; }
.hr-signal-rail { min-width: 0; }
.hr-signal-rail .hr-management-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; }
.hr-signal-rail .hr-management-signal {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 70px;
    padding: 8px 9px;
}
.hr-signal-rail .hr-management-signal > span:first-child { display: block; min-height: 22px; line-height: 1.15; }
.hr-signal-result { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.hr-signal-result > strong { color: #0f172a; font-size: 22px; line-height: 1; }
.hr-signal-result > small { color: #64748b; font-size: 8px; white-space: nowrap; }
.hr-signal-rail .hr-management-signal.is-clear { border-left-color: #cbd5e1; background: #f8fafc; opacity: 1; }
.hr-signal-rail .hr-management-signal.is-clear .hr-signal-result > strong { color: #64748b; }
.hr-management-workspace > .hr-regularization-queue { grid-column: 1 / -1; }
.hr-regularization-heading { cursor: pointer; list-style: none; }
.hr-regularization-heading::-webkit-details-marker { display: none; }
.hr-regularization-footer { display: flex; justify-content: flex-end; padding: 6px 9px; border-top: 1px solid var(--line); background: #f8fafc; }

.hr-section-drawer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 7px 9px;
    color: #334155;
    cursor: pointer;
    list-style: none;
}
.hr-section-drawer-summary::-webkit-details-marker { display: none; }
.hr-section-drawer-summary > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hr-section-drawer-summary > span > small { overflow: hidden; color: #64748b; font-size: 8.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hr-section-drawer-summary > span:last-child { margin-left: auto; }
.hr-section-drawer-summary .bi-chevron-down,.hr-regularization-heading > .bi-chevron-down { transition: transform .16s ease; }
details[open] > .hr-section-drawer-summary .bi-chevron-down,details[open] > .hr-regularization-heading > .bi-chevron-down { transform: rotate(180deg); }
.hr-audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; }
.hr-audit-toolbar > div:first-child { display: flex; flex-direction: column; }
.hr-audit-toolbar strong { color: #1e293b; font-size: 10px; }
.hr-audit-toolbar small { color: #64748b; font-size: 8px; }
.hr-audit-drawer,.hr-correction-drawer { margin-bottom: 7px !important; }
.hr-workforce-table .hr-row-needs-attention { background: #fffbeb; }
.hr-workforce-table .hr-row-needs-attention > td:first-child { box-shadow: inset 3px 0 #f59e0b; }
.hr-daily-section#daily-attendance-roster,.hr-daily-section#attendance-exceptions,.hr-correction-drawer { scroll-margin-top: 90px; }

html[data-theme="dark"] .hr-advanced-filters > summary,
html[data-theme="dark"] .hr-advanced-filters > div,
html[data-theme="dark"] .hr-attendance-progress,
html[data-theme="dark"] .hr-command-metric,
html[data-theme="dark"] .hr-priority-row { background: #0f172a; }
html[data-theme="dark"] .hr-priority-row.priority-critical { background: #211318; }
html[data-theme="dark"] .hr-command-heading h2,
html[data-theme="dark"] .hr-attendance-progress strong,
html[data-theme="dark"] .hr-command-metric strong,
html[data-theme="dark"] .hr-priority-person strong,
html[data-theme="dark"] .hr-priority-time strong,
html[data-theme="dark"] .hr-audit-toolbar strong { color: #e2e8f0; }
html[data-theme="dark"] .hr-command-metric:hover,
html[data-theme="dark"] .hr-command-metric.is-active,
html[data-theme="dark"] .hr-advanced-filters[open] > summary { background: #172554; }
html[data-theme="dark"] .hr-command-metric.is-clear { background: rgba(22, 163, 74, .12); }
html[data-theme="dark"] .hr-signal-result > strong { color: #e2e8f0; }
html[data-theme="dark"] .hr-signal-rail .hr-management-signal.is-clear { background: #111827; }
html[data-theme="dark"] .hr-signal-rail .hr-management-signal.is-clear .hr-signal-result > strong { color: #94a3b8; }
html[data-theme="dark"] .hr-priority-clear { background: rgba(5, 150, 105, .12); }
html[data-theme="dark"] .hr-audit-toolbar,
html[data-theme="dark"] .hr-regularization-footer { background: #111827; }

@media (max-width: 1280px) {
    .hr-command-metrics { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(105px, .7fr)); }
    .hr-management-workspace { grid-template-columns: 1fr; }
    .hr-priority-queue { border-right: 0; border-bottom: 1px solid var(--line); }
    .hr-signal-rail .hr-management-signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hr-ops-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-advanced-filters > div { right: auto; left: 0; width: min(430px, calc(100vw - 42px)); }
    .hr-command-heading { align-items: flex-start; flex-direction: column; }
    .hr-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-attendance-progress { grid-column: 1 / -1; }
    .hr-priority-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .hr-priority-reason,.hr-priority-time { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
    .hr-ops-filter-form,.hr-command-metrics,.hr-signal-rail .hr-management-signal-grid { grid-template-columns: 1fr; }
    .hr-command-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .hr-attendance-progress { grid-column: auto; }
    .hr-priority-row { grid-template-columns: 28px minmax(0, 1fr); }
    .hr-priority-row > .action-pill { grid-column: 2; justify-self: start; }
    .hr-section-drawer-summary > span > small { display: none; }
    .hr-audit-toolbar { align-items: flex-start; flex-direction: column; }
}

.hr-compact .hr-leave-filter {
    grid-template-columns: minmax(180px, 1fr) minmax(112px, .26fr) minmax(130px, .34fr) minmax(130px, .34fr) minmax(116px, .28fr) minmax(116px, .28fr) auto auto;
}

/* Leave operations command center */
.hr-leave-operations,.hr-leave-detail-page { gap: 8px; }
.hr-leave-heading { align-items: flex-end; }
.hr-leave-eyebrow { display: block; margin-bottom: 3px; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hr-leave-command { overflow: hidden; border-color: #dbe5f0; }
.hr-leave-command.has-pending { border-top: 3px solid #f59e0b; }
.hr-leave-command.is-clear { border-top: 3px solid #16a34a; }
.hr-leave-command-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.hr-leave-command-head > div { display: grid; gap: 1px; }
.hr-leave-command-head span { color: #64748b; font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hr-leave-command-head strong { color: #172033; font-size: 15px; line-height: 1.15; }
.hr-leave-command-head small { color: #64748b; font-size: 10px; }
.hr-leave-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hr-leave-metric { display: grid; gap: 1px; min-height: 53px; padding: 7px 9px; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; background: #fff; color: #172033; text-decoration: none; }
.hr-leave-metric:last-child { border-right: 0; }
.hr-leave-metric:hover,.hr-leave-metric.is-active { background: #f8fbff; text-decoration: none; }
.hr-leave-metric.is-active { border-bottom-color: #4f46e5; }
.hr-leave-metric > span { color: #64748b; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hr-leave-metric > strong { color: #172033; font-size: 19px; line-height: 1; }
.hr-leave-metric > small { color: #7a8798; font-size: 9px; }
.hr-leave-filter-card { padding: 7px; }
.hr-leave-ops-filter { display: grid; grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(120px, .55fr)) repeat(2, minmax(118px, .5fr)) auto auto; gap: 6px; align-items: end; }
.hr-leave-ops-filter label { display: grid; gap: 2px; min-width: 0; color: #64748b; font-size: 9px; font-weight: 700; }
.hr-leave-ops-filter .form-control,.hr-leave-ops-filter .form-select { min-height: 29px; padding: 3px 7px; font-size: 11px; }
.hr-leave-queue { overflow: visible; }
.hr-leave-queue-head > div { display: grid; gap: 1px; }
.hr-leave-queue-head p { font-size: 9.5px; }
.hr-leave-queue-list { display: grid; }
.hr-leave-queue-row { position: relative; display: grid; grid-template-columns: minmax(190px, 1.05fr) minmax(165px, .8fr) minmax(210px, 1.2fr) minmax(125px, .6fr) auto; gap: 10px; align-items: center; min-height: 66px; padding: 8px 9px 8px 12px; border-bottom: 1px solid #e8eef5; border-left: 3px solid #94a3b8; background: #fff; }
.hr-leave-queue-row:last-child { border-bottom: 0; }
.hr-leave-queue-row:hover { background: #fbfdff; }
.hr-leave-queue-row.state-pending { border-left-color: #f59e0b; background: #fffdfa; }
.hr-leave-queue-row.state-approved { border-left-color: #16a34a; }
.hr-leave-queue-row.state-rejected { border-left-color: #dc2626; }
.hr-leave-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hr-leave-avatar { display: inline-grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #c7d7eb; border-radius: 8px; background: #eef4ff; color: #334e7d; font-size: 10px; font-weight: 850; }
.hr-leave-person > div,.hr-leave-request-meta,.hr-leave-context,.hr-leave-state { display: grid; gap: 2px; min-width: 0; }
.hr-leave-person a { overflow: hidden; color: #172033; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.hr-leave-person small,.hr-leave-request-meta small,.hr-leave-context small,.hr-leave-state small { overflow: hidden; color: #718096; font-size: 9.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hr-leave-request-meta > span,.hr-leave-context > span { color: #64748b; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hr-leave-request-meta strong,.hr-leave-context strong { overflow: hidden; color: #263548; font-size: 11px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hr-leave-context strong { font-weight: 600; }
.hr-leave-state { align-content: center; justify-items: start; }
.hr-leave-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.hr-leave-row-actions > form { display: contents; }
.hr-leave-reject-popover { position: relative; }
.hr-leave-reject-popover > summary { list-style: none; cursor: pointer; }
.hr-leave-reject-popover > summary::-webkit-details-marker { display: none; }
.hr-leave-reject-popover > form { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; display: grid; gap: 7px; width: 280px; padding: 9px; border: 1px solid #fecaca; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.hr-leave-reject-popover label { display: grid; gap: 3px; color: #991b1b; font-size: 9.5px; font-weight: 750; }
.hr-leave-reject-popover textarea { min-height: 58px; font-size: 11px; }
.hr-leave-reject-popover form > div { display: flex; justify-content: flex-end; }
.hr-leave-empty { display: grid; justify-items: center; gap: 3px; padding: 34px 16px; color: #64748b; text-align: center; }
.hr-leave-empty i { color: #16a34a; font-size: 24px; }
.hr-leave-empty strong { color: #334155; font-size: 12px; }
.hr-leave-empty span { font-size: 10px; }

.hr-leave-decision-strip { display: grid; grid-template-columns: 1.25fr .85fr .9fr .8fr; border-left: 4px solid #94a3b8; }
.hr-leave-decision-strip.state-pending { border-left-color: #f59e0b; }
.hr-leave-decision-strip.state-approved { border-left-color: #16a34a; }
.hr-leave-decision-strip.state-rejected { border-left-color: #dc2626; }
.hr-leave-decision-strip > div { display: grid; align-content: center; gap: 2px; min-height: 58px; padding: 8px 11px; border-right: 1px solid var(--line); }
.hr-leave-decision-strip > div:last-child { border-right: 0; }
.hr-leave-decision-strip > div > span,.hr-leave-resolution-card > span { color: #64748b; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hr-leave-decision-strip > div > strong { color: #172033; font-size: 12px; }
.hr-leave-decision-strip > div > small { color: #718096; font-size: 9.5px; }
.hr-leave-decision-person { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px !important; }
.hr-leave-decision-person .hr-leave-avatar { grid-row: 1 / 4; align-self: center; }
.hr-leave-decision-status { justify-items: start; }
.hr-leave-detail-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 365px); gap: 8px; align-items: start; }
.hr-leave-main-stack,.hr-leave-side-stack { display: grid; gap: 8px; min-width: 0; }
.hr-leave-side-stack { position: sticky; top: 78px; }
.hr-leave-overview-card .noc-card-header p,.hr-leave-conversation .noc-card-header p { margin-top: 1px; font-size: 9px; }
.hr-leave-brief-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.hr-leave-brief-grid > div { display: grid; gap: 2px; min-width: 0; padding: 8px 9px; border-right: 1px solid var(--line); }
.hr-leave-brief-grid > div:last-child { border-right: 0; }
.hr-leave-brief-grid span,.hr-leave-stakeholders span,.hr-leave-documents > span,.hr-leave-reason-block > span { color: #64748b; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hr-leave-brief-grid strong { overflow: hidden; color: #172033; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hr-leave-brief-grid small { overflow: hidden; color: #718096; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.hr-leave-reason-block { display: grid; gap: 4px; padding: 10px; background: #f8fafc; }
.hr-leave-reason-block p { margin: 0; color: #263548; font-size: 12px; line-height: 1.4; }
.hr-leave-provenance { display: flex; gap: 8px; margin: 0 9px 9px; padding: 8px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #1e40af; }
.hr-leave-provenance > i { font-size: 15px; }
.hr-leave-provenance > div { display: grid; gap: 2px; }
.hr-leave-provenance strong { font-size: 10.5px; }
.hr-leave-provenance span { font-size: 9.5px; line-height: 1.3; }
.hr-leave-stakeholders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hr-leave-stakeholders > div { display: grid; gap: 2px; padding: 7px 9px; border-right: 1px solid var(--line); }
.hr-leave-stakeholders > div:last-child { border-right: 0; }
.hr-leave-stakeholders strong { color: #334155; font-size: 9.5px; font-weight: 600; line-height: 1.25; }
.hr-leave-documents { display: grid; gap: 5px; padding: 8px 9px; border-top: 1px solid var(--line); }
.hr-leave-documents > div { display: flex; flex-wrap: wrap; gap: 4px; }
.hr-leave-comment-form { display: grid; gap: 6px; padding: 8px; }
.hr-leave-conversation .leave-comment-list { max-height: 330px; }
.hr-leave-decision-panel { overflow: hidden; border-top: 3px solid #f59e0b; }
.hr-leave-panel-head { display: grid; gap: 2px; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fffbeb; }
.hr-leave-panel-head > span { color: #92400e; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hr-leave-panel-head > strong { color: #172033; font-size: 14px; }
.hr-leave-panel-head > small { color: #64748b; font-size: 9.5px; line-height: 1.3; }
.hr-leave-approve-block,.hr-leave-reject-block { display: grid; gap: 7px; padding: 9px 10px; }
.hr-leave-approve-block { border-bottom: 1px solid var(--line); }
.hr-leave-approve-block > div,.hr-leave-reject-block > div { display: flex; gap: 7px; }
.hr-leave-approve-block > div > i { color: #16a34a; }
.hr-leave-reject-block > div > i { color: #dc2626; }
.hr-leave-approve-block > div > span,.hr-leave-reject-block > div > span { display: grid; gap: 1px; }
.hr-leave-approve-block strong,.hr-leave-reject-block strong { color: #172033; font-size: 10.5px; }
.hr-leave-approve-block small,.hr-leave-reject-block small { color: #64748b; font-size: 9px; }
.hr-leave-approve-block form,.hr-leave-reject-block form { display: grid; gap: 6px; }
.hr-leave-approve-block textarea,.hr-leave-reject-block textarea { min-height: 48px; font-size: 10.5px; }
.hr-leave-approve-block button,.hr-leave-reject-block button { justify-self: end; }
.hr-leave-resolution-card { display: grid; gap: 7px; padding: 10px; border-top: 3px solid #94a3b8; }
.hr-leave-resolution-card.state-approved { border-top-color: #16a34a; }
.hr-leave-resolution-card.state-rejected { border-top-color: #dc2626; }
.hr-leave-resolution-card > div { display: grid; gap: 1px; padding-top: 6px; border-top: 1px solid var(--line); }
.hr-leave-resolution-card small { color: #64748b; font-size: 8.5px; text-transform: uppercase; }
.hr-leave-resolution-card strong,.hr-leave-resolution-card p { margin: 0; color: #334155; font-size: 10.5px; }
.hr-leave-side-drawer > summary,.hr-leave-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; color: #334155; cursor: pointer; list-style: none; }
.hr-leave-side-drawer > summary::-webkit-details-marker,.hr-leave-history > summary::-webkit-details-marker { display: none; }
.hr-leave-side-drawer > summary > span,.hr-leave-history > summary > span { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; }
.hr-leave-side-drawer > summary > span > i,.hr-leave-history > summary > span > i { grid-row: 1 / 3; color: #64748b; }
.hr-leave-side-drawer > summary strong,.hr-leave-history > summary strong { color: #263548; font-size: 10.5px; }
.hr-leave-side-drawer > summary small,.hr-leave-history > summary small { color: #718096; font-size: 8.5px; }
.hr-leave-side-drawer > summary > .bi-chevron-down,.hr-leave-history > summary > .bi-chevron-down { transition: transform .16s ease; }
.hr-leave-side-drawer[open] > summary > .bi-chevron-down,.hr-leave-history[open] > summary > .bi-chevron-down { transform: rotate(180deg); }
.hr-leave-side-drawer > form { display: grid; gap: 7px; padding: 8px 9px; border-top: 1px solid var(--line); }
.hr-leave-side-drawer form label { display: grid; gap: 3px; color: #64748b; font-size: 9.5px; font-weight: 700; }
.hr-leave-side-drawer form > small { color: #718096; font-size: 9px; line-height: 1.25; }
.hr-leave-side-drawer form > button { justify-self: end; }
.hr-leave-side-drawer.is-danger > summary i,.hr-leave-side-drawer.is-danger > summary strong { color: #b91c1c; }
.hr-leave-timeline { display: grid; padding: 4px 10px 10px; border-top: 1px solid var(--line); }
.hr-leave-timeline article { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; min-height: 50px; }
.hr-leave-timeline article > i { position: relative; border-left: 1px solid #cbd5e1; }
.hr-leave-timeline article > i::before { position: absolute; top: 10px; left: -4px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #64748b; content: ''; }
.hr-leave-timeline article > div { display: grid; gap: 2px; padding: 7px 0; }
.hr-leave-timeline article > div > span { display: flex; align-items: center; gap: 5px; }
.hr-leave-timeline strong { color: #263548; font-size: 10px; }
.hr-leave-timeline p { margin: 0; color: #475569; font-size: 9.5px; }
.hr-leave-timeline small { color: #718096; font-size: 8.5px; }

html[data-theme="dark"] .hr-leave-command-head,html[data-theme="dark"] .hr-leave-metric,html[data-theme="dark"] .hr-leave-queue-row,html[data-theme="dark"] .hr-leave-reject-popover > form,html[data-theme="dark"] .hr-leave-reason-block { background: #0f172a; }
html[data-theme="dark"] .hr-leave-queue-row.state-pending,html[data-theme="dark"] .hr-leave-panel-head { background: #211c10; }
html[data-theme="dark"] .hr-leave-command-head strong,html[data-theme="dark"] .hr-leave-metric > strong,html[data-theme="dark"] .hr-leave-person a,html[data-theme="dark"] .hr-leave-request-meta strong,html[data-theme="dark"] .hr-leave-context strong,html[data-theme="dark"] .hr-leave-decision-strip > div > strong,html[data-theme="dark"] .hr-leave-brief-grid strong,html[data-theme="dark"] .hr-leave-panel-head strong,html[data-theme="dark"] .hr-leave-approve-block strong,html[data-theme="dark"] .hr-leave-reject-block strong,html[data-theme="dark"] .hr-leave-side-drawer > summary strong,html[data-theme="dark"] .hr-leave-history > summary strong { color: #e2e8f0; }
html[data-theme="dark"] .hr-leave-provenance { border-color: #1e3a8a; background: #172554; color: #bfdbfe; }

@media (max-width: 1280px) {
    .hr-leave-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hr-leave-metric:nth-child(3) { border-right: 0; }
    .hr-leave-ops-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hr-leave-ops-filter .is-search { grid-column: span 2; }
    .hr-leave-queue-row { grid-template-columns: minmax(180px, 1fr) minmax(155px, .8fr) minmax(190px, 1fr) auto; }
    .hr-leave-state { grid-column: 2; }
    .hr-leave-row-actions { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 900px) {
    .hr-leave-heading { align-items: flex-start; flex-direction: column; }
    .hr-leave-ops-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-leave-queue-row { grid-template-columns: 1fr 1fr; }
    .hr-leave-person,.hr-leave-context { grid-column: 1 / -1; }
    .hr-leave-state { grid-column: 1; }
    .hr-leave-row-actions { grid-column: 2; grid-row: auto; }
    .hr-leave-decision-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-leave-decision-strip > div:nth-child(2) { border-right: 0; }
    .hr-leave-detail-workspace { grid-template-columns: 1fr; }
    .hr-leave-side-stack { position: static; }
    .hr-leave-brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .hr-leave-metrics,.hr-leave-ops-filter,.hr-leave-queue-row,.hr-leave-decision-strip,.hr-leave-brief-grid,.hr-leave-stakeholders { grid-template-columns: 1fr; }
    .hr-leave-ops-filter .is-search,.hr-leave-person,.hr-leave-context,.hr-leave-state,.hr-leave-row-actions { grid-column: auto; }
    .hr-leave-metric,.hr-leave-decision-strip > div,.hr-leave-brief-grid > div,.hr-leave-stakeholders > div { border-right: 0; }
    .hr-leave-row-actions { justify-content: flex-start; }
    .hr-leave-reject-popover > form { right: auto; left: 0; width: min(280px, calc(100vw - 48px)); }
}

.hr-compact .compact-filter-bar .form-control,
.hr-compact .compact-filter-bar .form-select,
.hr-compact .compact-form-grid .form-control,
.hr-compact .compact-form-grid .form-select {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 11.5px;
}

.hr-compact textarea.form-control {
    min-height: 44px;
}

.hr-compact .compact-form-grid {
    gap: 6px;
    padding: 8px;
}

.hr-compact .compact-form-grid label {
    gap: 2px;
    font-size: 10.5px;
    line-height: 1.15;
}

.hr-compact .hr-manual-correction {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(300px, .72fr);
    gap: 8px;
    padding: 8px;
}

.hr-compact .hr-manual-picker,
.hr-compact .hr-manual-details {
    min-width: 0;
}

.hr-compact .hr-manual-picker {
    display: grid;
    gap: 6px;
}

.hr-compact .hr-manual-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(120px, .55fr) minmax(116px, .5fr);
    gap: 6px;
}

.hr-compact .hr-manual-toolbar label {
    display: grid;
    gap: 2px;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.15;
}

.hr-compact .hr-manual-toolbar .form-control,
.hr-compact .hr-manual-toolbar .form-select {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 11.5px;
}

.hr-compact .hr-manual-staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
    gap: 4px;
    max-height: 244px;
    overflow: auto;
    padding: 5px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.hr-compact .hr-manual-staff-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 6px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}

.hr-compact .hr-manual-staff-option:hover {
    border-color: #c9cef8;
    background: #f8fbff;
}

.hr-compact .hr-manual-staff-option.is-selected {
    border-color: var(--brand);
    background: #f5f7ff;
    box-shadow: inset 3px 0 0 var(--brand), 0 1px 2px rgba(45, 49, 127, .08);
}

.hr-compact .hr-manual-avatar {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.hr-compact .hr-manual-staff-option.is-selected .hr-manual-avatar,
.hr-compact .hr-selected-staff .hr-manual-avatar {
    background: var(--brand);
    color: #fff;
}

.hr-compact .hr-manual-staff-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
    line-height: 1.05;
}

.hr-compact .hr-manual-staff-copy strong {
    overflow: hidden;
    color: #172033;
    font-size: 11.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-compact .hr-manual-staff-copy small {
    overflow: hidden;
    color: #64748b;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-compact .hr-selected-staff {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 45px;
    padding: 7px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.hr-compact .hr-selected-staff strong,
.hr-compact .hr-selected-staff small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-compact .hr-selected-staff strong {
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.hr-compact .hr-selected-staff small {
    color: #64748b;
    font-size: 10px;
    line-height: 1.1;
}

.hr-compact .hr-manual-warning {
    min-height: 30px;
    padding: 7px 8px;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.hr-compact .two-col-grid,
.hr-detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
    gap: 8px;
}

.hr-compact .compact-kv {
    gap: 0;
}

.hr-compact .compact-kv > div {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    padding: 3px 8px;
}

.hr-compact .compact-kv span {
    font-size: 10.5px;
    line-height: 1.15;
}

.hr-compact .compact-kv strong {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
}

.hr-compact .table-wrap {
    overflow: auto;
}

.hr-compact .compact-table {
    font-size: 10.2px;
    line-height: 1.08;
}

.hr-compact .compact-table th {
    padding: 3px 5px;
    font-size: 8px;
}

.hr-compact .compact-table td {
    padding: 3px 5px;
    max-width: 190px;
    vertical-align: middle;
}

.hr-compact .status-badge {
    padding: 1px 5px;
    font-size: 9px;
}

.hr-compact .action-pill {
    min-height: 24px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9.8px;
}

.hr-compact .action-icon-btn {
    width: 24px;
    height: 24px;
}

.hr-reason-cell {
    max-width: 260px;
    color: #334155;
    line-height: 1.15;
}

.hr-review-actions {
    gap: 4px;
    min-width: 220px;
}

.hr-review-actions form {
    grid-template-columns: minmax(110px, 1fr) auto;
    gap: 4px;
}

.hr-review-actions .form-control-sm {
    min-height: 25px;
    padding: 2px 6px;
    font-size: 10.5px;
}

.hr-main-stack,
.hr-side-stack {
    display: grid;
    gap: 8px;
    align-content: start;
}

.hr-inline-create,
.hr-compact-upload {
    border-bottom: 1px solid #e2e8f0;
}

.hr-subsection-title {
    padding: 6px 8px 2px;
    color: #475569;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hr-profile-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overtime-detail-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .78fr);
    align-items: start;
    gap: 10px;
}

.overtime-request-card {
    overflow: hidden;
}

.overtime-create-card .compact-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr);
}

.overtime-participant-picker {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-muted, #f8fafc) 70%, transparent);
    padding: 10px;
}

.overtime-picker-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 8px;
}

.overtime-picker-head label {
    gap: 5px;
}

.overtime-selected-count {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.overtime-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 240px;
    overflow: auto;
    padding-right: 2px;
}

.overtime-staff-chip {
    display: grid;
    grid-template-columns: auto 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #fff;
    padding: 7px 9px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.overtime-staff-chip:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.overtime-staff-chip.is-selected {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: inset 3px 0 0 #22c55e;
}

.overtime-staff-chip input {
    inline-size: 14px;
    block-size: 14px;
    margin: 0;
}

.overtime-staff-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #312e81;
    font-size: .72rem;
    font-weight: 800;
}

.overtime-staff-copy {
    min-width: 0;
}

.overtime-staff-copy strong,
.overtime-staff-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-staff-copy strong {
    color: var(--text);
    font-size: .82rem;
    font-weight: 760;
}

.overtime-staff-copy small {
    color: var(--text-muted);
    font-size: .7rem;
    margin-top: 1px;
}

.overtime-participant-summary {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
}

.overtime-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.overtime-participant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #14532d;
    padding: 5px 9px;
}

.overtime-participant-pill strong,
.overtime-participant-pill small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-participant-pill strong {
    font-size: .76rem;
    font-weight: 800;
}

.overtime-participant-pill small {
    color: #166534;
    font-size: .68rem;
}

/* Overtime operational index */
.overtime-index-page {
    gap: 9px;
}

.overtime-page-heading {
    align-items: center;
    padding: 2px 1px 3px;
}

.overtime-page-heading h1 {
    margin: 2px 0 1px;
}

.overtime-command-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, .55fr)) minmax(310px, 1.6fr);
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #fff;
}

.overtime-command-metric {
    display: grid;
    align-content: center;
    min-height: 70px;
    padding: 9px 12px;
    border-left: 3px solid #64748b;
    border-right: 1px solid #e2e8f0;
}

.overtime-command-metric.is-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.overtime-command-metric.is-clear,
.overtime-command-metric.is-approved {
    border-left-color: #22c55e;
}

.overtime-command-metric span,
.overtime-command-metric small {
    color: #64748b;
    font-size: 9px;
    line-height: 1.15;
}

.overtime-command-metric span {
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.overtime-command-metric strong {
    margin: 2px 0 1px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
}

.overtime-policy-note {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 14px;
    color: #475569;
    background: #f8fafc;
}

.overtime-policy-note > i {
    flex: 0 0 auto;
    color: #4f46e5;
    font-size: 21px;
}

.overtime-policy-note span {
    font-size: 10.5px;
    line-height: 1.35;
}

.overtime-policy-note strong {
    display: block;
    color: #1e293b;
    font-size: 11px;
}

.overtime-file-card {
    overflow: hidden;
}

.overtime-file-card > summary,
.overtime-team-details > summary {
    list-style: none;
}

.overtime-file-card > summary::-webkit-details-marker,
.overtime-team-details > summary::-webkit-details-marker {
    display: none;
}

.overtime-card-summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    padding: 8px 11px;
    cursor: pointer;
    background: #fff;
}

.overtime-card-summary:hover {
    background: #f8fafc;
}

.overtime-summary-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #4338ca;
    background: #eef2ff;
}

.overtime-card-summary > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.overtime-card-summary strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.overtime-card-summary small {
    color: #64748b;
    font-size: 9.5px;
}

.overtime-summary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 800;
}

.overtime-summary-action i {
    transition: transform .18s ease;
}

.overtime-file-card[open] .overtime-summary-action i {
    transform: rotate(180deg);
}

.overtime-request-form {
    border-top: 1px solid #e2e8f0;
}

.overtime-inline-error {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 10px 0;
    padding: 7px 9px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: #b91c1c;
    background: #fef2f2;
    font-size: 10.5px;
    font-weight: 700;
}

.overtime-inline-error[hidden],
.overtime-decision-error[hidden] {
    display: none;
}

.overtime-form-section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #e8eef5;
}

.overtime-form-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #0f172a;
}

.overtime-form-step > span:first-child {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    color: #3730a3;
    background: #e0e7ff;
    font-size: 10px;
    font-weight: 900;
}

.overtime-form-step > div,
.overtime-form-step > span:last-child {
    display: grid;
    min-width: 0;
}

.overtime-form-step strong {
    font-size: 11px;
    font-weight: 800;
}

.overtime-form-step small {
    color: #64748b;
    font-size: 9px;
    line-height: 1.25;
}

.overtime-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(190px, .85fr);
    gap: 8px;
}

.overtime-schedule-grid label,
.overtime-work-field,
.overtime-filter-bar label,
.overtime-inline-review label {
    display: block;
    color: #64748b;
    font-size: 9.5px;
    font-weight: 700;
}

.required-mark {
    color: #dc2626;
}

.overtime-schedule-grid .form-control,
.overtime-work-field .form-control,
.overtime-filter-bar .form-control,
.overtime-filter-bar .form-select {
    min-height: 30px;
    margin-top: 3px;
    padding: 4px 7px;
    font-size: 11px;
}

.overtime-duration-preview {
    display: grid;
    align-content: center;
    min-height: 50px;
    padding: 6px 9px;
    border: 1px solid #dbe5f0;
    border-left: 3px solid #94a3b8;
    border-radius: 7px;
    background: #f8fafc;
}

.overtime-duration-preview span,
.overtime-duration-preview small {
    color: #64748b;
    font-size: 8.5px;
}

.overtime-duration-preview span {
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.overtime-duration-preview strong {
    color: #334155;
    font-size: 12px;
}

.overtime-duration-preview.is-ready {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.overtime-duration-preview.is-ready strong {
    color: #166534;
}

.overtime-duration-preview.is-invalid {
    border-color: #fca5a5;
    border-left-color: #ef4444;
    background: #fef2f2;
}

.overtime-duration-preview.is-invalid strong,
.overtime-duration-preview.is-invalid small {
    color: #b91c1c;
}

.overtime-index-page .form-control.is-invalid,
.overtime-index-page .form-select.is-invalid {
    border-color: #ef4444;
    background-color: #fff7f7;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .08);
}

.overtime-team-details {
    border-bottom: 1px solid #e8eef5;
}

.overtime-team-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 45px;
    padding: 9px 10px;
    cursor: pointer;
    background: #fbfcfe;
}

.overtime-team-details > summary:hover {
    background: #f6f8fc;
}

.overtime-team-details .overtime-participant-picker {
    margin: 0 10px 10px 202px;
}

.overtime-team-details .overtime-picker-head {
    grid-template-columns: minmax(240px, .55fr) minmax(200px, 1fr);
    align-items: end;
}

.overtime-team-details .overtime-picker-head > small {
    padding-bottom: 6px;
    color: #64748b;
    font-size: 9px;
}

.overtime-work-section {
    border-bottom: 0;
}

.overtime-work-field textarea {
    min-height: 64px;
    resize: vertical;
}

.overtime-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overtime-form-footer > span {
    color: #64748b;
    font-size: 9.5px;
}

.overtime-submit-button {
    min-width: 125px;
    justify-content: center;
}

.overtime-queue-card {
    overflow: hidden;
}

.overtime-queue-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px 7px;
}

.overtime-queue-heading h2 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.overtime-queue-heading p {
    margin: 1px 0 0;
    color: #64748b;
    font-size: 9.5px;
}

.overtime-filter-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 4px 7px;
    color: #4338ca;
    background: #eef2ff;
    font-size: 9px;
    font-weight: 800;
}

.overtime-filter-bar {
    display: grid;
    grid-template-columns: minmax(210px, 1.45fr) repeat(3, minmax(120px, .72fr)) repeat(2, minmax(120px, .62fr)) auto;
    gap: 6px;
    align-items: end;
    padding: 8px 10px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overtime-filter-bar label > span,
.overtime-inline-review label > span {
    display: block;
    margin-bottom: 2px;
}

.overtime-filter-actions,
.overtime-decision-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.overtime-filter-actions {
    min-height: 30px;
}

.overtime-queue-table table {
    min-width: 1080px;
    table-layout: fixed;
}

.overtime-queue-table th:nth-child(1) { width: 18%; }
.overtime-queue-table th:nth-child(2) { width: 13%; }
.overtime-queue-table th:nth-child(3) { width: 7%; }
.overtime-queue-table th:nth-child(4) { width: 25%; }
.overtime-queue-table th:nth-child(5) { width: 9%; }
.overtime-queue-table th:nth-child(6) { width: 28%; }

.overtime-request-row {
    box-shadow: inset 3px 0 0 #94a3b8;
}

.overtime-request-row.status-pending { box-shadow: inset 3px 0 0 #f59e0b; }
.overtime-request-row.status-approved { box-shadow: inset 3px 0 0 #22c55e; }
.overtime-request-row.status-rejected,
.overtime-request-row.status-cancelled { box-shadow: inset 3px 0 0 #ef4444; }

.overtime-request-row > td {
    vertical-align: middle;
}

.overtime-request-person {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.overtime-request-person > span:last-child {
    display: grid;
    min-width: 0;
}

.overtime-request-person a {
    overflow: hidden;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-request-person small,
.overtime-request-team,
.overtime-time-range,
.overtime-overnight {
    color: #64748b;
    font-size: 8.5px;
}

.overtime-request-team {
    margin: 4px 0 0 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-date,
.overtime-time-range,
.overtime-overnight {
    display: block;
}

.overtime-date {
    color: #1e293b;
    font-size: 10px;
}

.overtime-overnight {
    margin-top: 2px;
    color: #7c3aed;
}

.overtime-hours {
    color: #0f172a;
    font-size: 12px;
}

.overtime-work-copy {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #334155;
    font-size: 9.5px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.overtime-inline-review {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 4px 6px;
    align-items: end;
}

.overtime-inline-review .form-control {
    min-height: 26px;
    padding: 3px 6px;
    font-size: 9.5px;
}

.overtime-decision-error {
    grid-column: 1 / -1;
    color: #b91c1c;
    font-size: 8.5px;
    font-weight: 750;
}

.overtime-review-state {
    display: grid;
    justify-items: start;
    gap: 4px;
    color: #64748b;
    font-size: 9px;
}

.overtime-review-state > span,
.overtime-review-state > small {
    display: block;
}

.overtime-review-state strong {
    color: #334155;
}

.overtime-empty-state {
    display: grid;
    place-items: center;
    gap: 3px;
}

.overtime-empty-state i {
    color: #94a3b8;
    font-size: 20px;
}

.overtime-empty-state strong {
    color: #334155;
    font-size: 11px;
}

.overtime-empty-state span {
    font-size: 9px;
}

.overtime-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
}

.overtime-eyebrow,
.overtime-section-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.overtime-sheet-head h2 {
    margin: 3px 0 2px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.12;
}

.overtime-sheet-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
}

.overtime-status-wrap {
    flex: 0 0 auto;
    padding-top: 1px;
}

.overtime-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e2e8f0;
}

.overtime-summary-strip > div,
.overtime-info-grid > div {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid #e2e8f0;
}

.overtime-summary-strip > div:last-child,
.overtime-info-grid > div:nth-child(2n) {
    border-right: 0;
}

.overtime-summary-strip span,
.overtime-info-grid span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.overtime-summary-strip strong,
.overtime-info-grid strong {
    display: block;
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.overtime-summary-strip strong {
    font-size: 13px;
}

.overtime-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #e2e8f0;
}

.overtime-note-block {
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.overtime-note-block:last-child {
    border-bottom: 0;
}

.overtime-note-block.review {
    background: #f8fafc;
}

.overtime-note-block p {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.overtime-side-stack {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.overtime-action-card,
.overtime-history-card,
.overtime-comments-card {
    overflow: hidden;
}

.overtime-review-panel {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overtime-review-form,
.overtime-cancel-form {
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid #d8e2ef;
    border-left-width: 3px;
    border-radius: 8px;
    background: #fff;
}

.overtime-review-form.approve {
    border-left-color: #22c55e;
}

.overtime-review-form.reject,
.overtime-cancel-form {
    border-left-color: #ef4444;
}

.overtime-cancel-form {
    margin: 10px;
}

.overtime-review-label {
    display: block;
    margin: 0;
}

.overtime-review-label span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.overtime-review-label textarea {
    min-height: 62px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.35;
    resize: vertical;
}

.overtime-full-button {
    justify-content: center;
    width: 100%;
}

.overtime-no-action {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.overtime-no-action strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.15;
}

.overtime-no-action i {
    color: #94a3b8;
    font-size: 20px;
}

.overtime-history-list {
    display: grid;
    gap: 7px;
    max-height: 280px;
    overflow: auto;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.overtime-history-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #fff;
}

.overtime-history-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 999px;
    background: #64748b;
}

.overtime-history-item.success .overtime-history-dot {
    background: #16a34a;
}

.overtime-history-item.danger .overtime-history-dot {
    background: #dc2626;
}

.overtime-history-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.overtime-history-meta strong {
    min-width: 0;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.overtime-history-meta span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.overtime-history-actor,
.overtime-history-desc {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.overtime-history-desc {
    color: #263548;
}

.overtime-comments-card {
    margin-top: 10px;
}

.overtime-comment-composer {
    padding: 10px;
    border-top: 1px solid #e6edf6;
    background: #f8fafc;
}

.overtime-comment-form textarea {
    min-height: 92px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.overtime-comment-list {
    display: grid;
    gap: 7px;
    max-height: 420px;
    overflow: auto;
    padding: 8px 10px 10px;
    border-top: 1px solid #e6edf6;
    background: #f8fafc;
}

.overtime-comment-item {
    display: grid;
    gap: 5px;
    padding: 8px 9px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #fff;
}

.overtime-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.overtime-comment-meta strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
}

.overtime-comment-meta span {
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.15;
    white-space: nowrap;
}

.overtime-comment-body {
    color: #263548;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.overtime-comment-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .compact-filter-bar,
    .two-col-grid,
    .compact-form-grid {
        grid-template-columns: 1fr;
    }

    .grid-span-2 {
        grid-column: auto;
    }

    .compact-kv > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .hr-review-actions,
    .hr-review-actions form {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .hr-compact .compact-filter-bar,
    .hr-compact .two-col-grid,
    .hr-detail-grid,
    .hr-compact .hr-manual-correction,
    .hr-compact .hr-manual-toolbar,
    .hr-compact .compact-form-grid {
        grid-template-columns: 1fr;
    }

    .hr-compact .hr-manual-staff-list {
        grid-template-columns: 1fr;
        max-height: 280px;
    }

    .hr-compact .summary-grid,
    .hr-compact .ops-metric-grid,
    .hr-compact .hr-daily-stats,
    .hr-summary-grid,
    .hr-profile-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-compact .hr-daily-filter-card .action-inline {
        grid-template-columns: 1fr;
    }

    .hr-compact .summary-grid.hr-source-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-management-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-regularization-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }

    .hr-regularization-row > span:nth-child(3),
    .hr-regularization-row > span:nth-child(4),
    .hr-regularization-row > span:nth-child(5) {
        grid-column: 2 / -1;
    }

    .hr-compact .compact-kv > div {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .overtime-detail-grid,
    .overtime-summary-strip,
    .overtime-info-grid,
    .overtime-create-card .compact-form-grid,
    .overtime-picker-list {
        grid-template-columns: 1fr;
    }

    .overtime-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overtime-policy-note {
        grid-column: 1 / -1;
    }

    .overtime-form-section {
        grid-template-columns: 1fr;
    }

    .overtime-schedule-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .overtime-duration-preview {
        grid-column: 1 / -1;
    }

    .overtime-team-details .overtime-participant-picker {
        margin-left: 10px;
    }

    .overtime-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overtime-filter-bar .is-search {
        grid-column: 1 / -1;
    }

    .overtime-picker-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .overtime-selected-count {
        justify-self: start;
    }

    .overtime-sheet-head {
        flex-direction: column;
        padding: 12px;
    }

    .overtime-status-wrap {
        padding-top: 0;
    }

    .overtime-summary-strip > div,
    .overtime-info-grid > div {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 9px 12px;
    }

    .overtime-summary-strip > div:last-child,
    .overtime-info-grid > div:last-child {
        border-bottom: 0;
    }

    .overtime-no-action {
        min-height: 76px;
    }

    .overtime-history-list {
        max-height: none;
    }
}

@media (min-width: 520px) and (max-width: 900px) {
    .overtime-summary-strip,
    .overtime-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overtime-summary-strip > div:nth-child(odd),
    .overtime-info-grid > div:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }

    .overtime-summary-strip > div:nth-last-child(-n+2),
    .overtime-info-grid > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

html[data-theme="dark"] .overtime-sheet-head,
html[data-theme="dark"] .overtime-note-block.review,
html[data-theme="dark"] .overtime-review-panel,
html[data-theme="dark"] .overtime-history-list,
html[data-theme="dark"] .overtime-comment-composer,
html[data-theme="dark"] .overtime-comment-list,
html[data-theme="dark"] .overtime-participant-picker,
html[data-theme="dark"] .overtime-policy-note,
html[data-theme="dark"] .overtime-form-footer,
html[data-theme="dark"] .overtime-filter-bar,
html[data-theme="dark"] .overtime-team-details > summary,
html[data-theme="dark"] .overtime-duration-preview {
    background: var(--panel-2);
}

html[data-theme="dark"] .overtime-sheet-head,
html[data-theme="dark"] .overtime-summary-strip,
html[data-theme="dark"] .overtime-info-grid,
html[data-theme="dark"] .overtime-note-block,
html[data-theme="dark"] .overtime-summary-strip > div,
html[data-theme="dark"] .overtime-info-grid > div,
html[data-theme="dark"] .overtime-review-panel,
html[data-theme="dark"] .overtime-history-list,
html[data-theme="dark"] .overtime-comment-composer,
html[data-theme="dark"] .overtime-comment-list,
html[data-theme="dark"] .overtime-review-form,
html[data-theme="dark"] .overtime-cancel-form,
html[data-theme="dark"] .overtime-history-item,
html[data-theme="dark"] .overtime-comment-item,
html[data-theme="dark"] .overtime-participant-picker,
html[data-theme="dark"] .overtime-staff-chip,
html[data-theme="dark"] .overtime-participant-summary,
html[data-theme="dark"] .overtime-participant-pill,
html[data-theme="dark"] .overtime-command-strip,
html[data-theme="dark"] .overtime-command-metric,
html[data-theme="dark"] .overtime-request-form,
html[data-theme="dark"] .overtime-form-section,
html[data-theme="dark"] .overtime-team-details,
html[data-theme="dark"] .overtime-form-footer,
html[data-theme="dark"] .overtime-filter-bar {
    border-color: var(--line);
}

html[data-theme="dark"] .overtime-sheet-head h2,
html[data-theme="dark"] .overtime-summary-strip strong,
html[data-theme="dark"] .overtime-info-grid strong,
html[data-theme="dark"] .overtime-note-block p,
html[data-theme="dark"] .overtime-no-action strong,
html[data-theme="dark"] .overtime-history-meta strong,
html[data-theme="dark"] .overtime-history-desc,
html[data-theme="dark"] .overtime-comment-meta strong,
html[data-theme="dark"] .overtime-comment-body,
html[data-theme="dark"] .overtime-staff-copy strong,
html[data-theme="dark"] .overtime-participant-pill strong,
html[data-theme="dark"] .overtime-command-metric strong,
html[data-theme="dark"] .overtime-policy-note strong,
html[data-theme="dark"] .overtime-card-summary strong,
html[data-theme="dark"] .overtime-form-step,
html[data-theme="dark"] .overtime-queue-heading h2,
html[data-theme="dark"] .overtime-date,
html[data-theme="dark"] .overtime-hours,
html[data-theme="dark"] .overtime-work-copy,
html[data-theme="dark"] .overtime-review-state strong {
    color: var(--ink);
}

html[data-theme="dark"] .overtime-review-form,
html[data-theme="dark"] .overtime-cancel-form,
html[data-theme="dark"] .overtime-history-item,
html[data-theme="dark"] .overtime-comment-item,
html[data-theme="dark"] .overtime-staff-chip,
html[data-theme="dark"] .overtime-command-strip,
html[data-theme="dark"] .overtime-card-summary {
    background: var(--panel);
}

html[data-theme="dark"] .overtime-staff-chip.is-selected,
html[data-theme="dark"] .overtime-participant-pill {
    background: rgba(22, 163, 74, .16);
}

html[data-theme="dark"] .overtime-review-label span,
html[data-theme="dark"] .overtime-history-meta span,
html[data-theme="dark"] .overtime-history-actor,
html[data-theme="dark"] .overtime-comment-meta span,
html[data-theme="dark"] .overtime-staff-copy small,
html[data-theme="dark"] .overtime-participant-pill small,
html[data-theme="dark"] .overtime-command-metric span,
html[data-theme="dark"] .overtime-command-metric small,
html[data-theme="dark"] .overtime-policy-note,
html[data-theme="dark"] .overtime-card-summary small,
html[data-theme="dark"] .overtime-form-step small,
html[data-theme="dark"] .overtime-queue-heading p,
html[data-theme="dark"] .overtime-work-copy {
    color: var(--muted);
}

html[data-theme="dark"] .overtime-command-metric.is-warning,
html[data-theme="dark"] .overtime-duration-preview.is-invalid {
    background: rgba(120, 53, 15, .2);
}

html[data-theme="dark"] .overtime-duration-preview.is-ready {
    background: rgba(22, 163, 74, .14);
}

@media (max-width: 620px) {
    .overtime-command-strip,
    .overtime-schedule-grid,
    .overtime-filter-bar {
        grid-template-columns: 1fr;
    }

    .overtime-command-metric {
        min-height: 60px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .overtime-policy-note,
    .overtime-filter-bar .is-search,
    .overtime-duration-preview {
        grid-column: auto;
    }

    .overtime-card-summary {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .overtime-summary-action {
        grid-column: 2;
        justify-self: start;
    }

    .overtime-team-details > summary,
    .overtime-form-footer,
    .overtime-queue-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .overtime-team-details .overtime-picker-head,
    .overtime-picker-list,
    .overtime-inline-review {
        grid-template-columns: 1fr;
    }

    .overtime-form-footer .overtime-submit-button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .hr-management-signal-grid {
        grid-template-columns: 1fr;
    }

    .hr-regularization-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .overtime-history-meta,
    .overtime-comment-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* Task detail dark-mode compatibility for module-level hardcoded surfaces. */
html[data-theme="dark"] .task-ticket-page .ticket-compact-hero,
html[data-theme="dark"] .task-ticket-page .operational-snapshot,
html[data-theme="dark"] .task-ticket-page .task-card,
html[data-theme="dark"] .task-ticket-page .task-card-body,
html[data-theme="dark"] .task-ticket-page .task-action-strip,
html[data-theme="dark"] .task-ticket-page .close-ticket-box,
html[data-theme="dark"] .task-ticket-page .close-ticket-box form,
html[data-theme="dark"] .task-ticket-page .task-client-link-editor,
html[data-theme="dark"] .task-ticket-page .task-client-link-editor form,
html[data-theme="dark"] .task-ticket-page .comment-edit-form,
html[data-theme="dark"] .task-ticket-page .related-assignee,
html[data-theme="dark"] .task-ticket-page .related-task-modal-content,
html[data-theme="dark"] .task-ticket-page .related-task-modal-content .modal-header,
html[data-theme="dark"] .task-ticket-page .related-task-modal-content .modal-footer {
    background: var(--panel) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .task-ticket-page .snapshot-header,
html[data-theme="dark"] .task-ticket-page .snapshot-item,
html[data-theme="dark"] .task-ticket-page .field-work-brief-grid div,
html[data-theme="dark"] .task-ticket-page .operational-section,
html[data-theme="dark"] .task-ticket-page .detail-grid div,
html[data-theme="dark"] .task-ticket-page .assignee-line,
html[data-theme="dark"] .task-ticket-page .attachment-line,
html[data-theme="dark"] .task-ticket-page .task-description,
html[data-theme="dark"] .task-ticket-page .category-change-box,
html[data-theme="dark"] .task-ticket-page .ticket-update-item,
html[data-theme="dark"] .task-ticket-page .task-history-item,
html[data-theme="dark"] .task-ticket-page .task-sms-log-row,
html[data-theme="dark"] .task-ticket-page .task-copy-control code,
html[data-theme="dark"] .task-ticket-page .task-secret-control .form-control,
html[data-theme="dark"] .task-ticket-page .subscriber-results,
html[data-theme="dark"] .task-ticket-page .subscriber-result,
html[data-theme="dark"] .task-ticket-page .mention-popover,
html[data-theme="dark"] .task-ticket-page .mention-option,
html[data-theme="dark"] .task-ticket-page .comment-attachment-thumb,
html[data-theme="dark"] .task-ticket-page .comment-attachment-file,
html[data-theme="dark"] .task-ticket-page .outage-impact-summary div,
html[data-theme="dark"] .task-ticket-page .outage-impact-table-wrap,
html[data-theme="dark"] .task-ticket-page .outage-restricted-note,
html[data-theme="dark"] .task-ticket-page .task-onu-camera,
html[data-theme="dark"] .task-ticket-page .task-onu-paste-target,
html[data-theme="dark"] .task-ticket-page .task-onu-detected {
    background: var(--panel-2) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .task-ticket-page .comment-compose-primary {
    background: linear-gradient(180deg, rgba(37, 99, 235, .14) 0%, var(--panel) 100%) !important;
    border-color: rgba(96, 165, 250, .42) !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, .28) !important;
}

html[data-theme="dark"] .task-ticket-page .client-gps-card {
    background: rgba(22, 163, 74, .13) !important;
    border-color: rgba(74, 222, 128, .35) !important;
    border-left-color: #22c55e !important;
    color: #bbf7d0 !important;
}

html[data-theme="dark"] .task-ticket-page .client-gps-card.missing-gps {
    background: rgba(37, 99, 235, .13) !important;
    border-color: rgba(96, 165, 250, .38) !important;
    border-left-color: #60a5fa !important;
    color: #bfdbfe !important;
}

html[data-theme="dark"] .task-ticket-page .client-gps-history-row {
    background: rgba(15, 23, 42, .72) !important;
    border-color: rgba(74, 222, 128, .24) !important;
}

html[data-theme="dark"] .task-ticket-page .ticket-due-pill,
html[data-theme="dark"] .task-ticket-page .ticket-category-chip,
html[data-theme="dark"] .task-ticket-page .task-source-chip,
html[data-theme="dark"] .task-ticket-page .mention-chip,
html[data-theme="dark"] .task-ticket-page .ticket-warning-chip,
html[data-theme="dark"] .task-ticket-page .lark-member-warning,
html[data-theme="dark"] .task-ticket-page .task-onu-pending-option {
    background: rgba(30, 41, 59, .86) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .task-ticket-page .task-action-btn,
html[data-theme="dark"] .task-ticket-page .detail-copy-btn,
html[data-theme="dark"] .task-ticket-page .comment-action-btn,
html[data-theme="dark"] .task-ticket-page .mention-trigger,
html[data-theme="dark"] .task-ticket-page .comment-attach-control,
html[data-theme="dark"] .task-ticket-page .assignee-mini-action,
html[data-theme="dark"] .task-ticket-page .outage-impact-row-actions a,
html[data-theme="dark"] .task-ticket-page .client-gps-history-delete,
html[data-theme="dark"] .task-ticket-page .task-action-strip .action-icon-btn,
html[data-theme="dark"] .task-ticket-page .task-secret-control .action-icon-btn,
html[data-theme="dark"] .task-ticket-page .task-copy-control .action-icon-btn {
    background: #172033 !important;
    border-color: #334155 !important;
    color: #dbeafe !important;
}

html[data-theme="dark"] .task-ticket-page .task-action-btn:hover,
html[data-theme="dark"] .task-ticket-page .detail-copy-btn:hover,
html[data-theme="dark"] .task-ticket-page .comment-action-btn:hover,
html[data-theme="dark"] .task-ticket-page .mention-trigger:hover,
html[data-theme="dark"] .task-ticket-page .comment-attach-control:hover,
html[data-theme="dark"] .task-ticket-page .subscriber-result:hover,
html[data-theme="dark"] .task-ticket-page .mention-option:hover,
html[data-theme="dark"] .task-ticket-page .mention-option:focus,
html[data-theme="dark"] .task-ticket-page .mention-option.is-active {
    background: rgba(37, 99, 235, .25) !important;
    border-color: #60a5fa !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .task-ticket-page .task-action-btn.success,
html[data-theme="dark"] .task-ticket-page .client-gps-pin-btn,
html[data-theme="dark"] .task-ticket-page .comment-compose-primary .action-icon-btn.is-ready,
html[data-theme="dark"] .task-ticket-page .task-secret-control .action-icon-btn.copied,
html[data-theme="dark"] .task-ticket-page .task-copy-control .action-icon-btn.copied {
    background: rgba(22, 163, 74, .18) !important;
    border-color: rgba(74, 222, 128, .45) !important;
    color: #86efac !important;
}

html[data-theme="dark"] .task-ticket-page h1,
html[data-theme="dark"] .task-ticket-page h2,
html[data-theme="dark"] .task-ticket-page h3,
html[data-theme="dark"] .task-ticket-page strong,
html[data-theme="dark"] .task-ticket-page .snapshot-item strong,
html[data-theme="dark"] .task-ticket-page .operational-section dd,
html[data-theme="dark"] .task-ticket-page .operational-section dd strong,
html[data-theme="dark"] .task-ticket-page .sidebar-detail-list dd,
html[data-theme="dark"] .task-ticket-page .subscriber-result strong,
html[data-theme="dark"] .task-ticket-page .mention-option strong,
html[data-theme="dark"] .task-ticket-page .task-history-main strong,
html[data-theme="dark"] .task-ticket-page .task-sms-log-main strong,
html[data-theme="dark"] .task-ticket-page .outage-impact-summary strong,
html[data-theme="dark"] .task-ticket-page .outage-impact-head h2 {
    color: var(--ink) !important;
}

html[data-theme="dark"] .task-ticket-page .ticket-location-subtitle,
html[data-theme="dark"] .task-ticket-page .ticket-next-action span,
html[data-theme="dark"] .task-ticket-page .snapshot-item span,
html[data-theme="dark"] .task-ticket-page dt,
html[data-theme="dark"] .task-ticket-page .sidebar-detail-list dt,
html[data-theme="dark"] .task-ticket-page .action-group-label,
html[data-theme="dark"] .task-ticket-page .subscriber-result span,
html[data-theme="dark"] .task-ticket-page .subscriber-selected,
html[data-theme="dark"] .task-ticket-page .mention-option span,
html[data-theme="dark"] .task-ticket-page .mention-empty,
html[data-theme="dark"] .task-ticket-page .comment-body,
html[data-theme="dark"] .task-ticket-page .comment-attachment-label,
html[data-theme="dark"] .task-ticket-page .task-history-main span,
html[data-theme="dark"] .task-ticket-page .task-history-main small,
html[data-theme="dark"] .task-ticket-page .task-history-side span,
html[data-theme="dark"] .task-ticket-page .task-history-side small,
html[data-theme="dark"] .task-ticket-page .task-history-update-body,
html[data-theme="dark"] .task-ticket-page .task-sms-log-main span,
html[data-theme="dark"] .task-ticket-page .task-sms-log-side,
html[data-theme="dark"] .task-ticket-page .outage-impact-head small,
html[data-theme="dark"] .task-ticket-page .outage-impact-foot,
html[data-theme="dark"] .task-ticket-page .outage-impact-summary span,
html[data-theme="dark"] .task-ticket-page .outage-impact-table td small {
    color: var(--muted) !important;
}

html[data-theme="dark"] .task-ticket-page .outage-impact-table th,
html[data-theme="dark"] .task-ticket-page .outage-impact-table td,
html[data-theme="dark"] .task-ticket-page .related-assignee-list,
html[data-theme="dark"] .task-ticket-page .related-assignee-list label,
html[data-theme="dark"] .task-ticket-page .comment-item,
html[data-theme="dark"] .task-ticket-page .rich-editor-wrap,
html[data-theme="dark"] .task-ticket-page .rich-editor-toolbar,
html[data-theme="dark"] .task-ticket-page .rich-editor-surface {
    background: var(--panel-2) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

html[data-theme="dark"] .task-ticket-page .task-toolbar {
    background: rgba(15, 23, 42, .94) !important;
    border-color: var(--line) !important;
}
/* HR Action Required Center */
.hr-action-header-button.has-actions { color:#92400e; border-color:#f59e0b; background:#fffbeb; }
.hr-action-global-banner { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:12px; margin-bottom:10px; padding:10px 13px; color:#78350f; text-decoration:none; border:1px solid #f59e0b; border-left:5px solid #f59e0b; border-radius:10px; background:linear-gradient(90deg,#fffbeb,#fff7ed); box-shadow:0 4px 16px rgba(146,64,14,.08); }
.hr-action-global-banner:hover { color:#78350f; border-color:#d97706; transform:translateY(-1px); }
.hr-action-global-banner.is-overdue { color:#991b1b; border-color:#ef4444; background:linear-gradient(90deg,#fef2f2,#fff7ed); }
.hr-action-global-icon { display:grid; width:34px; height:34px; place-items:center; font-size:18px; border-radius:50%; background:rgba(245,158,11,.14); }
.hr-action-global-banner.is-overdue .hr-action-global-icon { background:rgba(239,68,68,.13); }
.hr-action-global-copy { display:flex; flex-direction:column; min-width:0; }
.hr-action-global-copy small { font-size:8px; font-weight:900; letter-spacing:.1em; }
.hr-action-global-copy strong { overflow:hidden; color:#1e293b; font-size:12px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.hr-action-global-copy em { color:#64748b; font-size:9px; font-style:normal; }
.hr-action-global-count { padding:4px 8px; color:#92400e; font-size:9px; font-weight:850; border-radius:99px; background:#fef3c7; }
.hr-action-global-cta { display:flex; align-items:center; gap:6px; font-size:10px; font-weight:850; white-space:nowrap; }
.hr-action-page { --action-purple:#6d28d9; }
.hr-action-command { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-bottom:9px; }
.hr-action-command > div { min-height:70px; padding:9px 11px; border:1px solid var(--line); border-left:4px solid #8b5cf6; border-radius:9px; background:#fff; }
.hr-action-command span,.hr-action-command small { display:block; color:#64748b; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.055em; }
.hr-action-command strong { display:block; margin:3px 0; color:#0f172a; font-size:24px; line-height:1; }
.hr-action-command .is-critical { border-left-color:#ef4444; background:#fef2f2; }
.hr-action-command .is-clear { border-left-color:#22c55e; background:#f0fdf4; }
.hr-action-create { margin-bottom:9px; }
.hr-action-create > summary,.hr-action-side-drawer > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; cursor:pointer; list-style:none; }
.hr-action-create > summary::-webkit-details-marker,.hr-action-side-drawer > summary::-webkit-details-marker { display:none; }
.hr-action-create > summary > span,.hr-action-side-drawer > summary > span { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:0 8px; }
.hr-action-create > summary > span > i,.hr-action-side-drawer > summary > span > i { grid-row:1/3; color:#7c3aed; font-size:17px; }
.hr-action-create summary strong,.hr-action-side-drawer summary strong { color:#1e293b; font-size:11px; }
.hr-action-create summary small,.hr-action-side-drawer summary small { color:#64748b; font-size:8.5px; }
.hr-action-create-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:11px 12px 12px; border-top:1px solid var(--line); background:#fafafa; }
.hr-action-create-form label,.hr-action-response label,.hr-action-side-drawer label { display:flex; flex-direction:column; gap:4px; color:#475569; font-size:9px; font-weight:800; }
.hr-action-create-form label small,.hr-action-response label span { color:#64748b; font-size:8px; font-weight:500; }
.hr-action-create-form .grid-span-2 { grid-column:1/-1; }
.hr-action-form-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#64748b; font-size:9px; }
.hr-action-filters { display:grid; grid-template-columns:1fr 1fr auto auto auto; align-items:end; gap:8px; margin-bottom:9px; padding:8px; }
.hr-action-filters label { display:flex; flex-direction:column; gap:3px; color:#64748b; font-size:8px; font-weight:850; text-transform:uppercase; }
.hr-action-filters .hr-action-check { flex-direction:row; align-items:center; align-self:center; white-space:nowrap; }
.hr-action-list { display:flex; flex-direction:column; }
.hr-action-row { display:grid; grid-template-columns:30px minmax(130px,.85fr) minmax(220px,1.6fr) minmax(120px,.7fr) auto auto; align-items:center; gap:9px; min-height:62px; padding:7px 10px; color:inherit; text-decoration:none; border-bottom:1px solid var(--line); border-left:3px solid #f59e0b; background:#fff; }
.hr-action-row:hover { background:#f8fafc; }
.hr-action-row.is-overdue { border-left-color:#ef4444; background:#fff7f7; }
.hr-action-avatar,.hr-action-message-avatar { display:grid; width:28px; height:28px; place-items:center; color:#3730a3; font-size:10px; font-weight:900; border-radius:50%; background:#e0e7ff; }
.hr-action-person,.hr-action-subject,.hr-action-due { display:flex; flex-direction:column; min-width:0; }
.hr-action-person strong,.hr-action-subject strong,.hr-action-due strong { overflow:hidden; color:#1e293b; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.hr-action-row small { color:#64748b; font-size:8px; }
.hr-action-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; grid-column:1/-1; min-height:160px; padding:20px; color:#64748b; text-align:center; }
.hr-action-empty i { margin-bottom:7px; color:#10b981; font-size:28px; }
.hr-action-empty strong { color:#1e293b; font-size:12px; }
.hr-action-empty span { font-size:9px; }
.hr-my-action-hero { display:flex; align-items:center; gap:12px; margin-bottom:9px; padding:13px 15px; border:1px solid #f59e0b; border-left:5px solid #f59e0b; border-radius:10px; background:#fffbeb; }
.hr-my-action-hero.is-clear { border-color:#22c55e; background:#f0fdf4; }
.hr-my-action-hero > i { color:#d97706; font-size:27px; }
.hr-my-action-hero.is-clear > i { color:#16a34a; }
.hr-my-action-hero > div { display:flex; flex-direction:column; }
.hr-my-action-hero span { color:#64748b; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.hr-my-action-hero strong { color:#1e293b; font-size:15px; }
.hr-my-action-hero small { color:#64748b; font-size:9px; }
.hr-action-tabs { display:flex; gap:5px; margin-bottom:9px; padding:4px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.hr-action-tabs a { padding:6px 10px; color:#64748b; font-size:9px; font-weight:800; text-decoration:none; border-radius:6px; }
.hr-action-tabs a.active { color:#fff; background:#6d28d9; }
.hr-my-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.hr-my-action-card { display:flex; flex-direction:column; min-height:170px; padding:12px; color:inherit; text-decoration:none; border:1px solid var(--line); border-top:4px solid #f59e0b; border-radius:10px; background:#fff; }
.hr-my-action-card.is-overdue { border-top-color:#ef4444; background:#fff7f7; }
.hr-my-action-card.status-responded { border-top-color:#3b82f6; }
.hr-my-action-card.status-resolved { border-top-color:#22c55e; }
.hr-my-action-card-head { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#64748b; font-size:8px; font-weight:850; text-transform:uppercase; }
.hr-my-action-card h2 { margin:14px 0 4px; color:#1e293b; font-size:14px; }
.hr-my-action-card p { margin:0; color:#64748b; font-size:9px; }
.hr-my-action-card > div:nth-last-child(2) { display:flex; justify-content:space-between; gap:8px; margin-top:auto; color:#64748b; font-size:8px; }
.hr-my-action-card > strong { margin-top:10px; color:#6d28d9; font-size:9px; }
.hr-action-detail-hero { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin-bottom:8px; border:1px solid var(--line); border-left:5px solid #f59e0b; border-radius:10px; background:#fff; }
.hr-action-detail-hero.is-overdue { border-left-color:#ef4444; background:#fffafa; }
.hr-action-detail-hero > div { display:flex; flex-direction:column; min-height:74px; padding:10px 12px; border-right:1px solid var(--line); }
.hr-action-detail-hero > div:last-child { border-right:0; }
.hr-action-detail-hero span,.hr-action-detail-hero small { color:#64748b; font-size:8px; }
.hr-action-detail-hero > div > span { font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.hr-action-detail-hero strong { margin:4px 0; color:#1e293b; font-size:11px; }
.hr-action-context-link { display:flex; align-items:center; gap:7px; width:max-content; margin:0 0 8px auto; color:#2563eb; font-size:9px; font-weight:800; text-decoration:none; }
.hr-action-detail-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,.65fr); gap:9px; }
.hr-action-messages { display:flex; flex-direction:column; gap:9px; padding:10px; }
.hr-action-message { max-width:88%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.hr-action-message.from-employee { align-self:flex-end; border-color:#bfdbfe; background:#eff6ff; }
.hr-action-message > div:first-child { display:flex; align-items:center; gap:8px; }
.hr-action-message > div:first-child > span:last-child { display:flex; flex-direction:column; }
.hr-action-message strong { color:#1e293b; font-size:10px; }
.hr-action-message small { color:#64748b; font-size:8px; }
.hr-action-message p { margin:9px 0 0; color:#334155; font-size:10px; line-height:1.45; }
.hr-action-attachment { display:flex; align-items:center; gap:5px; margin-top:8px; padding:6px 8px; color:#1d4ed8; font-size:8.5px; text-decoration:none; border:1px solid #bfdbfe; border-radius:7px; background:#fff; }
.hr-action-attachment small { margin-left:auto; }
.hr-action-response { display:flex; flex-direction:column; gap:9px; margin:10px; padding:11px; border:1px solid #c4b5fd; border-radius:10px; background:#faf5ff; }
.hr-action-response > div { display:flex; flex-direction:column; color:#6d28d9; }
.hr-action-response > div > span { font-size:11px; font-weight:850; }
.hr-action-response > div small { color:#64748b; font-size:8.5px; }
.hr-action-side-stack { display:flex; flex-direction:column; gap:9px; }
.hr-action-resolution,.hr-action-resolution-summary { padding:12px; }
.hr-action-resolution > span,.hr-action-resolution-summary > span { color:#64748b; font-size:8px; font-weight:900; text-transform:uppercase; }
.hr-action-resolution > strong { display:block; margin:3px 0; color:#1e293b; font-size:13px; }
.hr-action-resolution > small { display:block; color:#64748b; font-size:8px; }
.hr-action-resolution form,.hr-action-side-drawer form { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.hr-action-side-drawer form { padding:0 10px 10px; }
.hr-action-resolution-summary > div { display:flex; flex-direction:column; margin-top:9px; }
.hr-action-resolution-summary small { color:#64748b; font-size:8px; }
.hr-action-resolution-summary strong { color:#1e293b; font-size:10px; }
.hr-action-resolution-summary p { margin:10px 0 0; padding-top:9px; color:#475569; font-size:9px; border-top:1px solid var(--line); }
.hr-action-decision-hold { display:flex; align-items:flex-start; gap:8px; margin:8px; padding:9px 10px; color:#92400e; border:1px solid #f59e0b; border-radius:8px; background:#fffbeb; }
.hr-action-decision-hold > i { margin-top:1px; font-size:16px; }
.hr-action-decision-hold > span { display:flex; flex-direction:column; }
.hr-action-decision-hold strong { color:#78350f; font-size:10px; }
.hr-action-decision-hold small { color:#92400e; font-size:8.5px; line-height:1.35; }
.hr-priority-actions { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
html[data-theme="dark"] .hr-action-decision-hold { color:#fbbf24; border-color:#92400e; background:rgba(120,53,15,.22); }
html[data-theme="dark"] .hr-action-decision-hold strong,html[data-theme="dark"] .hr-action-decision-hold small { color:#fcd34d; }
html[data-theme="dark"] .hr-action-global-banner { color:#fbbf24; background:linear-gradient(90deg,#29220f,#201c17); }
html[data-theme="dark"] .hr-action-global-banner.is-overdue { color:#fca5a5; background:linear-gradient(90deg,#321818,#241817); }
html[data-theme="dark"] .hr-action-global-copy strong,html[data-theme="dark"] .hr-action-command strong,html[data-theme="dark"] .hr-action-row strong,html[data-theme="dark"] .hr-my-action-hero strong,html[data-theme="dark"] .hr-my-action-card h2,html[data-theme="dark"] .hr-action-detail-hero strong,html[data-theme="dark"] .hr-action-message strong,html[data-theme="dark"] .hr-action-resolution strong { color:#e2e8f0; }
html[data-theme="dark"] .hr-action-command > div,html[data-theme="dark"] .hr-action-row,html[data-theme="dark"] .hr-action-tabs,html[data-theme="dark"] .hr-my-action-card,html[data-theme="dark"] .hr-action-detail-hero { background:#111827; }
html[data-theme="dark"] .hr-action-command .is-critical,html[data-theme="dark"] .hr-action-row.is-overdue,html[data-theme="dark"] .hr-my-action-card.is-overdue,html[data-theme="dark"] .hr-action-detail-hero.is-overdue { background:rgba(127,29,29,.2); }
html[data-theme="dark"] .hr-action-command .is-clear,html[data-theme="dark"] .hr-my-action-hero.is-clear { background:rgba(22,101,52,.18); }
html[data-theme="dark"] .hr-action-create-form,html[data-theme="dark"] .hr-action-message { background:#111827; }
html[data-theme="dark"] .hr-action-message.from-employee { background:#172554; }
html[data-theme="dark"] .hr-action-response { background:#21152f; }
@media (max-width:1000px) { .hr-action-command { grid-template-columns:repeat(2,minmax(0,1fr)); } .hr-action-detail-grid { grid-template-columns:1fr; } .hr-my-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .hr-action-row { grid-template-columns:30px minmax(110px,.8fr) minmax(180px,1.4fr) auto auto; } .hr-action-due { display:none; } }
@media (max-width:700px) { .hr-action-global-banner { grid-template-columns:auto minmax(0,1fr) auto; } .hr-action-global-count { display:none; } .hr-action-global-cta { font-size:0; } .hr-action-global-cta i { font-size:13px; } .hr-action-command,.hr-my-action-grid,.hr-action-detail-hero,.hr-action-create-form { grid-template-columns:1fr; } .hr-action-create-form .grid-span-2 { grid-column:auto; } .hr-action-detail-hero > div { border-right:0; border-bottom:1px solid var(--line); } .hr-action-detail-hero > div:last-child { border-bottom:0; } .hr-action-filters { grid-template-columns:1fr 1fr; } .hr-action-filters button { grid-column:1/-1; justify-content:center; } .hr-action-row { grid-template-columns:28px minmax(0,1fr) auto; } .hr-action-subject { grid-column:2; } .hr-action-row > .status-badge { grid-column:3; grid-row:1/3; } .hr-action-row > i,.hr-action-person small { display:none; } .hr-action-message { max-width:96%; } }

/* Operational UI system: shared hierarchy for every rendered application surface. */
.operational-surface {
    --ops-panel:var(--panel,#fff);
    --ops-line:var(--line,#dfe5ef);
    --ops-ink:var(--ink,#151d3b);
    --ops-muted:var(--muted,#5f6980);
    display:grid;
    min-width:0;
    max-width:100%;
    gap:8px;
    color:var(--ops-ink);
}
.operational-surface > :last-child { margin-bottom:0; }
.operational-surface :where(.card,.noc-card,.kpi-card,.filter-bar,.table-wrap,.compact-form-card) { border-color:var(--ops-line); }
.operational-surface :where(.card,.noc-card,.kpi-card) { box-shadow:0 1px 2px rgba(15,23,42,.035); }
.operational-surface :where(.form-control,.form-select,input:not([type="checkbox"]):not([type="radio"]),select,textarea) { max-width:100%; }
.operational-surface :where(.table-responsive,.table-wrap,.ops-table) { max-width:100%; -webkit-overflow-scrolling:touch; }
.operational-surface :where(table) { color:var(--ops-ink); }
.operational-surface :where(th) { color:var(--ops-muted); font-weight:800; text-transform:uppercase; letter-spacing:.045em; }
.operational-surface :where(.alert,.noc-alert) { margin-bottom:8px; }

/* Archetype adapters make legacy modules operational without replacing their domain UI. */
.operational-surface :where(.page-header,.dashboard-header,.section-header,.content-header) { min-width:0; }
.operational-surface > * > :where(.page-header,.dashboard-header,.section-header):first-child,
.operational-surface > :where(.page-header,.dashboard-header,.section-header):first-child { margin-bottom:0; }
.operational-surface :where([class$="-metrics"],[class$="-metric-grid"],[class$="-kpi-grid"],[class$="-summary-grid"],.summary-grid,.metrics-grid) { min-width:0; gap:7px; }
.operational-surface :where([class$="-empty"],.empty-state,.no-results) { min-height:110px; padding:20px; color:var(--ops-muted); text-align:center; border:1px dashed var(--ops-line); border-radius:8px; background:var(--ops-panel); }
.operational-surface :where(a,button,input,select,textarea):focus-visible { outline:2px solid #4f8df7; outline-offset:2px; }
.operational-queue :where(table) thead th,.operational-monitor :where(table) thead th { position:sticky; top:0; z-index:2; background:var(--panel-soft,#f8fafc); }
.operational-queue :where(tbody tr):hover td { background:rgba(37,99,235,.035); }
.operational-queue :where(form[method="get"]):not(.quick-lookup):not(.m-0) { min-width:0; }
.operational-detail :where(dl) { margin-bottom:0; }
.operational-detail :where(dt) { color:var(--ops-muted); font-size:9px; font-weight:850; letter-spacing:.045em; text-transform:uppercase; }
.operational-detail :where(dd) { color:var(--ops-ink); }
.operational-form :where(fieldset) { min-width:0; padding:10px; border:1px solid var(--ops-line); border-radius:8px; }
.operational-form :where(legend) { float:none; width:auto; padding:0 5px; color:var(--ops-ink); font-size:11px; font-weight:800; }
.operational-monitor { --ops-density:compact; }
.operational-monitor :where(.card,.noc-card,.kpi-card) { box-shadow:none; }
.operational-document { display:block; }
.operational-monitor { gap:6px; }
.operational-form > form:last-child,.operational-form > .noc-card:last-child { margin-bottom:0; }

.ops-command-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    min-width:0;
    padding:11px 13px;
    border:1px solid var(--ops-line,var(--line));
    border-left:4px solid var(--brand,#2d317f);
    border-radius:9px;
    background:var(--ops-panel,var(--panel));
}
.ops-command-copy { min-width:0; }
.ops-command-eyebrow { display:block; margin-bottom:2px; color:var(--ops-muted,var(--muted)); font-size:9px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.ops-command-header h1 { margin:0; color:var(--ops-ink,var(--ink)); font-size:20px; font-weight:800; line-height:1.15; }
.ops-command-header p { margin:3px 0 0; color:var(--ops-muted,var(--muted)); font-size:11px; line-height:1.35; }
.ops-command-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.ops-live-state { display:flex; align-items:center; gap:7px; min-height:31px; padding:5px 8px; border:1px solid var(--ops-line,var(--line)); border-radius:8px; background:#f8fafc; }
.ops-live-state > i { font-size:7px; }
.ops-live-state > span { display:flex; flex-direction:column; }
.ops-live-state strong { color:var(--ops-ink,var(--ink)); font-size:10px; line-height:1.15; }
.ops-live-state small { color:var(--ops-muted,var(--muted)); font-size:8px; line-height:1.15; }
.ops-live-state.status-ok > i { color:var(--noc-green); }.ops-live-state.status-warning > i { color:var(--noc-yellow); }.ops-live-state.status-degraded > i { color:var(--noc-orange); }.ops-live-state.status-critical > i { color:var(--noc-red); }.ops-live-state.status-info > i { color:var(--noc-blue); }

.ops-command-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:7px; }
.ops-command-metric { display:flex; min-width:0; min-height:74px; flex-direction:column; justify-content:space-between; padding:9px 10px; color:var(--ops-ink,var(--ink)); text-decoration:none; border:1px solid var(--ops-line,var(--line)); border-left:4px solid var(--noc-gray); border-radius:8px; background:var(--ops-panel,var(--panel)); }
.ops-command-metric:hover { color:var(--ops-ink,var(--ink)); border-color:#9bb6d8; box-shadow:0 3px 12px rgba(15,23,42,.06); }
.ops-command-metric > span { color:var(--ops-muted,var(--muted)); font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.ops-command-metric > strong { font-size:21px; line-height:1.05; }
.ops-command-metric > small { color:var(--ops-muted,var(--muted)); font-size:9px; line-height:1.2; }
.ops-command-metric.status-ok { border-left-color:var(--noc-green); }.ops-command-metric.status-info { border-left-color:var(--noc-blue); }.ops-command-metric.status-warning { border-left-color:var(--noc-yellow); }.ops-command-metric.status-degraded { border-left-color:var(--noc-orange); }.ops-command-metric.status-critical { border-left-color:var(--noc-red); }
.ops-command-empty { display:flex; min-height:150px; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:24px; color:var(--ops-muted,var(--muted)); text-align:center; border:1px dashed var(--ops-line,var(--line)); border-radius:9px; background:var(--ops-panel,var(--panel)); }
.ops-command-empty > i { color:#94a3b8; font-size:27px; }.ops-command-empty > strong { color:var(--ops-ink,var(--ink)); font-size:13px; }.ops-command-empty > span { max-width:480px; font-size:10px; }

html[data-theme="dark"] .ops-live-state { background:#172033; }
html[data-theme="dark"] .ops-command-metric,html[data-theme="dark"] .ops-command-header,html[data-theme="dark"] .ops-command-empty { background:#111827; }
@media (max-width:760px) {
    .ops-command-header { align-items:stretch; flex-direction:column; }
    .ops-command-actions { justify-content:flex-start; }
    .ops-command-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .operational-surface :where(.table-responsive,.table-wrap,.ops-table) { overflow-x:auto; }
}
@media (max-width:430px) { .ops-command-metrics { grid-template-columns:1fr 1fr; }.ops-command-metric { min-height:68px; } }

/* ONU / modem operational detail */
.tools-onu-page { gap:9px; }
.onu-command-hero { display:grid; grid-template-columns:minmax(300px,1.4fr) minmax(180px,.55fr) minmax(420px,1fr); overflow:hidden; border:1px solid #dbe5f0; border-left:4px solid #64748b; border-radius:11px; background:#fff; }
.onu-command-hero.tone-ok { border-left-color:#22c55e; }.onu-command-hero.tone-warning { border-left-color:#f59e0b; }.onu-command-hero.tone-critical { border-left-color:#ef4444; }.onu-command-hero.tone-info { border-left-color:#3b82f6; }
.onu-command-identity,.onu-command-state,.onu-command-actions { min-width:0; min-height:78px; padding:12px 14px; }
.onu-command-identity { display:flex; align-items:center; gap:11px; }
.onu-device-icon { display:grid; flex:0 0 42px; width:42px; height:42px; place-items:center; color:#3730a3; font-size:20px; border-radius:10px; background:#e0e7ff; }
.onu-command-identity > div { min-width:0; }
.onu-command-eyebrow,.onu-command-state > span,.onu-section-head > div > span,.onu-data-grid > div > span,.onu-live-strip small,.onu-command-metrics span,.onu-lifecycle-metrics span { color:#64748b; font-size:9px; font-weight:850; letter-spacing:.055em; line-height:1.15; text-transform:uppercase; }
.onu-command-identity h2 { overflow:hidden; margin:3px 0 2px; color:#0f172a; font-size:17px; font-weight:850; line-height:1.05; text-overflow:ellipsis; white-space:nowrap; }
.onu-command-identity p { overflow:hidden; margin:0; color:#64748b; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.onu-command-state { display:grid; align-content:center; border-left:1px solid #e2e8f0; }
.onu-command-state > strong { margin:3px 0 5px; color:#0f172a; font-size:14px; font-weight:850; line-height:1.1; }
.onu-command-actions { display:flex; align-content:center; align-items:center; justify-content:flex-end; gap:5px; flex-wrap:wrap; border-left:1px solid #e2e8f0; background:#f8fafc; }
.onu-command-metrics { display:grid; grid-column:1/-1; grid-template-columns:repeat(5,minmax(0,1fr)); border-top:1px solid #e2e8f0; background:#f8fafc; }
.onu-command-metrics > div { display:grid; align-content:center; min-width:0; min-height:60px; padding:8px 11px; border-top:3px solid #94a3b8; border-right:1px solid #e2e8f0; }
.onu-command-metrics > div:last-child { border-right:0; }.onu-command-metrics > div.is-ok { border-top-color:#22c55e; background:#f0fdf4; }.onu-command-metrics > div.is-warning { border-top-color:#f59e0b; background:#fffbeb; }
.onu-command-metrics strong { overflow:hidden; margin:2px 0; color:#0f172a; font-size:11.5px; font-weight:800; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.onu-command-metrics small { overflow:hidden; color:#64748b; font-size:8.5px; text-overflow:ellipsis; white-space:nowrap; }

.onu-attention-panel { overflow:hidden; border:1px solid #f5d38a; border-radius:10px; background:#fff; }
.onu-attention-heading { display:flex; align-items:center; justify-content:space-between; padding:7px 10px; color:#92400e; border-bottom:1px solid #fde7b2; background:#fffbeb; font-size:10px; font-weight:800; }
.onu-attention-heading span { display:inline-flex; align-items:center; gap:6px; }
.onu-attention-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.onu-attention-item { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:52px; padding:7px 10px; border-right:1px solid #e8eef5; border-bottom:1px solid #e8eef5; }
.onu-attention-item > i { display:grid; width:24px; height:24px; place-items:center; color:#b45309; border-radius:7px; background:#fef3c7; }.onu-attention-item.tone-critical > i { color:#b91c1c; background:#fee2e2; }.onu-attention-item.tone-info > i { color:#1d4ed8; background:#dbeafe; }
.onu-attention-item > span { display:grid; min-width:0; }.onu-attention-item strong { color:#1e293b; font-size:10px; font-weight:800; }.onu-attention-item small { color:#64748b; font-size:8.5px; line-height:1.25; }
.onu-attention-item > a,.onu-attention-item > button { padding:0; color:#b45309; font-size:9px; font-weight:850; text-decoration:none; border:0; background:transparent; }

.onu-primary-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr); gap:9px; align-items:start; }
.onu-service-card,.onu-device-card,.onu-lifecycle-card,.onu-disclosure { overflow:hidden; }
.onu-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:8px 11px; border-bottom:1px solid #e2e8f0; background:#fbfcfe; }
.onu-section-head > div { min-width:0; }.onu-section-head h2 { margin:2px 0 0; color:#0f172a; font-size:13px; font-weight:850; }.onu-section-head > small { color:#64748b; font-size:9px; }
.onu-subscriber-identity { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px 11px; border-bottom:1px solid #e8eef5; }
.onu-subscriber-avatar { display:grid; width:34px; height:34px; place-items:center; color:#166534; font-size:12px; font-weight:900; border-radius:999px; background:#dcfce7; }
.onu-subscriber-identity > span:nth-child(2) { display:grid; min-width:0; }.onu-subscriber-identity strong { overflow:hidden; color:#0f172a; font-size:12px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }.onu-subscriber-identity small { color:#64748b; font-size:9px; }
.onu-live-strip { display:grid; grid-template-columns:28px minmax(135px,1.1fr) repeat(3,minmax(100px,1fr)); align-items:center; gap:8px; margin:9px 10px; padding:8px 9px; border:1px solid #fecaca; border-left:3px solid #ef4444; border-radius:8px; background:#fef2f2; }
.onu-live-strip.is-online { border-color:#bbf7d0; border-left-color:#22c55e; background:#f0fdf4; }.onu-live-strip > i { color:#dc2626; font-size:18px; }.onu-live-strip.is-online > i { color:#16a34a; }
.onu-live-strip > span { display:grid; min-width:0; }.onu-live-strip strong { overflow:hidden; color:#334155; font-size:10px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.onu-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.onu-data-grid > div { display:grid; align-content:start; min-width:0; min-height:61px; padding:8px 10px; border-right:1px solid #e8eef5; border-bottom:1px solid #e8eef5; }.onu-data-grid > div:nth-child(2n) { border-right:0; }.onu-data-grid > div.is-wide { grid-column:1/-1; border-right:0; }
.onu-data-grid strong { margin:3px 0 1px; color:#1e293b; font-size:10.5px; font-weight:750; line-height:1.25; overflow-wrap:anywhere; }.onu-data-grid small { color:#64748b; font-size:8.5px; line-height:1.25; }
.onu-wifi-actions { display:flex; align-items:center; gap:5px; margin-top:4px; }.onu-wifi-actions code { color:#3730a3; font-size:10px; }

.onu-lifecycle-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid #e2e8f0; }
.onu-lifecycle-metrics > div { display:grid; min-height:54px; padding:8px 11px; border-top:3px solid #64748b; border-right:1px solid #e2e8f0; }.onu-lifecycle-metrics > div:last-child { border-right:0; }.onu-lifecycle-metrics > div.is-warning { border-top-color:#f59e0b; background:#fffbeb; }
.onu-lifecycle-metrics strong { color:#0f172a; font-size:17px; font-weight:850; line-height:1.2; }
.onu-inline-warning { display:flex; align-items:center; gap:8px; padding:8px 10px; color:#92400e; border-bottom:1px solid #fde68a; background:#fffbeb; }.onu-inline-warning > i { font-size:17px; }.onu-inline-warning > span { display:grid; font-size:9px; }.onu-inline-warning strong { font-size:10px; }
.onu-lifecycle-table td small,.onu-disclosure td small { display:block; max-width:240px; overflow:hidden; color:#64748b; font-size:8.5px; text-overflow:ellipsis; white-space:nowrap; }

.onu-secondary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; align-items:start; }
.onu-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:51px; padding:8px 10px; list-style:none; cursor:pointer; background:#fbfcfe; }.onu-disclosure > summary::-webkit-details-marker { display:none; }.onu-disclosure > summary:hover { background:#f6f8fc; }.onu-disclosure[open] > summary { border-bottom:1px solid #e2e8f0; }
.onu-disclosure > summary > span { display:flex; align-items:center; gap:8px; min-width:0; }.onu-disclosure > summary > span > i { display:grid; flex:0 0 28px; width:28px; height:28px; place-items:center; color:#4338ca; border-radius:8px; background:#eef2ff; }
.onu-disclosure > summary > span > span { display:grid; min-width:0; }.onu-disclosure > summary strong { color:#1e293b; font-size:10.5px; font-weight:800; }.onu-disclosure > summary small { color:#64748b; font-size:8.5px; }
.onu-disclosure > summary > i { color:#64748b; font-size:11px; transition:transform .18s ease; }.onu-disclosure[open] > summary > i { transform:rotate(180deg); }
.onu-disclosure-grid > div:nth-last-child(-n+2) { border-bottom:0; }
.onu-remarks { padding:9px 10px; color:#334155; border-bottom:1px solid #e2e8f0; font-size:10px; line-height:1.4; }.onu-disclosure-actions { display:flex; justify-content:flex-end; padding:6px 9px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }

@media (max-width:1180px) { .onu-command-hero { grid-template-columns:minmax(280px,1fr) minmax(190px,.6fr); }.onu-command-actions { grid-column:1/-1; min-height:auto; justify-content:flex-start; border-top:1px solid #e2e8f0; border-left:0; }.onu-primary-grid { grid-template-columns:1fr; } }
@media (max-width:760px) {
    .onu-command-hero,.onu-command-metrics,.onu-secondary-grid,.onu-lifecycle-metrics { grid-template-columns:1fr; }
    .onu-command-state,.onu-command-actions { grid-column:auto; border-top:1px solid #e2e8f0; border-left:0; }
    .onu-command-metrics > div,.onu-lifecycle-metrics > div { min-height:52px; border-right:0; border-bottom:1px solid #e2e8f0; }
    .onu-live-strip { grid-template-columns:28px minmax(0,1fr); }.onu-live-strip > span:nth-child(n+3) { grid-column:2; }
    .onu-subscriber-identity { grid-template-columns:34px minmax(0,1fr); }.onu-subscriber-identity > a { grid-column:2; justify-self:start; }
}
@media (max-width:520px) { .onu-command-identity { align-items:flex-start; }.onu-command-actions .action-pill { flex:1 1 145px; justify-content:center; }.onu-data-grid { grid-template-columns:1fr; }.onu-data-grid > div,.onu-data-grid > div:nth-child(2n),.onu-data-grid > div.is-wide { grid-column:auto; border-right:0; }.onu-attention-list { grid-template-columns:1fr; } }

html[data-theme="dark"] .onu-command-hero,html[data-theme="dark"] .onu-attention-panel,html[data-theme="dark"] .onu-disclosure { border-color:var(--line); background:var(--panel); }
html[data-theme="dark"] .onu-command-actions,html[data-theme="dark"] .onu-command-metrics,html[data-theme="dark"] .onu-section-head,html[data-theme="dark"] .onu-disclosure > summary,html[data-theme="dark"] .onu-disclosure-actions { border-color:var(--line); background:var(--panel-2); }
html[data-theme="dark"] .onu-command-state,html[data-theme="dark"] .onu-command-actions,html[data-theme="dark"] .onu-command-metrics,html[data-theme="dark"] .onu-command-metrics > div,html[data-theme="dark"] .onu-section-head,html[data-theme="dark"] .onu-subscriber-identity,html[data-theme="dark"] .onu-data-grid > div,html[data-theme="dark"] .onu-lifecycle-metrics,html[data-theme="dark"] .onu-lifecycle-metrics > div,html[data-theme="dark"] .onu-disclosure > summary,html[data-theme="dark"] .onu-remarks,html[data-theme="dark"] .onu-disclosure-actions { border-color:var(--line); }
html[data-theme="dark"] .onu-command-identity h2,html[data-theme="dark"] .onu-command-state > strong,html[data-theme="dark"] .onu-command-metrics strong,html[data-theme="dark"] .onu-attention-item strong,html[data-theme="dark"] .onu-section-head h2,html[data-theme="dark"] .onu-subscriber-identity strong,html[data-theme="dark"] .onu-live-strip strong,html[data-theme="dark"] .onu-data-grid strong,html[data-theme="dark"] .onu-lifecycle-metrics strong,html[data-theme="dark"] .onu-disclosure > summary strong,html[data-theme="dark"] .onu-remarks { color:var(--ink); }
html[data-theme="dark"] .onu-command-identity p,html[data-theme="dark"] .onu-command-metrics small,html[data-theme="dark"] .onu-attention-item small,html[data-theme="dark"] .onu-subscriber-identity small,html[data-theme="dark"] .onu-data-grid small,html[data-theme="dark"] .onu-disclosure > summary small { color:var(--muted); }
html[data-theme="dark"] .onu-command-metrics > div.is-ok,html[data-theme="dark"] .onu-live-strip.is-online { background:rgba(22,163,74,.14); }
html[data-theme="dark"] .onu-command-metrics > div.is-warning,html[data-theme="dark"] .onu-lifecycle-metrics > div.is-warning,html[data-theme="dark"] .onu-inline-warning,html[data-theme="dark"] .onu-attention-heading { background:rgba(120,53,15,.2); }
html[data-theme="dark"] .onu-live-strip.is-offline { background:rgba(127,29,29,.18); }

/* Focused application navigation */
.sidebar .sidebar-nav-label {
    margin: 8px 9px 4px;
    color: #7f93ad;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.sidebar .sidebar-nav-label.workspace-label { margin-top: 14px; }
.sidebar .sidebar-primary-links { display: grid; gap: 2px; }
.sidebar .sidebar-nav .sidebar-primary-link { min-height: 34px; padding: 7px 9px; color: #d3deec; font-size: 12px; font-weight: 650; }
.sidebar .sidebar-nav .sidebar-primary-link > i:first-child { width: 17px; color: #9fb5cf; text-align: center; }
.sidebar .sidebar-nav .sidebar-primary-link.active > i:first-child,
.sidebar .sidebar-nav .sidebar-primary-link:hover > i:first-child { color: #ffbd66; }
.sidebar-count {
    display: inline-grid;
    min-width: 18px;
    min-height: 18px;
    margin-left: auto;
    padding: 1px 5px;
    place-items: center;
    border-radius: 999px;
    color: #172033;
    background: #dbeafe;
    font-size: 9px;
    font-weight: 900;
}
.sidebar-count.attention { color: #7c2d12; background: #fed7aa; }
.sidebar-workspace-accordion { display: grid; gap: 2px; }
.sidebar .sidebar-nav .sidebar-section-toggle {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 0;
    color: #afbdd0;
    background: transparent;
    font-size: 11.5px;
    font-weight: 650;
    text-align: left;
}
.sidebar .sidebar-nav .sidebar-section-toggle > i:first-child { width: 17px; color: #8298b4; text-align: center; }
.sidebar .sidebar-nav .sidebar-section-toggle > .bi-chevron-down { margin-left: auto; font-size: 10px; transition: transform .15s ease; }
.sidebar .sidebar-nav .sidebar-section-toggle[aria-expanded="true"] > .bi-chevron-down { transform: rotate(180deg); }
.sidebar .sidebar-nav .sidebar-section-toggle.active { color: #fff; background: rgba(255,255,255,.1); }
.sidebar .sidebar-nav .sidebar-section-toggle.active > i:first-child { color: #ffbd66; }
.sidebar-section-modules { margin: 2px 0 7px 14px; padding-left: 8px; border-left: 1px solid rgba(148,163,184,.22); }
.sidebar-workspace-module { display: grid; gap: 1px; }
.sidebar .sidebar-nav .sidebar-workspace-link {
    min-height: 29px;
    padding: 5px 8px;
    color: #9fb0c5;
    font-size: 11.5px;
}
.sidebar .sidebar-nav .sidebar-workspace-link > i:first-child { width: 15px; color: #748aa6; text-align: center; }
.sidebar .sidebar-nav .sidebar-workspace-link > .bi-chevron-right { margin-left: auto; color: #ffbd66; font-size: 9px; }
.sidebar .sidebar-nav .sidebar-workspace-link.active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 0 var(--orange); }
.sidebar .sidebar-nav .sidebar-workspace-link.active > i:first-child { color: #ffbd66; }
.sidebar .sidebar-nav .sidebar-workspace-link[data-sidebar-accent="billing"].active { background: rgba(20,184,166,.18); box-shadow: inset 3px 0 0 #10b981; }
.sidebar-workspace-children { margin: 1px 0 5px 11px; padding: 2px 0 2px 7px; border-left: 1px solid rgba(148,163,184,.18); }
.sidebar .sidebar-nav .sidebar-workspace-children > .nav-link,
.sidebar .sidebar-nav .sidebar-workspace-children > .sidebar-subgroup > .nav-link { min-height: 25px; padding: 4px 7px; color: #91a3ba; font-size: 10.8px; }
.sidebar .sidebar-nav .sidebar-workspace-children > .nav-link.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 2px 0 0 #ffcf8b; }
.sidebar .sidebar-nav .sidebar-workspace-children[data-sidebar-accent="billing"] > .nav-link.active { background: rgba(20,184,166,.16); box-shadow: inset 2px 0 0 #10b981; }
@media (max-width: 980px) {
    .sidebar .sidebar-nav .sidebar-primary-link,
    .sidebar .sidebar-nav .sidebar-section-toggle { min-height: 42px; font-size: 13px; }
    .sidebar .sidebar-nav .sidebar-workspace-link { min-height: 38px; font-size: 12.5px; }
    .sidebar .sidebar-nav .sidebar-workspace-children > .nav-link,
    .sidebar .sidebar-nav .sidebar-workspace-children > .sidebar-subgroup > .nav-link { min-height: 35px; font-size: 12px; }
}

/* Dashboard team availability */
.dashboard-section-link { display:inline-flex; align-items:center; gap:4px; color:#2563eb; font-size:12px; font-weight:800; text-decoration:none; }
.dashboard-leave-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.dashboard-leave-card { display:grid; min-width:0; gap:6px; padding:9px; border:1px solid #dbe5f0; border-radius:8px; background:#fff; }
.dashboard-leave-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.dashboard-leave-head strong { display:block; color:#0f172a; font-size:13px; line-height:1.15; }
.dashboard-leave-head span { color:#64748b; font-size:11px; line-height:1.15; }
.dashboard-leave-list { display:grid; gap:4px; }
.dashboard-leave-list a { display:grid; gap:1px; padding:5px 6px; color:#0f172a; text-decoration:none; border:1px solid #edf2f7; border-radius:7px; background:#f8fafc; }
.dashboard-leave-list a:hover { border-color:#cbd5e1; background:#fff; }
.dashboard-leave-list span { overflow-wrap:anywhere; font-size:12px; font-weight:800; line-height:1.15; }
.dashboard-leave-list small { color:#64748b; overflow-wrap:anywhere; font-size:10.5px; line-height:1.15; }
.dashboard-leave-list .dashboard-leave-more { color:#2563eb; font-weight:800; text-align:center; }
html[data-theme="dark"] .dashboard-section-link,html[data-theme="dark"] .dashboard-leave-list .dashboard-leave-more { color:#93c5fd; }
html[data-theme="dark"] .dashboard-leave-card { border-color:var(--line); background:var(--panel); }
html[data-theme="dark"] .dashboard-leave-head strong,html[data-theme="dark"] .dashboard-leave-list a { color:var(--ink); }
html[data-theme="dark"] .dashboard-leave-head span,html[data-theme="dark"] .dashboard-leave-list small { color:var(--muted); }
html[data-theme="dark"] .dashboard-leave-list a { border-color:var(--line); background:var(--panel-2); }
html[data-theme="dark"] .dashboard-leave-list a:hover { border-color:#61708a; background:var(--panel); }
@media (max-width:1000px) { .dashboard-leave-grid { grid-template-columns:1fr; } }
