/* Admin edition visual identity: orange/yellow, black and white. */
:root {
  --accent: #f59e0b;
  --accent-soft: #fff7e6;
  --navy: #111111;
  --bg: #f7f7f5;
}
.sidebar { background: linear-gradient(180deg, #111111 0%, #242424 100%); }
.nav-item.active { background: #f59e0b; color: #111111; box-shadow: 0 6px 17px rgba(0, 0, 0, .35); }
.nav-item.active:hover { color: #111111; }
.hero-card { background: linear-gradient(108deg, #111111 0%, #252525 58%, #d97706 100%); }
.hero-kicker { color: #ffe8b0; }
.hero-card p { color: #fff8e8; }

.domestic-nav-item span { color: #f59e0b; font-weight: 800; }
.domestic-v2-hub { border-top: 4px solid #f59e0b; background: #fff; }
.domestic-test-pill { background: #111; color: #fbbf24; border-color: #f59e0b; }
.domestic-v2-intro { margin: 0 0 24px; color: #505050; line-height: 1.7; }
.domestic-v2-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 20px 0 26px; }
.domestic-v2-card { min-height: 132px; padding: 22px; border: 1px solid #e6e0d4; border-radius: 14px; background: linear-gradient(145deg,#111 0%,#242424 72%,#9a5b00 100%); color: #fff8e8; box-shadow: 0 10px 24px rgba(17,17,17,.12); }
.domestic-v2-card span { display: block; color: #fbbf24; font: 800 12px/1 Arial,sans-serif; letter-spacing: .14em; }
.domestic-v2-card b { display: block; margin-top: 24px; font-size: 20px; }
.domestic-v2-card small { display: block; margin-top: 8px; color: #ffe9b0; }
.domestic-v2-arrow { display: grid; place-items: center; color: #d97706; font-size: 28px; font-weight: 800; }
.domestic-v2-actions { margin-top: 6px; }
.domestic-v2-recent { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee6d8; color: #6b6256; }
@media (max-width: 860px) { .domestic-v2-flow { grid-template-columns: 1fr; } .domestic-v2-arrow { transform: rotate(90deg); } }
.hero-actions .primary { color: #111111; }
.profile-chip > span { background: #fff1cc; color: #9a5b00; }
.brand-product { color: #ffd166; }
.brand-logo { filter: none; background: #111111; border-radius: 16px; padding: 4px; }
.login-screen { background: radial-gradient(1200px 700px at 30% 20%, #4a4a4a 0%, #171717 60%, #050505 100%); }
.login-logo { filter: none; }
.login-card h1 { color: #111111; }
.button.primary { background: #f59e0b; color: #111111; box-shadow: 0 4px 11px rgba(245, 158, 11, .28); }
.button.primary:hover { background: #d97706; color: #111111; }
.card-avatar { background: #fff3d6; color: #9a5b00; }
.doc-tab.active, .text-button, .card-action, .row-actions button { color: #b45309; }
.local-badge i { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }

/* Domestic-document layer (Admin local preview only). */
.admin-business-switch,.domestic-tip,.domestic-security { color:#72531d; background:#fff7e6; border:1px solid #fed7aa; border-radius:10px; padding:10px 12px; font-size:12px; line-height:1.55; }
.admin-business-switch { display:flex; gap:12px; align-items:flex-start; margin:10px 0; }
.admin-business-switch b { color:#9a5b00; white-space:nowrap; }
.domestic-admin-panel summary i { background:#f59e0b; color:#111; }
.domestic-line-tax { display:block; margin-top:5px; color:#9a5b00; font-size:11px; white-space:nowrap; }
.domestic-line-tax input { width:auto; min-width:0; margin:0 3px 0 0; }
.domestic-line-tax-breakdown { margin:5px 0 0; color:#795216; font-size:11px; line-height:1.45; white-space:nowrap; }
.domestic-line-note-cell { min-width: 150px; }
.domestic-line-note-cell input { min-width: 140px; }
.line-note { min-width: 90px; white-space: pre-wrap; }
.domestic-stamp-upload { margin: 12px 0; padding: 10px 12px; border: 1px dashed #d8c28d; border-radius: 8px; background: #fffaf0; }
.domestic-stamp-upload b, .domestic-stamp-upload small { display: block; }
.domestic-stamp-upload small { margin: 4px 0 8px; color: #75684e; }
.domestic-stamp-preview { width: 92px; height: 92px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.domestic-stamp { position: absolute; left: 40%; bottom: 18px; width: 92px; height: 92px; object-fit: contain; z-index: 2; }
.domestic-document-stamp { position: relative; min-height: 96px; margin: 8px 0 0 auto; width: 96px; }
.domestic-document-stamp img { width: 92px; height: 92px; object-fit: contain; }
.domestic-stamp-placeholder { display: grid; place-items: center; border: 2px dashed #cf4242; border-radius: 50%; color: #cf4242; font-size: 10px; text-align: center; transform: rotate(-12deg); }
.domestic-settings hr { border:0; border-top:1px solid #f0d9ad; margin:16px 0; }
.domestic-settings h4 { margin:12px 0 8px; color:#7c4a03; font-size:13px; }
.payment-qr-preview { display:block; width:88px; height:88px; margin-top:7px; object-fit:contain; border:1px solid #f1c77d; border-radius:8px; background:#fff; }
.domestic-tax-ribbon { margin:0 0 12px; padding:8px 10px; border-left:4px solid var(--doc); background:#fff7e6; color:#7c4a03; font-weight:700; }
.domestic-table th { white-space:nowrap; }
.domestic-table { table-layout: fixed; width:100%; }
.domestic-table .domestic-product-description { width:50%; }
.domestic-table .line-note { width:12%; word-break:break-word; }
.domestic-product-description { min-width:0; white-space:normal; text-align:left !important; vertical-align:top !important; overflow-wrap:anywhere; }
.domestic-product-description b { display:block; font-weight:800; color:#1f2937; text-align:left; }
.domestic-product-description small { display:block; color:#58677e; line-height:1.35; white-space:pre-wrap; text-align:left; }
.domestic-admin-panel #domesticPaymentMethod:disabled { opacity: 1; color: inherit; cursor: default; }
.domestic-table .tier-text { line-height:1.65; }
.domestic-payment { display:grid; grid-template-columns:1fr auto; gap:8px 18px; margin-top:18px; padding:12px; border-left:4px solid var(--doc); background:#fff8eb; color:#4f3b19; }
.domestic-payment h4 { grid-column:1/-1; margin:0; color:var(--doc); }
.domestic-payment p { margin:2px 0; }
.domestic-payment img { grid-row:2 / span 3; grid-column:2; width:116px; height:116px; object-fit:contain; background:#fff; border:1px solid #e5c784; padding:4px; }
.payment-missing { color:#a34a16; font-weight:700; }
.domestic-contract { margin-top:20px; }
.domestic-contract h4 { color:var(--doc); margin:15px 0 4px; }
.domestic-contract p { margin:0; color:#4d5d74; }
.domestic-signatures { margin-top:46px; }
.admin-unit-field select { width:100%; }

/* 国内业务：发票信息、付款计划、送货签收 */
.domestic-invoice { border: 1px dashed var(--accent, #f59e0b); border-radius: 8px; padding: 8px 10px; margin: 12px 0; }
.domestic-invoice h4 { margin: 0 0 4px; color: var(--accent, #f59e0b); font-size: 9px; letter-spacing: .08em; }
.domestic-invoice p { margin: 2px 0; font-size: 8.5px; color: #444; }
.invoice-both-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.invoice-both-grid > div { min-width: 0; padding: 0 10px; }
.invoice-both-grid > div + div { border-left: 1px solid #ead6aa; }
.invoice-both-grid h5 { margin: 0 0 3px; font-size: 8.5px; color: #7c4a03; }
.domestic-payment-plan { margin-top: 8px; border-top: 1px dashed #d4d4d4; padding-top: 6px; }
.domestic-payment-plan h4 { margin: 0 0 3px; font-size: 9px; }
.domestic-payment-plan p { margin: 2px 0; font-size: 8.5px; }
.domestic-payment .payment-verify { margin-top: 6px; padding-top: 5px; border-top: 1px dashed #d4d4d4; font-size: 8.5px; color: #7a5b12; }
.domestic-signed-box { margin-top: 12px; padding: 8px 10px; border: 1px solid #199c78; border-radius: 8px; color: #0d7a5d; font-size: 10px; }
.domestic-signed-box.pending { border-color: #b45309; color: #92400e; }
.domestic-plan-rows { display: grid; gap: 6px; }
.domestic-plan-rows .plan-row { display: grid; grid-template-columns: 1.4fr .6fr 1.2fr .9fr; gap: 6px; align-items: center; }
.domestic-plan-rows .plan-row span { font-size: 11px; color: #9a5b00; font-weight: 700; }
.domestic-plan-rows .domestic-tip { margin: 2px 0 0; font-size: 11px; }
.domestic-plan-rows .domestic-tip.plan-error { color: #c2410c; font-weight: 700; }
.domestic-admin-panel hr { border: none; border-top: 1px dashed #d4d4d4; margin: 6px 0; }
.domestic-admin-panel h4 { margin: 2px 0 6px; color: #9a5b00; font-size: 12px; }
.domestic-admin-panel .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.domestic-plan-rows .plan-row { grid-template-columns: 1.4fr .6fr 1.2fr .9fr 32px; }
.domestic-plan-rows .plan-del { border: none; background: #fff1cc; color: #9a5b00; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1; padding: 6px 0; }
.domestic-plan-rows .plan-del:hover { background: #ffe3a6; }
.domestic-plan-rows .plan-actions { display: flex; align-items: center; gap: 10px; }
.domestic-plan-rows .plan-add { padding: 6px 12px; font-size: 12px; }
.domestic-line-taxrate input { width: 52px; }
