:root {
  color-scheme: light;
  --ink: #18263d;
  --muted: #8491a5;
  --line: #e9eef5;
  --surface: #fff;
  --canvas: #f6f8fc;
  --blue: #2871e7;
  --blue-dark: #1c55b5;
  --red: #dc625d;
  --green: #39a77a;
  --orange: #e9a14d;
  --font: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 1.03fr) 1fr; background: #fff; }
.login-art { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 7vw 46px; background: #f1f6ff; }
.login-art:before { content: ""; position: absolute; width: 540px; height: 540px; right: -160px; bottom: -180px; border: 1px solid #dfe9fa; border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.44), 0 0 0 112px rgba(255,255,255,.37); }
.brand { display: inline-flex; align-items: center; gap: 11px; position: relative; z-index: 1; font-weight: 700; letter-spacing: 0; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--blue); font-size: 19px; font-weight: 700; box-shadow: 0 7px 15px #2871e733; }
.brand-name { font-size: 16px; line-height: 1.25; }
.brand-name small { display: block; margin-top: 3px; color: #8090a6; font-size: 10px; font-weight: 500; }
.art-copy { z-index: 1; max-width: 490px; }
.art-copy .eyebrow { display: flex; align-items: center; gap: 8px; color: #5780c3; font-size: 12px; font-weight: 600; }
.art-copy .eyebrow i { width: 7px; height: 7px; background: #4d9a7a; border-radius: 50%; }
.art-copy h1 { margin: 19px 0 13px; font-size: clamp(36px,4vw,52px); font-weight: 700; line-height: 1.23; }
.art-copy p { max-width: 390px; color: #7b8aa0; font-size: 14px; line-height: 1.9; }
.art-stats { position: relative; z-index: 1; display: flex; gap: 40px; margin-top: 52px; }
.art-stats strong { display: block; font-size: 23px; }
.art-stats span { display: block; margin-top: 5px; color: #8795a9; font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 45px 32px; }
.login-card { width: min(400px,100%); }
.login-card h2 { margin: 0; font-size: 25px; font-weight: 700; }
.login-subtitle { margin: 9px 0 34px; color: var(--muted); font-size: 13px; }
.field-label { display: block; margin-bottom: 8px; color: #506078; font-size: 12px; font-weight: 600; }
.field { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #e2e8f1; border-radius: 7px; background: #fff; color: var(--ink); outline: 0; transition: border-color .16s,box-shadow .16s; }
.field:focus { border-color: #77a5ef; box-shadow: 0 0 0 3px #2871e711; }
.login-card .field { min-height: 48px; margin-bottom: 21px; }
.role-pick { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 4px 0 21px; }
.role-option { min-height: 72px; position: relative; padding: 11px; border: 1px solid #e5eaf2; border-radius: 7px; background: #fff; text-align: left; }
.role-option.active { border-color: #7ca6ec; background: #f2f7ff; box-shadow: 0 0 0 1px #7ca6ec; }
.role-option strong { display: block; font-size: 12px; }
.role-option small { display: block; margin-top: 5px; color: #8b98aa; font-size: 10px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #e4e9f0; border-radius: 6px; background: #fff; color: #53637a; font-size: 12px; font-weight: 600; transition: background .16s,border-color .16s,transform .16s; }
.button:hover { border-color: #b9c8df; background: #fafcff; }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 3px 7px #2871e725; }
.button-primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button-quiet { border-color: transparent; background: transparent; }
.button-danger { color: var(--red); }
.button-block { width: 100%; min-height: 47px; font-size: 13px; }
.login-hint { margin: 17px 0 0; color: #929eb0; font-size: 11px; line-height: 1.7; }
.application { min-height: 100vh; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; padding: 23px 17px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar .brand { padding: 0 8px 25px; }
.nav-caption { margin: 13px 10px 9px; color: #98a2b0; font-size: 10px; font-weight: 600; }
.nav-list { display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 41px; display: flex; align-items: center; gap: 12px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: #77849a; text-align: left; font-size: 12px; }
.nav-item:hover { background: #f7f9fc; color: #4c607d; }
.nav-item.active { background: #edf4ff; color: var(--blue); font-weight: 600; }
.nav-icon { width: 17px; display: grid; place-items: center; font-size: 15px; }
.nav-badge { min-width: 19px; height: 19px; display: grid; place-items: center; margin-left: auto; border-radius: 10px; background: #fff0ec; color: #df725b; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 10px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e8f0fc; color: #3a71be; font-size: 12px; font-weight: 700; }
.sidebar-user strong,.sidebar-user small { display: block; }
.sidebar-user strong { font-size: 11px; }
.sidebar-user small { margin-top: 3px; color: #929cad; font-size: 10px; }
.main { min-height: 100vh; margin-left: 232px; }
.topbar { min-height: 68px; position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 18px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #ffffffef; backdrop-filter: blur(12px); }
.breadcrumb { color: #8995a6; font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { width: 34px; height: 34px; position: relative; display: grid; place-items: center; border: 1px solid #e9edf2; border-radius: 6px; background: #fff; color: #66758b; font-size: 15px; }
.icon-button:hover { background: #f8faff; }
.notification-dot { width: 6px; height: 6px; position: absolute; top: 7px; right: 7px; border-radius: 50%; background: #ec826e; }
.top-select,.top-date { height: 34px; padding: 0 10px; border: 1px solid #e7ebf1; border-radius: 6px; background: white; color: #526178; font-size: 11px; outline: 0; }
.top-date { width: 132px; }
.page { width: min(1360px,100%); margin: 0 auto; padding: 29px 36px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-heading h1 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.4; }
.page-heading p { margin: 6px 0 0; color: #8a96a7; font-size: 11px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.notice-banner { display: flex; align-items: center; gap: 9px; min-height: 39px; margin: -6px 0 17px; padding: 0 12px; border: 1px solid #f8e7cd; border-radius: 6px; background: #fff9ef; color: #a57734; font-size: 11px; }
.notice-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }
.filter-row { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.store-chips,.segmented { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.store-chip,.segment-button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #7b8799; font-size: 11px; }
.store-chip.active,.segment-button.active { background: #edf4ff; color: var(--blue); font-weight: 600; }
.filter-spacer { flex: 1; }
.date-input { height: 34px; padding: 0 10px; border: 1px solid #e4eaf1; border-radius: 6px; background: #fff; color: #5a687c; font-size: 11px; }
.filter-search { width: min(240px,28vw); position: relative; }
.filter-search span { position: absolute; left: 11px; top: 9px; color: #97a2b1; }
.filter-search input { width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid #e7ebf2; border-radius: 6px; outline: 0; background: #fff; font-size: 11px; }
.filter-search input:focus { border-color: #8cb1ed; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.metric-card { min-height: 105px; position: relative; padding: 15px 16px 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.metric-top { display: flex; align-items: center; gap: 8px; color: #8290a4; font-size: 10px; }
.metric-symbol { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #f0f5fd; color: #5989d1; font-size: 12px; font-weight: 700; }
.metric-card.tone-red .metric-symbol { background: #fff1ef; color: #d86960; }
.metric-card.tone-green .metric-symbol { background: #edf9f3; color: #38a477; }
.metric-card.tone-orange .metric-symbol { background: #fff6e9; color: #d7943e; }
.metric-card.tone-violet .metric-symbol { background: #f4f0fd; color: #866bc1; }
.metric-value { margin-top: 12px; color: #27364e; font-size: 23px; font-weight: 700; line-height: 1; }
.metric-value small { margin-left: 4px; color: #8d99aa; font-size: 10px; font-weight: 500; }
.metric-note { position: absolute; right: 15px; bottom: 14px; color: #9ba6b4; font-size: 9px; }
.section-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(240px,.9fr); gap: 13px; margin-top: 13px; }
.panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.panel-title { margin: 0; font-size: 12px; font-weight: 700; }
.panel-subtitle { display: block; margin-top: 4px; color: #9ba5b3; font-size: 9px; }
.panel-action { border: 0; background: transparent; color: #6d87af; font-size: 10px; }
.chart-key { display: flex; gap: 14px; color: #8995a6; font-size: 9px; }
.chart-key span { display: inline-flex; align-items: center; gap: 5px; }
.chart-key i { width: 7px; height: 7px; border-radius: 50%; }
.chart-wrap { width: 100%; height: 185px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #eff2f6; stroke-width: 1; }
.chart-label { fill: #9ba5b3; font-size: 8px; font-family: var(--font); }
.chart-out { fill: none; stroke: #e47b69; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-in { fill: none; stroke: #39a77a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot-out { fill: #fff; stroke: #e47b69; stroke-width: 1.5; }
.chart-dot-in { fill: #fff; stroke: #39a77a; stroke-width: 1.5; }
.store-status-list,.todo-list { display: grid; gap: 8px; }
.store-status-row { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 9px; border: 1px solid #eff2f6; border-radius: 5px; cursor: pointer; }
.store-status-row.active { border-color: #b7cff6; background: #f6f9ff; }
.status-mark { width: 8px; height: 8px; border-radius: 50%; background: #41b083; }
.status-mark.pending { background: #e5a54e; }
.status-mark.none { background: #d68177; }
.store-status-row strong { flex: 1; font-size: 10px; font-weight: 600; }
.store-status-row small { color: #969faf; font-size: 9px; }
.task-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.task-row:last-child { border-bottom: 0; }
.task-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #fff3ef; color: #db735f; font-size: 11px; }
.task-row strong { display: block; font-size: 10px; font-weight: 600; }
.task-row small { display: block; margin-top: 3px; color: #99a3b0; font-size: 9px; }
.task-count { margin-left: auto; color: #dc6d60; font-size: 15px; font-weight: 700; }
.today-strip { display: flex; align-items: center; gap: 14px; margin-top: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.today-strip strong { font-size: 11px; }
.today-strip .strip-data { color: #79869a; font-size: 10px; }
.today-strip .strip-data b { color: #394960; font-size: 12px; }
.today-strip .status-pill { margin-left: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border-radius: 4px; background: #fff6e9; color: #be8234; font-size: 9px; }
.status-pill.approved { background: #edf8f3; color: #3d9d77; }
.status-pill.locked { background: #edf3ff; color: #5481c2; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.8fr); gap: 14px; align-items: start; }
.list-panel { overflow: hidden; padding: 0; }
.list-panel .panel-header { padding: 15px 16px 11px; margin: 0; }
.expense-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 105px 105px 76px; align-items: center; gap: 8px; min-height: 56px; padding: 7px 15px; border-top: 1px solid #f0f2f6; }
.expense-seq { color: #a3acb8; font-size: 10px; }
.expense-vendor strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.expense-vendor small { display: block; margin-top: 4px; color: #9aa4b1; font-size: 9px; }
.money-cell { display: flex; flex-direction: column; gap: 4px; }
.money-cell small { color: #a0a9b5; font-size: 8px; }
.money-cell strong { font-size: 10px; font-weight: 600; }
.amount-input { width: 94px; height: 31px; padding: 0 7px; border: 1px solid #e8edf3; border-radius: 4px; outline: 0; font-size: 10px; text-align: right; }
.amount-input:focus { border-color: #81a9e9; }
.row-remove { width: 26px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: #a0abba; font-size: 15px; }
.row-remove:hover { background: #fff3f0; color: var(--red); }
.table-foot { display: flex; justify-content: flex-end; gap: 22px; padding: 12px 16px; border-top: 1px solid #eef1f5; color: #7d8999; font-size: 9px; }
.table-foot b { color: #3a4b62; font-size: 10px; }
.empty { padding: 33px 15px; color: #9aa5b3; text-align: center; font-size: 11px; }
.form-stack { display: grid; gap: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-field label { display: block; margin-bottom: 6px; color: #8290a2; font-size: 9px; }
.form-field .field { min-height: 35px; padding: 0 9px; border-radius: 5px; font-size: 10px; }
.form-field textarea.field { min-height: 58px; padding-top: 8px; resize: vertical; }
.form-note { color: #98a3b0; font-size: 9px; line-height: 1.7; }
.summary-box { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 12px 0; padding: 12px; border-radius: 6px; background: #f7f9fc; }
.summary-box span { display: block; color: #8d99aa; font-size: 9px; }
.summary-box strong { display: block; margin-top: 5px; font-size: 14px; }
.summary-large { color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 11px 12px; background: #f9fafc; color: #8591a2; text-align: left; font-size: 9px; font-weight: 600; }
.data-table td { padding: 11px 12px; border-top: 1px solid #eff2f6; color: #506078; font-size: 10px; }
.data-table tr:hover td { background: #fbfcfe; }
.data-table tfoot td { background: #fffbf2; color: #546176; font-weight: 700; }
.report-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.report-link { min-height: 87px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; }
.report-link:hover { border-color: #c7d9f5; }
.report-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 8px; background: #fff1ee; color: #dc7361; font-size: 16px; }
.report-icon.blue { background: #edf4ff; color: #4c85d9; }
.report-icon.green { background: #eef8f2; color: #429e78; }
.report-icon.orange { background: #fff5e9; color: #d69544; }
.report-link strong { display: block; font-size: 11px; }
.report-link small { display: block; margin-top: 5px; color: #919dad; font-size: 9px; }
.report-link .arrow { margin-left: auto; color: #a9b2bf; font-size: 14px; }
.management-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.management-panel { min-height: 190px; }
.management-panel .button { min-height: 30px; font-size: 10px; }
.dashboard-empty,.loading-state { display: grid; place-items: center; min-height: 170px; color: #9aa5b3; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 400px; padding: 12px 16px; border: 1px solid #dbe6da; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px #26364a18; color: #486655; font-size: 11px; animation: toastIn .18s ease-out; }
.toast.error { border-color: #f0ddd7; color: #a84c46; }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; padding: 18px; background: #17243848; }
.modal { width: min(510px,100%); max-height: 90vh; overflow: auto; padding: 19px; border: 1px solid #e8edf4; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px #18304a27; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.modal-header h2 { margin: 0; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.check-option { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #edf0f5; border-radius: 5px; color: #64738a; font-size: 10px; }
.audit-timeline { display: grid; gap: 10px; }
.audit-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.audit-mark { width: 7px; height: 7px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: #e28a70; }
.audit-item strong { display: block; font-size: 10px; }
.audit-item small { display: block; margin-top: 4px; color: #939eac; font-size: 9px; }
.mobile-header,.mobile-nav { display: none; }
@media (min-width: 1500px) { .page { padding-right: 42px; padding-left: 42px; } .topbar { padding-right: 42px; padding-left: 42px; } }
@media (max-width: 1100px) { .sidebar { width: 205px; } .main { margin-left: 205px; } .page { padding-right: 22px; padding-left: 22px; } .topbar { padding-right: 22px; padding-left: 22px; } .section-grid { grid-template-columns: minmax(0,1.35fr) minmax(225px,.9fr); } .expense-row { grid-template-columns: 24px minmax(0,1fr) 83px 83px 26px; gap: 5px; padding-right: 9px; padding-left: 9px; } .amount-input { width: 73px; } }
@media (max-width: 780px) { .login-shell { grid-template-columns: 1fr; } .login-art { display: none; } .login-panel { min-height: 100vh; } .sidebar { display: none; } .main { margin-left: 0; padding-bottom: 64px; } .topbar { min-height: 55px; padding: 0 15px; } .page { padding: 22px 15px 28px; } .mobile-header { display: flex; align-items: center; gap: 8px; margin-right: auto; } .mobile-header .brand-mark { width: 29px; height: 29px; border-radius: 9px; font-size: 14px; } .mobile-header strong { font-size: 12px; } .breadcrumb { display: none; } .topbar-right { gap: 6px; } .top-select { max-width: 112px; height: 31px; font-size: 10px; } .top-date { width: 118px; height: 31px; font-size: 10px; } .topbar-right > .button { display: none; } .mobile-nav { height: 59px; position: fixed; inset: auto 0 0; z-index: 7; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom); } .mobile-nav button { display: grid; align-content: center; justify-items: center; gap: 4px; border: 0; background: transparent; color: #919dad; font-size: 9px; } .mobile-nav button span:first-child { font-size: 16px; } .mobile-nav button.active { color: var(--blue); font-weight: 600; } .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .metric-card { min-height: 93px; padding: 11px; } .metric-value { margin-top: 10px; font-size: 20px; } .section-grid,.workspace-grid,.management-grid { grid-template-columns: 1fr; } .section-grid { gap: 9px; } .panel { padding: 13px; } .chart-wrap { height: 160px; } .page-heading h1 { font-size: 19px; } .page-heading { align-items: flex-start; } .heading-actions .button { min-height: 32px; padding: 0 9px; font-size: 10px; } .filter-row { flex-wrap: wrap; gap: 7px; } .filter-spacer { flex-basis: 100%; order: 3; height: 0; } .filter-search { flex: 1; width: auto; min-width: 155px; } .store-chips { width: 100%; overflow-x: auto; } .store-chip { flex: 0 0 auto; } .today-strip { flex-wrap: wrap; gap: 8px 12px; } .today-strip .status-pill { margin-left: 0; } .expense-row { grid-template-columns: 22px minmax(0,1fr) 74px 74px 24px; } .amount-input { width: 66px; height: 29px; font-size: 9px; } .expense-vendor strong { font-size: 9px; } .table-wrap { margin-right: -2px; } .report-cards { gap: 8px; } .report-link { min-height: 77px; gap: 8px; padding: 10px; } .report-icon { width: 32px; height: 32px; } .modal { padding: 15px; } }
@media (max-width: 380px) { .top-date { width: 106px; } .expense-row { grid-template-columns: 17px minmax(0,1fr) 66px 66px 22px; gap: 4px; } .amount-input { width: 60px; padding: 0 4px; } .metric-card .metric-top { font-size: 9px; } .page { padding-right: 11px; padding-left: 11px; } }
