:root {
  --navy: #123d76;
  --navy-deep: #0b2d5a;
  --cyan: #19a5c8;
  --blue-soft: #eaf4fb;
  --ink: #142238;
  --muted: #728096;
  --line: #e4eaf1;
  --page: #f5f8fb;
  --panel: #ffffff;
  --green: #1a9b71;
  --amber: #c98316;
  --red: #d15b5b;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(25, 165, 200, .22); outline-offset: 1px; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f3f8fc 0%, #eef5fb 50%, #e5f2f6 100%); }
.login-panel { width: min(430px, 100%); padding: 42px 42px 34px; background: rgba(255,255,255,.96); border: 1px solid #dbe8f1; box-shadow: 0 24px 70px rgba(14, 47, 84, .12); border-radius: 12px; text-align: center; }
.brand-mark { width: 78px; height: 78px; margin: 0 auto 20px; display: grid; place-items: center; overflow: hidden; border: 3px solid var(--navy); border-radius: 50%; position: relative; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.small { width: 40px; height: 40px; margin: 0; border-width: 2px; flex: 0 0 auto; }
.eyebrow, .topbar-kicker { margin: 0 0 8px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.7px; font-size: 11px; font-weight: 700; }
.login-panel h1 { margin: 0; color: var(--navy-deep); font-size: 24px; line-height: 1.45; }
.login-subtitle { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }
.login-form, .stack-form { display: grid; gap: 16px; text-align: left; }
label { display: grid; gap: 7px; color: #53627a; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #d9e2ec; border-radius: 6px; color: var(--ink); background: #fff; padding: 11px 12px; min-height: 42px; transition: border .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,165,200,.1); outline: 0; }
textarea { resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 14px; border: 1px solid #d8e1eb; border-radius: 6px; background: #fff; color: #38506d; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .18s, border-color .18s, background .18s, color .18s; }
.button:hover { border-color: #9bb9d3; background: #f5f9fc; transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 5px 14px rgba(18,61,118,.15); }
.button.primary:hover { background: var(--navy-deep); }
.button.danger { color: #b33f4b; border-color: #f0c2c8; background: #fff8f8; }
.full-button { width: 100%; margin-top: 4px; min-height: 46px; }
.form-error { margin: 16px 0 0; padding: 10px 12px; color: #b33f4b; background: #fff1f2; border: 1px solid #f3c5cb; border-radius: 6px; font-size: 13px; }
.login-footnote { margin: 26px 0 0; color: #99a7b8; font-size: 12px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 240px; flex: 0 0 240px; min-height: 100vh; display: flex; flex-direction: column; padding: 25px 16px 18px; color: #dce9f8; background: var(--navy-deep); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 28px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: #fff; font-size: 17px; }
.sidebar-brand span { margin-top: 4px; color: #8eafd1; font-size: 11px; }
.main-nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 0 13px; border: 0; border-radius: 7px; color: #a9c1db; background: transparent; text-align: left; font-size: 13px; font-weight: 700; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: rgba(25,165,200,.23); box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { width: 19px; text-align: center; color: currentColor; font-size: 17px; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 12px; color: #fff; background: #df6c70; text-align: center; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.secure-note { display: flex; gap: 8px; color: #a8c2db; align-items: flex-start; }
.secure-note > span { color: #6be0ba; font-size: 16px; line-height: 1; }
.secure-note strong, .secure-note small { display: block; }
.secure-note strong { color: #d9eaf7; font-size: 12px; }
.secure-note small { margin-top: 4px; color: #7898b5; font-size: 11px; }
.text-button { margin-top: 20px; padding: 0; border: 0; color: #86a8c7; background: transparent; font-size: 12px; }
.text-button:hover { color: #fff; }
.main-area { min-width: 0; flex: 1; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); background: #fff; }
.topbar-kicker { margin-bottom: 5px; color: #8c9aae; letter-spacing: 1px; }
.topbar h2 { margin: 0; color: var(--navy-deep); font-size: 22px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user strong, .topbar-user span { display: block; }
.topbar-user strong { font-size: 13px; }
.topbar-user span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.user-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cyan); font-weight: 800; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #61728a; background: transparent; font-size: 16px; }
.icon-button:hover { border-color: #d9e3ed; color: var(--navy); background: #f5f8fb; }
.view-container { max-width: 1440px; margin: 0 auto; padding: 33px clamp(22px, 4vw, 58px) 60px; }
.welcome-row, .section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.welcome-row h3, .section-intro h3 { margin: 0; color: var(--navy-deep); font-size: 26px; }
.welcome-row .muted, .section-intro .muted { margin: 8px 0 0; }
.wave { padding-left: 6px; color: var(--cyan); }
.muted { color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-height: 145px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 5px 18px rgba(33, 67, 101, .035); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; bottom: -38px; border-radius: 50%; background: currentColor; opacity: .08; }
.stat-card span, .stat-card small { display: block; }
.stat-card span { color: #687b91; font-size: 13px; font-weight: 700; }
.stat-card strong { display: block; margin: 12px 0 4px; color: var(--navy-deep); font-size: 32px; line-height: 1; }
.stat-card small { color: #9aa8b8; font-size: 11px; }
.stat-card.blue { color: #2d8dc5; }.stat-card.green { color: var(--green); }.stat-card.amber { color: var(--amber); }.stat-card.red { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 5px 18px rgba(33,67,101,.035); }
.panel-head, .table-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head { padding: 21px 22px; border-bottom: 1px solid #eef2f6; }
.panel-head h3 { margin: 0; color: var(--navy-deep); font-size: 16px; }
.panel-head p { margin: 5px 0 0; color: #8d9bad; font-size: 12px; }
.link-button { padding: 0; border: 0; color: var(--cyan); background: transparent; font-size: 12px; font-weight: 700; }
.link-button:hover { color: var(--navy); }
.reminder-list, .mini-list { padding: 8px 22px 15px; }
.reminder-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0f3f6; }
.reminder-item:last-child { border-bottom: 0; }.reminder-dot { width: 8px; height: 8px; border-radius: 50%; background: #e8b24e; }.reminder-item.urgent .reminder-dot, .reminder-item.expired .reminder-dot { background: var(--red); }
.reminder-item strong, .reminder-item small { display: block; }.reminder-item strong { font-size: 13px; }.reminder-item small { margin-top: 4px; color: #8998aa; font-size: 11px; }.reminder-item b { color: #bd861e; font-size: 12px; }.reminder-item.urgent b, .reminder-item.expired b { color: var(--red); }
.mini-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid #f0f3f6; color: var(--ink); background: transparent; text-align: left; }.mini-item:last-child { border-bottom: 0; }.mini-item > span:nth-child(2) { flex: 1; min-width: 0; }.mini-item strong, .mini-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mini-item small { margin-top: 4px; color: #8d9bad; font-size: 11px; }.mini-item .status { margin-left: auto; }.company-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--navy); background: var(--blue-soft); font-weight: 800; }
.status { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }.status-draft { color: #657587; background: #edf1f5; }.status-pending_review { color: #a06a0e; background: #fff3d9; }.status-approved { color: #167e5d; background: #e4f7ef; }.status-rejected { color: #b33f4b; background: #fff0f1; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }.toolbar-spacer { flex: 1; }.search-box { min-width: min(340px, 100%); flex: 1; position: relative; }.search-box span { position: absolute; top: 9px; left: 12px; color: #8494a7; font-size: 20px; line-height: 1; }.search-box input { padding-left: 38px; }.toolbar select { width: auto; min-width: 120px; }
.sync-label, .wecom-status { display: inline-flex; align-items: center; gap: 7px; color: #668096; font-size: 12px; }.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #26b982; box-shadow: 0 0 0 4px rgba(38,185,130,.12); }.table-panel { overflow: hidden; }.table-meta { padding: 15px 18px; color: #51647c; font-size: 12px; border-bottom: 1px solid #eef2f6; }.table-wrap { width: 100%; overflow-x: auto; }table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 12px; }th, td { padding: 15px 16px; border-bottom: 1px solid #eef2f6; text-align: left; vertical-align: middle; }th { color: #7c8b9e; background: #fbfcfd; font-size: 11px; font-weight: 700; white-space: nowrap; }th[data-sort] { cursor: pointer; }th[data-sort]:hover { color: var(--navy); }td { color: #3e526d; }td:first-child { min-width: 175px; }td small { display: block; margin-top: 4px; color: #96a3b2; font-size: 11px; }.table-link { padding: 0; border: 0; color: var(--navy); background: transparent; font-weight: 800; }.table-link:hover { color: var(--cyan); }.mono { font-family: Consolas, monospace; font-size: 11px; }.date-stack span { display: block; color: #697d94; line-height: 1.8; }.row-actions { display: flex; gap: 2px; }
.review-rule { padding: 12px 15px; border: 1px solid #dcebf2; border-radius: 7px; background: #f4fbfd; text-align: right; }.review-rule span, .review-rule strong { display: block; }.review-rule span { color: #7894a9; font-size: 11px; }.review-rule strong { margin-top: 4px; color: var(--navy); font-size: 12px; }.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }.review-card { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 5px 18px rgba(33,67,101,.035); }.review-card-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #edf1f5; }.review-card h4 { margin: 0; color: var(--navy-deep); font-size: 16px; }.review-card-head p { margin: 6px 0 0; color: #8a99aa; font-size: 11px; }.review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 17px 0; }.review-fields span { color: #536981; font-size: 12px; }.review-fields b { display: block; margin-bottom: 4px; color: #98a5b3; font-size: 11px; font-weight: 600; }.approval-state { display: flex; gap: 8px; }.approval-state span { flex: 1; padding: 8px; border-radius: 5px; text-align: center; font-size: 11px; }.approval-state .done { color: #167e5d; background: #e9f8f1; }.approval-state .waiting { color: #9a7a3c; background: #fff7e7; }.review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }.empty, .loading { min-height: 130px; display: grid; place-items: center; padding: 25px; color: #9aa7b6; text-align: center; font-size: 13px; }.empty.compact { min-height: 125px; }.empty-page { min-height: 390px; display: grid; place-content: center; justify-items: center; color: #8797a8; text-align: center; }.empty-page.full { grid-column: 1 / -1; }.empty-page h3 { margin: 16px 0 6px; color: var(--navy); }.empty-page p { margin: 0; font-size: 13px; }.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e4f7ef; font-size: 26px; }
.legend { display: flex; gap: 15px; color: #7c8c9e; font-size: 11px; }.legend span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #e8b24e; }.legend-dot.urgent, .legend-dot.expired { background: var(--red); }.reminder-table-head, .reminder-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 14px; align-items: center; padding: 15px 20px; }.reminder-table-head { color: #8796a7; border-bottom: 1px solid #eef2f6; background: #fbfcfd; font-size: 11px; font-weight: 700; }.reminder-row { color: #536981; border-bottom: 1px solid #eef2f6; font-size: 12px; }.reminder-row:last-child { border-bottom: 0; }.reminder-count { color: #b47d1e; font-weight: 700; }.reminder-count.urgent, .reminder-count.expired { color: var(--red); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }.stack-form { padding: 22px; }.stack-form small, .field-hint { color: #93a0af; font-size: 11px; font-weight: 400; }.integration-note { display: flex; gap: 14px; padding: 22px; color: var(--cyan); }.integration-note > span { font-size: 27px; }.integration-note strong { color: var(--navy); font-size: 14px; }.integration-note p { max-width: 380px; margin: 8px 0 17px; color: #77889c; font-size: 12px; line-height: 1.8; }.integration-note .button { text-decoration: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 22px; background: rgba(8, 27, 51, .48); }.modal { width: min(510px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 10px; background: #fff; box-shadow: 0 25px 80px rgba(6,25,47,.28); }.modal.wide { width: min(850px, 100%); }.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid #eaf0f5; }.modal-head h3 { margin: 0; color: var(--navy-deep); font-size: 18px; }.supplier-form { padding: 22px; }.form-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #edf1f4; }.form-section:last-of-type { margin-bottom: 0; }.form-section h4, .detail-files h4, .detail-approval h4 { margin: 0 0 14px; color: var(--navy); font-size: 13px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.form-grid .wide { grid-column: 1 / -1; }.field-hint { margin: 14px 0 0; }.attachment-box { padding: 15px; border: 1px dashed #c8d8e7; border-radius: 7px; background: #f9fbfd; }.attachment-box p { margin: 0 0 10px; color: #718398; font-size: 12px; }.attachment-box > small { color: #9aa8b7; }.attachment-row { display: flex; align-items: center; gap: 10px; min-height: 34px; border-bottom: 1px solid #e8eef3; color: #536981; font-size: 12px; }.attachment-row:last-child { border-bottom: 0; }.attachment-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attachment-row small { color: #9aa8b7; }.attachment-row a { color: var(--cyan); text-decoration: none; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 18px; }.review-summary { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 0; }.review-summary strong { color: var(--navy); font-size: 16px; }.review-summary span { color: #8998aa; font-size: 12px; }.modal-copy { padding: 0 22px; color: #718398; font-size: 13px; line-height: 1.8; }.detail-layout { padding: 22px; }.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #edf1f4; }.detail-grid small, .detail-grid strong { display: block; }.detail-grid small { margin-bottom: 5px; color: #93a0af; font-size: 11px; }.detail-grid strong { color: #38506d; font-size: 12px; overflow-wrap: anywhere; }.detail-approval { padding: 19px 0; border-bottom: 1px solid #edf1f4; }.detail-approval p { margin: 8px 0 0; padding: 8px 10px; border-radius: 5px; font-size: 12px; }.detail-approval .done { color: #167e5d; background: #e9f8f1; }.detail-approval .waiting { color: #9a7a3c; background: #fff7e7; }.reject-text { color: #b33f4b; background: #fff0f1; }.detail-files { padding-top: 19px; }.dropzone { padding: 28px 15px; border: 1px dashed #b9cfdf; border-radius: 8px; color: #7d91a6; background: #f8fbfd; text-align: center; }.dropzone span { display: block; color: var(--cyan); font-size: 28px; }.dropzone p { margin: 9px 0 14px; font-size: 13px; }.dropzone input { border: 0; min-height: 0; padding: 0; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }.toast { padding: 12px 15px; border: 1px solid #cde7db; border-radius: 7px; color: #146d51; background: #edfaf4; box-shadow: 0 8px 24px rgba(20,60,86,.12); font-size: 13px; }.toast.warning { color: #92630e; border-color: #f0dcaa; background: #fff8e8; }.toast.error { color: #a83543; border-color: #f0c2c8; background: #fff2f3; }.modal-open { overflow: hidden; }
@media (max-width: 1040px) { .sidebar { width: 205px; flex-basis: 205px; }.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid, .settings-grid { grid-template-columns: 1fr; }.review-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .app-shell { display: block; }.sidebar { width: 100%; min-height: auto; padding: 12px 12px 10px; }.sidebar-brand { padding: 0 5px 12px; }.main-nav { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 2px; }.nav-item { flex: 0 0 auto; min-height: 37px; padding: 0 10px; }.nav-icon { display: none; }.sidebar-bottom { display: none; }.topbar { min-height: 74px; padding: 15px 18px; }.topbar h2 { font-size: 18px; }.topbar-kicker { font-size: 10px; }.topbar-user .icon-button { display: none; }.view-container { padding: 25px 16px 45px; }.welcome-row, .section-intro { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }.welcome-row h3, .section-intro h3 { font-size: 22px; }.stats-grid { gap: 10px; }.stat-card { min-height: 120px; padding: 16px 14px; }.stat-card strong { font-size: 27px; }.toolbar { align-items: stretch; }.search-box { flex-basis: 100%; }.toolbar select { flex: 1; min-width: 0; }.toolbar-spacer { display: none; }.toolbar .button { flex: 1; min-width: 0; padding: 0 8px; }.form-grid, .detail-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.reminder-table-head { display: none; }.reminder-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; }.reminder-row strong { grid-column: 1 / -1; }.reminder-row span:last-child { text-align: right; }.legend { flex-wrap: wrap; }.login-panel { padding: 33px 24px 26px; }.modal-backdrop { padding: 10px; }.modal { max-height: calc(100vh - 20px); }.supplier-form, .detail-layout { padding: 17px; }.modal-head { padding: 16px 17px; } }
