:root {
--bg: #f5f5f7; --surface: #ffffff; --surface-2: #fafafa; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #8e8e93;
--line: #e5e5ea; --line-2: #d2d2d7; --accent: #2f5f8f; --accent-soft: #e8eef5; --accent-text: #ffffff;
--green: #3a7d5c; --green-soft: #e7f2ec; --amber: #9a6a1f; --amber-soft: #f8efe0; --red: #a8433f; --red-soft: #f7e6e5;
--grey-soft: #f0f0f2; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04); --radius: 14px;
--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root { --bg: #111113; --surface: #1c1c1e; --surface-2: #232326; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #7c7c80;
--line: #2c2c2f; --line-2: #3a3a3d; --accent: #7aa2cc; --accent-soft: #1f2a36; --accent-text: #0e1620;
--green: #7cc19d; --green-soft: #17271f; --amber: #d8a857; --amber-soft: #2a2215; --red: #e08b86; --red-soft: #2d1918; --grey-soft: #26262a;
--shadow: none; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--text-3); font-weight: 600; letter-spacing: .1em; }
.muted { color: var(--text-2); } .small { font-size: 13px; } .tiny { font-size: 12px; } .num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; }
.stack > * + * { margin-top: 16px; } .hidden { display: none !important; }
/* Layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 9px; color: var(--text); margin-bottom: 2px; font-size: 14px; }
.nav a:hover { background: var(--grey-soft); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .count { font-size: 12px; background: var(--accent); color: var(--accent-text); border-radius: 10px; padding: 0 7px; font-weight: 600; }
.nav .sep { height: 1px; background: var(--line); margin: 12px 8px; }
.side .me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side .me .roles { color: var(--text-3); font-size: 12px; margin: 2px 0 8px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(180%) blur(16px); }
.topbar .title { font-weight: 600; flex: 1; }
.content { padding: 28px 32px 64px; max-width: 1180px; }
.menu-btn { display: none; }
/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.kpi { padding: 16px 18px; } .kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpi .l { font-size: 13px; color: var(--text-2); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
/* Buttons & inputs */
.btn { appearance: none; border: 1px solid var(--line-2); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--grey-soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--red); } .btn.warn { color: var(--amber); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding: 6px 8px; }
.btn.big { padding: 11px 20px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 5px; font-weight: 500; }
label.f .req { color: var(--red); }
input.i, select.i, textarea.i { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 15px; color: var(--text); outline: none; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.i { min-height: 76px; resize: vertical; }
.i[readonly] { background: var(--surface-2); color: var(--text-2); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; }
.fields .wide { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 22px; }
.kv div span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.kv div b { font-weight: 500; word-break: break-word; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--grey-soft); color: var(--text-2); white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: var(--accent); } .pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); } .pill.red { background: var(--red-soft); color: var(--red); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
/* Tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t tr.link { cursor: pointer; } .t tr.link:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
/* Tabs */
.tabs { display: inline-flex; background: var(--grey-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs a { padding: 6px 14px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
/* Queue items */
.qitem { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qitem:last-child { border-bottom: 0; } .qitem:hover { background: var(--surface-2); }
.qitem .ref { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }
.qitem .what { font-weight: 600; margin: 2px 0; }
.qitem .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Overdue box */
.alertbox { border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line)); background: var(--red-soft); border-radius: var(--radius); padding: 14px 18px; }
.alertbox h2 { color: var(--red); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.alertbox a.od { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--red) 15%, transparent); color: var(--text); font-size: 14px; }
.alertbox a.od:first-of-type { border-top: 0; }
.alertbox.calm { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.alertbox.calm h2 { color: var(--green); margin: 0; }
.bell { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.bell.hot { background: var(--red-soft); color: var(--red); }
/* Detail */
.detail-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head .ref { font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: .03em; }
.detail-head h1 { margin: 4px 0 8px; }
.amount-big { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 18px; }
.step { flex: 1; min-width: 92px; position: relative; text-align: center; font-size: 11.5px; color: var(--text-3); padding-top: 24px; }
.step::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step i { position: absolute; top: 0; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; }
.step.done { color: var(--text-2); } .step.done i { background: var(--green); border-color: var(--green); } .step.done::before { background: var(--green); }
.step.now { color: var(--text); font-weight: 650; } .step.now i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--accent); }
.nowcard { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-left: 4px solid var(--accent); }
.nowcard .who { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin: 2px 0; }
.nowcard .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.flag { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 8px; }
.blocker { background: var(--grey-soft); color: var(--text-2); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0; }
.editing { outline: 2px solid var(--accent-soft); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .a { font-weight: 600; } .timeline .m { color: var(--text-3); font-size: 12px; }
.timeline .d { color: var(--text-2); margin-top: 2px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc:last-child { border-bottom: 0; }
.doc .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chkrow { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
/* Matrix */
.matrix th, .matrix td { text-align: center; } .matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix th { font-size: 11px; white-space: normal; min-width: 70px; }
/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 400px; padding: 32px; }
.auth .brand { justify-content: center; padding: 0 0 8px; font-size: 24px; }
.auth p.lead { text-align: center; color: var(--text-2); margin: 0 0 24px; }
.auth .qr { display: block; margin: 12px auto; border-radius: 12px; background: #fff; padding: 8px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.28); display: grid; place-items: center; padding: 20px; z-index: 50; backdrop-filter: blur(3px); }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 480px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.2); max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 19px; } .modal .row.end { justify-content: flex-end; margin-top: 18px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--red); color: #fff; }
.bar { height: 8px; border-radius: 4px; background: var(--grey-soft); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.stage-row { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.stage-row .bar { grid-column: 1 / -1; height: 5px; margin-top: -2px; }
@media (max-width: 960px) {
.cols { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
.shell { grid-template-columns: 1fr; }
.side { position: fixed; z-index: 30; width: 260px; left: -270px; transition: left .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
.side.open { left: 0; }
.menu-btn { display: inline-flex; }
.topbar { padding: 12px 16px; } .content { padding: 20px 16px 48px; }
.g2 { grid-template-columns: 1fr; } .nowcard { grid-template-columns: 1fr; } .nowcard .actions { justify-content: flex-start; }
.chkrow { grid-template-columns: 1fr 1fr; } h1 { font-size: 23px; } .amount-big { text-align: left; }
}