:root{--nav:#07182b;--nav-deep:#04111f;--bg:#f2f5f8;--panel:#fff;--ink:#0e1b2b;--muted:#6e7d90;--line:#dfe6ed;--accent:#2084e8;--accent-dark:#0d67be;--warn:#b77a13;--warn-soft:#fff5dc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}a{color:#1b6ebd}button,.primary-action,a.secondary{border:0;border-radius:10px;padding:10px 14px;background:var(--accent);color:#fff;cursor:pointer;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:.15s}button:hover,.primary-action:hover,a.secondary:hover{filter:brightness(.95)}button:disabled{opacity:.48;cursor:not-allowed}button.secondary,a.secondary{background:#fff;border:1px solid #d6e0e9;color:#263b50}.eyebrow{text-transform:uppercase;font-size:9px;font-weight:850;letter-spacing:.16em;color:#8191a3;margin:0 0 5px}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 20%,#123251,#07111f 58%)}.login-card{width:min(390px,100%);display:grid;gap:13px;padding:24px;border:1px solid #233b55;border-radius:20px;background:#0c1928;box-shadow:0 30px 90px #0008;color:#eef5fb}.login-logo{display:block;width:min(313px,100%);height:28px}.login-logo img{width:100%;height:100%;object-fit:contain;object-position:left center}.login-copy{color:#92a9bf;margin:0 0 4px}.login-card label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#9bb0c5}.login-card input{width:100%;min-height:44px;border:1px solid #2b4159;border-radius:11px;background:#0e1d2c;color:#fff;padding:0 12px;outline:none}.login-card input:focus{border-color:#2789ef;box-shadow:0 0 0 3px #1979df22}.login-card .primary-action{width:100%;min-height:42px}.login-card #loginError{min-height:20px;color:#ff9e9e;font-size:12px;margin:0}
#app{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:100vh}aside{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,var(--nav-deep),var(--nav) 48%,#081c31);color:#fff;padding:18px 14px 15px;display:flex;flex-direction:column;z-index:25;border-right:1px solid #112e49}.sidebar-brand{padding:8px 10px 19px}.sidebar-logo{display:block;width:213px;height:22px}.sidebar-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.brand-sub{margin-top:8px;color:#79a6cb;font-size:11px}.global-nav,.workshop-tabs{display:flex;flex-direction:column;gap:3px;margin:0}.nav-link,.workshop-tabs button{width:100%;border:0;background:transparent;color:#9db4c9;text-align:left;padding:10px 12px;border-radius:10px;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:680;font-size:13px;text-decoration:none;box-shadow:none}.nav-link span{width:20px;text-align:center;color:#6e9ec6;font-size:15px}.nav-link:hover,.workshop-tabs button:hover{background:rgba(255,255,255,.055);color:#fff;filter:none}.nav-link.active-link{background:#fff;color:#0b1d31;box-shadow:0 6px 18px rgba(0,0,0,.14)}.nav-link.active-link span{color:#1680df}.workshop-label{margin:18px 12px 6px;color:#567b9b;font-size:9px;font-weight:850;letter-spacing:.15em}.workshop-tabs button{padding:8px 12px 8px 20px;font-size:11px;color:#7895ae}.workshop-tabs button.active{background:#112d47;color:#fff;border-left:2px solid #2084e8}.sidebar-bottom{margin-top:auto;display:grid;gap:3px}main{min-width:0;padding:0;max-width:none;width:100%}.topbar{height:82px;background:rgba(242,245,248,.9);backdrop-filter:blur(16px);position:sticky;top:0;z-index:18;display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid rgba(207,217,227,.9);margin:0}.topbar h1{font-size:23px;letter-spacing:-.02em;margin:0}.top-actions{display:flex;align-items:center;gap:9px}.user-chip{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px;font-weight:750;color:#33475c}.workspace-content{padding:23px 26px 42px;max-width:1660px;margin:0 auto}.page-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.page-tools h2{margin:0;font-size:18px}.header-tools{margin:0}.notice{background:#f7fbff;border:1px solid #d4e3f0;border-left:4px solid #2084e8;border-radius:13px;font-size:11px;line-height:1.6;padding:13px 16px;margin-bottom:14px;color:#60758a}.notice strong{display:block;color:#243c54}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 14px 40px rgba(8,28,49,.045)}input,select,textarea{width:100%;border:1px solid #dbe3ea;border-radius:9px;padding:9px 10px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#8ab7df;box-shadow:0 0 0 3px #ecf6ff}label{display:block;font-size:11px;font-weight:750;color:#617386;margin:12px 0}label input,label select,label textarea{display:block;margin-top:6px}#message{white-space:pre-wrap;margin:13px 0;font-size:12px}#message.error,#loginError{color:#a22237}#content{min-width:0}.tools{display:flex;gap:9px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.tools input{flex:1;min-width:210px}.tools select{width:190px}.tools p{margin:0;font-size:11px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--line);background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(8,30,50,.03)}table{border-collapse:collapse;width:100%;min-width:700px;font-size:11px}th{background:#fff;text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.085em;color:#8997a6;padding:11px 10px;white-space:nowrap;position:sticky;top:0}td{padding:11px 10px;border-top:1px solid #edf1f4;vertical-align:top}tbody tr:hover{background:#fbfcfd}td.num,th.num{text-align:right;white-space:nowrap}td small{display:block;color:#7c8d9f;margin-top:4px;font-size:10px}td button{font-size:10px;padding:6px 8px;white-space:nowrap;background:#fff;border:1px solid #dce4eb;color:#28425b}.empty{padding:45px 25px;text-align:center;background:#fff;border:1px dashed #c8d5df;border-radius:14px}.empty p{color:var(--muted);font-size:11px}.pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:12px;font-size:11px}footer{margin-top:24px;color:#718297;font-size:10px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.grid .card{margin:0}dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.5}dt{color:#61758b}dd{margin:0;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:11px;line-height:1.6}dialog{width:min(850px,94vw);max-height:92vh;overflow:auto;border:0;border-radius:17px;padding:24px;box-shadow:0 25px 80px #0003;color:var(--ink)}dialog::backdrop{background:#0c20346b}.close{float:right;margin:0 0 10px 15px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.amount{font-size:26px;font-weight:800}.muted{color:var(--muted);font-size:11px}.status{display:inline-block;background:#edf2f6;color:#566a7f;border-radius:999px;padding:4px 7px;font-size:9px}.danger{background:#a22237!important;color:#fff!important}#importStatus{font:11px ui-monospace,monospace;max-height:280px;overflow:auto;white-space:pre-wrap}button:focus-visible,a:focus-visible{outline:3px solid #5a9bd3;outline-offset:3px}
@media(max-width:900px){#app{display:block}aside{position:relative;height:auto}.global-nav{flex-direction:row;overflow-x:auto}.nav-link{width:auto;white-space:nowrap}.workshop-label,.workshop-tabs,.sidebar-bottom{display:none}.topbar{height:72px;padding:0 13px}.top-actions .user-chip,.top-actions .secondary{display:none}.workspace-content{padding:15px 12px 28px}.page-tools{align-items:flex-start}.grid,.form-row{grid-template-columns:1fr}.tools select{width:100%}.table-wrap{max-width:calc(100vw - 24px)}dialog{padding:18px}}

/* DMS typography system — 2026-09-17 */
:root{--font-ui:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--fw-regular:400;--fw-medium:500;--fw-semibold:600;--text-body:14px;--text-sm:13px}
html,body{font-family:var(--font-ui);font-size:var(--text-body);font-weight:var(--fw-regular);line-height:1.45}
button,.primary-action,a.secondary{font-weight:var(--fw-medium);font-size:var(--text-body)}
.eyebrow,.workshop-label,.login-card label,label{font-weight:var(--fw-medium)}
.nav-link,.workshop-tabs button{font-weight:var(--fw-medium)}.nav-link.active-link,.workshop-tabs button.active{font-weight:var(--fw-semibold)}
.topbar h1,.page-tools h2{font-weight:var(--fw-semibold)}
.user-chip{font-weight:var(--fw-medium)}
input,select,textarea{font-size:var(--text-body);font-weight:var(--fw-regular);line-height:1.4}
th{font-weight:var(--fw-medium);font-size:11px;letter-spacing:.055em}td{font-weight:var(--fw-regular);line-height:1.4}
td button{font-weight:var(--fw-medium)}
.amount{font-weight:var(--fw-semibold)}
.notice strong{font-weight:var(--fw-semibold)}
