:root {
  --ink: #162333;
  --muted: #6d7c8f;
  --muted-2: #96a2b0;
  --line: #e4eaf0;
  --line-strong: #d5dee8;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-blue: #edf4ff;
  --navy: #17324d;
  --blue: #2f6fed;
  --blue-dark: #205ac9;
  --cyan: #16a2b8;
  --green: #1a9b6c;
  --green-soft: #e9f7f0;
  --orange: #e18a25;
  --orange-soft: #fff6e7;
  --red: #d34d4d;
  --red-soft: #fff0f0;
  --shadow: 0 10px 28px rgba(18, 38, 63, .08);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: #f4f7fa; }
body { font-size: 13px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 124px; flex: 0 0 124px; background: #f8fafc; color: #4e637d; display: flex; flex-direction: column;
  min-height: 100vh; position: sticky; top: 0; align-self: flex-start;
  border-right: 1px solid #dce5ee;
}
.brand { height: 76px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid #e2e9f0; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; font-weight: 700; border: 0; border-radius: 8px; font-size: 16px; background: #3c77d9; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy { text-align: center; }
.brand strong { display: block; letter-spacing: .1px; color: #172a43; font-size: 16px; }
.brand span { display: block; color: #8ba0b7; font-size: 9px; margin-top: 3px; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-list { padding: 18px 8px; display: grid; gap: 7px; }
.nav-item { border: 0; height: 43px; width: 100%; color: #536a84; display: flex; align-items: center; gap: 7px; text-align: left; border-radius: 11px; background: transparent; padding: 0 8px; transition: .16s ease; box-shadow: none; }
.nav-item:hover { color: #245da9; background: #eef5ff; box-shadow: 0 5px 13px rgba(38,79,125,.07); }
.nav-item.active { color: #145cb4; background: #dcecff; box-shadow: 0 7px 15px rgba(55,111,185,.13); }
.nav-icon { width: 17px; height: 17px; display: inline-grid; place-items: center; color: #617994; }
.nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon { color: #236ec8; }
.nav-count { margin-left: auto; color: #7690aa; font-size: 11px; }
.nav-item.active .nav-count { color: #2465b1; }
.sidebar-footer { position: relative; margin-top: auto; padding: 14px 8px 18px; border-top: 1px solid #dbe4ed; }
.account-entry { width: 100%; min-height: 44px; padding: 6px 8px; display: flex; align-items: center; gap: 9px; color: #536a84; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; }
.account-entry:hover, .account-entry[aria-expanded="true"] { border-color: #d7e3f0; background: #fff; box-shadow: 0 5px 13px rgba(38,79,125,.07); }
.account-entry .avatar { flex: 0 0 29px; }
.account-copy { min-width: 0; display: block; }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { color: #1c2e45; font-size: 12px; font-weight: 600; }
.account-copy small { color: #8096ad; font-size: 10px; margin-top: 2px; }
.account-caret { margin-left: auto; color: #8298ad; font-size: 13px; }
.account-menu { position: absolute; z-index: 10; left: 12px; right: 12px; bottom: 70px; padding: 5px; border: 1px solid #dbe5ef; border-radius: 8px; background: #fff; box-shadow: 0 12px 25px rgba(24,50,81,.16); }
.account-menu button { width: 100%; padding: 9px 10px; text-align: left; border: 0; border-radius: 4px; color: #536a84; background: transparent; font-size: 12px; }
.account-menu button:hover { color: #145cb4; background: #eef5ff; }
.account-menu button, .button, .nav-item, .row-action, .checkbox, .page-button, .close-button, .account-entry, .stock-edit, .stock-value, tr[data-order-id], input, select, textarea { transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.permission-grid { display: grid; gap: 10px; }
.permission-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.permission-row strong { color: var(--ink); }
.logout-state { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); }
.logout-state strong { color: var(--ink); font-size: 16px; }
.auth-locked { min-height: 100vh; background: #f4f7fb; }
.auth-locked .app-shell { display: none; }
.auth-locked #auth-root { display: block; }
#auth-root:empty { display: none; }
.auth-screen { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding-top: 17vh; background: #f4f7fb; }
.auth-brand { margin-bottom: 26px; color: #17324d; font-size: 30px; font-weight: 700; letter-spacing: 5px; }
.login-card { width: min(360px, calc(100% - 32px)); box-sizing: border-box; padding: 28px 30px 30px; border: 1px solid #dbe5ef; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(23,50,77,.08); }
.login-card h1 { margin: 0 0 24px; color: var(--ink); font-size: 20px; text-align: center; }
.login-card .field label { color: var(--ink); }
.login-submit { width: 100%; height: 40px; margin-top: 22px; }
.auth-error { margin-top: 14px; color: var(--red); font-size: 12px; line-height: 1.5; }
.account-management-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.user-panel { min-height: 480px; overflow: hidden; }
.panel-toolbar, .permission-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-toolbar strong, .permission-toolbar strong { font-size: 14px; }
.user-list { padding: 8px; }
.user-list-item { width: 100%; display: flex; align-items: center; padding: 13px 14px; border: 0; border-radius: 6px; background: transparent; text-align: left; color: var(--ink); }
.user-list-item:hover { background: #e5f1fc; }
.user-list-item.active, .user-list-item.active:hover { background: #ffe28a; }
.user-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #6c91bd; font-size: 13px; }
.user-list-copy { min-width: 0; flex: 1; }
.user-list-copy strong, .user-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-list-copy strong { font-size: 13px; }
.user-list-copy small { margin-top: 5px; color: var(--ink); font-size: 12px; font-weight: 400; }
.user-status { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.user-status.enabled { color: var(--green); background: var(--green-soft); }
.user-status.disabled { color: var(--red); background: var(--red-soft); }
.permission-panel { min-height: 480px; overflow: hidden; }
.account-credential-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto; gap: 14px; align-items: end; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.account-credential-form .field { min-width: 0; }
.account-credential-form .field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 600; }
.account-credential-form .input { width: 100%; }
.account-credential-actions { display: flex; align-items: flex-end; min-height: 36px; }
.account-credential-actions .button { white-space: nowrap; }
.permission-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.permission-table-wrap { overflow-x: auto; padding: 0 18px; }
.permission-table { min-width: 720px; }
.permission-table th, .permission-table td { text-align: center; height: 48px; }
.permission-table th:first-child, .permission-table td:first-child { text-align: left; padding-left: 0; }
.permission-table td strong { color: var(--ink); font-weight: 600; }
.permission-na { color: #c2ccd6; }
.permission-note { margin: 14px 18px 18px; padding: 10px 12px; border: 1px solid #d9e7fb; background: #f4f8fe; color: #466685; border-radius: 5px; font-size: 11px; }

.main-content { min-width: 0; flex: 1; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #5a88bb; font-size: 12px; font-weight: 700; }
.page-wrap { max-width: 1680px; margin: 0 auto; padding: 32px 34px 44px; }


.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 23px; }
.page-heading h1 { margin: 0; font-size: 24px; letter-spacing: -.3px; font-weight: 650; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.heading-meta { text-align: right; color: var(--muted); font-size: 11px; }
.heading-meta strong { color: var(--ink); font-size: 19px; display: block; margin-bottom: 4px; }
.section-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 9px rgba(23,50,77,.025); }
.filter-panel { padding: 18px 20px; margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; gap: 13px; align-items: end; }
.filter-grid.three { grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) auto; }
.filter-grid.two { grid-template-columns: minmax(220px, 1fr) auto; }
.field { min-width: 0; }
.field label { display: block; color: #617287; font-size: 11px; margin-bottom: 7px; }
.input, .select, .date-input { width: 100%; height: 36px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); padding: 0 11px; outline: none; transition: border-color .16s, box-shadow .16s; }
.input::placeholder { color: #a7b1bd; }
.input:focus, .select:focus, .date-input:focus { border-color: #82aaf3; box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.date-range { display: flex; align-items: center; gap: 8px; }
.date-range .date-input { min-width: 0; }
.date-range > span { color: #a5afba; }
.filter-actions { display: flex; gap: 8px; align-items: end; height: 36px; }
.button { height: 36px; padding: 0 15px; border-radius: 5px; border: 1px solid var(--line-strong); background: #fff; color: #435366; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: .16s ease; }
.button:hover { border-color: #9aaaba; color: var(--ink); background: #fafbfd; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 7px rgba(47,111,237,.17); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.soft { color: var(--blue); background: var(--surface-blue); border-color: #dce9fe; }
.button.danger { color: var(--red); background: #fff; border-color: #efd5d5; }
.button.compact { height: 30px; padding: 0 10px; font-size: 12px; }
.button.text { border-color: transparent; background: transparent; color: var(--blue); padding: 0 5px; height: 29px; }
.button.text:hover { background: var(--surface-blue); }
.button[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.button-icon { font-size: 15px; line-height: 1; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 51px; margin-bottom: 14px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-note { color: var(--muted); font-size: 12px; }
.toolbar-note strong { color: var(--ink); font-weight: 600; }
.selection-note { color: var(--blue); background: var(--surface-blue); border-radius: 4px; padding: 7px 10px; font-size: 11px; }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 750px; }
th { height: 41px; background: #f7f9fb; border-bottom: 1px solid var(--line); color: #6b7a8c; text-align: left; padding: 0 14px; font-size: 11px; font-weight: 600; white-space: nowrap; }
td { height: 54px; border-bottom: 1px solid #edf0f3; color: #344558; padding: 0 14px; font-size: 12px; white-space: nowrap; }
tbody tr:hover { background: #fbfdff; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 20px; }
.checkbox { appearance: none; width: 15px; height: 15px; margin: 0; border: 1px solid #c4cfda; border-radius: 3px; vertical-align: middle; background: #fff; position: relative; cursor: pointer; }
.checkbox:checked { background: var(--blue); border-color: var(--blue); }
.checkbox:checked::after { content: "✓"; position: absolute; color: #fff; font-size: 11px; left: 2px; top: -1px; }
.link-value { color: var(--blue); cursor: pointer; font-weight: 600; }
.link-value:hover { color: var(--blue-dark); text-decoration: underline; }
.muted-cell { color: var(--muted); }
.stock-value { color: var(--blue); cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; min-width: 73px; }
.product-table th.stock-column, .product-table td:nth-child(7) { width: 94px; min-width: 94px; text-align: center; padding-left: 8px; padding-right: 8px; }
.product-table td:nth-child(7) .stock-wrap { justify-content: center; width: 100%; }
.product-table { table-layout: fixed; min-width: 920px; }
.product-table th:nth-child(1), .product-table td:nth-child(1) { width: 4%; }
.product-table th:nth-child(2), .product-table td:nth-child(2) { width: 4%; }
.product-table th:nth-child(3), .product-table td:nth-child(3),
.product-table th:nth-child(4), .product-table td:nth-child(4),
.product-table th:nth-child(5), .product-table td:nth-child(5),
.product-table th:nth-child(6), .product-table td:nth-child(6),
.product-table th:nth-child(7), .product-table td:nth-child(7),
.product-table th:nth-child(8), .product-table td:nth-child(8) { width: 12%; }
.product-table th:nth-child(9), .product-table td:nth-child(9) { width: 20%; }
.product-table td { overflow: hidden; text-overflow: ellipsis; }
.product-table td:last-child { overflow: visible; }
.product-table .row-actions { width: 100%; justify-content: center; }
.checkbox-cell { width: 38px; text-align: center; padding-left: 12px !important; padding-right: 6px !important; }
.recycle-list .summary-row small { display: block; color: var(--muted); margin-top: 4px; }
.stock-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; }
.stock-edit { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; border: 0; background: transparent; padding: 2px; color: var(--blue); font-size: 13px; transition: opacity .12s; }
.stock-value { width: 73px; min-width: 73px; justify-content: center; text-align: center; }
tr:hover .stock-edit, .stock-wrap:focus-within .stock-edit { opacity: 1; }
.stock-editor { display: inline-flex; align-items: center; gap: 4px; }
.stock-editor .input { width: 77px; height: 29px; padding: 0 8px; }
.stock-editor .button { height: 29px; padding: 0 8px; }
.price-value { color: #3b4b5e; }
.row-actions { display: inline-flex; gap: 10px; align-items: center; }
.row-action { color: var(--blue); border: 0; background: none; padding: 0; font-size: 12px; }
.row-action:hover { color: var(--blue-dark); text-decoration: underline; }
.row-action.danger { color: var(--red); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 4px; font-size: 11px; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.draft { color: var(--orange); background: var(--orange-soft); }
.status-badge.confirmed { color: var(--green); background: var(--green-soft); }
.type-label { color: #51657a; }
.type-label .type-icon { color: var(--blue); margin-right: 5px; }
.number-positive { color: var(--green); font-weight: 600; }
.number-negative { color: var(--red); font-weight: 600; }
.number-neutral { color: #738498; }

.pagination { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination-left { display: flex; gap: 5px; align-items: center; }
.pagination-left strong { color: var(--ink); font-weight: 600; }
.pagination-control { display: flex; gap: 8px; align-items: center; }
.page-button { width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 4px; color: #60748a; background: #fff; }
.page-button:hover:not([disabled]) { border-color: #8aacda; color: var(--blue); background: var(--surface-blue); }
.page-button[disabled] { color: #c0c9d2; cursor: not-allowed; }
.page-index { color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; height: 27px; min-width: 31px; display: inline-grid; place-items: center; background: #fff; }
.page-size { height: 28px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink); }

.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state-icon { width: 44px; height: 44px; border: 1px dashed #b9c7d5; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 7px; color: #9cacbc; font-size: 20px; }
.empty-state strong { color: #52677b; display: block; margin-bottom: 5px; font-size: 13px; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 16px; align-items: start; }
.detail-panel { min-height: 284px; }
.detail-panel-header { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.detail-panel-header strong { font-size: 14px; }
.detail-panel-header span { color: var(--muted); font-size: 11px; }
.detail-empty { padding: 68px 20px; text-align: center; color: var(--muted); }
.detail-empty .empty-state-icon { margin-bottom: 12px; }
.detail-table { width: 100%; min-width: 0; }
.detail-table th, .detail-table td { padding: 0 12px; }
.detail-table th:first-child, .detail-table td:first-child { padding-left: 20px; }
.detail-table thead .checkbox { display: inline-block; visibility: visible; opacity: 1; }
.draft-alert { margin: 13px 20px; padding: 10px 12px; border: 1px solid #d9e7fb; background: #f4f8fe; color: #466685; border-radius: 5px; line-height: 1.6; font-size: 11px; }
.side-summary { padding: 18px 20px; }
.side-summary h3 { margin: 0 0 16px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; color: var(--muted); margin: 11px 0; font-size: 12px; }
.summary-row strong { color: var(--ink); }
.summary-total { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 15px; }
.summary-total strong { color: var(--blue); font-size: 20px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(14, 28, 46, .42); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.drawer-backdrop.open, .modal-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { z-index: 21; position: fixed; right: 0; top: 0; height: 100vh; width: min(60vw, 900px); min-width: 540px; background: var(--surface); box-shadow: -12px 0 35px rgba(11,27,45,.18); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-header { min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-size: 18px; font-weight: 650; }
.drawer-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.close-button { width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: #8190a0; font-size: 22px; line-height: 1; }
.close-button:hover { color: var(--ink); background: var(--surface-soft); }
.drawer-body { flex: 1; overflow: auto; padding: 24px 25px; }
.drawer-footer { min-height: 74px; padding: 0 25px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 9px; background: #fcfdff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-label { color: #52677b; display: block; font-size: 11px; margin-bottom: 7px; }
.required::after { content: " *"; color: var(--red); }
.form-tip { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.drawer-section-title { font-size: 13px; color: var(--ink); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-section-title:not(:first-child) { margin-top: 27px; }

.modal { z-index: 22; position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(840px, 100%); max-height: min(760px, calc(100vh - 48px)); display: flex; flex-direction: column; background: #fff; border-radius: 9px; box-shadow: 0 18px 60px rgba(7,25,48,.24); overflow: hidden; transform: translateY(8px); transition: transform .18s ease; }
.modal.open .modal-card { transform: translateY(0); }
.modal-card.narrow { width: min(470px, 100%); }
.modal-card.wide { width: min(1040px, 100%); }
.modal-header { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { overflow: auto; padding: 20px 22px; }
.modal-footer { min-height: 67px; padding: 0 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.modal-filter { padding: 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 13px; }
.modal-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px; align-items: end; }
.modal-filter .field label { display: none; }
.selection-table-wrap { border: 1px solid var(--line); border-radius: 5px; overflow: auto; max-height: 350px; }
.selection-table { min-width: 690px; }
.selection-table td { height: 47px; }
.qty-input { width: 72px; height: 29px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 7px; text-align: right; }
.qty-input:focus { outline: 0; border-color: #82aaf3; box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.modal-foot-note { margin-right: auto; color: var(--muted); font-size: 11px; }
.import-drop { padding: 30px 20px; border: 1px dashed #a9bad0; border-radius: 6px; background: #fbfdff; text-align: center; color: var(--muted); }
.import-drop.dragging { background: var(--surface-blue); border-color: var(--blue); }
.import-drop strong { display: block; color: #3d5570; margin-bottom: 7px; font-size: 13px; }
.import-drop small { display: block; margin-top: 8px; color: #99a6b3; }
.import-icon { font-size: 24px; color: var(--blue); margin-bottom: 8px; }
.import-results { margin-top: 16px; }
.import-result-summary { display: flex; gap: 8px; margin-bottom: 10px; }
.result-chip { font-size: 11px; padding: 6px 10px; border-radius: 4px; }
.result-chip.success { color: var(--green); background: var(--green-soft); }
.result-chip.fail { color: var(--red); background: var(--red-soft); }
.failure-list { margin: 0; padding-left: 18px; color: var(--red); font-size: 11px; line-height: 1.8; }
.detail-flow-table { max-height: 395px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.detail-flow-table table { min-width: 710px; }
.detail-flow-table td { height: 43px; font-size: 11px; }
.confirm-copy { color: #52677b; line-height: 1.7; }
.confirm-copy strong { color: var(--ink); }
.remark-area { resize: vertical; min-height: 88px; padding-top: 9px; line-height: 1.6; }

.toast-root { position: fixed; z-index: 40; right: 26px; bottom: 25px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 390px; color: #fff; background: #23394f; border-radius: 6px; box-shadow: 0 9px 24px rgba(21,39,60,.19); padding: 12px 15px; display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.5; animation: toast-in .2s ease; }
.toast.success { background: #177c5a; }
.toast.error { background: #a74242; }
.toast.info { background: #305b8b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.order-table .selected-row, .order-table tbody tr[data-order-id].selected-row:hover { background: #ffe28a; }
.order-table tr[data-order-id] { cursor: pointer; }
.order-table tbody tr[data-order-id]:hover { background: #e5f1fc; }
.detail-edit-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.detail-edit-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.check-result { color: #8594a4; font-size: 11px; }
.check-result.positive { color: var(--green); }
.check-result.negative { color: var(--red); }
.checkbox-cell { width: 43px; }
.nowrap { white-space: nowrap; }
.hide-mobile { display: table-cell; }

@media (max-width: 1050px) {
  .sidebar { width: 124px; flex-basis: 124px; }
  .page-wrap { padding-left: 22px; padding-right: 22px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .filter-grid .filter-actions { grid-column: 1 / -1; }
  .split-layout { grid-template-columns: 1fr; }
  .side-summary { display: none; }
  .account-management-layout { grid-template-columns: 1fr; }
  .account-credential-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-credential-actions { align-items: end; }
}
@media (max-width: 760px) {
  .sidebar { width: 68px; flex-basis: 68px; }
  .brand { justify-content: center; padding: 0; }
  .brand-copy, .nav-item span:not(.nav-icon), .account-copy, .account-caret { display: none; }
  .sidebar-footer { display: block; padding: 14px 9px 18px; }
  .account-entry { justify-content: center; padding: 6px 0; }
  .nav-list { padding: 14px 9px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-count { display: none !important; }
  .page-wrap { padding: 20px 14px 30px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 20px; }
  .heading-meta { display: none; }
  .filter-grid, .filter-grid.three, .filter-grid.two { grid-template-columns: 1fr; }
  .filter-grid .filter-actions { grid-column: auto; }
  .filter-actions { justify-content: flex-start; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-right { width: 100%; }
  .toolbar-right .button { flex: 1; }
  .pagination { height: auto; gap: 12px; flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .pagination-control { width: 100%; justify-content: space-between; }
  .drawer { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); }
  .modal-filter-grid { grid-template-columns: 1fr 1fr; }
  .modal-filter-grid .filter-actions { grid-column: 1 / -1; }
  .account-credential-form { grid-template-columns: 1fr; }
  .account-credential-actions .button { width: 100%; }
  .hide-mobile { display: none; }
}

/* 业务数据与参数文字统一使用黑色，保留蓝色链接和状态色。 */
:root { --muted: #000; --muted-2: #000; }
[hidden] { display: none !important; }
.sidebar,
.brand span,
.nav-item,
.nav-icon,
.nav-count,
.account-entry,
.account-copy small,
.account-caret,
.account-menu button,
.user-list-copy small,
.permission-toolbar p,
.page-heading p,
.heading-meta,
.field label,
.date-range > span,
.toolbar-note,
th,
td,
.muted-cell,
.price-value,
.type-label,
.pagination,
.page-button,
.empty-state,
.empty-state strong,
.detail-panel-header span,
.detail-empty,
.summary-row,
.form-label,
.form-tip,
.modal-foot-note,
.import-drop,
.confirm-copy,
.detail-edit-toolbar p,
.check-result,
.number-neutral,
.permission-na {
  color: #000;
}
