/* ===== view-dashboard ===== */
#view-dashboard .adm-header { background: var(--canvas-warm); display: flex; align-items: center; padding: 22px 16px 18px; gap: 12px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-dashboard .adm-header-sub { font-size: 12px; color: var(--ink-4); letter-spacing: 0.5px; }
#view-dashboard .adm-header-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; margin-top: 1px; }
#view-dashboard .adm-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--canvas-warm); border: 1px solid var(--ink-6); display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex-shrink: 0; }
#view-dashboard .adm-bell .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); border: 1.5px solid var(--white); }
#view-dashboard .period-row { display: flex; background: var(--white); border-bottom: 1px solid var(--ink-7); padding: 0 12px; gap: 4px; }
#view-dashboard .period-chip { padding: 14px 14px 10px; font-size: 14px; font-weight: 500; color: var(--ink-4); border-bottom: 2px solid transparent; }
#view-dashboard .period-chip.active { color: var(--cta); font-weight: 700; border-bottom-color: var(--cta); }
#view-dashboard .adm-section { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; }
#view-dashboard .adm-section:last-child { padding-bottom: 16px; }
#view-dashboard .kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#view-dashboard .kpi-grid .stat-tile.full { grid-column: 1 / -1; }
#view-dashboard .split-pill { display: flex; align-items: center; gap: 3px; margin-top: 2px; }
#view-dashboard .split-pill .num { font-size: 12px; }
#view-dashboard .split-pill .num.dom { color: var(--ok); }
#view-dashboard .split-pill .num.for { color: var(--brand); }
#view-dashboard .split-pill .dot-sep { font-size: 10px; color: var(--ink-6); }
#view-dashboard .tri-flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0; }
#view-dashboard .tri-flag i { flex: 1; display: block; }
#view-dashboard .tri-flag i:nth-child(1) { background: #FF9933; }
#view-dashboard .tri-flag i:nth-child(2) { background: #ffffff; position: relative; }
#view-dashboard .tri-flag i:nth-child(2)::after { content: ''; position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #000080; transform: translate(-50%, -50%); }
#view-dashboard .tri-flag i:nth-child(3) { background: #138808; }
#view-dashboard .stat-tile .val.warn-sub { font-size: 12px; font-weight: 400; color: var(--warn); }
#view-dashboard .stat-tile .val.mono-sub { font-size: 12px; font-weight: 400; color: var(--ink-4); }
#view-dashboard .chart-title-row { display: flex; align-items: center; gap: 8px; }
#view-dashboard .chart-title-row .t { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-dashboard .chart-legend { display: flex; gap: 14px; flex-wrap: wrap; }
#view-dashboard .chart-legend .item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-4); }
#view-dashboard .chart-legend .sw { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
#view-dashboard .thr-wrap { display: flex; align-items: flex-end; height: 100px; }
#view-dashboard .thr-axis { width: 24px; height: 80px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 4px; }
#view-dashboard .thr-axis span { font-size: 10px; color: var(--ink-4); }
#view-dashboard .thr-bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; padding-left: 4px; }
#view-dashboard .thr-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#view-dashboard .thr-cols { display: flex; align-items: flex-end; height: 80px; gap: 3px; }
#view-dashboard .thr-col { width: 12px; height: 80px; display: flex; align-items: flex-end; }
#view-dashboard .thr-col span { width: 12px; border-radius: 2px; display: block; }
#view-dashboard .thr-col.last span { background: #94a3b8; }
#view-dashboard .thr-col.this span { background: var(--brand); }
#view-dashboard .thr-label { font-size: 10px; color: var(--ink-4); width: 27px; text-align: center; }
#view-dashboard .sla-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ink-7); }
#view-dashboard .sla-row:last-child { border-bottom: none; }
#view-dashboard .sla-row .lbl { font-size: 12px; color: var(--ink-3); width: 68px; flex-shrink: 0; }
#view-dashboard .sla-track { flex: 1; height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: var(--canvas-warm); }
#view-dashboard .sla-track span { height: 12px; display: block; }
#view-dashboard .sla-track .within { background: #86efac; }
#view-dashboard .sla-track .approaching { background: #fde68a; }
#view-dashboard .sla-track .breached { background: #fca5a5; }
#view-dashboard .sla-total { font-size: 12px; font-weight: 700; color: var(--ink); width: 24px; text-align: right; flex-shrink: 0; }
#view-dashboard .rev-head { display: flex; align-items: center; justify-content: space-between; }
#view-dashboard .rev-total { display: flex; align-items: baseline; gap: 5px; }
#view-dashboard .rev-total .amt { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: -0.4px; }
#view-dashboard .rev-total .per { font-size: 12px; color: var(--ink-4); }
#view-dashboard .rev-track { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: var(--canvas-warm); }
#view-dashboard .rev-track span { height: 12px; display: block; }
#view-dashboard .rev-legend { display: flex; flex-wrap: wrap; gap: 8px; }
#view-dashboard .rev-legend .item { display: flex; align-items: center; gap: 6px; width: calc(50% - 4px); }
#view-dashboard .rev-legend .sw { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
#view-dashboard .rev-legend .txt { min-width: 0; }
#view-dashboard .rev-legend .txt .l { font-size: 12px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-dashboard .rev-legend .txt .v { font-size: 12px; font-weight: 700; color: var(--ink); display: block; }

/* ===== view-applications ===== */
#view-applications .adm-header { background: var(--canvas-warm); display: flex; align-items: center; padding: 22px 16px 18px; gap: 10px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-applications .adm-header-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-applications .adm-back-row { padding: 12px 16px 2px; background: var(--white); }
#view-applications .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
#view-applications .search-row { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--ink-6); border-radius: var(--r-8); margin: 16px 16px 8px; padding: 0 12px; min-height: 44px; }
#view-applications .search-row input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font); font-size: 14px; color: var(--ink); }
#view-applications .search-row input::placeholder { color: var(--ink-5); }
#view-applications .filter-bar-wrap { padding: 0 16px 4px; }
#view-applications .app-list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
#view-applications .result-count { font-size: 12px; color: var(--ink-4); margin-bottom: -6px; }
#view-applications .app-card { display: block; background: var(--white); border-radius: var(--r-12); border: 1.5px solid var(--ink-6); box-shadow: var(--e1); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#view-applications .app-top { display: flex; align-items: flex-start; gap: 12px; }
#view-applications .app-name { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
#view-applications .app-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
#view-applications .app-id { font-family: var(--font); font-size: 12px; color: var(--brand); }
#view-applications .app-bullet { color: var(--ink-5); font-size: 12px; }
#view-applications .app-type { font-size: 12px; color: var(--ink-4); }
#view-applications .app-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ===== view-reports ===== */
#view-reports .adm-header { background: var(--canvas-warm); display: flex; align-items: center; padding: 22px 16px 18px; gap: 10px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-reports .adm-header-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-reports .adm-back-row { padding: 12px 16px 2px; background: var(--white); }
#view-reports .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
#view-reports .report-list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
#view-reports .report-card { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border-radius: var(--r-12); border: 1.5px solid var(--ink-6); box-shadow: var(--e1); padding: 12px; }
#view-reports .report-icon { width: 44px; height: 44px; border-radius: var(--r-8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-reports .report-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#view-reports .report-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 18px; }
#view-reports .report-desc { font-size: 12px; color: var(--ink-4); line-height: 16px; }
#view-reports .report-footer { margin-top: 4px; }
#view-reports .download-btn { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--cta-bd); border-radius: var(--r-8); padding: 6px 10px; background: var(--cta-15); flex-shrink: 0; align-self: flex-start; }
#view-reports .download-btn span { font-size: 12px; font-weight: 700; color: var(--cta); }

/* ===== view-grievance ===== */
#view-grievance .adm-header { background: var(--canvas-warm); display: flex; align-items: center; padding: 22px 16px 18px; gap: 10px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-grievance .adm-header-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-grievance .adm-back-row { padding: 12px 16px 2px; background: var(--white); }
#view-grievance .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
#view-grievance .gr-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#view-grievance .chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
#view-grievance .stat-chip { width: calc(50% - 5px); border: 1.5px solid; border-radius: var(--r-12); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--e1); }
#view-grievance .stat-chip .icon-row { display: flex; align-items: center; justify-content: space-between; }
#view-grievance .stat-chip .chip-val { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
#view-grievance .stat-chip .chip-lbl { font-size: 12px; font-weight: 600; line-height: 16px; }
#view-grievance .gr-sec-title-row { display: flex; align-items: center; gap: 8px; }
#view-grievance .gr-sec-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-grievance .gr-row { padding: 14px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--ink-7); }
#view-grievance .gr-row:last-child { border-bottom: none; }
#view-grievance .gr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
#view-grievance .gr-gid { font-family: var(--font); font-size: 12px; color: var(--brand); letter-spacing: 0.5px; }
#view-grievance .gr-name { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-grievance .gr-type { font-size: 12px; font-weight: 500; color: var(--ink-3); }
#view-grievance .gr-desc { font-size: 12px; color: var(--ink-4); line-height: 16px; margin-top: 2px; }
#view-grievance .gr-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
#view-grievance .gr-client { font-family: var(--font); font-size: 12px; color: var(--ink-4); letter-spacing: 0.5px; }
#view-grievance .gr-action-btn { padding: 6px 12px; background: var(--cta-15); border: 1.5px solid var(--cta-bd); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--cta); }

/* ===== view-profile ===== */
#view-profile .pf-header { background: var(--white); display: flex; align-items: center; padding: 32px 16px 18px; gap: 16px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-profile .pf-header .avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
#view-profile .pf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#view-profile .pf-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-profile .pf-email { font-size: 12px; color: var(--ink-4); }
#view-profile .pf-badge-row { display: flex; gap: 8px; margin-top: 2px; }
#view-profile .adm-back-row { padding: 12px 16px 2px; background: var(--white); }
#view-profile .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
#view-profile .pf-section { padding: 20px 16px 0; }
#view-profile .pf-section-label { font-size: 10px; font-weight: 800; color: var(--ink-5); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; padding: 0 4px; }
#view-profile .switch-card { background: var(--white); border-radius: var(--r-12); border: 1.5px solid var(--ink-6); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
#view-profile .switch-card .sw-title { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-profile .switch-card .sw-sub { font-size: 12px; color: var(--ink-4); margin-bottom: 6px; }
#view-profile .switch-row { display: flex; flex-wrap: wrap; gap: 8px; }
#view-profile .switch-chip { padding: 8px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--ink-6); background: var(--canvas-warm); font-size: 12px; font-weight: 700; color: var(--ink-3); }
#view-profile .switch-chip.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
#view-profile .menu-item { display: flex; align-items: center; padding: 12px; gap: 12px; min-height: 52px; }
#view-profile .menu-icon { width: 32px; height: 32px; border-radius: var(--r-8); background: var(--brand-08); border: 1px solid var(--brand-15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-profile .menu-icon.danger { background: var(--err-bg); border-color: var(--err-bd); }
#view-profile .menu-label { font-size: 14px; font-weight: 500; color: var(--ink); flex: 1; }
#view-profile .menu-label.danger { color: var(--err); }
#view-profile .menu-value { font-size: 14px; color: var(--ink-4); flex-shrink: 1; text-align: right; }
#view-profile .menu-divider { height: 1px; background: var(--ink-7); margin: 0 16px; }
#view-profile .pf-version { font-size: 12px; color: var(--ink-5); text-align: center; padding: 20px 0; }

/* ===== view-notifications ===== */
#view-notifications .adm-header { background: var(--canvas-warm); display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-notifications .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; align-self: flex-start; padding: 4px 8px 4px 0; }
#view-notifications .adm-header-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-notifications .adm-header-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-notifications .notif-list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
#view-notifications .notif-card { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border-radius: var(--r-12); border: 1.5px solid var(--ink-6); box-shadow: var(--e1); padding: 12px; }
#view-notifications .notif-card.unread { border-color: var(--brand); background: var(--brand-04); }
#view-notifications .notif-icon { width: 40px; height: 40px; border-radius: var(--r-8); border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-notifications .notif-content { flex: 1; min-width: 0; }
#view-notifications .notif-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
#view-notifications .notif-title { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-notifications .unread-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--brand); flex-shrink: 0; }
#view-notifications .notif-body { font-size: 14px; color: var(--ink-3); line-height: 18px; }
#view-notifications .notif-time { font-size: 12px; color: var(--ink-4); margin-top: 5px; }

/* ===== view-app-detail ===== */
#view-app-detail .detail-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 10px; }
#view-app-detail .detail-header .title-wrap { flex: 1; min-width: 0; }
#view-app-detail .detail-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-app-detail .detail-header .sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; letter-spacing: 0.3px; }
#view-app-detail .back-row { padding: 10px 16px 8px; background: var(--white); }
#view-app-detail .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
#view-app-detail .sla-banner { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-bottom: 1.5px solid; font-size: 12px; font-weight: 700; }
#view-app-detail .sla-banner.err { background: var(--err-bg);  border-color: var(--err-bd);  color: var(--err); }
#view-app-detail .sla-banner.warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn); }
#view-app-detail .sla-banner.ok { background: var(--ok-bg);   border-color: var(--ok-bd);   color: var(--ok); }
#view-app-detail .detail-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--ink-7); }
#view-app-detail .detail-tabs .dtab { flex: 1; text-align: center; padding: 12px 1px; font-size: 12px; font-weight: 600; color: var(--ink-4); border-bottom: 2px solid transparent; white-space: nowrap; }
#view-app-detail .detail-tabs .dtab.active { color: var(--cta); font-weight: 700; border-bottom-color: var(--cta); }
#view-app-detail .detail-tabs .dtab .bnum { color: var(--err); font-weight: 700; }
#view-app-detail .card-header .chip.plain { background: var(--white); border-color: var(--ink-6); color: var(--icon-muted); }
#view-app-detail .card-header .text .title.muted { color: var(--icon-muted); }
#view-app-detail .matrix-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-bottom: 1px solid var(--ink-7); }
#view-app-detail .matrix-row:last-child { border-bottom: none; }
#view-app-detail .matrix-left { flex: 1; display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
#view-app-detail .matrix-dot { flex-shrink: 0; margin-top: 2px; }
#view-app-detail .matrix-text { flex: 1; min-width: 0; }
#view-app-detail .matrix-svc { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-app-detail .matrix-svc.done { color: var(--ink-4); }
#view-app-detail .matrix-dept { font-size: 12px; color: var(--ink-5); margin-top: 2px; }
#view-app-detail .matrix-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
#view-app-detail .matrix-sla { font-size: 12px; font-weight: 700; }
#view-app-detail .matrix-sla.err { color: var(--err); }
#view-app-detail .matrix-sla.warn { color: var(--warn); }
#view-app-detail .matrix-sla.ok { color: var(--ok); }
#view-app-detail .matrix-sla.info { color: var(--info); }
#view-app-detail .tab-panel { display: flex; flex-direction: column; gap: 16px; }
#view-app-detail .profile-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 13px; gap: 12px; border-bottom: 1px solid var(--ink-7); }
#view-app-detail .profile-row:last-child { border-bottom: none; }
#view-app-detail .profile-key { font-size: 12px; color: var(--ink-5); width: 130px; flex-shrink: 0; }
#view-app-detail .profile-val { font-size: 14px; font-weight: 500; color: var(--ink); flex: 1; text-align: right; }
#view-app-detail .profile-val.mono { font-size: 13px; letter-spacing: 0.3px; }
#view-app-detail .query-card { background: var(--white); border-radius: var(--r-16); border: 1.5px solid var(--ink-6); box-shadow: var(--e1); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
#view-app-detail .query-header { display: flex; align-items: flex-start; gap: 10px; }
#view-app-detail .query-svc { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-app-detail .query-by { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
#view-app-detail .query-date { font-family: var(--font); font-size: 10px; color: var(--ink-5); letter-spacing: 0.3px; }
#view-app-detail .query-body { font-size: 14px; color: var(--ink-3); line-height: 18px; }
#view-app-detail .query-footer { display: flex; align-items: center; }
#view-app-detail .deadline-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--err-bg); border: 1.5px solid var(--err-bd); border-radius: var(--r-pill); padding: 4px 8px; }
#view-app-detail .deadline-text { font-size: 12px; font-weight: 700; color: var(--err); }
#view-app-detail .deadline-safe { font-size: 12px; color: var(--ink-5); }
#view-app-detail .tl-row { display: flex; padding: 12px 13px; gap: 10px; }
#view-app-detail .tl-left { display: flex; flex-direction: column; align-items: center; width: 14px; flex-shrink: 0; }
#view-app-detail .tl-dot { width: 10px; height: 10px; border-radius: 5px; margin-top: 3px; }
#view-app-detail .tl-line { width: 2px; flex: 1; margin-top: 4px; min-height: 18px; background: var(--ink-6); }
#view-app-detail .tl-content { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
#view-app-detail .tl-what { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 18px; }
#view-app-detail .tl-app { font-size: 12px; color: var(--ink-4); }
#view-app-detail .tl-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
#view-app-detail .tl-who { font-size: 12px; font-weight: 600; color: var(--brand); }
#view-app-detail .tl-sep { color: var(--ink-5); font-size: 10px; }
#view-app-detail .tl-time { font-family: var(--font); font-size: 10px; color: var(--ink-5); letter-spacing: 0.2px; }
#view-app-detail .doc-card { background: var(--white); border-radius: var(--r-12); border: 1.5px solid var(--ink-6); box-shadow: var(--e1); padding: 12px; display: flex; align-items: center; gap: 11px; }
#view-app-detail .doc-chip { width: 38px; height: 38px; border-radius: var(--r-8); border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-app-detail .doc-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#view-app-detail .doc-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 17px; }
#view-app-detail .doc-app { font-size: 12px; color: var(--ink-4); }
#view-app-detail .doc-meta { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
#view-app-detail .doc-date, #view-app-detail .doc-size { font-size: 12px; color: var(--ink-5); }
#view-app-detail .doc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
#view-app-detail .doc-dl-cta { display: inline-flex; align-items: center; gap: 4px; min-width: 92px; justify-content: center; padding: 6px 8px; border-radius: var(--r-8); background: var(--cta-15); border: 1.5px solid var(--cta-bd); font-size: 12px; font-weight: 700; color: var(--cta); }

/* ===== view-user-detail ===== */
#view-user-detail .ud-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 10px; }
#view-user-detail .ud-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; flex-shrink: 0; }
#view-user-detail .ud-header .title-wrap { flex: 1; min-width: 0; }
#view-user-detail .ud-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-user-detail .ud-header .sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; letter-spacing: 0.5px; }
#view-user-detail .role-chip { padding: 5px 10px; border-radius: var(--r-pill); border: 1.5px solid; font-size: 12px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
#view-user-detail .ud-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--ink-7); }
#view-user-detail .ud-tabs .utab { flex: 1; text-align: center; padding: 12px 4px; font-size: 14px; font-weight: 600; color: var(--ink-4); border-bottom: 2px solid transparent; }
#view-user-detail .ud-tabs .utab.active { color: var(--cta); font-weight: 700; border-bottom-color: var(--cta); }
#view-user-detail .avatar-card { background: var(--white); border: 1.5px solid var(--ink-6); border-radius: var(--r-16); padding: 12px; display: flex; align-items: center; gap: 14px; box-shadow: var(--e1); }
#view-user-detail .avatar-card .avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--avatar-warm); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
#view-user-detail .avatar-card .name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-user-detail .avatar-card .role { font-size: 14px; color: var(--ink-4); margin-top: 2px; }
#view-user-detail .avatar-card .status-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#view-user-detail .avatar-card .since { font-size: 12px; color: var(--ink-4); }
#view-user-detail .ud-stat-row { display: flex; gap: 10px; }
#view-user-detail .ud-stat-pill { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px solid; border-radius: var(--r-12); padding: 14px; box-shadow: var(--e1); }
#view-user-detail .ud-stat-pill .val { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
#view-user-detail .ud-stat-pill .lbl { font-size: 12px; font-weight: 600; margin-top: 1px; }
#view-user-detail .ud-stat-pill.brand { background: var(--brand-04); border-color: var(--brand-15); }
#view-user-detail .ud-stat-pill.brand .val, #view-user-detail .ud-stat-pill.brand .lbl { color: var(--brand); }
#view-user-detail .ud-stat-pill.ok { background: var(--ok-bg); border-color: var(--ok-bd); }
#view-user-detail .ud-stat-pill.ok .val, #view-user-detail .ud-stat-pill.ok .lbl { color: var(--ok); }
#view-user-detail .info-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
#view-user-detail .info-row .icon-wrap { width: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-user-detail .info-row .label { font-size: 12px; color: var(--ink-4); }
#view-user-detail .info-row .value { font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 1px; }
#view-user-detail .info-divider { height: 1px; background: var(--ink-7); }

/* ===== view-users ===== */
#view-users .users-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 12px; }
#view-users .users-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; flex-shrink: 0; }
#view-users .users-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
#view-users .u-search { margin: 16px 16px 0; }
#view-users .u-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--ink-7); margin-top: 12px; }
#view-users .u-tabs .utab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 11px 4px; font-size: 14px; font-weight: 600; color: var(--ink-4); border-bottom: 2px solid transparent; }
#view-users .u-tabs .utab.active { color: var(--cta); font-weight: 700; border-bottom-color: var(--cta); }
#view-users .u-card { display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--ink-6); border-radius: var(--r-12); padding: 12px; gap: 12px; box-shadow: var(--e1); }
#view-users .u-card .name { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-users .u-card .sub { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
#view-users .u-card .meta-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#view-users .u-card .count { font-size: 12px; color: var(--ink-4); }
#view-users .u-card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
#view-users .u-panel { display: flex; flex-direction: column; gap: 16px; }

/* ===== view-approvals ===== */
#view-approvals .appr-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 14px; }
#view-approvals .appr-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; flex-shrink: 0; }
#view-approvals .appr-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; flex: 1; }
#view-approvals .count-badge { background: var(--cta); border-radius: var(--r-pill); padding: 4px 10px; font-size: 14px; font-weight: 800; color: var(--white); }
#view-approvals .appr-stat-row { display: flex; gap: 8px; }
#view-approvals .appr-stat-card { flex: 1; border: 1.5px solid; border-radius: var(--r-12); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--e1); }
#view-approvals .appr-stat-card .val { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
#view-approvals .appr-stat-card .lbl { font-size: 10px; font-weight: 600; text-align: center; line-height: 14px; }
#view-approvals .section-label { font-size: 12px; font-weight: 700; color: var(--ink-5); letter-spacing: 0.7px; text-transform: uppercase; }
#view-approvals .appr-card { background: var(--white); border: 1.5px solid var(--ink-6); border-radius: var(--r-16); padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--e1); }
#view-approvals .appr-card.done { opacity: 0.72; }
#view-approvals .appr-card-top { display: flex; align-items: flex-start; gap: 10px; }
#view-approvals .appr-card-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-approvals .appr-card-entity { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-approvals .appr-meta-row { display: flex; justify-content: space-between; align-items: center; }
#view-approvals .appr-meta-label { font-size: 12px; color: var(--ink-4); }
#view-approvals .appr-meta-value { font-size: 12px; font-weight: 500; color: var(--ink); }
#view-approvals .appr-meta-value.mono { font-family: var(--font); color: var(--brand); letter-spacing: 0.3px; }

/* ===== view-deptperf ===== */
#view-deptperf .dp-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 12px; }
#view-deptperf .dp-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; flex-shrink: 0; }
#view-deptperf .dp-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; flex: 1; text-align: center; }
#view-deptperf .dp-summary-grid { display: flex; flex-wrap: wrap; gap: 10px; }
#view-deptperf .dp-summary-chip { width: calc(50% - 5px); border: 1.5px solid; border-radius: var(--r-12); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--e1); }
#view-deptperf .dp-summary-chip .val { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
#view-deptperf .dp-summary-chip .lbl { font-size: 12px; font-weight: 600; text-align: center; }
#view-deptperf .dp-section-row { display: flex; align-items: center; gap: 8px; }
#view-deptperf .dp-section-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-deptperf .dept-row { display: flex; align-items: center; padding: 14px; gap: 12px; border-bottom: 1px solid var(--ink-7); }
#view-deptperf .dept-row:last-child { border-bottom: none; }
#view-deptperf .dept-left { flex: 1; min-width: 0; }
#view-deptperf .dept-name { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-deptperf .dept-pending { font-size: 12px; margin-top: 3px; }
#view-deptperf .dept-pending .mono { font-family: var(--font); color: var(--ink-3); letter-spacing: 0.5px; }
#view-deptperf .dept-pending .lbl { color: var(--ink-4); }
#view-deptperf .dept-sla { font-size: 12px; color: var(--ink-5); margin-top: 3px; }
#view-deptperf .dept-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
#view-deptperf .variance-tag { border: 1px solid; border-radius: var(--r-pill); padding: 3px 8px; font-size: 12px; font-weight: 800; letter-spacing: -0.2px; }
#view-deptperf .variance-tag.breach { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
#view-deptperf .variance-tag.ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
#view-deptperf .breach-chip { display: flex; align-items: center; gap: 3px; background: var(--err-bg); border: 1px solid var(--err-bd); border-radius: var(--r-pill); padding: 2px 6px; font-size: 10px; font-weight: 800; color: var(--err); }
#view-deptperf .dash-text { font-size: 12px; color: var(--ink-5); }

/* ===== view-audit ===== */
#view-audit .audit-header { background: var(--canvas-warm); padding: 22px 16px 18px; border-bottom: 1px solid var(--ink-7); display: flex; align-items: center; gap: 12px; }
#view-audit .audit-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; flex-shrink: 0; }
#view-audit .audit-header .title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; flex: 1; text-align: center; }
#view-audit .export-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--canvas-warm); border: 1px solid var(--ink-6); border-radius: var(--r-8); padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-audit .filter-section { background: var(--white); border-bottom: 1px solid var(--ink-7); padding: 8px 0; display: flex; flex-direction: column; gap: 6px; }
#view-audit .filter-label { font-size: 10px; font-weight: 700; color: var(--ink-5); letter-spacing: 0.8px; text-transform: uppercase; padding: 0 16px; }
#view-audit .filter-section .chip-row { padding: 0 16px 2px; }
#view-audit .audit-row { padding: 14px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--ink-7); }
#view-audit .audit-row:last-child { border-bottom: none; }
#view-audit .audit-timestamp { font-family: var(--font); font-size: 12px; color: var(--ink-5); letter-spacing: 0.3px; margin-bottom: 2px; }
#view-audit .audit-user-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-audit .audit-user-name { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-audit .audit-action { font-size: 14px; font-weight: 700; }
#view-audit .audit-appid { font-family: var(--font); font-size: 12px; color: var(--brand); letter-spacing: 0.5px; margin-top: 2px; }
#view-audit .audit-dash { font-size: 12px; color: var(--ink-5); margin-top: 2px; }

/* ===== view-health ===== */
#view-health .page-header { display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-health .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-health .header-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
#view-health .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-health .refresh-btn { display: flex; align-items: center; gap: 5px; background: var(--canvas-warm); border: 1px solid var(--ink-6); border-radius: var(--r-8); padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-health .summary-row { display: flex; gap: 10px; }
#view-health .summary-chip { flex: 1; border: 1.5px solid; border-radius: var(--r-12); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--e1); }
#view-health .summary-chip .val { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
#view-health .summary-chip .lbl { font-size: 12px; font-weight: 600; text-align: center; }
#view-health .section-header { display: flex; align-items: center; gap: 8px; }
#view-health .section-header .title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
#view-health .api-row { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--ink-7); }
#view-health .api-row:last-child { border-bottom: none; }
#view-health .api-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#view-health .api-name { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-health .api-service { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-health .status-chip { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#view-health .status-dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
#view-health .metrics-row { display: flex; align-items: flex-end; gap: 10px; }
#view-health .metric-item { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#view-health .metric-item.right { align-items: flex-end; }
#view-health .metric-label { font-size: 10px; color: var(--ink-5); text-transform: uppercase; letter-spacing: 0.5px; }
#view-health .metric-value { font-size: 12px; color: var(--ink-3); letter-spacing: 0.3px; }
#view-health .mtd-value { font-size: 12px; color: var(--ink); letter-spacing: 0.3px; font-weight: 700; }

/* ===== view-entities ===== */
#view-entities .page-header { display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-entities .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-entities .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
#view-entities .search-wrap { padding: 16px 16px 0; }
#view-entities .count { font-size: 12px; color: var(--ink-5); margin-bottom: 4px; }
#view-entities .entity-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
#view-entities .entity-icon-chip { width: 42px; height: 42px; border-radius: var(--r-8); background: var(--brand-08); border: 1px solid var(--brand-15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-entities .entity-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-entities .entity-cin { font-family: var(--font); font-size: 12px; color: var(--brand); margin-top: 2px; }
#view-entities .entity-meta { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--ink-4); }
#view-entities .entity-meta .bullet { color: var(--ink-5); }
#view-entities .entity-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ===== view-sla ===== */
#view-sla .page-header { display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-sla .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-sla .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
#view-sla .summary-row { display: flex; gap: 10px; }
#view-sla .summary-chip { flex: 1; border: 1.5px solid; border-radius: var(--r-12); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#view-sla .summary-chip .val { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
#view-sla .summary-chip .lbl { font-size: 12px; font-weight: 600; }
#view-sla .sla-row { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--ink-7); }
#view-sla .sla-row:last-child { border-bottom: none; }
#view-sla .sla-left { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
#view-sla .sla-dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
#view-sla .sla-approval { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-sla .sla-dept { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
#view-sla .sla-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
#view-sla .sla-values { display: flex; align-items: center; gap: 6px; }
#view-sla .avg-label { font-size: 12px; color: var(--ink-4); }
#view-sla .breach-chip { display: flex; align-items: center; gap: 2px; background: var(--err-bg); border: 1px solid var(--err-bd); border-radius: var(--r-pill); padding: 2px 6px; }
#view-sla .breach-chip .n { font-size: 10px; font-weight: 700; color: var(--err); }
#view-sla .status-pill { border: 1px solid; border-radius: var(--r-pill); padding: 3px 8px; font-size: 12px; font-weight: 600; }

/* ===== view-fees ===== */
#view-fees .page-header { display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-fees .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-fees .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
#view-fees .fee-summary-header { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); }
#view-fees .fee-summary-icon { width: 40px; height: 40px; border-radius: var(--r-8); background: var(--brand-08); border: 1px solid var(--brand-15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-fees .fee-summary-label { font-size: 12px; color: var(--ink-4); }
#view-fees .fee-summary-total { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; margin-top: 1px; }
#view-fees .fee-txn-count { margin-left: auto; font-size: 12px; color: var(--ink-4); flex-shrink: 0; }
#view-fees .fee-breakdown { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
#view-fees .fee-row { display: flex; justify-content: space-between; align-items: center; }
#view-fees .fee-row .lbl { font-size: 14px; color: var(--ink-4); }
#view-fees .fee-row .val { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-fees .pay-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--ink-7); }
#view-fees .pay-row:last-child { border-bottom: none; }
#view-fees .pay-entity { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-fees .pay-id { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-fees .pay-date { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
#view-fees .pay-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
#view-fees .pay-amount { font-size: 16px; font-weight: 700; color: var(--ink); }
#view-fees .pay-status { border: 1px solid; border-radius: var(--r-pill); padding: 3px 8px; font-size: 12px; font-weight: 600; }

/* ===== view-settings ===== */
#view-settings .page-header { display: flex; align-items: center; gap: 12px; padding: 22px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-settings .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-settings .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
#view-settings .settings-section { display: flex; flex-direction: column; gap: 8px; }
#view-settings .settings-section-header { display: flex; align-items: center; gap: 8px; }
#view-settings .settings-section-header .title { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-settings .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-top: 1px solid var(--ink-7); }
#view-settings .setting-row:first-child { border-top: none; }
#view-settings .setting-label { font-size: 14px; font-weight: 700; color: var(--ink); }
#view-settings .setting-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-settings .info-row { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-top: 1px solid var(--ink-7); }
#view-settings .info-row:first-child { border-top: none; }
#view-settings .info-label { font-size: 14px; color: var(--ink-4); }
#view-settings .info-value { font-size: 14px; font-weight: 500; color: var(--ink); }
#view-settings .switch { width: 44px; height: 26px; border-radius: 999px; background: var(--ink-6); position: relative; flex-shrink: 0; }
#view-settings .switch .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: var(--e1); }
#view-settings .switch.on { background: var(--cta); }
#view-settings .switch.on .knob { left: 20px; }
#view-settings .switch.on.warn-track { background: var(--warn); }
#view-settings .logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--err); color: var(--white); border-radius: var(--r-12); padding: 16px; font-size: 16px; font-weight: 700; }

/* ===== view-kpi-detail ===== */
#view-kpi-detail .page-header { display: flex; align-items: center; gap: 12px; padding: 20px 16px 18px; background: var(--canvas-warm); border-bottom: 1px solid var(--ink-7); flex-shrink: 0; }
#view-kpi-detail .back-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
#view-kpi-detail .header-icon-chip { width: 38px; height: 38px; border-radius: var(--r-8); background: var(--brand-08); border: 1px solid var(--brand-15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#view-kpi-detail .page-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
#view-kpi-detail .page-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
#view-kpi-detail .big-value { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
#view-kpi-detail .split-pill { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
#view-kpi-detail .split-pill .num-dom { font-size: 12px; color: var(--ok); }
#view-kpi-detail .split-pill .sep { color: var(--ink-5); font-size: 12px; }
#view-kpi-detail .split-pill .num-for { font-size: 12px; color: var(--brand); }
#view-kpi-detail .tri-flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0; }
#view-kpi-detail .tri-flag .band { flex: 1; }
#view-kpi-detail .tri-flag .a { background: #FF9933; }
#view-kpi-detail .tri-flag .b { background: #ffffff; display: flex; align-items: center; justify-content: center; }
#view-kpi-detail .tri-flag .c { background: #138808; }
#view-kpi-detail .tri-flag .chakra { width: 3px; height: 3px; border-radius: 50%; background: #000080; }
#view-kpi-detail .kpi-grid3 { display: flex; gap: 8px; }
#view-kpi-detail .kpi-mini-card { flex: 1; background: var(--white); border: 1.5px solid var(--ink-6); border-radius: var(--r-12); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; box-shadow: var(--e1); text-align: center; }
#view-kpi-detail .kpi-mini-card .chip { width: 34px; height: 34px; border-radius: var(--r-8); border: 1px solid; display: flex; align-items: center; justify-content: center; }
#view-kpi-detail .kpi-mini-card .chip.err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
#view-kpi-detail .kpi-mini-card .val { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
#view-kpi-detail .kpi-mini-card .lbl { font-size: 12px; color: var(--ink-4); line-height: 16px; }
