:root {
  --ink: #102d26;
  --muted: #64756f;
  --line: #dce7e1;
  --paper: #fffdf9;
  --wash: #f7f3ec;
  --brand: #08765c;
  --brand-dark: #03513f;
  --accent: #c99d52;
  --danger: #c44536;
  --shadow: 0 20px 48px rgba(12, 53, 42, .10);
  --radius-card: 20px;
  --radius-control: 10px;
  --content-width: 1120px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100dvh; margin: 0; color: var(--ink); background: radial-gradient(circle at 0 0, rgba(190, 214, 194, .35), transparent 28rem), radial-gradient(circle at 100% 10%, rgba(219, 188, 139, .26), transparent 32rem), var(--wash); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; line-height: 1.5; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(201,157,82,.9); outline-offset: 3px; }
.shell { width: min(var(--content-width), calc(100% - 32px)); margin: 0 auto; }
.topbar { position: relative; overflow: hidden; background: linear-gradient(110deg, #164b3d, #236551 56%, #487362); color: #fff; box-shadow: 0 8px 24px rgba(22, 75, 61, .18); }
.topbar::after { content: ""; position: absolute; inset: 0 0 0 48%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.08)); pointer-events: none; }
.topbar .shell { position: relative; z-index: 1; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .05em; }
.brand-logo { width: 46px; height: 46px; padding: 5px; object-fit: contain; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,.18); }
.brand small { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.72); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.nav-link { color: rgba(255,255,255,.84); text-decoration: none; font-size: 14px; }
.topbar button.nav-link { padding: 0; border: 0; background: transparent; }
.topbar .nav-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px; }
main { padding: 48px 0 72px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: clamp(30px, 5vw, 44px); font-weight: 850; letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: 22px; }
.sub { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.card { padding: 28px; background: rgba(255,253,249,.94); border: 1px solid rgba(220, 211, 194, .9); border-radius: var(--radius-card); box-shadow: 0 18px 42px rgba(61, 73, 55, .10); backdrop-filter: blur(12px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#draftForm input[type="date"] { min-width: 0; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); line-height: 1.5; }
.field.full-row { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 14px 15px; border: 1px solid #d8d8ca; border-radius: var(--radius-control); color: var(--ink); background: #fffdf9; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #fffdf9 inset; transition: background-color 9999s ease-out; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,122,75,.1); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 21px; border: 0; border-radius: var(--radius-control); color: #fff; background: linear-gradient(135deg, #2b7b61, #155644); box-shadow: 0 8px 16px rgba(21, 86, 68, .18); font-weight: 800; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { background: var(--brand-dark); box-shadow: 0 11px 20px rgba(4, 86, 64, .25); transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.secondary { color: #28624f; background: #e9f0e8; }
.btn.secondary:hover { background: #dbece3; }
.btn.full { width: 100%; }
.btn.compact { min-height: 36px; padding: 0 13px; font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin-bottom: 0; }
.text-link { padding: 0; border: 0; color: var(--brand); background: transparent; font-weight: 800; text-decoration: none; white-space: nowrap; }
.delete-draft { color: var(--danger); }
.delete-draft:disabled { opacity: .55; cursor: not-allowed; }
.notice { display: none; margin: 0 0 18px; padding: 13px 15px; border-radius: 11px; line-height: 1.5; }
.notice.show { display: block; }
.notice.error { color: #8e2920; background: #fce9e6; }
.notice.success { color: #135f3c; background: #e5f4eb; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.step { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.step b { width: 25px; height: 25px; display: grid; place-items: center; color: var(--muted); background: #e3e9e6; border-radius: 50%; }
.step.active { color: var(--brand); font-weight: 800; }
.step.active b { color: #fff; background: var(--brand); }
.step-line { width: 42px; height: 1px; background: var(--line); }
.summary-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin-bottom: 20px; overflow: hidden; background: #d8e6df; border: 1px solid #d8e6df; border-radius: 18px; box-shadow: 0 8px 24px rgba(14, 68, 53, .05); }
.summary-band > div { padding: 17px; background: #fff; }
.summary-band small { display: block; margin-bottom: 6px; color: var(--muted); }
.summary-band strong { font-size: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.photo-item { position: relative; min-height: 170px; display: grid; place-items: center; padding: 18px; overflow: hidden; border: 1.5px dashed #aebdb5; border-radius: 16px; background: #fafcfb; text-align: center; }
.photo-item.done { border-style: solid; border-color: #97c7ad; background: #edf7f1; }
.photo-item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-icon { display: block; margin: 0 auto 10px; font-size: 31px; }
.photo-item strong { display: block; margin-bottom: 5px; }
.photo-item small { color: var(--muted); }
.photo-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-item .photo-overlay { position: absolute; inset: auto 8px 8px; z-index: 2; padding: 7px; color: #fff; background: rgba(12, 35, 24, .78); border-radius: 9px; }
.finish-box { display: none; padding-top: 22px; text-align: center; }
.finish-box.show { display: block; }
.qr { width: min(280px, 80vw); border: 12px solid #fff; border-radius: 18px; box-shadow: var(--shadow); }
.rating-list { display: grid; gap: 12px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.choice { display: flex; gap: 8px; }
.choice button { min-width: 66px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.choice button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.score-row { display:block; }
.score-choice { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-top:14px; }
.score-choice button { min-width:0; padding:10px 4px; }
.score-choice button b, .score-choice button small { display:block; }
.score-choice button small { margin-top:3px; font-size:11px; }
.onsite-review { margin-bottom:10px; padding:18px; border:1px solid #ead9bd; border-radius:14px; background:#fffaf1; }
.stars { display: flex; gap: 6px; }
.star { padding: 0; border: 0; color: #d5dcd8; background: transparent; font-size: 34px; }
.star.active { color: var(--accent); }
.thanks { padding: 38px 20px; text-align: center; }
.thanks-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--brand); border-radius: 50%; font-size: 34px; }
.signature-card { margin: 22px 0; padding: 18px; border: 1px solid #e3d7c5; border-radius: 15px; background: #fffaf2; }
.signature-head { display:flex; align-items:center; justify-content:space-between; margin: 8px 0 10px; }
#signatureCanvas { display:block; width:100%; height:150px; border:1px dashed #9eaa9f; border-radius:12px; background:#fff; touch-action:none; cursor:crosshair; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { padding: 20px; background: linear-gradient(145deg, #fffdf9, #f6f0e7); border: 1px solid #e5dac9; border-radius: 16px; }
.metric small { color: var(--muted); }
.metric strong { display: block; margin-top: 9px; font-size: 28px; }
.admin-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 18px; }
.admin-grid > * { min-width: 0; }
.admin-grid > .card:has(#draftForm) { position: sticky; top: 84px; }
#draftForm { display: grid; gap: 2px; }
#draftForm .field { min-width: 0; }
#draftForm .field label { min-height: 20px; color: #24483c; letter-spacing: .01em; }
#draftForm input, #draftForm select { min-height: 52px; padding: 12px 14px; }
/* 家具履约条件为完整一行，不再挤进“产品名称 / 数量”的半列中。 */
#draftForm .grid-2 .grid-2 { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 6px; padding: 18px; border: 1px solid #e3d9ca; border-radius: 14px; background: linear-gradient(135deg, #fcf8f1, #fffdf9); }
#draftForm .grid-2 .grid-2::before { content: '家具基础信息'; grid-column: 1 / -1; margin-bottom: 1px; color: #775e35; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
#draftForm .grid-2 .grid-2 .field { margin-bottom: 0; }
#draftForm .grid-2 .grid-2 .field label { min-height: auto; font-size: 13px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #876320; background: #fff3d8; font-size: 12px; font-weight: 800; }
.badge.done { color: #17623f; background: #e4f4eb; }
.exception-badge { margin-left: 6px; color: #9b2f24; background: #fbe5e1; }
.service-type-badge { display:inline-flex; margin-top:6px; color:#176b4d; background:#e5f2eb; }
.service-type-badge.after-sales { color:#8b5b18; background:#fff0d6; }
.empty { padding: 36px; color: var(--muted); text-align: center; }
.pending-list { display: grid; gap: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pending-card { padding: 18px; border: 1px solid #e4dacb; border-radius: 16px; background: linear-gradient(145deg, #fffefa, #faf5ec); }
.pending-card-head, .dispatch-panel, .dispatch-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-card-head strong { display: block; font-size: 16px; }
.pending-card-head small, .pending-info small, .pending-address small { display: block; color: var(--muted); font-size: 12px; }
.delivery-date { padding: 7px 10px; border-radius: 999px; color: #75511c; background: #fff1d7; font-size: 12px; font-weight: 800; }
.pending-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; }
.pending-info strong, .pending-info span { display: block; }
.pending-info span, .pending-address span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pending-address { padding: 12px; border-radius: 10px; background: rgba(238, 231, 219, .6); }
.dispatch-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7ddcf; }
.price-ready, .price-missing { font-size: 12px; font-weight: 700; }
.price-ready { color: #28624f; }.price-missing { color: #9b2f24; }
.dispatch-actions { flex: 1; justify-content: flex-end; }.dispatch-actions select { width: min(250px, 100%); padding: 10px 12px; }.dispatch-actions .btn { flex: 0 0 auto; }
.login-card { width: min(460px, 100%); margin: 7vh auto 0; }
.login-brand { display: flex; align-items: center; justify-content: center; margin: -4px 0 24px; }
.login-brand img { width: min(270px, 82%); height: 86px; padding: 9px 15px; object-fit: contain; border: 1px solid #e0ebe5; border-radius: 17px; background: linear-gradient(145deg, #fff, #f3f8f5); }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
dialog { width: min(880px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 26px; overflow: auto; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(10, 25, 18, .58); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: var(--wash); font-size: 26px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.detail-grid > div, .address-box { padding: 15px; border-radius: 12px; background: var(--wash); }
.detail-grid small, .address-box small { display: block; margin-bottom: 5px; color: var(--muted); }
.address-box { margin-bottom: 20px; }
.address-box p { margin-bottom: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.proof-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.proof-grid img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.proof-grid figcaption { padding: 9px; font-size: 13px; font-weight: 700; text-align: center; }
.review-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.review-facts span { padding: 8px 10px; border-radius: 9px; background: #e8f3ed; font-size: 13px; }
.exception-list { display:grid; gap:10px; }
.exception-item { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px; border:1px solid #ead8d2; border-radius:12px; background:#fff8f6; }
.exception-item.severity-urgent { border-left:4px solid #d88b28; }
.exception-item.severity-critical { border-left:4px solid #b84137; background:#fff3f1; }
.exception-item p { margin:6px 0 0; }
.exception-actions { display:grid; gap:8px; justify-items:end; }
.severity-tag { display:inline-flex; margin-left:5px; padding:3px 7px; border-radius:999px; color:#765525; background:#fff0d2; font-size:12px; font-weight:700; }
.exception-evidence { margin-top:8px; }.exception-evidence a { margin-right:10px; color:var(--brand); font-size:13px; font-weight:700; }
.relation-box { margin:12px 0 18px; padding:13px 15px; border-radius:11px; background:#f2f5ef; }
.signature-proof { margin:12px 0 22px; padding:14px; border:1px solid #e2d8c8; border-radius:12px; background:#fffaf2; }
.signature-proof img { display:block; width:min(420px,100%); height:120px; margin-top:10px; object-fit:contain; object-position:left center; border:1px solid #e4ddd2; border-radius:8px; background:#fff; }
.btn.danger { background:#a43d32; box-shadow:0 8px 18px rgba(164,61,50,.18); }
table td:first-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
textarea { min-height: 108px; resize: vertical; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (prefers-reduced-transparency: reduce) { .card, .topbar, .admin-sidebar { backdrop-filter: none; } .card { background: var(--paper); } }

/* 服务端移动优先细节：操作区保持清晰，长编号和地址允许自然换行。 */
.customer-phone { color: var(--muted); font-variant-numeric: tabular-nums; }
.address-box p, .relation-box, .pending-address span, td { overflow-wrap: anywhere; }
.topbar .nav-link, .text-link { min-height: 38px; display: inline-flex; align-items: center; }
.btn:active, .text-link:active { transform: translateY(1px); }
.table-wrap table { min-width: 620px; }
@media (max-width: 760px) {
  .topbar .shell { gap: 12px; }
  .topbar .shell > div:last-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar .nav-link { font-size: 13px; }
  .page-head h1 { max-width: 18ch; }
  .recent-order-toolbar { align-items: stretch; flex-wrap: wrap; }
  .recent-order-toolbar input { flex: 1 1 220px; }
  .recent-order-toolbar .text-link { min-height: 38px; }
  .table-wrap table { min-width: 680px; }
}

/* 管理端统一板块规范 */
.management-console main.shell { padding-bottom: 56px; }
.management-tabs { display: flex; gap: 6px; width: fit-content; margin: 0 0 22px; padding: 5px; border: 1px solid #dfd6c8; border-radius: 13px; background: rgba(255,253,249,.88); box-shadow: 0 7px 22px rgba(58,45,27,.06); }
.management-tabs a { min-width: 112px; padding: 10px 17px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.management-tabs a:hover { color: var(--brand); background: #f0f5f1; }
.management-tabs a.active { color: #fff; background: var(--brand); box-shadow: 0 5px 14px rgba(18,92,67,.18); }
.management-console .topbar .shell { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); }
.workspace-switcher { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(0,0,0,.12); }
.workspace-switcher a { padding: 8px 13px; border-radius: 8px; color: rgba(255,255,255,.74); font-size: 13px; font-weight: 800; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.workspace-switcher a:hover { color: #fff; background: rgba(255,255,255,.12); }
.workspace-switcher a.active { color: #114c3d; background: #fffdf8; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.management-console .legacy-workspace-link { justify-self: end; }
.management-console .legacy-workspace-link:not(.workspace-switcher a) { display: none; }
.management-console .page-head { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #e4daca; }
.recent-order-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.recent-order-toolbar label { color: #456257; font-size: 13px; font-weight: 800; white-space: nowrap; }
.recent-order-toolbar input { width: min(100%, 280px); min-height: 38px; padding: 8px 12px; border: 1px solid #d8d0c1; border-radius: 9px; background: #fffdf9; }
.management-console .page-head h1 { margin-bottom: 7px; }
.management-console .card { border-color: #e4d9c9; box-shadow: 0 10px 30px rgba(57,43,24,.065); }
.management-console .card > h2:first-child,
.management-console .section-head h2 { color: #173f34; font-size: 20px; letter-spacing: -.01em; }
.management-console .card > h2:first-child::after,
.management-console .section-head h2::after { content: ''; display: block; width: 32px; height: 3px; margin-top: 9px; border-radius: 99px; background: var(--accent); }
.management-console .section-head { min-height: 42px; margin-bottom: 14px; }
.management-console hr { margin: 26px 0 22px; border: 0; border-top: 1px solid #e5dccf; }
.management-console h3 { margin: 0 0 16px; color: #315347; font-size: 16px; }
.management-console form .btn { min-height: 46px; }
.management-console table th { padding-top: 11px; padding-bottom: 11px; color: #60756d; background: #f6f4ee; font-weight: 800; }
.management-console table tbody tr:hover { background: #fbf8f1; }
.management-console .notice.show { margin-top: 12px; }
@media (max-width: 980px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-grid > .card:has(#draftForm) { position: static; }
}
@media (max-width: 760px) {
  .management-tabs { width: 100%; }
  .management-tabs a { flex: 1; min-width: 0; }
  .shell { width: min(100% - 24px, 640px); }
  main { padding-top: 24px; }
  .topbar .shell { min-height: 64px; }
  .brand-logo { width: 39px; height: 39px; border-radius: 11px; }
  .brand small { display: none; }
  .grid-2, .photo-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  #draftForm .grid-2 .grid-2 { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .summary-band { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid, .proof-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 16px; }
  .page-head { display: block; }
  .step-line { width: 18px; }
  .step span { display: none; }
  .rating-row { align-items: flex-start; flex-direction: column; }
  .score-choice { width:100%; grid-template-columns:repeat(5,minmax(58px,1fr)); overflow-x:auto; }
  .pending-info { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .pending-card-head, .dispatch-panel, .dispatch-actions { align-items: stretch; flex-direction: column; }
  .dispatch-actions select, .dispatch-actions .btn { width: 100%; }
  th, td { padding: 12px 8px; }
  .choice button, .btn.compact { min-height: 42px; }
  table td:first-child { max-width: 140px; }
}

/* 管理后台仅面向电脑端：窄窗口保持桌面布局并允许横向查看 */
/* 后台/运营页优先利用桌面大屏：减少无效留白，并为订单表保留更多展示空间。 */
body.management-console { min-width: 0; font-size: clamp(13px, .78vw, 16px); }
.management-console .shell { width: min(1680px, calc(100% - clamp(24px, 4vw, 64px))); min-width: 0; }
.management-console .management-tabs { width: fit-content; }
.management-console .management-tabs a { flex: none; min-width: 112px; }
.management-console .admin-grid { grid-template-columns: minmax(0, 2.4fr) minmax(380px, 1fr); }
.management-console .admin-grid > .card:has(#draftForm) { position: sticky; top: 84px; }
.management-console .metric-grid { grid-template-columns: repeat(4, 1fr); }
.management-console .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-console .card { padding: 28px; border-radius: 20px; }
.management-console .page-head { display: flex; }
.management-console .pending-info { grid-template-columns: 1fr 1fr; }
.management-console .pending-card-head,
.management-console .dispatch-panel { align-items: center; flex-direction: row; }
.management-console .dispatch-actions { align-items: center; flex-direction: row; }
.management-console .dispatch-actions select { width: min(250px, 100%); }
.management-console #completedSection { min-width: 0; }
.management-console #completedOrders table { min-width: 1380px; }
.management-console #orders table { min-width: 920px; }
.management-console .admin-shell-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 26px; align-items: start; }
.management-console .admin-sidebar { position: sticky; top: 22px; padding: 18px 14px; border: 1px solid #dcd3c5; border-radius: 18px; background: linear-gradient(180deg, #fffdfa, #f5f1e8); box-shadow: 0 12px 30px rgba(57,43,24,.08); }
.admin-sidebar-brand { display: grid; gap: 4px; padding: 5px 9px 18px; border-bottom: 1px solid #e5ddcf; }
.admin-sidebar-brand small { color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.admin-sidebar-brand strong { color: #173f34; font-size: 19px; }
.admin-sidebar-nav { display: grid; gap: 5px; padding: 14px 0; }
.admin-sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; color: #476258; font-size: 14px; font-weight: 800; text-decoration: none; }
.admin-sidebar-nav a span { width: 22px; color: #9b8663; font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-sidebar-nav a:hover { color: var(--brand); background: #edf4ee; }
.admin-sidebar-nav a.active { color: #fff; background: #1d7059; box-shadow: 0 7px 16px rgba(21,86,68,.18); }
.admin-sidebar-nav a.active span { color: #d7eee2; }
.admin-sidebar-tip { padding: 13px 10px 4px; border-top: 1px solid #e5ddcf; color: #718178; font-size: 12px; line-height: 1.7; }
.management-console .admin-content { min-width: 0; }
.management-console .admin-content > .metric-grid { margin-bottom: 22px; }
.management-console .admin-section-block { margin: 28px 0 16px; padding-top: 22px; border-top: 1px solid #e4daca; }
.management-console .admin-section-block h2 { margin-bottom: 14px; }
@media (max-width: 1450px) {
  .management-console .admin-shell-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  .management-console .admin-grid { grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); }
  .management-console .card { padding: clamp(20px, 2vw, 28px); }
}
@media (max-width: 1180px) {
  .management-console .topbar .shell { grid-template-columns: auto 1fr; }
  .management-console .workspace-switcher { justify-self: end; }
  .management-console .admin-shell-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 16px; }
  .management-console .admin-sidebar { padding: 14px 10px; }
  .admin-sidebar-nav a { padding: 10px 8px; font-size: 13px; }
  .management-console .admin-grid { grid-template-columns: 1fr; }
  .management-console .admin-grid > .card:has(#draftForm) { position: static; }
  .management-console .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .management-console .topbar .shell { display: flex; min-height: auto; padding: 11px 0; flex-wrap: wrap; }
  .management-console .workspace-switcher { order: 3; width: 100%; justify-content: stretch; overflow-x: auto; }
  .workspace-switcher a { flex: 1; min-width: 98px; text-align: center; }
  .management-console .management-tabs { display: none; }
  .management-console .admin-shell-layout { display: block; }
  .management-console .admin-sidebar { position: static; margin-bottom: 18px; padding: 10px; }
  .admin-sidebar-brand, .admin-sidebar-tip { display: none; }
  .admin-sidebar-nav { display: flex; gap: 6px; padding: 0; overflow-x: auto; }
  .admin-sidebar-nav a { flex: 0 0 auto; padding: 9px 11px; white-space: nowrap; }
  .admin-sidebar-nav a span { display: none; }
  .management-console .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .management-console .metric { padding: 15px; }
  .management-console .metric strong { font-size: clamp(20px, 6vw, 28px); }
  .management-console .page-head { display: block; }
  .management-console .page-head h1 { font-size: clamp(26px, 7vw, 38px); }
  .management-console .section-head { align-items: flex-start; flex-direction: column; }
  .management-console .section-head .btn { width: 100%; }
}
@media (max-width: 560px) {
  .management-console .shell { width: min(100% - 20px, 640px); }
  .management-console .brand { font-size: 14px; }
  .management-console .brand-logo { width: 38px; height: 38px; }
  .management-console .workspace-switcher a { min-width: 88px; padding: 8px 10px; font-size: 12px; }
  .management-console .card { padding: 16px; border-radius: 16px; }
  .management-console .admin-section-block { margin-top: 20px; padding-top: 16px; }
  .management-console input, .management-console select, .management-console textarea { font-size: 16px; }
}
@media (min-width: 1800px) {
  .management-console .shell { width: min(1880px, calc(100% - 80px)); }
}
