
:root {
  color-scheme: dark;
  --ink: #0b0c10;
  --panel: #121318;
  --panel-raised: #191920;
  --line: rgba(167, 139, 250, .26);
  --line-soft: rgba(226, 226, 240, .085);
  --gold: #9b78e7;
  --gold-bright: #c0a7ff;
  --gold-pale: #f1edff;
  --text: #f2eff8;
  --muted: #a09dac;
  --green: #52d69a;
  --red: #ff7e88;
  --orange: #edbc75;
  --blue: #8bb5ff;
  --shadow: 0 3px 12px rgba(0, 0, 0, .12);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --radius: 12px;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html { min-height:100%; background:var(--ink); scroll-behavior:smooth; scrollbar-gutter:stable; }
body {
  min-height: 100vh; margin: 0; color: var(--text); font-size: 16px; line-height: 1.5;
  background:radial-gradient(60rem 28rem at 75% -12%,rgba(108,70,167,.08),transparent 70%),var(--ink);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.92em; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:236px minmax(0,1fr); }
.sidebar {
  position:sticky; top:0; height:100vh; height:100dvh; overflow-y:auto; padding:24px 14px 16px; z-index:20;
  display:flex; flex-direction:column; border-right:1px solid var(--line-soft);
  background:#0e0f14;
}
.brand { display:flex; align-items:center; gap:10px; padding:0 6px 24px; }
.brand-mark {
  width:42px; height:42px; border:1px solid rgba(171,136,244,.72); border-radius:12px;
  display:grid; place-items:center; position:relative; overflow:hidden; color:var(--gold-pale);
  font-family:var(--sans); font-size:11px; font-weight:800; letter-spacing:.08em;
  background:linear-gradient(145deg,#302052,#171021);
  box-shadow:inset 0 0 0 3px rgba(9,8,13,.72),0 10px 28px rgba(82,48,141,.18);
}
.brand-mark::after { content:""; position:absolute; bottom:8px; width:18px; height:1px; background:rgba(210,192,255,.62); }
.brand-copy strong { display:block; color:var(--text); font-size:12px; font-weight:750; letter-spacing:.08em; }
.brand-copy span { display:block; margin-top:3px; color:#777386; font-size:11px; font-weight:500; letter-spacing:.01em; }
.nav { display:grid; gap:3px; }
.nav a {
  min-height:40px; display:flex; align-items:center; gap:12px; padding:0 12px; position:relative;
  border:1px solid transparent; border-radius:10px; color:#a4a1af; font-size:14px; font-weight:500;
  transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}
.nav a::after { content:""; position:absolute; right:13px; width:4px; height:4px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); opacity:0; transition:.18s; }
.nav a:hover { color:var(--text); background:rgba(143,103,220,.075); }
.nav a:hover::after,.nav a.active::after { opacity:.75; }
.nav a.active { color:var(--gold-pale); border-color:rgba(154,116,229,.28); background:linear-gradient(100deg,rgba(119,78,193,.22),rgba(119,78,193,.09)); box-shadow:inset 2px 0 var(--gold); }
.nav-icon { width:22px; height:22px; display:grid; place-items:center; color:var(--gold); font-family:var(--sans); font-size:15px; }
.sidebar-footer { margin-top:auto; padding-top:24px; }
.user-card { padding:14px; border:1px solid var(--line-soft); border-radius:11px; background:var(--panel); }
.user-card strong,.user-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-card strong { font-size:14px; font-weight:700; }
.user-card span { margin-top:4px; color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.logout { width:100%; margin-top:9px; padding:9px 3px; border:0; color:#77746d; text-align:left; background:transparent; cursor:pointer; transition:.16s; }
.logout:hover { color:var(--red); }
.main { min-width:0; padding:25px clamp(22px,2.8vw,44px) 44px; position:relative; z-index:1; }
.topbar { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.mobile-toggle { display:none; }
.page-kicker,.eyebrow { color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.035em; }
.page-title { margin:4px 0 0; font-family:var(--sans); font-size:clamp(26px,2.4vw,32px); font-weight:700; line-height:1.06; letter-spacing:-.025em; }
.top-actions { display:flex; align-items:center; gap:11px; }
.live-pill { min-height:36px; display:flex; align-items:center; gap:9px; padding:0 11px; border:1px solid var(--line-soft); border-radius:9px; color:#9893a5; background:var(--panel); font-size:11px; font-variant-numeric:tabular-nums; }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 5px rgba(82,214,154,.08),0 0 18px rgba(82,214,154,.35); }
.grid { display:grid; gap:16px; }
.metrics { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:18px; }
.metric,.card { border:1px solid var(--line-soft); border-radius:var(--radius); background:var(--panel); box-shadow:var(--shadow); }
.metric { container-type:inline-size; min-height:116px; padding:18px 20px; position:relative; overflow:hidden; animation:rise .42s both; }
.metric::before,.metric::after { display:none; }
.metric-feature { border-color:rgba(154,116,229,.32); background:linear-gradient(120deg,#211931,#16131e); }
.metric-label { color:#b0abba; font-size:12px; font-weight:500; }
.metric-value { margin-top:12px; font-family:var(--sans); font-size:clamp(20px,14cqw,32px); overflow-wrap:anywhere; font-weight:650; line-height:1.04; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.metric-hint { margin-top:9px; color:#8e899c; font-size:12px; }
.currency-stack { display:flex; max-width:100%; overflow-wrap:anywhere; gap:6px; flex-wrap:wrap; }
.currency-chip,.currency-code { display:inline-flex; align-items:center; min-height:26px; padding:4px 8px; border:1px solid var(--line); border-radius:8px; color:var(--gold-pale); background:rgba(139,92,246,.10); font-size:12px; font-weight:500; }
.card { padding:20px; animation:rise .48s both; }
.card + .card { margin-top:16px; }
.card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:16px; }
.card-title { margin:0; font-family:var(--sans); font-size:17px; font-weight:650; letter-spacing:-.012em; }
.card-subtitle { margin-top:5px; color:#8e899c; font-size:12px; }
.two-col { grid-template-columns:minmax(0,1.48fr) minmax(330px,.92fr); align-items:start; }
.three-col { grid-template-columns:repeat(3,minmax(0,1fr)); }
.application-grid { grid-template-columns:minmax(360px,.86fr) minmax(420px,1.14fr); align-items:start; }
.application-hero { min-height:118px; margin-bottom:17px; padding:23px 25px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid rgba(154,116,229,.34); border-radius:var(--radius); background:#19142a; box-shadow:var(--shadow); }
.application-hero h2 { margin:5px 0 0; font-family:var(--sans); font-size:32px; font-weight:720; }
.application-hero p { margin:7px 0 0; color:var(--muted); }
.table-wrap { overflow:auto; border:1px solid var(--line-soft); border-radius:10px; background:#0f0e15; }
table { width:100%; min-width:760px; border-collapse:collapse; font-size:14px; }
.ranking-table { min-width:540px; }
th { padding:12px 14px; color:#9c98a8; background:#101116; text-align:left; font-size:12px; font-weight:500; }
td { padding:13px 14px; border-top:1px solid var(--line-soft); vertical-align:middle; transition:background .15s; }
tbody tr:hover td { background:rgba(139,92,246,.055); }
.clickable-row { cursor:pointer; outline:none; }
.clickable-row:focus-visible td { background:rgba(139,92,246,.10); box-shadow:inset 0 1px rgba(192,167,255,.25),inset 0 -1px rgba(192,167,255,.25); }
.row-link { color:var(--gold-bright); font-weight:700; }
.manager-link { display:inline-flex; align-items:center; gap:12px; }
.manager-link>span:last-child { display:grid; gap:2px; }
.manager-link small { color:var(--muted); font-size:11px; font-weight:600; }
.manager-avatar,.manager-monogram { display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(171,136,244,.42); border-radius:10px; color:var(--gold-pale); font-family:var(--sans); background:#211837; box-shadow:inset 0 0 0 2px rgba(9,8,13,.65); }
.manager-avatar { width:38px; height:38px; font-size:14px; font-weight:750; }
.rank-place { width:30px; height:30px; display:inline-grid; place-items:center; border:1px solid var(--line-soft); border-radius:9px; color:#a9a4b5; background:#17151f; font-family:var(--sans); font-size:12px; font-weight:800; }
.rank-place.rank-1 { color:#f0dcff; border-color:rgba(190,142,255,.52); background:#2a1c40; box-shadow:0 0 18px rgba(154,116,229,.14); }
.rank-place.rank-2 { color:#ded9e8; border-color:rgba(210,205,221,.28); background:#211f29; }
.rank-place.rank-3 { color:#d9b6a1; border-color:rgba(197,137,102,.28); background:#241b1b; }
.ranking-note { margin:0; color:#aaa5b8; }
.application-number { font-family:var(--sans); font-size:15px; font-weight:700; }
.open-row { display:inline-flex; align-items:center; gap:7px; color:#8f8aa0; font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.open-row span { color:var(--gold); transition:transform .16s; }
tr:hover .open-row span { transform:translateX(3px); }
.muted { color:var(--muted); }
.micro { margin-top:3px; font-size:10.5px; }
.money { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:720; }
.badge { min-height:25px; display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border:1px solid rgba(157,154,146,.14); border-radius:7px; color:#bbb7c8; background:rgba(157,154,146,.07); font-size:12px; font-weight:500; white-space:nowrap; }
.badge.confirmed,.badge.active { color:#8be9bb; border-color:rgba(82,214,154,.2); background:rgba(82,214,154,.08); }
.badge.fake,.badge.cancelled,.badge.danger { color:#ffabb2; border-color:rgba(255,126,136,.22); background:rgba(255,126,136,.08); }
.badge.review,.badge.waiting_manager,.badge.waiting_approval { color:#edc38a; border-color:rgba(237,188,117,.20); background:rgba(237,188,117,.07); }
.badge.duplicate { color:#a9c1f8; border-color:rgba(131,168,248,.2); background:rgba(131,168,248,.08); }
.button,button.button { min-height:40px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:9px; cursor:pointer; font-size:13px; font-weight:600; transition:transform .16s,filter .16s,border-color .16s,background .16s; }
.button-primary { color:#fff; background:#7651cf; box-shadow:0 8px 22px rgba(118,81,207,.20); }
.button-primary:hover { transform:translateY(-1px); filter:brightness(1.09); }
.button-secondary { color:#ebe8f4; border-color:var(--line-soft); background:#171620; }
.button-secondary:hover { border-color:rgba(154,116,229,.48); background:#201a2d; }
.button-danger { color:#ffabb2; border-color:rgba(255,126,136,.23); background:rgba(255,126,136,.06); }
.button-danger:hover { border-color:rgba(255,126,136,.42); background:rgba(255,126,136,.10); }
.button-small { min-height:33px; padding:0 11px; border-radius:8px; font-size:12px; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.filters { display:grid; grid-template-columns:repeat(3,minmax(160px,1fr)) auto auto; gap:11px; margin-bottom:23px; padding-bottom:22px; border-bottom:1px solid var(--line-soft); align-items:end; }
.manager-period-form { grid-template-columns:repeat(2,minmax(170px,240px)) auto; justify-content:start; }
label { display:block; margin-bottom:8px; color:#9a95a7; font-size:12px; font-weight:500; }
input,select,textarea { width:100%; min-height:42px; padding:9px 12px; border:1px solid rgba(226,220,246,.14); border-radius:9px; outline:none; color:var(--text); background:#0e0d15; font-size:14px; transition:border-color .16s,box-shadow .16s,background .16s; }
textarea { min-height:105px; resize:vertical; }
input:hover,select:hover,textarea:hover { border-color:rgba(154,116,229,.46); }
input:focus,select:focus,textarea:focus { border-color:rgba(192,167,255,.72); background:#12101c; box-shadow:0 0 0 3px rgba(139,92,246,.14); }
.field-help { margin-top:6px; color:#777386; font-size:11px; line-height:1.4; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-grid .wide { grid-column:1/-1; }
.inline-form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; }
.inline-form>div { flex:1 1 190px; }
.segmented { width:max-content; max-width:100%; margin-bottom:18px; padding:3px; display:flex; flex-wrap:wrap; gap:3px; border:1px solid var(--line-soft); border-radius:9px; background:#0d0c13; }
.segmented a { padding:8px 11px; border-radius:6px; color:#89849a; font-size:12px; font-weight:600; }
.segmented a.active { color:var(--gold-pale); background:rgba(139,92,246,.22); box-shadow:inset 0 0 0 1px rgba(192,167,255,.17); }
.empty { min-height:170px; display:grid; place-items:center; padding:28px; border:1px dashed rgba(154,116,229,.34); border-radius:11px; color:#817b91; text-align:center; }
.empty.compact { min-height:88px; }
.notice { margin-bottom:18px; padding:13px 15px; border:1px solid rgba(82,214,154,.22); border-radius:10px; color:#a5eac8; background:rgba(82,214,154,.08); box-shadow:none; }
.notice.error { color:#ffb1b8; border-color:rgba(255,126,136,.23); background:rgba(255,126,136,.08); }
.detail-list { display:grid; }
.detail-row { display:grid; grid-template-columns:185px minmax(0,1fr); gap:18px; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.detail-row:last-child { border-bottom:0; }
.detail-key { color:var(--muted); font-size:12px; }
.detail-value { min-width:0; overflow-wrap:anywhere; font-weight:650; }
.policy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.policy-item { padding:14px; border:1px solid var(--line-soft); border-radius:10px; background:#0f0e15; }
.policy-item>span { min-height:36px; display:block; color:var(--muted); font-size:12px; line-height:1.45; }
.policy-item>strong { display:block; margin:5px 0 12px; color:var(--gold-pale); font-family:var(--sans); font-size:20px; font-weight:700; }
.pagination { margin-top:17px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.page-info { color:var(--muted); font-size:12px; }
.stat-bar { display:grid; gap:11px; }
.bar-row { display:grid; grid-template-columns:minmax(100px,1fr) 2.5fr auto; gap:12px; align-items:center; font-size:12.5px; }
.bar-track { height:5px; border-radius:999px; overflow:hidden; background:#2a2734; }
.bar-fill { height:100%; border-radius:inherit; background:var(--gold); box-shadow:none; }
.manager-hero { min-height:132px; margin-bottom:18px; padding:24px 26px; display:flex; align-items:center; justify-content:space-between; gap:24px; overflow:hidden; position:relative; border:1px solid rgba(154,116,229,.38); border-radius:var(--radius); background:#19142a; box-shadow:var(--shadow); }
.manager-hero::after { display:none; }
.manager-hero h2 { margin:6px 0 0; font-family:var(--sans); font-size:clamp(30px,3.6vw,44px); font-weight:720; line-height:1; letter-spacing:-.03em; }
.manager-hero p { margin:11px 0 0; color:var(--muted); font-size:13px; }
.manager-monogram { width:70px; height:70px; z-index:1; font-size:28px; box-shadow:inset 0 0 0 4px rgba(9,8,13,.65),0 14px 32px rgba(0,0,0,.24); }
.trend-chart { min-height:230px; padding:18px 3px 2px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(58px,1fr); gap:10px; overflow-x:auto; scrollbar-color:rgba(154,116,229,.42) transparent; }
.trend-item { min-width:58px; display:grid; grid-template-rows:25px 175px auto auto; gap:6px; text-align:center; }
.trend-value { overflow:hidden; color:#aaa69d; font-size:10px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.trend-column { height:175px; padding:0 16%; display:flex; align-items:flex-end; border-bottom:1px solid rgba(255,255,255,.09); background:linear-gradient(180deg,transparent,rgba(255,255,255,.012)); }
.trend-column span { width:100%; min-height:4px; display:block; border-radius:6px 6px 2px 2px; background:var(--gold); box-shadow:none; transition:filter .18s,transform .18s; transform-origin:bottom; }
.trend-item:hover .trend-column span { filter:brightness(1.14); transform:scaleX(1.06); }
.trend-label { color:#d1ccc0; font-size:10.5px; font-weight:750; white-space:nowrap; }
.trend-count { color:#77746d; font-size:10px; white-space:nowrap; }
.editor-card { border-color:rgba(154,116,229,.30); background:#171225; }
.receipt-card { overflow:hidden; }
.receipt-gallery { display:grid; gap:12px; }
.receipt-preview { position:relative; display:block; min-height:260px; overflow:hidden; border:1px solid var(--line-soft); border-radius:11px; background:#08070c; }
.receipt-preview img { width:100%; max-height:620px; display:block; object-fit:contain; transition:transform .28s ease,filter .28s ease; }
.receipt-preview:hover img { transform:scale(1.012); filter:brightness(.78); }
.receipt-preview>span { position:absolute; left:50%; bottom:18px; transform:translate(-50%,10px); opacity:0; padding:8px 12px; border:1px solid rgba(192,167,255,.34); border-radius:8px; color:var(--gold-pale); background:rgba(13,11,20,.90); backdrop-filter:blur(12px); font-size:12px; font-weight:600; white-space:nowrap; transition:.2s; }
.receipt-preview:hover>span { opacity:1; transform:translate(-50%,0); }
.receipt-document { padding:15px; display:grid; grid-template-columns:44px 1fr auto; gap:13px; align-items:center; border:1px solid var(--line-soft); border-radius:10px; background:#0f0e15; }
.receipt-document small,.receipt-document strong { display:block; }
.receipt-document small { margin-top:3px; color:var(--muted); }
.document-icon { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); border-radius:10px; color:var(--gold); background:rgba(139,92,246,.10); }
.receipt-empty { min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; border:1px dashed var(--line); border-radius:11px; color:#87819a; text-align:center; }
.receipt-empty>span { color:var(--gold); font-family:var(--sans); font-size:34px; }
.receipt-empty>strong { margin-top:8px; color:#ded9e8; font-family:var(--sans); font-size:19px; font-weight:700; }
.receipt-empty p { max-width:360px; margin:6px 0 15px; font-size:12px; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(440px,100%); padding:38px; border:1px solid rgba(154,116,229,.34); border-radius:16px; background:var(--panel); box-shadow:0 30px 90px rgba(0,0,0,.48); text-align:center; }
.login-card .brand-mark { width:58px; height:58px; margin:0 auto 21px; border-radius:14px; }
.login-card h1 { margin:0 0 9px; font-family:var(--sans); font-size:34px; font-weight:720; }
.login-card p { margin:0; color:var(--muted); }
.login-card .button { width:100%; margin-top:26px; }
dialog { width:min(500px,calc(100% - 28px)); padding:0; border:1px solid var(--line); border-radius:15px; color:var(--text); background:#14121d; box-shadow:0 34px 100px rgba(0,0,0,.62); }
dialog::backdrop { background:rgba(0,0,0,.76); backdrop-filter:blur(7px); }
.dialog-body { padding:27px; }
.dialog-body .eyebrow { margin-bottom:8px; }
.dialog-body h3 { margin:0; font-family:var(--sans); font-size:24px; font-weight:700; }
.dialog-body p { margin:10px 0 0; color:var(--muted); }
.dialog-actions { margin-top:23px; display:flex; justify-content:flex-end; gap:9px; }
@keyframes rise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.ui-icon { display:block; width:19px; height:19px; flex:0 0 auto; }
:focus-visible { outline:2px solid var(--gold-bright); outline-offset:4px; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:100; padding:12px 20px; background:var(--panel); border:1px solid var(--gold); border-radius:8px; }
.skip-link:focus { top:12px; }
.nav-section { padding:20px 12px 7px; color:#787584; font-size:11px; letter-spacing:.015em; }
.nav-section:first-child { padding-top:0; }
.header-search { min-height:36px; display:flex; align-items:center; gap:9px; color:var(--muted); font-size:13px; }
.header-search:hover { color:var(--text); }
.live-pill { border:0; background:transparent; font-size:12px; }
.live-pill .ui-icon { width:15px; height:15px; }
.overview-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.overview-scope { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.overview-scope label { margin:0; }
.overview-scope select { width:auto; min-width:180px; min-height:38px; padding:7px 32px 7px 12px; }
.overview-toolbar .segmented { margin:0; }
.period-caption { color:var(--muted); font-size:12px; }
.overview-custom-period { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.overview-custom-period>div { min-width:132px; }
.overview-custom-period label { margin-bottom:5px; }
.overview-custom-period input { min-height:38px; padding:7px 9px; font-size:12px; }
.overview-custom-period .button { margin-bottom:0; }
.metric-link { display:block; transition:border-color .18s,background .18s; }
.metric-link:hover { border-color:rgba(167,139,250,.55); }
.metric-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.metric-top .ui-icon { width:16px; height:16px; color:#777080; transition:transform .18s; }
.metric-link:hover .metric-top .ui-icon { color:var(--gold-bright); transform:translateX(3px); }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr); gap:18px; margin-bottom:18px; align-items:stretch; }
.overview-grid>.card { margin:0; min-width:0; }
.chart-total { margin:6px 0 0; font-size:26px; line-height:1.2; font-weight:600; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.chart-legend { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; white-space:nowrap; }
.chart-legend::before { content:""; width:7px; height:7px; border-radius:2px; background:var(--gold); }
.cash-chart { position:relative; padding:12px 0 0; }
.cash-chart svg { display:block; width:100%; height:auto; aspect-ratio:680/212; overflow:visible; }
.chart-gridline { stroke:var(--line-soft); stroke-dasharray:3 5; }
.chart-axis { fill:var(--muted); font-family:var(--sans); font-size:15px; }
.chart-bar { fill:url(#cash-gradient); transition:filter .18s; }
.chart-point:hover .chart-bar,.chart-point:focus .chart-bar { filter:brightness(1.3); }
.chart-point:focus { outline:none; }
.chart-point:focus .chart-bar { stroke:var(--gold-pale); stroke-width:2; }
.chart-footnote { margin-top:12px; display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px; }
.chart-zero { margin:8px 0 0; color:var(--muted); font-size:13px; }
.acceptance-list { display:grid; gap:0; max-height:258px; overflow:auto; }
.acceptance-row { padding:13px 0; display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:11px; align-items:center; border-bottom:1px solid var(--line-soft); }
.acceptance-row:last-child { border:0; }
.acceptance-row:hover .acceptance-title { color:var(--gold-bright); }
.acceptance-mark { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--line); background:#211a2e; border-radius:9px; color:var(--gold-bright); font-size:12px; font-weight:600; }
.acceptance-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:500; }
.acceptance-value { text-align:right; font-variant-numeric:tabular-nums; font-size:14px; font-weight:600; }
.acceptance-meta { color:var(--muted); font-size:11px; font-weight:400; margin-top:3px; }
.acceptance-meter { height:3px; margin-top:7px; border-radius:3px; background:var(--line-soft); overflow:hidden; }
.acceptance-meter span { display:block; height:100%; background:var(--gold); border-radius:inherit; }
.attention-strip { display:flex; align-items:center; gap:14px; padding:12px 16px; margin-bottom:18px; border:1px solid rgba(237,188,117,.18); border-radius:10px; background:rgba(237,188,117,.035); font-size:13px; }
.attention-strip>.ui-icon { color:var(--orange); }
.attention-strip a { margin-left:auto; flex-shrink:0; color:var(--orange); font-weight:500; }
.table-heading { display:flex; align-items:center; gap:10px; }
.count-label { padding:2px 7px; border:1px solid var(--line-soft); border-radius:6px; color:var(--muted); font-size:12px; }
.overview-table { min-width:600px; }
.overview-table th:last-child,.overview-table td:last-child { text-align:right; }
.overview-receipts .table-wrap { margin:0 -20px -20px; border-width:1px 0 0; border-radius:0 0 var(--radius) var(--radius); background:transparent; }
.filter-context { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 16px; }
.filter-context a { color:var(--gold-bright); font-size:12px; }
.journal-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
.icon-button { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--line-soft); border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; }
.icon-button:hover { background:var(--panel-raised); color:var(--text); }
body.drawer-open { overflow:hidden; }
dialog.receipt-drawer { position:fixed; inset:0 0 0 auto; width:min(580px,100%); max-width:100%; height:100%; height:100dvh; max-height:100dvh; margin:0; border:0; border-left:1px solid var(--line); border-radius:0; background:var(--panel); }
.receipt-drawer[open] { animation:drawer-enter .22s ease-out; }
.receipt-drawer::backdrop { background:rgba(3,4,8,.56); backdrop-filter:blur(3px); }
.drawer-shell { display:flex; flex-direction:column; height:100%; }
.drawer-header { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--line-soft); }
.drawer-header h2 { margin:4px 0 0; font-size:23px; font-weight:600; letter-spacing:-.02em; }
.drawer-content { min-height:0; flex:1; padding:22px 24px; overflow:auto; overscroll-behavior:contain; }
.drawer-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.drawer-amount { font-size:26px; font-weight:600; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.drawer-content .detail-row { grid-template-columns:145px minmax(0,1fr); padding:11px 0; font-size:14px; }
.drawer-content .receipt-preview { margin-top:18px; min-height:120px; }
.drawer-content .receipt-preview img { max-height:360px; }
.drawer-section-title { margin:22px 0 12px; font-size:14px; font-weight:600; }
.drawer-timeline { list-style:none; margin:0; padding:0; }
.drawer-timeline li { position:relative; padding:0 0 18px 20px; margin-left:4px; border-left:1px solid var(--line); font-size:13px; }
.drawer-timeline li:last-child { border-color:transparent; }
.drawer-timeline li::before { position:absolute; content:""; top:5px; left:-4px; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.drawer-timeline p { margin:4px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.drawer-timeline time { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.drawer-footer { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; border-top:1px solid var(--line-soft); font-size:12px; background:var(--panel); }
.drawer-loading { padding:44px 0; color:var(--muted); text-align:center; }
@keyframes drawer-enter { from { transform:translateX(35px); opacity:.5; } to { transform:none; opacity:1; } }
@media (max-width:1180px) {
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .two-col,.three-col,.application-grid { grid-template-columns:1fr; }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns:minmax(0,1.4fr) minmax(245px,1fr); }
  .header-search span { display:none; }
}
@media (max-width:1000px) {
  .overview-grid { grid-template-columns:1fr; }
  .acceptance-list { max-height:230px; }
}
@media (max-width:780px) {
  .app-shell { display:block; }
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(292px,88vw); transform:translateX(-105%); transition:transform .23s ease; box-shadow:35px 0 90px rgba(0,0,0,.65); }
  body.menu-open .sidebar { transform:translateX(0); }
  body.menu-open::after { content:""; position:fixed; inset:0; z-index:15; background:rgba(0,0,0,.65); backdrop-filter:blur(2px); }
  .main { padding:19px 15px 48px; }
  .mobile-toggle { width:42px; height:42px; display:inline-grid; place-items:center; border:1px solid var(--line-soft); border-radius:12px; color:var(--gold-pale); background:#111; cursor:pointer; }
  .topbar { align-items:flex-start; margin-bottom:23px; }
  .live-pill,.header-search span { display:none; }
  .filters,.form-grid,.policy-grid { grid-template-columns:1fr; }
  .manager-period-form { grid-template-columns:1fr 1fr; }
  .manager-period-form .button { grid-column:1/-1; }
  .form-grid .wide { grid-column:auto; }
  .metric { min-height:114px; padding:16px; }
  .card { padding:17px; border-radius:12px; }
  .card-header { align-items:stretch; flex-direction:column; }
  .detail-row { grid-template-columns:1fr; gap:4px; }
  .application-hero { min-height:112px; padding:22px; }
  .application-hero h2 { font-size:30px; }
  .manager-hero { min-height:130px; padding:22px; }
  .manager-monogram { width:62px; height:62px; font-size:27px; }
  .pagination { align-items:stretch; flex-direction:column; }
  .pagination .actions { justify-content:space-between; }
  .overview-toolbar { align-items:stretch; }
  .overview-scope { width:100%; }
  .overview-scope select { flex:1; }
  .overview-toolbar .segmented { width:100%; }
  .overview-toolbar .segmented a { flex:1; text-align:center; }
  .overview-custom-period { width:100%; }
  .overview-custom-period>div { flex:1; min-width:0; }
  .overview-custom-period .button { flex:0 0 auto; }
  .overview-receipts .table-wrap { margin:0 -17px -17px; }
  .attention-strip { flex-wrap:wrap; gap:8px; }
  .attention-strip a { margin-left:0; }
  .chart-footnote { flex-wrap:wrap; }
  .chart-axis { font-size:20px; }
  .drawer-header,.drawer-content { padding:18px; }
  .drawer-footer { padding:14px 18px; }
  .drawer-content .detail-row { grid-template-columns:110px minmax(0,1fr); }
}
@media (max-width:420px) {
  .metric-value { font-size:23px; }
  .metric-hint { font-size:11px; }
  .currency-chip { padding:3px 5px; font-size:11px; }
  .top-actions { gap:7px; }
  .drawer-footer>.muted { display:none; }
  .drawer-footer .button { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

.review-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 0 18px; }
.review-toolbar label { display:flex; align-items:center; gap:8px; margin:0; text-transform:none; }
input[data-review-check], input[data-review-page] { width:20px; height:20px; min-height:20px; margin:0; padding:0; accent-color:var(--gold); cursor:pointer; }
