/* Shared visual language for staff workspaces and client reports. */
:root {
    --accent: #16284d;
    --accent-hover: #2e4472;
    --bg: #f5f7fb;
    --text: #17243b;
    --text-secondary: #526078;
    --muted: #526078;
    --border: #dde3ed;
    --ok: #15803d;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 16px;
    --ease-bounce: cubic-bezier(.2,.7,.2,1);
    --pt-emerald: #16284d;
    --pt-emerald-d: #16284d;
    --pt-gold: #c79a3f;
    --pt-gold-d: #846331;
    --pt-ink: #17243b;
    --pt-muted: #526078;
    --pt-faint: #526078;
    --pt-line: #dde3ed;
    --pt-bg: #f5f7fb;
}
body { font-size: 15px; line-height: 1.65; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}
.ambient-mesh { display: none; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: none; }
.brand-name { font-size: 16px; }
.role { color: #846331; }
.app-layout { max-width: 1600px; gap: 28px; padding: 24px; }
.sidebar {
    width: 228px;
    background: #16284d;
    border: 1px solid #22385f;
    box-shadow: 0 12px 28px -20px #16284d80;
    padding: 16px 12px;
    backdrop-filter: none;
}
.sidebar-label { color: #bac7dc; font-size: 12px; margin-top: 20px; letter-spacing: 0; }
.sidebar-label:first-child { margin-top: 6px; }
.sidebar a { color: #e1e8f4; min-height: 46px; font-size: 14px; border: 1px solid transparent; }
.sidebar a .sidebar-icon { color: #bac7dc; }
.sidebar a:hover, .sidebar a:active:not(.active) { background: #263c60; color: #fff; transform: none; }
.sidebar a.active { background: #fff; color: #16284d; border-color: #fff; box-shadow: 0 3px 10px #0a193433; }
.sidebar a.active .sidebar-icon { color: #846331; }
.sidebar a:hover .sidebar-icon { color: #e9be74; }
.sidebar-divider { background: #ffffff26; margin: 18px 12px; }
.page { min-width: 0; max-width: none; padding: 0; margin: 12px 0; animation: workspace-enter .2s ease-out; }
.page-header { gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.page-header h1 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.4; letter-spacing: -.4px; }
.page-header p { margin-top: 6px; }
.breadcrumb { flex-wrap: wrap; }
.glass-panel, .bento-card, .selftest, .panel {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 3px 16px -10px #16284d26; backdrop-filter: none;
}
.glass-panel:hover { transform: none; box-shadow: 0 3px 16px -10px #16284d26; }
.btn, .btn-link { min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.btn { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn-primary { box-shadow: 0 2px 5px #16284d1f; }
.btn-primary:hover, .btn-secondary:hover, .btn:active:not(:disabled) { transform: none; box-shadow: 0 3px 8px #16284d26; }
.btn-danger { background: #b91c1c; }
.btn-outline { background: #fff; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.input, select.input, textarea.input { border-color: #bac5d5; border-radius: 9px; font-size: 15px; }
.input { min-height: 44px; }
.field label { color: var(--text); font-weight: 600; }
.data-table, .stmt-table { font-variant-numeric: tabular-nums; }
.data-table th { background: #f0f3f8; color: #526078; font-size: 12px; letter-spacing: 0; }
.data-table td { padding-top: 13px; padding-bottom: 13px; }
.data-table tbody tr { animation: none; opacity: 1; transform: none; transition: background-color .15s ease; }
.data-table tbody tr:hover { background: #f5f7fb; transform: none; }
.table-wrap, [data-scroll-container] { border-radius: 12px; }
.workspace-table-scroll { overflow: auto; max-width: 100%; }
.workspace-table-scroll .data-table { margin: 0; }
.workspace-table-scroll .data-table th { position: static; }
.status-badge, .status-pill { font-weight: 600; }
.status-pulse, .status-pulse i, .work-banner.has-work .wb-icon { animation: none; }
.work-banner { border-radius: 14px; box-shadow: none; }
.work-banner:hover { transform: none; }
.work-banner .wb-text h2 { font-size: 18px; }
.task-grid.bento-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.bento-card { opacity: 1; animation: none; transition: border-color .15s ease, box-shadow .15s ease; border-radius: 16px; }
a.bento-card:hover, a.bento-card:active { transform: none; border-color: #9daec6; background: #fff; box-shadow: 0 8px 20px -12px #16284d55; }
a.bento-card:hover .fc-icon { transform: none; }
.task-grid .bento-hero { background: linear-gradient(120deg, #16284d, #2e4472); padding: 28px; }
.task-grid .bento-hero:hover { background: linear-gradient(120deg, #16284d, #2e4472); }
.task-grid .bento-hero .bc-text h2, .task-grid .bento-hero .bc-arrow { color: #fff; }
.task-grid .bento-hero .bc-text p { color: #d8e2f3; }
.task-grid .bento-hero .fc-icon { background: #ffffff17; color: #e9be74; width: 48px; height: 48px; margin-bottom: 18px; }
.task-grid .bc-text h2 { font-size: 24px; }
.bc-bg-glow { display: none; }
.workspace-eyebrow { font-size: 12px; color: #846331; font-weight: 700; margin: 0 0 4px; letter-spacing: .08em; }
.advanced-panel, .statement-action-bar { border-color: var(--border); }
.statement-secondary-nav { gap: 8px; flex-wrap: wrap; }
.mobile-drawer { animation: workspace-enter .2s ease-out; }
.mobile-drawer-links { grid-template-columns: 1fr; }
.mobile-menu-label { grid-column: 1 / -1; color: #526078; font-size: 12px; font-weight: 700; margin: 8px 0 0; }
.mobile-nav-item.active { color: #16284d; background: #eef2f8; }
.pt-card { border-radius: 16px; border-color: #dde3ed; box-shadow: 0 6px 24px -18px #16284d50; }
.pt-head { padding-bottom: 24px; }
.pt-head .bn { font-size: 15px; }
.pt-head img { width: 42px; height: 42px; box-shadow: none; }
.pt-foot { line-height: 1.8; }
/* Override page-local presentation effects without delaying report content. */
body #pane-cards.on .oc-deck .owner-card { animation: none; opacity: 1; transform: none; }
body #pane-cards .oc-deck { perspective: none; }
body #pane-cards .oc-deck .owner-card:hover { transform: none; box-shadow: 0 8px 24px -18px #16284d66; }
body #pane-cards .oc-deck .owner-card::before,
body #pane-cards .oc-deck .owner-card::after { display: none; }
body .pt-cover, body .pt-pane.on { animation: workspace-enter .2s ease-out; }
body #pane-dash.on .pd-cards .pd-card, body #pane-dash.on > .pt-card,
body #pane-dash.on .pd-bars .bar { animation: none; }
.login-card { border: 1px solid #ffffff80; box-shadow: 0 24px 64px #07132655; }
.logo-glow-ring, .btn-login-shine { display: none; }
@keyframes workspace-enter { from { opacity: .7; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .app-layout { gap: 20px; padding: 20px; } .sidebar { width: 210px; } }
@media (max-width: 900px) {
    .app-layout { padding: 20px; }
    .page { margin: 4px 0; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    .btn, .btn-link, summary { min-height: 44px; }
}
@media (max-width: 640px) {
    body .ratio-row { grid-template-columns: minmax(0, 1fr) !important; }
    body .pnl-nav { flex-wrap: wrap; position: static; }
    .bento-grid:not(.task-grid) > .bento-card { grid-column: 1 / -1 !important; min-width: 0; }
    .task-grid .bento-std { min-height: 140px; }
    .upload-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .field, .act-filter label { min-width: 0; }
    .act-filter .input { max-width: 100%; }
    .app-layout { padding: 16px; }
    .page-header { align-items: flex-start; margin-bottom: 18px; }
    .glass-panel { padding: 18px; }
    .task-grid .bento-hero { padding: 24px; }
    .task-grid .bc-text h2 { font-size: 22px; }
    .work-banner { padding: 16px; gap: 12px; }
    .work-banner .wb-text h2 { font-size: 16px; }
    .topbar { padding: 12px 16px; }
    .brand-name { font-size: 14px; }
    .page-header > div { min-width: 0; }
    .page-header h1 { overflow-wrap: anywhere; }
    .pt-shell { padding: 18px 14px 48px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    body, .page { background: #fff; }
    .app-layout { display: block; padding: 0; }
    .page { margin: 0; padding: 0; animation: none; }
    .sidebar, .topbar, .mobile-nav, .mobile-drawer, .mobile-drawer-backdrop { display: none !important; }
    .glass-panel, .pt-card { border: none; box-shadow: none; }
}
