:root {
  --ink: #142624;
  --muted: #70817d;
  --line: #dfe6e2;
  --panel: #ffffff;
  --canvas: #f4f6f3;
  --green-950: #0d302e;
  --green-900: #123c3a;
  --green-800: #19504b;
  --green-700: #247065;
  --green-100: #dcebe5;
  --green-50: #edf6f2;
  --gold: #e39a37;
  --gold-light: #f7e1c1;
  --red: #bd514e;
  --red-light: #fae9e7;
  --blue: #477b9e;
  --blue-light: #e5eff5;
  --shadow: 0 18px 45px rgba(21, 48, 44, .08);
  --radius: 16px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: #eef2ee; }
.login-visual { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 48px 64px; color: #fff; background: radial-gradient(circle at 72% 30%, rgba(49, 125, 111, .68), transparent 34%), linear-gradient(140deg, #0b2d2b 0%, #174a46 68%, #1c5d54 100%); }
.login-visual::before { position: absolute; right: -100px; bottom: -260px; width: 650px; height: 650px; content: ""; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.login-brand, .sidebar-brand, .mobile-login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--green-950); background: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-family: serif; font-size: 24px; font-weight: 900; }
.login-copy { position: relative; z-index: 2; max-width: 640px; margin: auto 0; padding-bottom: 70px; }
.eyebrow { display: inline-block; color: #a8c9c0; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green-700); }
.login-copy h1 { margin: 22px 0; font-family: "STSong", "SimSun", serif; font-size: clamp(42px, 5vw, 72px); font-weight: 600; line-height: 1.18; letter-spacing: .03em; }
.login-copy p { max-width: 540px; margin: 0; color: #c8dcd6; font-size: 17px; line-height: 1.9; }
.login-features { display: flex; gap: 28px; margin-top: 40px; }
.login-features span { display: flex; align-items: center; gap: 8px; color: #edf7f4; font-size: 13px; }
.login-features span::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(227,154,55,.13); }
.bridge-lines { position: absolute; right: -60px; bottom: 40px; left: 32%; height: 220px; opacity: .12; transform: skewX(-20deg); }
.bridge-lines i { position: absolute; display: block; background: #fff; }
.bridge-lines i:nth-child(1), .bridge-lines i:nth-child(2) { right: 0; left: 0; height: 3px; }
.bridge-lines i:nth-child(1) { top: 25px; }.bridge-lines i:nth-child(2) { bottom: 25px; }
.bridge-lines i:nth-child(3), .bridge-lines i:nth-child(4) { top: -20px; width: 3px; height: 280px; transform: rotate(43deg); }
.bridge-lines i:nth-child(3) { left: 28%; }.bridge-lines i:nth-child(4) { left: 66%; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(100%, 420px); padding: 44px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 28px 70px rgba(27,58,51,.12); backdrop-filter: blur(16px); }
.login-card h2 { margin: 9px 0 7px; font-size: 28px; letter-spacing: -.03em; }
.login-card > div > p { margin: 0 0 28px; color: var(--muted); }
.login-card label, .form-grid label, .field-label { display: grid; gap: 8px; margin-bottom: 18px; color: #41524f; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d8e1dc; border-radius: 10px; outline: 0; background: #fff; transition: border .18s, box-shadow .18s; }
input, select { height: 44px; padding: 0 13px; }
textarea { min-height: 88px; padding: 11px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(36,112,101,.1); }
.mobile-login-brand { display: none; margin-bottom: 36px; color: var(--green-900); }
.demo-tip { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.demo-tip strong { color: var(--ink); }
.form-error { margin: -7px 0 15px !important; color: var(--red) !important; font-size: 13px; }

.btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 750; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: var(--green-900); box-shadow: 0 6px 16px rgba(18,60,58,.16); }
.btn-primary:hover { background: var(--green-800); }
.btn-secondary { border-color: var(--line); background: #fff; }
.btn-secondary:hover { border-color: #c4d0cb; background: #f9fbfa; }
.btn-danger { color: var(--red); border-color: #edcac7; background: var(--red-light); }
.danger-text { color: var(--red) !important; }
.btn-soft { color: var(--green-800); background: var(--green-50); }
.btn-large { width: 100%; min-height: 48px; font-size: 14px; }
.btn-small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.icon-button:hover { background: var(--green-50); }

.app-shell { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; display: flex; width: 248px; flex-direction: column; color: #fff; background: var(--green-950); }
.sidebar::after { position: absolute; right: -70px; bottom: -130px; width: 280px; height: 280px; content: ""; border: 1px solid rgba(255,255,255,.04); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.015), 0 0 0 90px rgba(255,255,255,.01); pointer-events: none; }
.sidebar-brand { height: 92px; padding: 0 26px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 21px; }
.sidebar-brand div { display: grid; gap: 2px; }
.sidebar-brand strong { font-size: 17px; }
.sidebar-brand small { color: #7ba39a; font-size: 8px; letter-spacing: .18em; }
.workspace-switch { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 14px 10px; padding: 4px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.035); }
.workspace-switch button { min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; color: #71928b; background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.workspace-switch button.active { color: #15201e; background: var(--gold); box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.main-nav { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 0 14px 16px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { display: flex; height: 44px; align-items: center; gap: 13px; margin: 3px 0; padding: 0 14px; border-radius: 9px; color: #a9c1bc; font-size: 13px; font-weight: 650; transition: color .15s, background .15s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: rgba(87,161,145,.23); box-shadow: inset 3px 0 var(--gold); }
.main-nav a svg { width: 18px; height: 18px; }
.main-nav [hidden] { display: none !important; }
.main-nav .nav-disabled { display: flex; width: 100%; height: 42px; align-items: center; gap: 13px; margin: 3px 0; padding: 0 13px; border: 0; border-radius: 9px; color: #526e68; background: transparent; font-size: 12px; font-weight: 650; text-align: left; }
.main-nav .nav-disabled svg { width: 18px; height: 18px; }.main-nav .nav-disabled small { margin-left: auto; color: #48615c; font-size: 8px; font-weight: 650; }
.nav-caption { display: block; margin: 20px 14px 8px; color: #587d75; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.sidebar-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; margin: 0 14px 16px; padding: 15px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.035); }
.sidebar-footer div { display: grid; gap: 2px; }
.sidebar-footer strong { color: #dce9e6; font-size: 11px; }.sidebar-footer small { color: #6f968d; font-size: 10px; }
.sync-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #4fc397; box-shadow: 0 0 0 4px rgba(79,195,151,.11); }
.workspace { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 92px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(218,226,221,.9); background: rgba(244,246,243,.9); backdrop-filter: blur(14px); }
.page-heading { display: grid; gap: 3px; }
.page-heading span { color: var(--green-700); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.page-heading h1 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.connection { display: flex; align-items: center; gap: 8px; margin-right: 6px; color: var(--muted); font-size: 11px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 5px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.user-chip:hover { background: #e9efeb; }
.user-chip > span:first-child { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--green-700); font-size: 13px; font-weight: 800; }
.user-chip > span:last-child { display: grid; gap: 1px; }.user-chip strong { font-size: 12px; }.user-chip small { color: var(--muted); font-size: 10px; }
.content { max-width: 1600px; margin: 0 auto; padding: 28px 34px 56px; }
.mobile-nav, .mobile-only, .sidebar-mask { display: none; }

.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-actions .copy h2 { margin: 0 0 5px; font-size: 18px; }.page-actions .copy p { margin: 0; color: var(--muted); font-size: 12px; }
.action-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { position: relative; min-height: 132px; overflow: hidden; padding: 21px 22px; border: 1px solid rgba(220,228,223,.85); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 18px rgba(20,48,43,.03); }
.metric-card::after { position: absolute; top: 20px; right: 19px; width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 5px var(--green-50); }
.metric-card.warn::after { background: var(--gold); box-shadow: 0 0 0 5px #fcf2e5; }
.metric-card.danger::after { background: var(--red); box-shadow: 0 0 0 5px var(--red-light); }
.metric-card.blue::after { background: var(--blue); box-shadow: 0 0 0 5px var(--blue-light); }
.metric-card label { display: block; margin-bottom: 15px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card strong { display: block; overflow: hidden; font-family: Arial, sans-serif; font-size: 25px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.metric-card small { display: block; margin-top: 10px; color: #91a09d; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 20px; }
.panel { border: 1px solid rgba(220,228,223,.9); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 18px rgba(20,48,43,.028); }
.panel-header { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid #e8ece9; }
.panel-header > div { display: grid; gap: 3px; }.panel-header h3 { margin: 0; font-size: 14px; }.panel-header p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 20px; }
.panel-flush { padding: 0; }
.chart { display: flex; height: 240px; align-items: end; gap: 13px; padding: 20px 8px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #edf0ee 55px); }
.chart-bar { display: flex; height: 100%; flex: 1; flex-direction: column; justify-content: flex-end; gap: 8px; text-align: center; }
.chart-bar i { display: block; min-height: 5px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #4c9587, var(--green-900)); transition: height .4s ease; }
.chart-bar span { height: 24px; color: var(--muted); font-size: 10px; }
.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) .8fr .6fr auto; align-items: center; gap: 14px; min-height: 61px; padding: 10px 19px; border-bottom: 1px solid #edf0ee; }
.list-row:last-child { border-bottom: 0; }
.list-row strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.list-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.amount { font-family: Arial, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.money-positive { color: var(--green-700); }.money-negative { color: var(--red); }
.status { display: inline-flex; min-height: 23px; align-items: center; justify-content: center; padding: 0 9px; border-radius: 999px; color: var(--green-700); background: var(--green-50); font-size: 10px; font-weight: 750; white-space: nowrap; }
.status.pending { color: #a56b21; background: #fff3e0; }.status.done { color: var(--blue); background: var(--blue-light); }.status.cancelled { color: var(--muted); background: #edf0ef; }.status.danger { color: var(--red); background: var(--red-light); }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.quick-link { display: flex; min-height: 78px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; transition: border .15s, transform .15s; text-align: left; }
.quick-link:hover { border-color: #b9cec6; transform: translateY(-1px); }
.quick-link svg { width: 22px; height: 22px; color: var(--green-700); }.quick-link strong { display: block; font-size: 11px; }.quick-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search-box { position: relative; width: min(100%, 330px); }
.search-box svg { position: absolute; top: 11px; left: 12px; width: 17px; height: 17px; color: #8b9b97; }
.search-box input { height: 40px; padding-left: 38px; background: #fff; }
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: #e8eeea; }
.tabs button { min-height: 33px; padding: 0 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.tabs button.active { color: var(--green-900); background: #fff; box-shadow: 0 3px 10px rgba(26,53,48,.08); }
.statement-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.statement-date-filter { display: flex; align-items: end; gap: 8px; }
.statement-date-filter label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.statement-date-filter input { width: 142px; height: 38px; }
.statement-date-filter > span { padding-bottom: 10px; color: var(--muted); font-size: 11px; }
.statement-date-filter .btn { min-height: 38px; }
.data-panel { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { height: 43px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #83928f; background: #fafbfa; font-size: 10px; font-weight: 750; letter-spacing: .03em; text-align: left; }
.data-table td { height: 56px; padding: 7px 16px; border-bottom: 1px solid #edf0ee; font-size: 12px; }
.data-table tbody tr { transition: background .12s; }.data-table tbody tr:hover { background: #f8fbf9; }.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-main { display: block; max-width: 280px; overflow: hidden; font-weight: 700; text-overflow: ellipsis; }.cell-sub { display: block; max-width: 260px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.table-actions { display: flex; gap: 5px; }
.text-button { padding: 5px 7px; border: 0; border-radius: 6px; color: var(--green-700); background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { background: var(--green-50); }.text-button.danger { color: var(--red); }.text-button.danger:hover { background: var(--red-light); }
.empty-state { display: grid; min-height: 280px; place-items: center; padding: 40px; color: var(--muted); text-align: center; }
.empty-state > div { max-width: 300px; }.empty-state span { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 16px; color: var(--green-700); background: var(--green-50); font-size: 22px; }.empty-state h3 { margin: 0 0 7px; color: var(--ink); font-size: 14px; }.empty-state p { margin: 0; font-size: 11px; line-height: 1.7; }
.stock-cell { display: flex; align-items: center; gap: 9px; }.stock-level { width: 58px; height: 5px; overflow: hidden; border-radius: 4px; background: #e7ece9; }.stock-level i { display: block; height: 100%; border-radius: inherit; background: var(--green-700); }.stock-level.low i { background: var(--red); }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.account-card { position: relative; overflow: hidden; min-height: 128px; padding: 20px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--green-900), #276d63); box-shadow: 0 10px 25px rgba(18,60,58,.12); }
.account-card:nth-child(2) { background: linear-gradient(135deg, #554d3c, #897650); }.account-card:nth-child(3) { background: linear-gradient(135deg, #344d61, #557b94); }
.account-card::after { position: absolute; right: -20px; bottom: -35px; width: 115px; height: 115px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.035); }
.account-card label { color: rgba(255,255,255,.68); font-size: 10px; }.account-card strong { display: block; margin-top: 14px; font-family: Arial, sans-serif; font-size: 25px; }.account-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.58); font-size: 9px; }
.account-actions { position: absolute; z-index: 1; top: 16px; right: 16px; display: flex; gap: 7px; }
.account-actions button { padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); font-size: 9px; }
.account-actions button:hover { background: rgba(255,255,255,.16); }
.summary-strip { display: flex; flex-wrap: wrap; gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.summary-strip > div { min-width: 180px; flex: 1; padding: 17px 19px; background: #fff; }.summary-strip label { color: var(--muted); font-size: 10px; }.summary-strip strong { display: block; margin-top: 7px; font-family: Arial,sans-serif; font-size: 19px; }
.rank-list { display: grid; gap: 14px; }.rank-item { display: grid; grid-template-columns: 25px minmax(100px, 1fr) 2fr auto; align-items: center; gap: 12px; }.rank-item > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--muted); background: #edf1ee; font-size: 10px; font-weight: 800; }.rank-item:nth-child(-n+3) > span:first-child { color: #8d5d1e; background: var(--gold-light); }.rank-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.rank-track { height: 7px; overflow: hidden; border-radius: 5px; background: #edf1ee; }.rank-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-800), #56a291); }.rank-item em { min-width: 76px; font-family: Arial,sans-serif; font-size: 11px; font-style: normal; font-weight: 700; text-align: right; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.report-grid .panel:first-child { grid-column: 1 / -1; }
.export-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }.export-card { display: grid; min-height: 102px; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--green-800); text-align: center; }.export-card:hover { border-color: #afc7bf; background: var(--green-50); }.export-card span { font-size: 11px; font-weight: 700; }

.modal-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-mask { position: absolute; inset: 0; background: rgba(4,23,21,.52); backdrop-filter: blur(3px); }
.modal-card { position: relative; display: flex; width: min(760px, 100%); max-height: calc(100vh - 44px); flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(4,26,23,.28); animation: modal-in .18s ease-out; }
.modal-card.wide { width: min(980px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-header { display: flex; min-height: 79px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 5px 0 0; font-size: 19px; }.modal-header .eyebrow { font-size: 9px; }
.modal-body { overflow-y: auto; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }.form-grid label { margin-bottom: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 8px -24px -24px; padding: 18px 24px; border-top: 1px solid var(--line); background: #fafbfa; }
.line-editor { grid-column: 1 / -1; margin: 3px 0 19px; border: 1px solid var(--line); border-radius: 12px; }
.line-editor-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }.line-editor-header strong { font-size: 11px; }
.line-items { display: grid; }
.line-item { display: grid; grid-template-columns: minmax(500px,3fr) .65fr .8fr auto; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #edf0ee; }.line-item:last-child { border-bottom: 0; }.line-item input, .line-item select { height: 38px; }.line-item .icon-button { width: 38px; height: 38px; color: var(--red); }
.product-picker { display: grid; min-width: 0; grid-template-columns: 1.15fr .85fr 1.15fr; gap: 8px; }
.product-picker select { min-width: 0; }
.picker-field { margin-bottom: 17px; }
.field-title { display: block; margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 700; }
.bom-line-head, .bom-line { display: grid; grid-template-columns: minmax(500px,3fr) .7fr .7fr 38px; gap: 9px; align-items: center; padding: 10px 12px; }
.bom-line-head { color: var(--muted); background: #fafbfa; font-size: 9px; }
.bom-line { border-top: 1px solid #edf0ee; }
.bom-line input, .bom-line select { height: 38px; }
.bom-line .icon-button { color: var(--red); }
.production-progress { display: grid; min-width: 130px; gap: 7px; }
.production-progress strong { font-size: 10px; }
.production-progress > span { height: 5px; overflow: hidden; border-radius: 5px; background: #e8ece9; }
.production-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-700); }
.line-total { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 14px; color: var(--muted); font-size: 11px; background: #fafbfa; }.line-total strong { color: var(--ink); font-family: Arial,sans-serif; font-size: 16px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 18px; border-radius: 13px; background: var(--green-50); }.detail-head h3 { margin: 0 0 6px; font-size: 15px; }.detail-head p { margin: 0; color: var(--muted); font-size: 11px; }.detail-head strong { font-family: Arial,sans-serif; font-size: 22px; }
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }.detail-meta > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }.detail-meta label { display: block; color: var(--muted); font-size: 9px; }.detail-meta strong { display: block; margin-top: 6px; font-size: 11px; }
.attachment-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.attachment-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.attachment-panel h3 { margin: 0 0 4px; font-size: 14px; }.attachment-panel header p { margin: 0; color: var(--muted); font-size: 10px; }
.attachment-upload { display: flex; align-items: center; gap: 8px; }.attachment-upload select { width: 112px; min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.attachment-list { display: grid; gap: 7px; }.attachment-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #e6e9e5; border-radius: 10px; background: #fff; }
.attachment-file { display: flex; min-width: 0; align-items: center; gap: 11px; }.attachment-file > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--green-800); background: var(--green-50); font: 750 8px/1 Arial,sans-serif; }
.attachment-file > div { min-width: 0; }.attachment-file strong { display: block; overflow: hidden; max-width: 440px; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.attachment-file small { display: block; color: var(--muted); font-size: 9px; }
.attachment-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }.attachment-empty { padding: 24px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 10px; }
.attachment-limit { display: block; margin-top: 10px; color: #909a97; font-size: 9px; }
.modal-table { width: 100%; border-collapse: collapse; }.modal-table th, .modal-table td { padding: 10px 9px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; }.modal-table th { color: var(--muted); font-size: 9px; }.modal-table input { height: 36px; }
.modal-footer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.import-zone { position: relative; display: grid; min-height: 150px; place-items: center; padding: 25px; border: 1px dashed #a8bdb5; border-radius: 13px; color: var(--muted); background: #f9fbfa; text-align: center; }.import-zone input { position: absolute; inset: 0; height: 100%; cursor: pointer; opacity: 0; }.import-zone strong { display: block; margin-bottom: 7px; color: var(--ink); }.import-zone small { line-height: 1.7; }
.settings-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }.settings-card { padding: 22px; }.profile-block { text-align: center; }.profile-avatar { display: grid; width: 70px; height: 70px; margin: 0 auto 14px; place-items: center; border-radius: 20px; color: #fff; background: var(--green-700); font-size: 24px; font-weight: 800; }.profile-block h3 { margin: 0 0 5px; }.profile-block p { margin: 0; color: var(--muted); font-size: 11px; }
.notice { padding: 13px 15px; border-left: 3px solid var(--gold); border-radius: 8px; color: #6d552f; background: #fff8ed; font-size: 11px; line-height: 1.7; }
.install-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-steps li { position: relative; min-height: 42px; padding: 11px 14px 11px 48px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfa; font-size: 12px; line-height: 1.65; }
.install-steps li::before { position: absolute; top: 10px; left: 12px; display: grid; width: 24px; height: 24px; place-items: center; content: counter(install-step); counter-increment: install-step; border-radius: 7px; color: #fff; background: var(--green-800); font: 700 10px Arial,sans-serif; }
.install-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 17px; }
.install-benefits > div { padding: 13px; border-radius: 10px; background: var(--green-50); }
.install-benefits strong, .install-benefits span { display: block; }
.install-benefits strong { font-size: 11px; }.install-benefits span { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.toast-stack { position: fixed; z-index: 200; top: 18px; right: 18px; display: grid; width: min(360px, calc(100vw - 36px)); gap: 9px; }
.toast { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; background: var(--green-900); box-shadow: 0 15px 40px rgba(12,41,38,.22); animation: toast-in .2s ease-out; }.toast.error { background: #8f3d3b; }.toast::before { width: 7px; height: 7px; flex: 0 0 auto; content: ""; border-radius: 50%; background: #79ddb5; }.toast.error::before { background: #ffaaa6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.page-loading { display: grid; min-height: 300px; place-items: center; align-content: center; gap: 8px; }.page-loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-700); animation: pulse .9s infinite alternate; }.page-loading i:nth-child(2) { animation-delay: .2s; }.page-loading i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .25; transform: scale(.65); } }

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; background: radial-gradient(circle at 50% -20%, #d6e9e1, transparent 42%); }
  .mobile-login-brand { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask { position: fixed; z-index: 45; inset: 0; background: rgba(5,27,24,.4); }
  .sidebar.open + .sidebar-mask { display: block; }
  .workspace { margin-left: 0; }
  .mobile-only { display: grid; }
  .topbar { height: 75px; padding: 0 18px; }
  .page-heading { margin-right: auto; margin-left: 9px; }.page-heading h1 { font-size: 19px; }.page-heading span { font-size: 8px; }
  .connection, .user-chip > span:last-child { display: none; }
  .content { padding: 20px 18px 95px; }
  .mobile-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; height: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -10px 35px rgba(18,50,46,.08); backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #84928f; font-size: 9px; }.mobile-nav a.active { color: var(--green-800); }.mobile-nav a svg { width: 20px; height: 20px; }
  .mobile-add { display: grid; width: 47px; height: 47px; align-self: start; justify-self: center; margin-top: -16px; place-items: center; border: 5px solid var(--canvas); border-radius: 50%; color: #fff; background: var(--green-900); box-shadow: 0 7px 18px rgba(18,60,58,.25); }.mobile-add svg { width: 20px; height: 20px; }
  .account-grid { grid-template-columns: 1fr; }.account-card { min-height: 112px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .login-card { padding: 30px 25px; border-radius: 20px; }.login-card h2 { font-size: 24px; }
  .topbar-actions .btn { width: 40px; padding: 0; }.topbar-actions .btn span { display: none; }.topbar-actions { gap: 5px; }
  .user-chip { padding-right: 0; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.metric-card { min-height: 116px; padding: 17px 16px; }.metric-card label { margin-bottom: 14px; }.metric-card strong { font-size: 20px; }.metric-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-actions { align-items: flex-start; }.page-actions .copy p { display: none; }.page-actions .copy h2 { font-size: 15px; }.action-group .btn span.hide-mobile { display: none; }.action-group .btn { padding: 0 12px; }
  .toolbar { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }.tabs { align-self: flex-start; }
  .statement-toolbar { align-items: stretch; flex-direction: column; }.statement-date-filter { flex-wrap: wrap; }.statement-date-filter label { min-width: 120px; flex: 1; }.statement-date-filter input { width: 100%; }.statement-date-filter .btn { flex: 1; }
  .panel-header { padding: 0 16px; }.panel-body { padding: 16px; }
  .chart { height: 190px; gap: 8px; }.chart-bar span { font-size: 8px; }
  .list-row { grid-template-columns: minmax(130px, 1fr) auto; gap: 8px; }.list-row > *:nth-child(2), .list-row > *:nth-child(3) { display: none; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .table-wrap { margin: 0; }
  .data-table th, .data-table td { padding-right: 12px; padding-left: 12px; }
  .report-grid { grid-template-columns: 1fr; }.report-grid .panel:first-child { grid-column: auto; }.rank-item { grid-template-columns: 25px minmax(80px,1fr) auto; }.rank-track { display: none; }
  .export-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-layer { align-items: end; padding: 0; }.modal-card, .modal-card.wide { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }.modal-header { min-height: 72px; padding: 0 18px; }.modal-body { padding: 19px 18px; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.form-actions { position: sticky; bottom: -19px; margin: 8px -18px -19px; padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
  .line-item { grid-template-columns: 1fr 1fr 38px; padding: 9px; }.line-item .product-picker { grid-column: 1 / -1; }.line-item select { min-width: 0; }
  .product-picker { grid-template-columns: 1fr; }
  .bom-line-head { display: none; }
  .bom-line { grid-template-columns: 1fr 1fr 38px; padding: 10px 9px; }
  .bom-line .product-picker { grid-column: 1 / -1; }
  .detail-meta { grid-template-columns: repeat(2,1fr); }.detail-head { align-items: flex-start; flex-direction: column; }.detail-head strong { font-size: 20px; }
  .attachment-panel > header { align-items: flex-start; flex-direction: column; }.attachment-upload { width: 100%; }.attachment-upload select { flex: 1; }.attachment-row { align-items: flex-start; flex-direction: column; }.attachment-file strong { max-width: 250px; }.attachment-actions { align-self: flex-end; }
  .install-benefits { grid-template-columns: 1fr; }
  .modal-table { min-width: 620px; }.modal-body:has(.modal-table) { overflow-x: auto; }
  .summary-strip > div { min-width: 45%; }.account-grid { gap: 10px; }
}

@media print {
  @page { size: A4 portrait; margin: 13mm; }
  .sidebar, .topbar, .mobile-nav, .page-actions, .toolbar, .table-actions, .modal-header, .modal-footer-actions, .delivery-history { display: none !important; }
  .workspace { margin: 0; }.content { max-width: none; padding: 0; }.panel { border: 0; box-shadow: none; }
}

.document-brand { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:20px; padding-bottom:16px; border-bottom:2px solid var(--green-900); }
.document-brand h2 { margin:0 0 5px; font-size:22px; letter-spacing:2px; }.document-brand p { margin:0; color:var(--muted); font-size:10px; letter-spacing:1.5px; }.document-brand > strong { font-family:Arial,sans-serif; font-size:15px; }
.document-note { margin:16px 0; color:var(--muted); line-height:1.8; }.signature-row { display:flex; justify-content:space-between; gap:24px; margin-top:36px; font-size:12px; }
.delivery-history { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:16px; padding:14px; border-radius:12px; background:var(--green-50); }.delivery-history .active { font-weight:700; text-decoration:underline; }
.compact-summary { margin:0; border-width:0 0 1px; border-radius:0; }.compact-summary > div { padding:12px 18px; }.compact-summary strong { font-size:14px; }
.aging-table tfoot td, .modal-table tfoot td { font-weight:700; background:var(--green-50); }

/* v1.2 视觉升级：更克制的工业质感与更清晰的经营层级 */
:root {
  --ink: #17201f;
  --muted: #74807d;
  --line: #e2e6e2;
  --canvas: #f3f4f1;
  --green-950: #101b1a;
  --green-900: #173f3b;
  --green-800: #205b54;
  --green-700: #28766a;
  --gold: #db9b45;
  --shadow: 0 16px 45px rgba(22, 42, 38, .07);
  --radius: 18px;
}

.login-screen { grid-template-columns: minmax(520px, 1.08fr) minmax(440px, .92fr); background: #eef0ec; }
.login-visual {
  padding: 54px 70px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 76% 28%, rgba(57, 133, 117, .34), transparent 30%),
    linear-gradient(145deg, #0c1716 0%, #122c29 64%, #173d38 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.login-visual::after { position: absolute; right: 7%; bottom: 4%; content: "TX"; color: rgba(255,255,255,.025); font: 900 260px/1 Arial, sans-serif; letter-spacing: -.12em; }
.login-brand { font-size: 18px; letter-spacing: .03em; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; color: #14201e; background: linear-gradient(145deg, #f0c47e, #d89538); box-shadow: 0 10px 30px rgba(218,154,68,.18); font-family: var(--font); font-size: 20px; }
.login-copy { max-width: 660px; padding-bottom: 42px; }
.login-copy h1 { margin: 24px 0 22px; font-family: var(--font); font-size: clamp(48px, 5.2vw, 74px); font-weight: 850; line-height: 1.13; letter-spacing: -.055em; }
.login-copy p { max-width: 590px; color: #aebfbb; font-size: 16px; line-height: 1.9; }
.login-capabilities { display: grid; max-width: 670px; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 46px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.08); }
.login-capabilities > div { display: grid; min-height: 110px; grid-template-columns: auto 1fr; align-content: center; align-items: start; gap: 12px; padding: 20px 18px; background: rgba(10,27,25,.7); }
.login-capabilities strong { color: var(--gold); font: 700 10px/1 Arial, sans-serif; letter-spacing: .08em; }
.login-capabilities span { color: #eef5f3; font-size: 12px; font-weight: 750; }
.login-capabilities small { display: block; margin-top: 7px; color: #7f9a94; font-size: 9px; font-weight: 500; line-height: 1.5; }
.login-panel { position: relative; padding: 54px; background: radial-gradient(circle at 60% 0%, #fff, transparent 42%); }
.login-panel::before { position: absolute; top: 32px; right: 38px; content: "云端安全连接"; color: #96a19e; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.login-card { width: min(100%, 450px); padding: 48px; border: 1px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(24,42,38,.1); backdrop-filter: none; }
.login-card h2 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.045em; }
.login-card > div > p { margin-bottom: 32px; }
.login-card label { gap: 9px; margin-bottom: 19px; color: #33403e; font-size: 12px; }
.login-card input { height: 51px; border-color: #dce2de; border-radius: 11px; background: #fafbf9; }
.login-card input:focus { background: #fff; }
.login-card .btn-primary { min-height: 52px; justify-content: space-between; padding: 0 20px; border-radius: 11px; background: #183f3b; box-shadow: 0 12px 28px rgba(23,63,59,.18); }
.install-app-button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 9px; margin-top: 11px; border: 1px solid #dce2de; border-radius: 11px; color: var(--green-800); background: #f7f9f7; font-size: 12px; font-weight: 750; }
.install-app-button:hover { border-color: #afc7bf; background: var(--green-50); }
.install-app-button svg { width: 17px; height: 17px; }
.login-arrow { font-size: 20px; font-weight: 400; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 0; color: #85918e; font-size: 10px; }
.login-security .sync-dot { width: 6px; height: 6px; }
.demo-tip { margin-top: 20px; padding-top: 18px; }

.sidebar { width: 236px; background: #101b1a; }
.workspace { margin-left: 236px; }
.sidebar-brand { height: 82px; padding: 0 23px; }
.sidebar-brand strong { font-size: 16px; }
.main-nav { padding-right: 12px; padding-left: 12px; }
.main-nav a { height: 42px; padding: 0 13px; border-radius: 9px; }
.main-nav a.active { background: rgba(73,142,127,.18); box-shadow: inset 2px 0 #e0a451; }
.topbar { height: 82px; padding: 0 32px; border-bottom-color: #e1e5e1; background: rgba(243,244,241,.92); }
.content { padding: 26px 32px 58px; }
.panel, .metric-card { border-color: #e1e5e1; box-shadow: 0 8px 30px rgba(24,45,40,.035); }
.panel { border-radius: 18px; }
.metric-card { min-height: 128px; border-radius: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24,45,40,.07); }
.metric-card::before { position: absolute; right: 0; bottom: 0; width: 88px; height: 88px; content: ""; border-radius: 100% 0 0; background: linear-gradient(135deg, transparent, rgba(42,115,103,.05)); }
.metric-card strong { font-size: 24px; }

.dashboard-hero { position: relative; display: grid; min-height: 230px; grid-template-columns: minmax(0,1.4fr) minmax(320px,.6fr); gap: 26px; overflow: hidden; margin-bottom: 18px; padding: 34px 38px; border-radius: 22px; color: #fff; background: linear-gradient(125deg, #10201e 0%, #173f3a 68%, #235d53 100%); box-shadow: 0 18px 45px rgba(19,58,53,.16); }
.dashboard-hero::before { position: absolute; top: -180px; right: -80px; width: 430px; height: 430px; content: ""; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.022), 0 0 0 116px rgba(255,255,255,.012); }
.hero-copy, .hero-balance { position: relative; z-index: 1; }
.hero-copy { align-self: center; }
.hero-eyebrow { color: #8eb5ac; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.hero-copy h2 { margin: 10px 0 8px; font-size: 29px; letter-spacing: -.035em; }
.hero-copy p { margin: 0; color: #acc3be; font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.hero-actions .btn { min-height: 39px; border-color: transparent; }
.hero-primary { color: #15201e; background: #efc27d; box-shadow: 0 8px 20px rgba(7,24,21,.2); }
.hero-primary:hover { background: #f6cc8a; }
.hero-secondary { color: #fff; background: rgba(255,255,255,.12); }
.hero-ghost { color: #9dbbb4; background: transparent; }
.hero-balance { align-self: stretch; padding: 22px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(4,20,18,.22); backdrop-filter: blur(8px); }
.hero-status { display: flex; align-items: center; gap: 9px; color: #98b7b0; font-size: 9px; }
.hero-balance > label { display: block; margin-top: 27px; color: #8aa8a1; font-size: 10px; }
.hero-balance > strong { display: block; margin-top: 7px; font: 750 28px/1.2 Arial,sans-serif; letter-spacing: -.03em; }
.hero-balance-foot { display: flex; gap: 20px; margin-top: 24px; color: #7f9e97; font-size: 9px; }
.hero-balance-foot span { display: grid; gap: 4px; }
.hero-balance-foot b { color: #d4e2de; font: 600 10px Arial,sans-serif; }

.tax-warning { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid #efcf9f; border-radius: 13px; color: #735129; background: #fff8eb; font-size: 11px; }
.tax-warning strong { font-size: 12px; }.tax-warning span { flex: 1; color: #94734a; }
.tax-hero { position: relative; display: flex; min-height: 178px; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; margin-bottom: 18px; padding: 30px 34px; border-radius: 20px; color: #fff; background: linear-gradient(125deg,#10201e,#17443e 70%,#276c60); box-shadow: 0 16px 40px rgba(19,58,53,.14); }
.tax-hero::after { position: absolute; top: -160px; right: -70px; width: 380px; height: 380px; content: ""; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.015); }
.tax-hero>div { position: relative; z-index: 1; }.tax-hero span,.tax-hero label { color: #8eb5ac; font-size: 10px; font-weight: 750; letter-spacing: .08em; }.tax-hero h2 { margin: 10px 0 7px; font-size: 25px; }.tax-hero p { margin: 0; color: #aac6bf; font-size: 11px; }
.tax-hero-money { min-width: 250px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(4,20,18,.2); }.tax-hero-money strong { display: block; margin: 8px 0; font: 750 27px Arial,sans-serif; }.tax-hero-money small { color: #aac6bf; font-size: 10px; }
.tax-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 18px; }.tax-side { overflow: hidden; }.tax-item-list { padding: 4px 18px 18px; }.tax-item-list>div:not(.notice) { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }.tax-item-list span { font-size: 11px; font-weight: 750; }.tax-item-list strong { color: var(--green-700); font-size: 10px; }.tax-item-list small { grid-column: 1/-1; color: var(--muted); font-size: 9px; }.switch-line { display: flex!important; align-items: center; gap: 7px!important; margin: 0!important; white-space: nowrap; }.switch-line input { width: 16px; height: 16px; }

.finance-bridge-hero { position: relative; display: grid; min-height: 210px; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); align-items: center; gap: 28px; overflow: hidden; margin-bottom: 18px; padding: 34px 38px; border-radius: 22px; color: #fff; background: linear-gradient(125deg,#111d1c,#1a4540 66%,#286c61); box-shadow: 0 18px 45px rgba(19,58,53,.16); }
.finance-bridge-hero::after { position: absolute; top: -180px; right: -80px; width: 430px; height: 430px; content: ""; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.022),0 0 0 116px rgba(255,255,255,.012); }
.finance-bridge-hero>div { position: relative; z-index: 1; }.finance-bridge-hero span { color: #efc27d; font-size: 10px; font-weight: 800; letter-spacing: .16em; }.finance-bridge-hero h2 { margin: 11px 0 10px; font-size: 29px; letter-spacing: -.035em; }.finance-bridge-hero p { max-width: 700px; margin: 0; color: #aac2bd; font-size: 12px; line-height: 1.8; }
.finance-sync-score { padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(4,20,18,.22); }.finance-sync-score label { display: block; color: #8aa8a1; font-size: 10px; }.finance-sync-score strong { display: block; margin: 10px 0 8px; font: 750 29px Arial,sans-serif; }.finance-sync-score small { color: #9db8b2; font-size: 10px; }
.finance-source-section { margin-top: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg,#fff,#f8faf8); box-shadow: 0 12px 32px rgba(24,53,48,.055); }.finance-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }.finance-section-head>div>span { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .18em; }.finance-section-head h3 { margin: 5px 0 4px; font-size: 18px; }.finance-section-head p { margin: 0; color: var(--muted); font-size: 10px; }.sync-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 10px; font-weight: 750; white-space: nowrap; }.sync-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4fc397; box-shadow: 0 0 0 4px rgba(79,195,151,.12); }
.finance-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.finance-source-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid #dfe7e3; border-radius: 17px; background: #fff; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }.finance-source-card:hover { transform: translateY(-2px); border-color: #aec8c1; box-shadow: 0 14px 28px rgba(24,63,57,.08); }.finance-source-card::after { position: absolute; right: -28px; bottom: -42px; width: 110px; height: 110px; content: ""; border-radius: 50%; background: rgba(38,108,97,.035); }.source-card-top,.source-card-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.source-number { color: #b38844; font: 800 10px Arial,sans-serif; letter-spacing: .08em; }.source-state { display: inline-flex; align-items: center; gap: 6px; color: #477c72; font-size: 9px; font-weight: 750; }.source-state i { width: 6px; height: 6px; border-radius: 50%; background: #59bf98; }.source-card-title { margin: 16px 0 18px; }.source-card-title>div>strong { display: block; font-size: 15px; }.source-card-title>div>small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }.source-card-title>span { color: var(--green-900); font: 800 22px Arial,sans-serif; }.source-card-title>span small { margin-left: 3px; color: var(--muted); font-size: 9px; }.source-card-amount { padding: 13px 15px; border-radius: 12px; background: #f3f7f4; }.source-card-amount label,.source-card-result label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }.source-card-amount strong { font: 750 16px Arial,sans-serif; }.source-card-result { min-height: 61px; padding: 14px 2px 10px; }.source-card-result p { margin: 0; color: #3c4b48; font-size: 10px; line-height: 1.6; }.source-card-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 35px; padding: 0; border: 0; border-top: 1px solid var(--line); color: var(--green-700); background: transparent; font-size: 10px; font-weight: 800; text-align: left; cursor: pointer; }.source-card-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.finance-principles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 18px; }.finance-principles article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.finance-principles span { color: var(--gold); font: 800 11px Arial,sans-serif; }.finance-principles strong { display: block; margin: 12px 0 7px; font-size: 13px; }.finance-principles p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.accounting-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 18px; }.accounting-overview article { position: relative; overflow: hidden; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.accounting-overview article::after { position: absolute; top: 0; right: 0; width: 4px; height: 100%; content: ""; background: #a6c6be; }.accounting-overview article.safe::after { background: #d5a75d; }.accounting-overview span { color: var(--muted); font-size: 10px; }.accounting-overview strong { display: block; margin: 8px 0 5px; font: 800 27px Arial,sans-serif; }.accounting-overview p { margin: 0; color: var(--muted); font-size: 9px; }.accounting-layout { display: grid; min-width: 0; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); align-items: start; gap: 18px; margin-bottom: 18px; }.accounting-layout>* { min-width: 0; }.accounting-rules { padding: 2px 20px 17px; }.accounting-rules>div { padding: 15px 0; border-bottom: 1px solid var(--line); }.accounting-rules>div:last-child { border: 0; }.accounting-rules strong { font-size: 11px; }.accounting-rules p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }.account-code { display: inline-flex; min-width: 60px; padding: 5px 8px; border-radius: 7px; color: var(--green-700); background: #eaf2ef; font: 750 10px Arial,sans-serif; }
.period-card-list { display: grid; gap: 12px; padding: 0 18px 18px; }.period-card { display: grid; min-width: 0; grid-template-columns: minmax(145px,.8fr) minmax(120px,.65fr) minmax(230px,1.2fr) auto; align-items: center; gap: 18px; padding: 17px 18px; border: 1px solid #dfe6e2; border-radius: 14px; background: linear-gradient(110deg,#fff,#f7faf8); }.period-card.closed { opacity: .78; background: #f5f6f4; }.period-card-main span,.period-card-state label,.period-card-numbers span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }.period-card-main strong { display: block; color: var(--green-900); font: 800 21px Arial,sans-serif; }.period-card-main small,.period-card-state small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }.period-card-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 10px 14px; border-radius: 11px; background: #eef4f1; }.period-card-numbers strong { color: var(--green-900); font: 800 16px Arial,sans-serif; }.period-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }.btn-small { min-height: 34px; padding: 0 13px; font-size: 10px; }
.voucher-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(120deg,#fff,#f5f8f6); }.voucher-flow article { display: grid; min-height: 82px; align-content: center; padding: 13px 16px; border: 1px solid #e1e8e4; border-radius: 13px; background: #fff; }.voucher-flow article span { color: var(--gold); font: 800 9px Arial,sans-serif; }.voucher-flow article strong { margin: 7px 0 4px; font-size: 12px; }.voucher-flow article small { color: var(--muted); font-size: 8px; }.voucher-flow>i { color: #a7b2af; font-style: normal; }.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }.filter-row select,.inline-filter select,.general-ledger-panel select { min-width: 145px; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.voucher-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 10px; }.voucher-entry-head strong { display: block; }.voucher-entry-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.voucher-entry-labels,.voucher-entry-line { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(230px,1.25fr) minmax(110px,.55fr) minmax(110px,.55fr) 36px; gap: 8px; align-items: center; }.voucher-entry-labels { padding: 0 5px 7px; color: var(--muted); font-size: 9px; }.voucher-entry-line { margin-bottom: 8px; }.voucher-entry-line input,.voucher-entry-line select { min-width: 0; height: 42px; }.voucher-entry-line .remove-entry { color: #b5574f; }.voucher-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.voucher-detail-head span,.voucher-detail-head p { color: var(--muted); font-size: 9px; }.voucher-detail-head h3 { margin: 6px 0; font-size: 18px; }.voucher-detail-head p { margin: 0; }.voucher-trail { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; padding: 11px 14px; border-radius: 10px; color: var(--muted); background: #f3f6f4; font-size: 9px; }
.trial-state { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 750; }.trial-state i { width: 8px; height: 8px; border-radius: 50%; }.trial-state.balanced { color: #2a7964; }.trial-state.balanced i { background: #4eb88e; box-shadow: 0 0 0 4px rgba(78,184,142,.12); }.trial-state.unbalanced { color: #aa493f; }.trial-state.unbalanced i { background: #cf5d52; }.report-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }.report-summary article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }.report-summary span { color: var(--muted); font-size: 9px; }.report-summary strong { display: block; margin-top: 8px; font: 800 21px Arial,sans-serif; }.report-summary .loss strong { color: #b04f46; }.book-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }.book-grid>* { min-width: 0; }.compact-report { padding: 0 18px 18px; }.compact-report table { font-size: 10px; }.compact-report th,.compact-report td { padding: 9px; }.compact-report tfoot td,.data-table tfoot td { font-weight: 800; background: #f0f5f2; }.general-ledger-panel { margin-top: 18px; }.ledger-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }.ledger-title span { color: var(--green-700); font-size: 10px; font-weight: 750; }
.specialist-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }.specialist-overview article { position: relative; overflow: hidden; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#fff,#f6f9f7); }.specialist-overview article::after { position: absolute; right: -28px; bottom: -45px; width: 100px; height: 100px; content: ""; border-radius: 50%; background: rgba(37,105,94,.045); }.specialist-overview span { color: var(--muted); font-size: 9px; }.specialist-overview strong { display: block; margin: 8px 0 5px; font: 800 21px Arial,sans-serif; }.specialist-overview small { color: #6d7e79; font-size: 9px; }.specialist-panel { margin-bottom: 18px; }.safe-chip { display: inline-flex; align-items: center; gap: 7px; color: #49756c; font-size: 9px; font-weight: 750; }.safe-chip i { width: 7px; height: 7px; border-radius: 50%; background: #58bd96; box-shadow: 0 0 0 4px rgba(88,189,150,.12); }.detail-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }.detail-stat-grid>div { padding: 14px; border-radius: 12px; background: #f1f6f3; }.detail-stat-grid span { color: var(--muted); font-size: 9px; }.detail-stat-grid strong { display: block; margin-top: 7px; color: var(--green-900); font: 800 16px Arial,sans-serif; }.modal-section-title { margin: 22px 0 10px; font-size: 13px; }.form-note { padding: 12px 14px; border: 1px solid #d9e6e1; border-radius: 10px; color: #57736d; background: #f1f7f4; font-size: 10px; line-height: 1.7; }.payroll-line { display: grid; grid-template-columns: 1fr .8fr repeat(6,.75fr) 36px; gap: 7px; margin-bottom: 8px; }.payroll-line input { min-width: 0; height: 40px; padding: 0 9px; font-size: 9px; }.payroll-total { padding: 12px 8px 2px; color: var(--green-800); font-size: 12px; font-weight: 800; text-align: right; }.cash-flow-panel { margin-bottom: 18px; }.cash-flow-net { display: grid; gap: 5px; text-align: right; }.cash-flow-net span { color: var(--muted); font-size: 9px; }.cash-flow-net strong { color: var(--green-800); font: 800 18px Arial,sans-serif; }.cash-flow-group td { color: var(--green-900); background: #f0f5f2; font-weight: 800; }.cash-flow-indent { padding-left: 28px!important; color: #566a65; }

@media (max-width: 1050px) {
  .finance-bridge-hero { grid-template-columns: 1fr; }.finance-principles { grid-template-columns: repeat(2,minmax(0,1fr)); }.accounting-layout { grid-template-columns: 1fr; }.period-card { grid-template-columns: repeat(2,minmax(0,1fr)); }.period-card-actions { justify-content: flex-start; }.payroll-line { grid-template-columns: repeat(4,minmax(100px,1fr)); }.payroll-line .icon-button { justify-self:end; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .hero-balance { display: none; }
  .tax-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-panel { padding: 24px; }
  .login-panel::before { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 72px; }
  .content { padding: 18px 16px 94px; }
  .dashboard-hero { min-height: 218px; padding: 27px 24px; border-radius: 18px; }
}

@media (max-width: 640px) {
  .login-card { padding: 34px 25px; }
  .login-card h2 { font-size: 25px; }
  .dashboard-hero { min-height: 235px; }
  .hero-copy h2 { font-size: 24px; }
  .hero-copy p { max-width: 300px; line-height: 1.7; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .hero-ghost { display: none; }
  .tax-warning { align-items: flex-start; flex-direction: column; }.tax-hero { min-height: 205px; align-items: flex-start; flex-direction: column; padding: 25px 22px; }.tax-hero h2 { font-size: 21px; }.tax-hero-money { width: 100%; min-width: 0; padding: 14px 16px; }.tax-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-bridge-hero { min-height: 250px; padding: 26px 22px; border-radius: 18px; }.finance-bridge-hero h2 { font-size: 23px; }.finance-sync-score { padding: 17px; }.finance-principles,.finance-source-grid,.accounting-overview,.report-summary,.book-grid,.specialist-overview,.detail-stat-grid { grid-template-columns: 1fr; }.finance-source-section { padding: 20px 16px; border-radius: 18px; }.finance-section-head { flex-direction: column; gap: 12px; }.finance-source-card { padding: 18px; }.period-card { grid-template-columns: 1fr; }.voucher-flow { grid-template-columns: 1fr; }.voucher-flow>i { display:none; }.voucher-entry-labels { display:none; }.voucher-entry-line { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }.voucher-entry-line input:first-child,.voucher-entry-line select { grid-column: 1/-1; }.voucher-entry-line .remove-entry { justify-self:end; }.payroll-line { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
}
