:root {
  --navy-950: #111a2e;
  --navy-900: #182238;
  --navy-800: #25314b;
  --ink: #172033;
  --muted: #748097;
  --line: #e5e9f0;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --emerald: #18a779;
  --emerald-soft: #e7f7f1;
  --orange: #ee8d42;
  --orange-soft: #fff3e8;
  --coral: #ea665f;
  --coral-soft: #fff0ee;
  --violet: #7067d9;
  --violet-soft: #f0effd;
  --blue: #3677e8;
  --blue-soft: #eaf1ff;
  --shadow: 0 18px 45px rgba(26, 39, 65, .08);
  --shadow-soft: 0 8px 28px rgba(26, 39, 65, .07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --sidebar-width: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 28px 18px 20px; display: flex; flex-direction: column; color: rgba(255,255,255,.78); background: radial-gradient(circle at 18% 15%, rgba(112,103,217,.26), transparent 32%), linear-gradient(165deg, #111a2e, #182238 58%, #121b2f); box-shadow: 12px 0 40px rgba(15,24,43,.13); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.brand-mark span { position: absolute; width: 25px; height: 7px; border: 2px solid; border-radius: 99px; transform: rotate(-32deg); }
.brand-mark span:nth-child(1) { top: 7px; color: #8b82f0; }
.brand-mark span:nth-child(2) { top: 15px; color: #51cfa7; }
.brand-mark span:nth-child(3) { top: 23px; color: #f1a158; }
.brand-mark.large { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px; background: rgba(255,255,255,.09); }
.brand-mark.large span { width: 35px; height: 9px; }
.brand-mark.large span:nth-child(1) { top: 10px; }.brand-mark.large span:nth-child(2) { top: 22px; }.brand-mark.large span:nth-child(3) { top: 34px; }
.nav-list { margin-top: 34px; display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 44px; padding: 0 13px; border: 0; border-radius: 12px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; color: rgba(255,255,255,.6); background: transparent; text-align: left; cursor: pointer; transition: .18s ease; font-size: 12px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 0 #67d6b3; }
.nav-icon { font-size: 14px; text-align: center; }
.nav-count { min-width: 24px; padding: 3px 7px; border-radius: 99px; color: #c9c5ff; background: rgba(112,103,217,.18); font-size: 10px; text-align: center; }
.nav-count-alert { color: #ffb7ad; background: rgba(234,102,95,.17); }
.sidebar-note { margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; background: rgba(255,255,255,.045); }
.sidebar-note p { margin: 0; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.65; }
.sidebar-note strong { color: rgba(255,255,255,.88); font-size: 11px; }
.pulse-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #54d6ae; box-shadow: 0 0 0 5px rgba(84,214,174,.12); }
.sidebar-footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.42); }
.sidebar-footer > span { min-width: 0; display: flex; flex-direction: column; }
.sidebar-footer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer strong { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 9px; text-transform: uppercase; }
.sidebar-footer form { margin: 0; }.sidebar-footer button { border: 0; color: rgba(255,255,255,.54); background: transparent; font-size: 10px; cursor: pointer; }
.mobile-header, .bottom-nav { display: none; }

.main-content { margin-left: var(--sidebar-width); min-height: 100vh; padding: 38px clamp(28px, 4vw, 60px) 64px; }
.view { display: none; animation: fadeIn .2s ease; }.view.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 4px 0 7px; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -.045em; }
.compact-heading h1 { font-size: clamp(27px, 2.6vw, 36px); }
.eyebrow, .panel-kicker { margin: 0; color: var(--violet); font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: .15em; }
.page-lead { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.month-control { height: 44px; min-width: 190px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); background: rgba(255,255,255,.88); box-shadow: 0 5px 20px rgba(26,39,65,.03); font-size: 10px; font-weight: 700; }
.month-control input { min-width: 112px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box { height: 44px; min-width: 280px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 9px; color: #9aa3b4; background: rgba(255,255,255,.86); box-shadow: 0 5px 20px rgba(26,39,65,.03); }
.search-box.small { min-width: 220px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.secondary-button, .primary-button { min-height: 44px; padding: 0 16px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); }
.secondary-button.compact,.primary-button.compact { min-height: 36px; padding: 0 12px; border-radius: 11px; }
.primary-button { border: 0; color: #fff; background: linear-gradient(135deg, #5f57ca, #7e74e5); box-shadow: 0 12px 28px rgba(112,103,217,.22); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.data-banner { margin: 20px 0; padding: 13px 16px; border: 1px solid #dfe3fb; border-radius: 15px; display: flex; justify-content: space-between; gap: 18px; align-items: center; background: linear-gradient(110deg, #f6f5ff, #fff); }
.data-banner > div { display: flex; align-items: center; gap: 12px; }
.data-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.data-banner strong { color: var(--ink); }
.data-banner.warning { border-color: #f3dbc5; background: linear-gradient(110deg, #fff8f0, #fff); }
.data-banner.warning .banner-icon { background: var(--orange); }
.banner-icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--violet); font-size: 11px; font-weight: 900; }
.data-banner button { border: 0; color: var(--violet); background: transparent; font-size: 10px; font-weight: 900; white-space: nowrap; cursor: pointer; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 132px; padding: 18px; overflow: hidden; border: 1px solid rgba(226,230,238,.85); border-radius: var(--radius-lg); background: rgba(255,255,255,.93); box-shadow: var(--shadow-soft); }
.metric-action { width: 100%; color: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.metric-action:hover { border-color: var(--accent); box-shadow: 0 14px 32px rgba(26,39,65,.11); }
.metric-card::after { content: ""; position: absolute; right: -28px; bottom: -40px; width: 90px; height: 90px; border-radius: 50%; background: var(--tint); opacity: .8; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.metric-icon { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--tint); font-size: 10px; }
.metric-value { position: relative; z-index: 1; display: block; margin-top: 15px; font-size: clamp(22px, 2vw, 29px); letter-spacing: -.04em; }
.metric-foot { position: relative; z-index: 1; margin-top: 6px; color: #9099aa; font-size: 9px; }
.panel { border: 1px solid rgba(226,230,238,.9); border-radius: var(--radius-xl); background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
.panel-heading { padding: 20px 22px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 15px; }
.text-button { border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.status-chip { padding: 6px 9px; border-radius: 9px; font-size: 8px; font-weight: 800; }.status-chip.neutral { color: #737d90; background: #f1f3f7; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(300px,.82fr); gap: 16px; margin-bottom: 17px; }
.focus-panel, .progress-panel { min-height: 322px; }.attention-list { padding: 0 16px 17px; display: grid; gap: 7px; }
.attention-item { width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 13px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; color: inherit; background: #f8f9fb; text-align: left; cursor: pointer; transition: .18s ease; }
.attention-item:hover { border-color: #dedbf9; background: #fbfaff; transform: translateX(2px); }
.attention-rank { width: 36px; min-height: 32px; padding: 5px 3px; border-radius: 10px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); font-size: 8px; line-height: 1.1; font-weight: 900; text-align: center; }
.attention-rank.danger { color: var(--coral); background: var(--coral-soft); }.attention-rank.warning { color: var(--orange); background: var(--orange-soft); }
.attention-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.attention-copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.attention-amount { color: var(--violet); font-size: 10px; font-weight: 900; white-space: nowrap; }
.rate-rings { padding: 8px 18px 14px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.donut { --angle: 0deg; width: 112px; height: 112px; padding: 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--emerald) 0deg, var(--emerald) var(--angle), #eef1f5 var(--angle)); }
.donut.blue { background: conic-gradient(var(--blue) 0deg, var(--blue) var(--angle), #eef1f5 var(--angle)); }
.donut::before { content: ""; grid-area: 1/1; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.donut > div { z-index: 1; grid-area: 1/1; text-align: center; }.donut strong { display: block; font-size: 20px; }.donut span { color: var(--muted); font-size: 8px; }
.mini-stat-row { padding: 0 18px 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.mini-stat { padding: 9px; border-radius: 11px; background: #f5f6f9; }.mini-stat span { display: block; color: var(--muted); font-size: 8px; }.mini-stat strong { display: block; margin-top: 4px; font-size: 10px; }
.order-spotlight { padding-bottom: 18px; }.order-card-grid { padding: 0 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.order-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; transition: .2s ease; }
.order-card:hover { border-color: #cbc7f3; box-shadow: 0 10px 25px rgba(50,57,85,.08); transform: translateY(-2px); }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }.order-card h3 { margin: 0; font-size: 12px; }.order-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.direction-tag { padding: 5px 7px; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 900; white-space: nowrap; }
.direction-tag.warning { color: var(--orange); background: var(--orange-soft); }
.order-progress { height: 6px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; background: #edf0f4; }.order-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #9a8ff2); }
.order-card-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }.order-card-foot strong { color: var(--ink); font-size: 9px; }

.table-panel { margin-top: 22px; overflow: hidden; }.table-toolbar { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.responsive-table { width: 100%; overflow-x: auto; }.data-table { width: 100%; min-width: 920px; border-collapse: collapse; }.data-table th { padding: 11px 13px; color: var(--muted); background: #fafbfc; font-size: 8px; text-align: left; white-space: nowrap; }.data-table td { padding: 13px; border-top: 1px solid #edf0f4; font-size: 9px; vertical-align: middle; }.data-table tr[data-order-id] { cursor: pointer; }.data-table tbody tr:hover { background: #faf9ff; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }.table-primary strong { display: block; font-size: 10px; }.table-primary small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.status-pill { display: inline-flex; padding: 5px 7px; border-radius: 8px; color: var(--emerald); background: var(--emerald-soft); font-size: 8px; font-weight: 900; white-space: nowrap; }.status-pill.warning { color: var(--orange); background: var(--orange-soft); }.status-pill.danger { color: var(--coral); background: var(--coral-soft); }.status-pill.violet { color: var(--violet); background: var(--violet-soft); }

.import-period-bar { margin-top: 18px; padding: 14px 16px; border: 1px solid #dedbf9; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--violet-soft); }.import-period-bar strong { font-size: 10px; }.import-period-bar p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }.import-period-bar label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }.import-period-bar input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.import-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.import-card { position: relative; padding: 22px; overflow: hidden; }.import-step { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); font-size: 9px; font-weight: 900; }.import-step.orange { color: var(--orange); background: var(--orange-soft); }.import-step.blue { color: var(--blue); background: var(--blue-soft); }
.import-card h2 { margin: 18px 0 7px; font-size: 14px; }.import-card p { min-height: 54px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }.import-card button { width: 100%; height: 38px; margin-top: 18px; border: 1px solid #dedbf9; border-radius: 11px; color: var(--violet); background: #fff; font-size: 9px; font-weight: 900; cursor: pointer; }.import-card button:hover { background: var(--violet-soft); }
.import-preview { margin-top: 16px; overflow: hidden; }.empty-state { min-height: 180px; display: grid; place-content: center; gap: 6px; color: var(--muted); text-align: center; }.empty-state strong { color: var(--ink); font-size: 13px; }.empty-state p { margin: 0; font-size: 9px; }
.document-type-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.document-type-grid button { position: relative; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); text-align: left; cursor: pointer; }
.document-type-grid button:hover { border-color: #bdb8ee; }
.document-type-grid span,.document-type-grid small { display: block; }
.document-type-grid span { font-size: 10px; font-weight: 900; }.document-type-grid small { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.4; }.document-type-grid b { position: absolute; right: 11px; top: 10px; color: var(--violet); font-size: 15px; }
.document-ledger,.candidate-panel { margin-top: 16px; }
.row-actions { display: flex; gap: 7px; }.row-actions button { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 900; cursor: pointer; }.row-actions .danger-link { color: var(--coral); background: var(--coral-soft); }.source-locked { color: var(--muted); font-size: 8px; }
.order-status-cell { display: flex; align-items: center; gap: 7px; }.order-status-cell button { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 900; cursor: pointer; }.order-status-toolbar { margin-bottom: 12px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }.order-status-toolbar span,.order-status-toolbar strong { display: block; }.order-status-toolbar span { color: var(--muted); font-size: 8px; }.order-status-toolbar strong { margin-top: 3px; font-size: 13px; }
.preview-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }.preview-head h2 { margin: 0; font-size: 14px; }.preview-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.preview-actions { display: flex; gap: 8px; }.preview-meta { padding: 12px 20px; display: flex; gap: 8px; flex-wrap: wrap; background: #fafbfc; }.preview-meta span { padding: 6px 8px; border-radius: 8px; color: var(--muted); background: #fff; font-size: 8px; }
.bom-preview-summary { padding: 0 20px 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; background: #fafbfc; }.bom-preview-summary article { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.bom-preview-summary span,.bom-preview-summary strong { display: block; }.bom-preview-summary span { color: var(--muted); font-size: 8px; }.bom-preview-summary strong { margin-top: 5px; font-size: 13px; }
.issue-strip { padding: 12px 20px; border-top: 1px solid #f3e2d4; color: #9a612f; background: #fff8f1; font-size: 9px; line-height: 1.6; }
.snapshot-diff { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.snapshot-diff-head { padding: 16px 20px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.snapshot-diff-head strong { font-size: 12px; }.snapshot-diff-head p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }.snapshot-diff-head > span { padding: 6px 8px; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 900; white-space: nowrap; }
.snapshot-stats { padding: 0 20px 14px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }.snapshot-stat { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }.snapshot-stat span { display: block; color: var(--muted); font-size: 8px; }.snapshot-stat strong { display: block; margin-top: 5px; font-size: 15px; }.snapshot-stat.increased strong,.delta-number { color: var(--emerald); }.snapshot-stat.decreased strong,.delta-number.negative { color: var(--coral); }.snapshot-stat.removed strong { color: var(--orange); }
.snapshot-warning { margin: 0 20px 14px; padding: 11px 13px; border-radius: 11px; color: #96572a; background: var(--orange-soft); font-size: 9px; line-height: 1.6; }.snapshot-table { min-width: 1120px; }.change-pill { display: inline-flex; padding: 5px 7px; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-weight: 900; }.change-pill.increased { color: var(--emerald); background: var(--emerald-soft); }.change-pill.decreased,.change-pill.removed { color: var(--coral); background: var(--coral-soft); }.snapshot-empty { padding: 18px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: center; }

.review-summary { margin-top: 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.review-summary-card { padding: 17px; border-radius: 17px; background: #fff; box-shadow: var(--shadow-soft); }.review-summary-card span { color: var(--muted); font-size: 9px; }.review-summary-card strong { display: block; margin-top: 9px; font-size: 22px; }.review-summary-card p { margin: 6px 0 0; color: var(--muted); font-size: 8px; }
.review-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.review-card { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-soft); }.review-card-top { display: flex; align-items: center; justify-content: space-between; }.review-card h3 { margin: 14px 0 6px; font-size: 11px; }.review-card p { min-height: 46px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }.review-card-foot { margin-top: 14px; padding-top: 11px; border-top: 1px solid #edf0f4; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }.review-type { padding: 5px 7px; border-radius: 8px; color: var(--orange); background: var(--orange-soft); font-size: 8px; font-weight: 900; }.review-type.danger { color: var(--coral); background: var(--coral-soft); }
.review-source { margin-top: 12px; color: var(--muted); font-size: 8px; }.review-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 7px; }.review-actions button { min-height: 34px; padding: 0 11px; }

.payable-kpis { margin-top: 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.compact-kpi { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }.compact-kpi span { color: var(--muted); font-size: 8px; }.compact-kpi strong { display: block; margin-top: 7px; font-size: 17px; }.supplier-materials { max-width: 260px; }.supplier-materials button { padding: 0; border: 0; color: var(--violet); background: transparent; font-size: 8px; cursor: pointer; }.supplier-materials small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.4; }
.supplier-card-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }.supplier-card-grid button { padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); text-align: left; cursor: pointer; }.supplier-card-grid span,.supplier-card-grid strong,.supplier-card-grid small,.supplier-card-grid em { display: block; }.supplier-card-grid span { min-height: 28px; font-size: 10px; font-weight: 900; }.supplier-card-grid strong { margin-top: 7px; color: var(--violet); font-size: 19px; }.supplier-card-grid small { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }.supplier-card-grid em { margin-top: 10px; color: var(--muted); font-size: 8px; font-style: normal; }

.closing-panel { margin-top: 16px; overflow: hidden; }.closing-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.closing-head h2 { margin: 0; font-size: 14px; }.closing-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.lock-badge { padding: 7px 9px; border-radius: 9px; color: var(--emerald); background: var(--emerald-soft); font-size: 8px; font-weight: 900; }.lock-badge.open { color: var(--orange); background: var(--orange-soft); }.closing-footer { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fafbfc; }.closing-footer p { margin: 0; color: var(--muted); font-size: 9px; }.closing-footer button { min-width: 150px; }
.monthly-summary { margin-top: 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.monthly-detail-panel { margin-top: 16px; }.accounting-detail-tabs { padding: 11px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 6px; background: #fafbfc; }.accounting-detail-tabs button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }.accounting-detail-tabs button.is-active { color: var(--violet); background: #fff; box-shadow: var(--shadow-soft); }
.accounting-task-intro { padding: 14px 18px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,#fffaf4,#fff); }.accounting-task-intro > div { min-width: 120px; }.accounting-task-intro span { display: block; color: var(--muted); font-size: 8px; }.accounting-task-intro strong { display: block; margin-top: 4px; font-size: 15px; }.accounting-task-intro p { margin: 0 0 0 auto; max-width: 600px; color: var(--muted); font-size: 9px; line-height: 1.65; }.accounting-action-table { min-width: 1550px; }.accounting-action-table td { vertical-align: top; line-height: 1.55; }.action-badge,.source-type { display: inline-flex; padding: 5px 7px; border-radius: 8px; color: var(--emerald); background: var(--emerald-soft); font-size: 8px; font-weight: 900; white-space: nowrap; }.action-badge.warning { color: var(--orange); background: var(--orange-soft); }.action-badge.danger { color: var(--coral); background: var(--coral-soft); }.source-type { margin-bottom: 4px; color: var(--violet); background: var(--violet-soft); }
.batch-action-bar { padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }.batch-action-bar label { color: var(--muted); font-size: 9px; font-weight: 800; }.batch-action-bar input { margin-right: 5px; }
.voucher-note { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; white-space: nowrap; }

.settings-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.settings-card { padding: 19px; }.settings-card h2 { margin: 0; font-size: 14px; }.settings-card > p { margin: 6px 0 15px; color: var(--muted); font-size: 9px; }.simple-list { display: grid; gap: 7px; }.simple-row { padding: 10px 11px; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f7f8fa; font-size: 9px; }.simple-row small { color: var(--muted); }
.backup-panel { margin-top: 22px; padding: 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; }.backup-panel h2 { margin: 5px 0 0; font-size: 15px; }.backup-panel > div:first-child > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 9px; }.backup-panel > button { min-width: 210px; }.backup-panel #backupResult { grid-column: 1/-1; }.backup-list { display: grid; gap: 7px; }.backup-list a { padding: 10px 12px; border-radius: 11px; display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 12px; color: var(--ink); background: #f7f8fa; font-size: 9px; }.backup-list span { color: var(--muted); }.backup-list em { color: var(--violet); font-style: normal; font-weight: 900; }.backup-empty { margin: 0; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: #f7f8fa; font-size: 9px; }
.leader-layout { margin-top: 22px; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 16px; }.leader-form, .security-card { padding: 24px; }.leader-form h2, .security-card h2 { margin: 0 0 18px; font-size: 16px; }.leader-form > label:not(.check-row) { display: grid; gap: 7px; color: var(--muted); font-size: 9px; }.leader-form input[type="month"] { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }.check-row { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }.check-row input { margin-top: 2px; accent-color: var(--violet); }.check-row strong { display: block; font-size: 10px; }.check-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }.leader-form .primary-button { width: 100%; margin-top: 18px; }.security-card { position: relative; overflow: hidden; }.security-mark { position: absolute; top: 22px; right: 24px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--emerald); background: var(--emerald-soft); font-weight: 900; }.security-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 2; }.security-card > p { margin: 18px 0 0; color: var(--violet); font-size: 9px; font-weight: 800; }.snapshot-result { margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--emerald-soft); font-size: 9px; line-height: 1.6; }.snapshot-result a { display: inline-flex; margin-top: 8px; color: var(--emerald); font-weight: 900; }

body.dialog-open { overflow: hidden; }.detail-overlay[hidden] { display: none!important; }.detail-overlay { position: fixed; inset: 0; z-index: 80; padding: 24px; display: grid; place-items: center; background: rgba(17,26,46,.58); }.detail-dialog { width: min(1320px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(16,25,45,.28); }.dialog-heading { flex: 0 0 auto; padding: 20px 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }.dialog-heading h2 { margin: 5px 0 0; font-size: 18px; }.dialog-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 20px; cursor: pointer; }.dialog-content { flex: 1 1 auto; min-height: 0; padding: 20px 23px 26px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }.relationship-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }.relationship-stat { padding: 11px; border-radius: 11px; background: #f5f6f9; }.relationship-stat span { display: block; color: var(--muted); font-size: 8px; }.relationship-stat strong { display: block; margin-top: 5px; font-size: 12px; }
.form-dialog { width: min(920px,calc(100vw - 48px)); height: auto; max-height: calc(100vh - 48px); }
.entry-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.allocation-form { display: grid; gap: 14px; }.allocation-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.allocation-summary > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }.allocation-summary span,.allocation-summary strong,.allocation-summary small { display: block; }.allocation-summary span,.allocation-summary small { color: var(--muted); font-size: 8px; }.allocation-summary strong { margin: 4px 0; font-size: 12px; }.allocation-search { width: 100%; }.allocation-table { max-height: 470px; border: 1px solid var(--line); border-radius: 12px; }.allocation-table .data-table { min-width: 980px; }.allocation-table thead th { position: sticky; top: 0; z-index: 2; }.allocation-amount { width: 130px; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }.allocation-form .form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.entry-form label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 800; }.entry-form input,.entry-form select,.entry-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; outline: 0; }.entry-form textarea { min-height: 80px; resize: vertical; }.entry-form input:focus,.entry-form select:focus,.entry-form textarea:focus { border-color: #aaa4e7; box-shadow: 0 0 0 3px var(--violet-soft); }.form-wide { grid-column: 1/-1; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; }.form-tip,.detail-explainer { padding: 11px 13px; border-radius: 11px; color: #776fba; background: var(--violet-soft); font-size: 9px; line-height: 1.6; }.detail-explainer { margin-bottom: 14px; }
.supplier-actions { margin-top: 18px; display: flex; gap: 10px; }
.danger-button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; color: #fff; background: var(--coral); font-weight: 900; cursor: pointer; }.danger-button:disabled { opacity: .45; }.warning-tip { color: #96572a; background: var(--orange-soft); }.form-error[hidden] { display: none; }
.relationship-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: var(--violet-soft); font-size: 9px; line-height: 1.6; }.flow-legend { margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 8px; }.flow-legend i { width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; display: inline-block; background: var(--emerald); }.flow-legend i.review { background: var(--violet); }.flow-legend i.wait { background: var(--orange); }
.relation-flow { min-width: 980px; padding: 18px; border: 1px solid #e8e6f8; border-radius: 17px; display: grid; grid-template-columns: repeat(7,minmax(115px,1fr)); gap: 22px; background: linear-gradient(120deg,#faf9ff,#fff); overflow-x: auto; }.relation-node { position: relative; min-height: 116px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }.relation-node:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 45%; color: #b5b1dd; font-size: 16px; font-weight: 900; }.relation-node span { color: var(--violet); font-size: 7px; font-weight: 900; letter-spacing: .09em; }.relation-node strong { display: block; margin-top: 8px; font-size: 10px; }.relation-node p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.relation-node b { position: absolute; left: 12px; bottom: 12px; font-size: 10px; }.relation-node em { position: absolute; right: 9px; bottom: 9px; padding: 4px 6px; border-radius: 7px; color: var(--orange); background: var(--orange-soft); font-size: 7px; font-style: normal; font-weight: 900; }.node-details { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.node-detail { padding: 13px; border: 1px solid var(--line); border-radius: 13px; }.node-detail h3 { margin: 0 0 8px; font-size: 10px; }.node-detail p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.order-tabs { margin: 18px 0 14px; padding: 4px; width: fit-content; border-radius: 12px; display: flex; gap: 3px; background: #f0f2f6; }.order-tabs button { min-width: 106px; padding: 9px 17px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; }.order-tabs button.is-active { color: var(--violet); background: #fff; box-shadow: 0 4px 14px rgba(31,42,68,.09); }.order-tab-panel { display: none; }.order-tab-panel.is-active { display: block; }
.supplier-cost-strip { padding: 13px 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; background: #fafbfc; }.supplier-cost-strip article { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.supplier-cost-strip span,.supplier-cost-strip strong,.supplier-cost-strip small { display: block; }.supplier-cost-strip span { min-height: 26px; font-size: 9px; font-weight: 900; }.supplier-cost-strip strong { margin-top: 5px; color: var(--violet); font-size: 14px; }.supplier-cost-strip small { margin-top: 4px; color: var(--muted); font-size: 7px; }.source-chain-table { min-width: 1500px; }.source-chain-table td { vertical-align: top; }
.mind-map { min-width: 1050px; padding: 28px 24px 25px; border: 1px solid #e8e6f8; border-radius: 19px; overflow-x: auto; background: radial-gradient(circle at 50% 42%,rgba(112,103,217,.09),transparent 28%),linear-gradient(135deg,#faf9ff,#fff 55%,#f7fbff); }.map-mainline { display: grid; grid-template-columns: repeat(5,minmax(150px,1fr)); align-items: center; gap: 36px; }.map-node { position: relative; min-height: 120px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); text-align: left; cursor: pointer; }.map-node:hover { border-color: #bbb6ef; box-shadow: 0 12px 26px rgba(47,53,83,.1); }.map-mainline .map-node:not(:last-child)::after { content: "→"; position: absolute; right: -28px; top: 43%; color: #a7a2d8; font-size: 19px; font-weight: 900; }.map-node span { color: var(--violet); font-size: 7px; font-weight: 900; letter-spacing: .12em; }.map-node strong { display: block; margin-top: 8px; font-size: 11px; }.map-node p { min-height: 28px; margin: 6px 0 19px; color: var(--muted); font-size: 8px; line-height: 1.5; }.map-node b { font-size: 11px; }.map-node em { float: right; padding: 4px 6px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 7px; font-style: normal; font-weight: 900; }.map-order { border: 2px solid #8e86e8; background: linear-gradient(150deg,#fff,#f3f1ff); }.map-order em { color: var(--orange); background: var(--orange-soft); }.map-cost-branches { position: relative; width: 72%; margin: 64px auto 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }.map-cost-branches::before { content: ""; position: absolute; top: -31px; left: 12.5%; right: 12.5%; border-top: 2px solid #d5d1f1; }.map-cost-branches::after { content: ""; position: absolute; top: -63px; left: 50%; height: 33px; border-left: 2px solid #d5d1f1; }.map-cost-branches .map-node::before { content: ""; position: absolute; top: -32px; left: 50%; height: 31px; border-left: 2px solid #d5d1f1; }.map-cost-branches .map-node { min-height: 110px; }.map-help { margin-left: auto; }
.accounting-section { scroll-margin-top: 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; }.section-title { padding: 15px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fafbfc; }.section-title h3 { margin: 0; font-size: 12px; }.section-title p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }.section-title > span { color: var(--muted); font-size: 8px; }.compact-table { min-width: 680px; }.material-grain-note { margin: 12px 14px 0; }.material-table { min-width: 2550px; }.material-table td { padding: 9px 8px; vertical-align: top; }.number-editor,.material-note { width: 92px; min-height: 34px; padding: 5px 7px; border: 1px solid #dfe3ea; border-radius: 8px; color: var(--ink); background: #fff; font-size: 9px; outline: 0; }.number-editor { text-align: right; }.number-editor:focus,.material-note:focus { border-color: #aaa4e7; box-shadow: 0 0 0 3px var(--violet-soft); }.material-note { width: 210px; }.number-editor:disabled,.material-note:disabled { color: var(--muted); background: #f4f5f7; }.variance-cell { color: var(--orange); font-weight: 900; }.row-save { min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; color: #fff; background: var(--violet); font-size: 8px; font-weight: 900; cursor: pointer; }.row-save:disabled { opacity: .45; cursor: not-allowed; }.row-status { display: block; width: 86px; margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.3; }.compact-empty { min-height: 110px; }
.bom-filter-bar { position: sticky; top: 0; z-index: 6; padding: 12px 16px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: #fff; }.bom-filter-bar label { min-width: 350px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; font-weight: 900; }.bom-filter-bar select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }.bom-filter-bar p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }.bom-subsection { border-top: 1px solid var(--line); }.bom-subsection:first-of-type { border-top: 0; }.bom-subsection h4 { margin: 0; padding: 12px 16px; color: var(--violet); background: var(--violet-soft); font-size: 10px; }.bom-detail-table { min-width: 1120px; }.bom-detail-table td { vertical-align: top; }.data-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.4; }.bom-filter-hidden { display: none!important; }.bom-scroll,.bom-overview-scroll { max-height: 500px; overflow: auto; scrollbar-gutter: stable both-edges; }.bom-overview-scroll { max-height: 380px; }.bom-scroll .data-table thead th,.bom-overview-scroll .data-table thead th { position: sticky; top: 0; z-index: 4; box-shadow: 0 1px 0 var(--line); }.bom-scroll .data-table th:first-child,.bom-scroll .data-table td:first-child { position: sticky; left: 0; z-index: 3; background: #fff; box-shadow: 1px 0 0 var(--line); }.bom-scroll .data-table thead th:first-child { z-index: 5; background: #fafbfc; }.bom-table-jump { padding: 0; border: 0; color: var(--violet); background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.source-ledger-toolbar { padding: 12px 16px; display: grid; grid-template-columns: 130px 130px minmax(260px,1fr); gap: 10px; align-items: end; border-bottom: 1px solid var(--line); background: #fff; }.source-ledger-toolbar > div { padding: 9px 11px; border-radius: 10px; background: var(--violet-soft); }.source-ledger-toolbar span,.source-ledger-toolbar strong { display: block; }.source-ledger-toolbar span { color: var(--muted); font-size: 8px; }.source-ledger-toolbar strong { margin-top: 4px; font-size: 13px; }.source-ledger-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }.source-ledger-toolbar input { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; }.source-ledger-list { max-height: 570px; padding: 8px; overflow-y: auto; scrollbar-gutter: stable; background: #f7f8fa; }.source-ledger-row { padding: 10px 11px; display: grid; grid-template-columns: 150px minmax(230px,1.6fr) 135px 140px minmax(210px,1fr); gap: 12px; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }.source-ledger-row:first-child { border-radius: 10px 10px 0 0; }.source-ledger-row:last-child { border: 0; border-radius: 0 0 10px 10px; }.source-ledger-row[hidden] { display: none; }.source-ledger-row strong,.source-ledger-row small,.source-ledger-row span { display: block; }.source-ledger-row strong { font-size: 9px; }.source-ledger-row small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.4; }.source-ledger-number { text-align: right; }.source-ledger-number > strong { margin-top: 4px; color: var(--violet); font-size: 11px; }
.requisition-source-note { margin: 12px 16px 0; padding: 10px 12px; border: 1px solid #d9d2fb; border-radius: 10px; color: #4d426f; background: #f7f5ff; font-size: 8px; line-height: 1.55; }.requisition-document-grid { max-height: 390px; padding: 10px 16px 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow-y: auto; scrollbar-gutter: stable; }.requisition-document-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }.requisition-document-card:hover { border-color: var(--violet); background: var(--violet-soft); }.requisition-document-head { display: flex; justify-content: space-between; gap: 10px; }.requisition-document-head span,.requisition-document-head strong { display: block; }.requisition-document-head span { color: var(--muted); font-size: 7px; }.requisition-document-head strong { margin-top: 3px; font-size: 10px; }.requisition-document-head b { color: var(--violet); font-size: 12px; }.requisition-document-card p { margin: 7px 0 0; font-size: 8px; line-height: 1.45; }.requisition-document-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.requisition-preview-summary { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbfc; }.requisition-preview-kpis { padding: 10px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.requisition-preview-kpis article { padding: 10px 12px; border-radius: 10px; background: #fff; }.requisition-preview-kpis span,.requisition-preview-kpis strong { display: block; }.requisition-preview-kpis span { color: var(--muted); font-size: 8px; }.requisition-preview-kpis strong { margin-top: 4px; font-size: 13px; }.requisition-cost-ok,.requisition-duplicate-note { margin: 0 10px 10px; padding: 9px 11px; border-radius: 9px; font-size: 8px; font-weight: 800; }.requisition-cost-ok { color: #17613d; background: #eaf8f0; }.requisition-duplicate-note { color: #76521a; background: #fff2d9; }.requisition-preview-docs { max-height: 310px; padding: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; overflow-y: auto; border-top: 1px solid var(--line); }.requisition-preview-docs article { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.requisition-preview-docs article div { display: flex; justify-content: space-between; gap: 10px; }.requisition-preview-docs article span { font-size: 8px; font-weight: 800; }.requisition-preview-docs article strong { color: var(--violet); font-size: 10px; }.requisition-preview-docs article p { margin: 6px 0 0; font-size: 8px; line-height: 1.4; }.requisition-preview-docs article small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.4; }.requisition-preview-docs .requisition-change-badge { display: inline-block; margin-top: 7px; padding: 3px 6px; border-radius: 999px; color: #17613d; background: #eaf8f0; }.requisition-preview-docs .requisition-change-badge.changed { color: #76521a; background: #fff2d9; }.requisition-preview-docs .requisition-change-badge.unchanged { color: var(--muted); background: #eef1f4; }
.reconciliation-kpis { padding: 12px 16px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; background: #f7f8fa; }.reconciliation-kpis article { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.reconciliation-kpis span,.reconciliation-kpis strong { display: block; }.reconciliation-kpis span { color: var(--muted); font-size: 7px; }.reconciliation-kpis strong { margin-top: 5px; font-size: 12px; }.reconciliation-table { min-width: 1450px; }.material-reconciliation .bom-scroll { max-height: 420px; }
.bom-tree { margin-top: 14px; padding: 18px; border: 1px solid #e8e6f8; border-radius: 18px; background: linear-gradient(135deg,#faf9ff,#fff); }.bom-tree-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.bom-tree-title h3 { margin: 3px 0 0; font-size: 13px; }.bom-tree-title p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 8px; }.bom-tree-root { min-width: 300px; padding: 12px 14px; border: 2px solid #8e86e8; border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }.bom-tree-root span,.bom-tree-root strong,.bom-tree-root small { display: block; }.bom-tree-root span { color: var(--violet); font-size: 7px; font-weight: 900; }.bom-tree-root strong { margin-top: 5px; font-size: 12px; }.bom-tree-root small { margin-top: 5px; color: var(--muted); font-size: 8px; }.bom-tree-groups { margin-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.bom-tree-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.bom-tree-group-head { padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f7f8fa; }.bom-tree-group-head span,.bom-tree-group-head strong { display: block; }.bom-tree-group-head span { color: var(--muted); font-size: 7px; }.bom-tree-group-head strong { margin-top: 3px; font-size: 10px; }.bom-tree-group-head b { color: var(--violet); font-size: 7px; }.bom-tree-children { padding: 7px; display: grid; gap: 6px; }.bom-tree-children button { padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: #fafbfc; text-align: left; cursor: pointer; }.bom-tree-children button:hover { border-color: #c8c4ef; background: var(--violet-soft); }.bom-tree-children span,.bom-tree-children strong,.bom-tree-children small { display: block; }.bom-tree-children span { color: var(--violet); font-size: 8px; font-weight: 900; }.bom-tree-children strong { margin-top: 3px; font-size: 8px; }.bom-tree-children small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 340px; padding: 12px 15px; border-radius: 12px; color: #fff; background: var(--navy-900); box-shadow: 0 18px 44px rgba(15,24,43,.25); font-size: 10px; line-height: 1.5; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: none; }.toast.error { background: #a7423e; }

.skeleton-block:empty { min-height: 190px; background: linear-gradient(90deg,#f8f9fb,#fff,#f8f9fb); background-size: 200% 100%; animation: shimmer 1.4s infinite; }.skeleton { color: transparent!important; border-color: transparent!important; background: linear-gradient(90deg,#f2f4f7,#fafbfc,#f2f4f7)!important; background-size: 200% 100%!important; animation: shimmer 1.4s infinite!important; }.skeleton * { visibility: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }

.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 18% 15%, rgba(112,103,217,.35), transparent 30%), linear-gradient(140deg,#111a2e 0 48%,#f4f6fa 48%); }.login-shell { width: min(980px,calc(100% - 36px)); display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }.login-brand { color: #fff; }.login-brand .eyebrow { margin-top: 28px; color: #8f87ee; }.login-brand h1 { margin: 12px 0; font-size: clamp(38px,5vw,58px); line-height: 1.08; letter-spacing: -.05em; }.login-brand p:last-child { max-width: 420px; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.8; }.login-card { padding: 34px; border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 28px 80px rgba(16,25,45,.2); }.login-card h2 { margin: 7px 0; font-size: 22px; }.login-card > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }.login-card form { margin-top: 24px; display: grid; gap: 14px; }.login-card label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 800; }.login-card input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; }.login-card input:focus { border-color: #bcb6ed; box-shadow: 0 0 0 3px var(--violet-soft); }.login-card > small { display: block; margin-top: 16px; color: #a0a8b6; font-size: 8px; text-align: center; }.form-error { margin-top: 15px; padding: 10px; border-radius: 10px; color: #9f3e39; background: var(--coral-soft); font-size: 9px; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-card-grid, .review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .import-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.import-card p { min-height: 0; }
  .relationship-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .document-type-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .supplier-cost-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .snapshot-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bom-tree-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-ledger-row { grid-template-columns: 130px minmax(210px,1fr) 120px 130px minmax(180px,1fr); }
  .reconciliation-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 270px; }
  .sidebar { left: -285px; transition: left .22s ease; }.sidebar.is-open { left: 0; }
  .mobile-header { position: sticky; top: 0; z-index: 24; height: 62px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: var(--navy-950); box-shadow: 0 8px 28px rgba(15,24,43,.16); }.brand-mobile .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }.brand-mobile strong { font-size: 13px; }.brand-mobile small { font-size: 7px; }.icon-button { width: 39px; height: 39px; border: 0; border-radius: 12px; display: grid; place-content: center; gap: 4px; background: rgba(255,255,255,.08); }.icon-button span { width: 17px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.8); }
  .main-content { margin-left: 0; padding: 25px 16px 96px; }
  .import-grid,.bom-preview-summary { grid-template-columns: 1fr; }
  .bom-filter-bar { align-items: stretch; flex-direction: column; }.bom-filter-bar label { min-width: 0; grid-template-columns: 1fr; }
  .bom-tree-title { align-items: stretch; flex-direction: column; }.bom-tree-root { min-width: 0; }.bom-tree-groups { grid-template-columns: 1fr; }
  .source-ledger-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }.source-ledger-toolbar label { grid-column: 1/-1; }.source-ledger-row { grid-template-columns: 1fr 1fr; }.source-ledger-row > div:last-child { grid-column: 1/-1; }.requisition-document-grid,.requisition-preview-docs { grid-template-columns: 1fr; }.requisition-preview-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reconciliation-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-nav { position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 28; height: 58px; padding: 5px; border-radius: 18px; display: grid; grid-template-columns: repeat(4,1fr); color: rgba(255,255,255,.56); background: var(--navy-900); box-shadow: 0 18px 40px rgba(15,24,43,.28); }.bottom-nav button { border: 0; border-radius: 13px; display: grid; place-content: center; gap: 3px; color: inherit; background: transparent; font-size: 8px; }.bottom-nav button span { font-size: 12px; }.bottom-nav button.is-active { color: #fff; background: rgba(255,255,255,.1); }
  .page-heading { display: grid; }.heading-actions { width: 100%; }.heading-actions .month-control { flex: 1; }.page-heading > .search-box, .page-heading > .month-control { width: 100%; min-width: 0; }
  .overview-grid, .leader-layout { grid-template-columns: 1fr; }.progress-panel { min-height: auto; }
  .payable-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.settings-grid { grid-template-columns: 1fr; }
  .supplier-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .monthly-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .accounting-detail-tabs { overflow-x: auto; }.accounting-detail-tabs button { flex: 0 0 auto; }.accounting-task-intro { flex-wrap: wrap; }.accounting-task-intro p { width: 100%; max-width: none; margin-left: 0; }
  .allocation-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-page { padding: 30px 0; background: linear-gradient(165deg,#111a2e 0 43%,#f4f6fa 43%); }.login-shell { grid-template-columns: 1fr; gap: 34px; }.login-brand h1 { font-size: 36px; }.login-card { padding: 25px; }
}

@media (max-width: 560px) {
  .page-heading h1 { font-size: 30px; }.page-lead { font-size: 10px; }.heading-actions { display: grid; }.secondary-button { width: 100%; }
  .data-banner { align-items: flex-start; }.data-banner > div { align-items: flex-start; }.data-banner button { display: none; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.metric-card { min-height: 120px; padding: 15px; }.metric-value { font-size: 21px; }.metric-icon { width: 27px; height: 27px; }
  .order-card-grid, .review-grid, .review-summary { grid-template-columns: 1fr; }.rate-rings { gap: 16px; }.donut { width: 105px; height: 105px; }
  .panel { border-radius: 19px; }.attention-item { grid-template-columns: 36px minmax(0,1fr); }.attention-amount { grid-column: 2; }.panel-heading { padding: 18px 17px 14px; }.search-box { min-width: 0; }
  .payable-kpis { grid-template-columns: 1fr 1fr; }.table-toolbar { align-items: flex-start; gap: 10px; }.table-toolbar .secondary-button { width: auto; }
  .preview-head, .closing-head, .closing-footer { align-items: flex-start; flex-direction: column; }.preview-actions { width: 100%; }.preview-actions button { flex: 1; }
  .detail-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 18px; }.dialog-content { padding: 16px; }.relationship-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.node-details { grid-template-columns: 1fr; }
  .document-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.entry-form { grid-template-columns: 1fr; }.form-wide { grid-column: auto; }
  .batch-action-bar { align-items: stretch; flex-direction: column; }.allocation-summary { grid-template-columns: 1fr 1fr; }
  .supplier-card-grid { grid-template-columns: 1fr; }
  .supplier-cost-strip { grid-template-columns: 1fr; }
  .snapshot-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.snapshot-diff-head { flex-direction: column; }
  .backup-panel { grid-template-columns: 1fr; }.backup-panel > button { width: 100%; }.backup-panel #backupResult { grid-column: auto; }.backup-list a { grid-template-columns: 1fr auto; }.backup-list a span { grid-column: 1/-1; }
}
