:root {
  --blue: #3b7dff;
  --blue-dark: #2866df;
  --blue-soft: #edf4ff;
  --green: #08b96b;
  --green-dark: #078451;
  --green-soft: #eaf8f1;
  --red: #ef4d5a;
  --amber: #f0a12d;
  --purple: #8b68c9;
  --ink: #171a1f;
  --muted: #707880;
  --line: #e3e6ea;
  --paper: #f4f5f7;
  --white: #fff;
  --phone-w: 390px;
  --phone-h: 844px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: #edf1f5;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, textarea { font: inherit; letter-spacing: 0; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59,125,255,.28); outline-offset: 2px; }

.prototype-stage { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(390px, 1fr) 320px; gap: 34px; align-items: center; padding: 28px clamp(22px,4vw,58px); }
.prototype-menu { align-self: center; }
.return-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 28px; color: #2259b9; text-decoration: none; font-size: 14px; font-weight: 700; }
.row-chevron { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; color: currentColor; }
.row-chevron:before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px; }
.row-chevron.right:before { transform: translateX(-2px) rotate(-45deg); }
.row-chevron.left:before { transform: translateX(2px) rotate(135deg); }
.toggle-chevron { display: grid; place-items: center; width: 26px; height: 26px; color: #929ba5; }
.toggle-chevron:before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.prototype-brand { display: flex; align-items: center; gap: 10px; }
.prototype-brand span, .app-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 18px; font-weight: 800; }
.prototype-brand b { font-size: 18px; }
.prototype-menu > p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.prototype-menu nav { display: grid; gap: 7px; }
.prototype-menu nav strong { margin: 12px 0 2px; color: #535d68; font-size: 12px; }
.prototype-menu nav button { min-height: 36px; padding: 0 12px; border: 1px solid #d7dde5; border-radius: 6px; color: #34404d; background: #fff; text-align: left; font-size: 13px; }
.prototype-menu nav button.active { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); font-weight: 700; }
.prototype-notes { align-self: center; max-height: calc(100vh - 56px); overflow-y: auto; padding: 20px; border: 1px solid #dce2e9; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(42,58,75,.1); }
.prototype-notes[hidden] { display: none; }
.prototype-notes header { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.prototype-notes header span { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.prototype-notes header h2 { margin: 5px 0 7px; font-size: 21px; }
.prototype-notes header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.validation-group { margin-top: 18px; }
.validation-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.validation-group h3 span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px; }
.validation-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.validation-list li { padding: 11px 0; border-top: 1px solid #edf0f3; }
.validation-list li:first-child { border-top: 0; }
.validation-list b, .validation-list p, .validation-list em { display: block; }
.validation-list b { font-size: 13px; }
.validation-list p { margin: 5px 0; color: #a45312; font-size: 12px; line-height: 1.55; }
.validation-list em { color: var(--muted); font-size: 11px; font-style: normal; }

.device { position: relative; justify-self: center; width: min(var(--phone-w), 100%); height: min(var(--phone-h), calc(100vh - 40px)); overflow: hidden; border: 9px solid #1e2329; border-radius: 32px; background: #fff; box-shadow: 0 24px 58px rgba(30,45,62,.18); }
.phone-status { position: relative; z-index: 60; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--ink); background: #fff; font-size: 11px; }
.app-view { position: relative; height: calc(100% - 28px); overflow: hidden; background: var(--paper); }
.screen { position: absolute; inset: 0; display: none; overflow: hidden; background: var(--paper); }
.screen.active { display: block; }
.screen.with-tabbar { padding-bottom: 66px; }
.is-hidden { display: none !important; }

.auth-screen { padding: 20px 26px; background: #fff; }
.login-switch { height: 36px; text-align: right; }
.login-switch button { color: #50555b; background: transparent; font-size: 14px; font-weight: 600; }
.login-title { display: grid; justify-items: center; gap: 16px; margin: 54px 0 52px; }
.login-title .app-logo { width: 58px; height: 58px; border-radius: 14px; font-size: 27px; box-shadow: 0 10px 24px rgba(59,125,255,.24); }
.login-title h1 { margin: 0; font-size: 27px; font-weight: 700; }
.login-form { display: grid; gap: 13px; }
.login-form label:not(.agreement) { position: relative; display: block; }
.login-form label:not(.agreement) > span { position: absolute; left: 16px; top: 17px; color: #9ba0a6; font-size: 15px; pointer-events: none; }
.login-form input:not([type=checkbox]) { width: 100%; height: 54px; padding: 0 112px 0 78px; border: 1px solid #e0e2e5; border-radius: 7px; color: var(--ink); background: #f6f6f6; outline: none; }
.login-form input:focus { border-color: var(--blue); background: #fff; }
.login-form label > button { position: absolute; right: 12px; top: 10px; height: 34px; color: #24282c; background: transparent; font-size: 13px; }
.primary-btn { min-height: 48px; border-radius: 7px; color: #fff; background: var(--blue); font-weight: 700; }
.primary-btn:active { background: var(--blue-dark); }
.login-submit { margin-top: 5px; font-size: 17px; }
.agreement { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 5px; color: #767c82; font-size: 11px; }
.agreement input { width: 17px; height: 17px; accent-color: var(--blue); }
.demo-login { position: absolute; left: 26px; right: 26px; bottom: 24px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
.demo-login span { color: #9ba0a6; font-size: 11px; }
.demo-login button { min-height: 32px; border: 1px solid #dbe1e9; border-radius: 5px; color: #506070; background: #fff; font-size: 12px; }

.plain-header, .warehouse-header, .camera-screen > header { height: 56px; display: grid; grid-template-columns: 42px 1fr 52px; align-items: center; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.plain-header h1, .warehouse-header h1, .camera-screen > header h1 { margin: 0; text-align: center; font-size: 19px; }
.back-dark, .back-light { width: 38px; height: 38px; position: relative; display: grid; place-items: center; background: transparent; }
.back-dark:before, .back-light:before { content: ""; width: 11px; height: 11px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); border-radius: 1px; transform: translateX(2px) rotate(45deg); }
.back-light:before { border-color: #fff; }
.role-screen { background: #f6f7f9; }
.role-intro { display: flex; align-items: center; gap: 14px; padding: 28px 22px 22px; background: #fff; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--blue-dark); background: #e8efff; font-style: normal; font-weight: 700; }
.role-intro b { font-size: 18px; }
.role-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.role-guidance { margin: 0; padding: 16px 22px 0; color: #59636e; font-size: 13px; line-height: 1.6; }
.role-list { display: grid; gap: 12px; padding: 20px 16px; }
.role-card { min-height: 96px; display: grid; grid-template-columns: 54px 1fr 18px; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.role-card .role-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 700; }
.warehouse-role .role-icon { background: var(--green); }
.role-card b, .role-card em { display: block; }
.role-card b { margin-bottom: 7px; font-size: 17px; }
.role-card em { color: var(--muted); font-size: 12px; font-style: normal; }
.role-card i { color: #9ba2a9; font-style: normal; }
.role-card .row-chevron { justify-self: end; }

.driver-header { height: 86px; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; color: #fff; background: var(--blue); }
.driver-header h1, .driver-header p { margin: 0; }
.driver-header h1 { font-size: 24px; }
.driver-header p { margin-top: 5px; font-size: 12px; opacity: .86; }
.header-scan { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.header-scan .scan-glyph { --scan-color: var(--blue); }
.scan-glyph { --scan-color: #fff; position: relative; display: block; width: 25px; height: 25px; background: linear-gradient(var(--scan-color),var(--scan-color)) 0 0/8px 3px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 0 0/3px 8px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 100% 0/8px 3px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 100% 0/3px 8px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 0 100%/8px 3px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 0 100%/3px 8px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 100% 100%/8px 3px no-repeat,linear-gradient(var(--scan-color),var(--scan-color)) 100% 100%/3px 8px no-repeat; }
.scan-glyph:after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: var(--scan-color); }
.search-row { display: grid; grid-template-columns: 1fr 58px; gap: 8px; padding: 12px 14px; background: #fff; }
.search-row input { width: 100%; min-width: 0; height: 40px; padding: 0 13px; border: 0; border-radius: 20px; background: #f2f3f5; outline: none; }
.search-row button { border-radius: 7px; color: #fff; background: var(--blue); font-weight: 700; }
.segment-tabs { display: grid; grid-template-columns: repeat(2,1fr); height: 48px; background: #fff; border-bottom: 1px solid var(--line); }
.segment-tabs button { position: relative; color: #4a5158; background: transparent; font-size: 14px; }
.segment-tabs button span { color: #9ca3aa; font-size: 11px; }
.segment-tabs button.active { color: var(--ink); font-weight: 700; }
.segment-tabs button.active:after { content: ""; position: absolute; left: 34%; right: 34%; bottom: 0; height: 3px; border-radius: 3px; background: var(--blue); }
.scroll-content { height: calc(100% - 200px); overflow-y: auto; }
.driver-order-list { padding: 10px; }
.customer-task { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.customer-task.located { box-shadow: 0 0 0 3px rgba(59,125,255,.2); }
.customer-summary { position: relative; width: 100%; min-height: 74px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px 10px; padding: 13px 36px 13px 14px; background: #fff; text-align: left; }
.customer-summary span b, .customer-summary span em { display: block; }
.customer-summary span b { font-size: 16px; }
.customer-summary span em { margin-top: 6px; color: var(--red); font-size: 12px; font-style: normal; }
.customer-summary p, .customer-summary small { grid-column: 1/3; margin: 0; color: #555f68; line-height: 1.45; }
.customer-summary p { font-size: 13px; }
.customer-summary small { padding-right: 20px; font-size: 12px; }
.customer-summary > .toggle-chevron { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }
.customer-task.is-open .customer-summary > .toggle-chevron:before { transform: translateY(2px) rotate(225deg); }
.customer-summary .address-line, .customer-summary .contact-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 20px; }
.customer-summary .address-line > span, .customer-summary .contact-line > span { min-width: 0; line-height: 1.45; }
.utility-action { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 0; color: #18b875; background: transparent; font-style: normal; vertical-align: middle; }
.utility-action.phone-action { color: #ef9723; background: transparent; }
.utility-action.compact { width: 22px; height: 22px; margin-left: 3px; border-radius: 0; color: #4a5968; background: transparent; transform: translateY(5px); }
.mini-icon { display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.mini-icon.copy { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='8' width='12' height='12' rx='2' fill='black'/%3E%3Cpath d='M6 16H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h-3V5H5v8h1z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='8' width='12' height='12' rx='2' fill='black'/%3E%3Cpath d='M6 16H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h-3V5H5v8h1z' fill='black'/%3E%3C/svg%3E"); }
.mini-icon.phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.8c.7-.4 1.6-.2 2 .5l2 3.6c.3.6.2 1.3-.3 1.8l-1.5 1.4c1 2.2 2.8 4 5 5l1.4-1.5c.5-.5 1.2-.6 1.8-.3l3.6 2c.7.4.9 1.3.5 2l-1.1 2c-.6 1.1-1.8 1.7-3 1.5C9.7 19.8 4.2 14.3 3.1 7c-.2-1.2.4-2.4 1.5-3z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.8c.7-.4 1.6-.2 2 .5l2 3.6c.3.6.2 1.3-.3 1.8l-1.5 1.4c1 2.2 2.8 4 5 5l1.4-1.5c.5-.5 1.2-.6 1.8-.3l3.6 2c.7.4.9 1.3.5 2l-1.1 2c-.6 1.1-1.8 1.7-3 1.5C9.7 19.8 4.2 14.3 3.1 7c-.2-1.2.4-2.4 1.5-3z' fill='black'/%3E%3C/svg%3E"); }
.mini-icon.pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a8 8 0 0 1 8 8c0 5.4-6.3 11.3-7 11.9a1.5 1.5 0 0 1-2 0C10.3 21.3 4 15.4 4 10a8 8 0 0 1 8-8zm0 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a8 8 0 0 1 8 8c0 5.4-6.3 11.3-7 11.9a1.5 1.5 0 0 1-2 0C10.3 21.3 4 15.4 4 10a8 8 0 0 1 8-8zm0 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z' fill='black'/%3E%3C/svg%3E"); }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; white-space: nowrap; font-size: 11px; font-style: normal; font-weight: 700; }
.status.blue { color: #235cc5; background: #eaf2ff; }
.status.green { color: #087849; background: #e5f7ef; }
.status.amber { color: #9a6200; background: #fff0ce; }
.status.purple { color: #6a45a4; background: #f1eafa; }
.customer-summary .status, .delivery-customer .status { height: auto; padding: 0; border-radius: 0; background: transparent; font-size: 12px; }
.customer-summary-side { display: grid; justify-items: end; align-content: start; gap: 9px; padding-top: 1px; }
.customer-summary-side .status { justify-self: end; margin: 0; }
.customer-summary .summary-vehicle { color: #242c34; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.customer-summary .status.blue, .delivery-customer .status.blue { color: #3b7dff; background: transparent; }
.customer-summary .status.green, .delivery-customer .status.green { color: #08a862; background: transparent; }
.sales-orders { display: none; border-top: 1px solid var(--line); background: #f8f9fb; }
.customer-task.is-open .sales-orders { display: block; }
.customer-contact-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-contact-panel p { margin: 0; color: #5b646d; font-size: 12px; line-height: 1.5; }
.customer-contact-panel > div { display: flex; align-items: center; gap: 12px; }
.customer-contact-panel button { position: relative; width: 32px; height: 32px; display: grid; place-items: center; color: #18a96d; background: transparent; }
.customer-contact-panel button[data-call] { color: #e99424; }
.customer-contact-panel button b { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.customer-contact-panel .mini-icon { width: 20px; height: 20px; }
.task-vehicle { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-bottom: 1px solid var(--line); color: #77818b; background: #f6f8fb; font-size: 11px; }
.task-vehicle b { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.sales-order { border-bottom: 1px solid var(--line); }
.sales-order:last-child { border-bottom: 0; }
.sales-order > button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 11px 13px; background: transparent; text-align: left; }
.sales-order > button span b, .sales-order > button span em { display: block; }
.sales-order > button b { font-size: 13px; }
.sales-order > button em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.sales-order > button i { color: #5d6770; font-size: 12px; font-style: normal; }
.sales-order > button .order-summary-side { position: relative; min-width: 86px; display: grid; justify-items: end; gap: 5px; padding-right: 21px; }
.sales-order > button .order-total { display: block; color: var(--red); font-size: 13px; font-weight: 800; white-space: nowrap; }
.sales-order > button .order-status { margin: 0; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.sales-order > button .order-status.blue { color: #3b7dff; }
.sales-order > button .order-status.green { color: #08a862; }
.sales-order > button .order-summary-side .toggle-chevron { position: absolute; right: -3px; top: 50%; width: 22px; height: 22px; color: #929ba5; transform: translateY(-50%); }
.sales-order.is-open > button .order-summary-side .toggle-chevron:before { transform: translateY(2px) rotate(225deg); }
.goods-list { display: none; padding: 0 13px 13px; }
.sales-order.is-open .goods-list { display: block; }
.driver-goods-table-wrap { overflow: hidden; border-top: 1px solid #dde3ea; border-bottom: 1px solid #dde3ea; background: #fff; }
.goods-list .driver-goods-table-wrap { margin: 0 -13px 10px; }
.delivery-goods .driver-goods-table-wrap { margin: 0 -14px -14px; border-bottom: 0; }
.driver-goods-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.driver-goods-table thead th { height: 34px; padding: 6px 4px; border-top: 1px solid #e1e6ed; border-right: 1px solid #e1e6ed; border-bottom: 1px solid #e1e6ed; color: var(--ink); background: #f1f4f7; text-align: center; font-size: 11px; font-weight: 650; }
.driver-goods-table thead th:nth-child(1) { width: 26%; }
.driver-goods-table thead th:nth-child(2) { width: 18%; }
.driver-goods-table thead th:nth-child(3) { width: 29%; }
.driver-goods-table thead th:nth-child(4) { width: 27%; border-right: 0; }
.driver-product-name th { padding: 9px 10px 8px; border-bottom: 1px solid #e3e7ed; background: #fff; text-align: left; }
.driver-product-name span { margin-right: 8px; color: #8b949d; font-size: 10px; font-weight: 500; }
.driver-product-name b { color: #242c34; font-size: 12.5px; line-height: 1.45; }
.driver-product-values td { min-height: 42px; padding: 9px 4px; border-right: 1px solid #e3e7ed; border-bottom: 1px solid #e3e7ed; color: #303941; text-align: center; vertical-align: middle; font-size: 11px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.driver-product-values td:nth-child(2) { font-size: 12.5px; font-weight: 750; }
.driver-product-values td:nth-child(4) { border-right: 0; color: #1f2730; font-size: 11.5px; font-weight: 750; }
.driver-goods-table tbody:last-child .driver-product-values:last-child td { border-bottom: 0; }
.goods-list p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 9px 0; border-top: 1px dashed #dfe3e7; font-size: 12px; }
.goods-list p span { min-width: 0; }
.goods-list p b { white-space: nowrap; }
.goods-list p.goods-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.goods-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-thumb { width: 40px; height: 40px; border-radius: 4px; background-color: #d7dec8; background-image: linear-gradient(155deg,#f6db64 0 24%,#5a9d4f 24% 36%,#e8ecce 36% 68%,#c44633 68% 76%,#e4d3ae 76%); box-shadow: inset 0 0 0 1px rgba(40,50,40,.1); }
.goods-thumb.product-two { background-image: linear-gradient(145deg,#dbe7f4 0 28%,#4f87bd 28% 42%,#f6f7ef 42% 72%,#e1ad3c 72%); }
.goods-thumb.product-three { background-image: linear-gradient(155deg,#f5eee2 0 22%,#b77842 22% 35%,#e8ddbf 35% 70%,#6d9144 70%); }
.goods-thumb.product-four { background-image: linear-gradient(145deg,#f2d74e 0 30%,#b1362e 30% 42%,#f5eccf 42% 70%,#5e923c 70%); }
.delivery-product { display: block; padding: 11px 0; border-top: 1px dashed #dfe3e7; }
.product-copy { min-width: 0; }
.product-title { display: block; }
.product-title > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.product-spec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.product-spec > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-spec > em { flex: 0 0 auto; color: var(--ink); font-style: normal; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; color: #616a73; font-size: 11px; }
.product-price-row b { color: #4d5660; font-size: 12px; }
.product-price-row strong { color: var(--ink); font-size: 14px; }
.product-total { margin-top: 7px; color: #535b63; font-size: 11px; }
.product-total b { color: var(--ink); font-size: 13px; }
.order-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 10px; }
.order-actions button, .readonly-link { height: 36px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.text-danger { color: var(--red); background: #fff0f1; }
.primary-small { color: #fff; background: var(--blue); }
.readonly-link { width: 100%; color: var(--blue-dark); background: var(--blue-soft); }
.completed-order-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.completed-order-actions span { color: #d48b2b; font-size: 12px; }
.completed-order-actions button { min-width: 116px; height: 36px; border-radius: 5px; font-size: 12px; font-weight: 700; }

.bottom-nav { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: 1fr 94px 1fr; align-items: center; padding: 7px 24px 5px; border-top: 1px solid #dfe3e7; background: #fff; }
.bottom-nav > button { min-width: 0; height: 48px; display: grid; justify-items: center; align-content: center; gap: 3px; color: #8b9299; background: transparent; font-size: 10px; }
.bottom-nav > button.active { color: var(--blue); }
.bottom-nav b { font-weight: 600; }
.nav-icon { position: relative; display: block; width: 23px; height: 23px; }
.list-icon { border: 2px solid currentColor; border-radius: 4px; }
.list-icon:before, .list-icon:after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: currentColor; box-shadow: 0 6px currentColor; }
.list-icon:before { top: 5px; }
.user-icon { border: 2px solid currentColor; border-radius: 50% 50% 45% 45%; border-top-color: transparent; }
.user-icon:before { content: ""; position: absolute; left: 6px; top: -4px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; background: #fff; }
.box-icon { border: 2px solid currentColor; border-radius: 3px; }
.box-icon:after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; background: currentColor; box-shadow: 0 5px currentColor; }
.bottom-nav .scan-main { position: relative; height: 48px; }
.scan-main:before { content: ""; position: absolute; left: 50%; top: -34px; width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px rgba(36,71,122,.16); transform: translateX(-50%); }
.scan-main .scan-glyph { --scan-color: #fff; position: absolute; z-index: 1; left: 50%; top: -29px; width: 48px; height: 48px; border-radius: 50%; background-color: var(--blue); background-position: 12px 12px,12px 12px,calc(100% - 12px) 12px,calc(100% - 12px) 12px,12px calc(100% - 12px),12px calc(100% - 12px),calc(100% - 12px) calc(100% - 12px),calc(100% - 12px) calc(100% - 12px); background-size: 9px 3px,3px 9px,9px 3px,3px 9px,9px 3px,3px 9px,9px 3px,3px 9px; box-shadow: 0 5px 12px rgba(59,125,255,.3); transform: translateX(-50%); }
.scan-main .scan-glyph:after { left: 12px; right: 12px; top: 23px; }
.scan-main b { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1px; color: var(--blue); }

.camera-screen { color: #fff; background: #0c1115; }
.camera-screen > header { color: #fff; background: #0c1115; border-bottom: 0; }
.camera-screen > header h1 { font-size: 18px; }
.flash-btn { color: #fff; background: transparent; font-size: 12px; }
.camera-view { height: 430px; display: grid; place-items: center; align-content: center; gap: 26px; background: radial-gradient(circle at 62% 30%,#44515a,#1e282e 36%,#0d1216 76%); }
.scan-frame { position: relative; width: 218px; height: 218px; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border-color: var(--blue); border-style: solid; }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-width: 4px 0 0 4px; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-width: 4px 4px 0 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 4px 4px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; }
.scan-frame span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.camera-view p { margin: 0; font-size: 13px; }
.simulate-scan, .ghost-camera-btn { min-height: 38px; padding: 0 18px; border-radius: 19px; color: #fff; background: rgba(59,125,255,.86); font-weight: 700; }
.ghost-camera-btn { margin-top: -16px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.26); }
.scan-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 408px; padding: 17px 15px; border-radius: 18px 18px 0 0; color: var(--ink); background: #fff; box-shadow: 0 -10px 28px rgba(0,0,0,.16); }
.scan-sheet > header { display: flex; align-items: center; justify-content: space-between; }
.scan-sheet header span b, .scan-sheet header span em { display: block; }
.scan-sheet header span b { font-size: 17px; }
.scan-sheet header span em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.scan-sheet header > i { color: #a26500; font-size: 11px; font-style: normal; }
.scan-results { max-height: 124px; overflow-y: auto; margin-top: 12px; }
.scan-results article { display: grid; grid-template-columns: 1fr 28px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.scan-results b, .scan-results em { display: block; }
.scan-results b { font-size: 13px; }
.scan-results em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.scan-results button { width: 26px; height: 26px; border-radius: 50%; color: #777; background: #eef0f2; }
.claim-vehicle { display: block; margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
.claim-vehicle > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.claim-vehicle > span em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
.claim-vehicle > div { position: relative; }
.claim-vehicle select { width: 100%; height: 44px; appearance: none; padding: 0 42px 0 13px; border: 1px solid #d8dee7; border-radius: 6px; color: var(--ink); background: #f7f8fa; font: inherit; font-size: 14px; }
.claim-vehicle select:focus { border-color: var(--blue); background: #fff; outline: 3px solid rgba(59,125,255,.14); }
.claim-vehicle select:disabled { color: var(--blue-dark); background: #eef4ff; opacity: 1; }
.claim-vehicle option:disabled { color: #a8afb7; }
.claim-vehicle .select-chevron { position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; pointer-events: none; border-right: 2px solid #7f8892; border-bottom: 2px solid #7f8892; transform: translateY(-70%) rotate(45deg); }
.claim-vehicle small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.claim-btn { position: absolute; left: 15px; right: 15px; bottom: 14px; width: calc(100% - 30px); }
.claim-btn:disabled { color: #fff; background: #b8c7df; opacity: 1; }
.locate-camera { height: calc(100% - 56px); }

.delivery-scroll, .detail-scroll { height: calc(100% - 112px); overflow-y: auto; padding: 12px; }
.delivery-customer, .delivery-goods, .credential-section, .remark-box, .warehouse-detail-card, .detail-products { display: block; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.delivery-customer > div, .section-heading, .detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.delivery-customer b { font-size: 16px; }
.delivery-customer p, .delivery-customer small { display: block; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.delivery-goods h2, .credential-section h2, .detail-products h2 { margin: 0 0 8px; font-size: 15px; }
.delivery-goods .delivery-product:first-of-type { border-top-style: solid; }
.section-heading h2 { margin: 0; }
.section-heading h2 em { color: var(--red); font-style: normal; }
.section-heading span { color: var(--muted); font-size: 11px; }
.credential-section > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 13px; }
.media-grid figure, .media-add { position: relative; min-width: 0; min-height: 96px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fa; }
.media-grid figure > button { position: absolute; z-index: 2; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: rgba(20,25,30,.68); }
.media-thumb { display: grid; place-items: center; height: 70px; color: #fff; background-color: #ced9df; background-image: linear-gradient(145deg,rgba(26,103,61,.15),rgba(255,255,255,.1)),repeating-linear-gradient(25deg,#9db8a8 0,#9db8a8 8px,#c6d7cc 8px,#c6d7cc 17px); font-weight: 700; }
.receipt-one { background-image: linear-gradient(135deg,#f4f1e8 0 38%,#d8e7ef 38% 52%,#fbfaf6 52%); }
.receipt-two { background-image: linear-gradient(145deg,#e8eef4 0 30%,#90b4ce 30% 52%,#f3f6f8 52%); }
.receipt-three { background-image: linear-gradient(150deg,#efe9df 0 42%,#d3a46e 42% 48%,#f8f3ec 48%); }
.cargo-one { background-image: linear-gradient(170deg,#b9cfbf 0 36%,#5f775e 36% 43%,#cfb58d 43% 70%,#81928a 70%); }
.video-thumb { background-image: linear-gradient(145deg,#718399,#354554); font-size: 25px; }
.media-grid figcaption { padding: 6px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4c555e; font-size: 9px; }
.media-add { display: grid; place-items: center; align-content: center; gap: 5px; color: #67717a; background: #fff; }
.driver-media { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.driver-media figure, .driver-media .media-add { min-height: 0; aspect-ratio: 1; border: 0; border-radius: 7px; background: #f1f2f3; }
.driver-media .media-thumb { width: 100%; height: 100%; }
.driver-media figure > button { right: 2px; top: 2px; width: 19px; height: 19px; font-size: 12px; }
.driver-media .media-add { color: #b4b8bc; background: #f1f2f3; }
.driver-media .media-add span { font-size: 34px; font-weight: 300; line-height: 1; }
.driver-media .media-add b { display: none; }
.receipt-camera { background-color: #8a8378; background-image: linear-gradient(158deg,#d9d2c7 0 26%,#a8a49c 26% 43%,#e2ded5 43% 60%,#81756a 60% 79%,#3c342e 79%); filter: saturate(.72); }

.device.driver-camera-active .phone-status { color: transparent; background: #000; }
.device.driver-camera-active .phone-status:after { content: ""; position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #26d366; box-shadow: 0 0 0 2px rgba(38,211,102,.2); transform: translateX(-50%); }
.driver-capture-screen { color: #fff; background: #000; }
.driver-camera-stage { position: absolute; inset: 0 0 245px; overflow: hidden; background: #000; }
.driver-camera-scene { position: absolute; left: -12px; right: -12px; top: 104px; bottom: 0; background-color: #968f84; background-image: linear-gradient(155deg,#d8d2c9 0 22%,#aaa59c 22% 39%,#dedbd3 39% 55%,#756d64 55% 72%,#443a33 72% 88%,#171310 88%); filter: blur(7px) saturate(.62); transform: scale(1.08); transition: transform .22s ease, filter .22s ease; }
.driver-camera-stage.zoom-wide .driver-camera-scene { transform: scale(1); }
.driver-camera-stage.is-front .driver-camera-scene { background-image: linear-gradient(145deg,#d2c4b9 0 20%,#8f7b6f 20% 36%,#d6d0c7 36% 55%,#665b54 55% 72%,#25211f 72%); filter: blur(8px) saturate(.58); transform: scale(1.1) scaleX(-1); }
.driver-camera-flash { position: absolute; z-index: 3; right: 22px; top: 22px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(35,35,38,.88); }
.driver-camera-flash span { font-size: 27px; line-height: 1; transform: translateY(-2px); }
.driver-camera-flash small { position: absolute; right: 12px; bottom: 10px; font-size: 9px; font-weight: 800; }
.driver-camera-flash.active { color: #ffd641; }
.driver-camera-zoom { position: absolute; z-index: 3; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.driver-camera-zoom button { width: 47px; height: 47px; border-radius: 50%; color: #fff; background: transparent; font-size: 17px; }
.driver-camera-zoom button.active { color: #ffe24a; background: rgba(28,28,30,.82); }
.driver-camera-controls { position: absolute; left: 0; right: 0; bottom: 0; height: 245px; display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; padding: 22px 20px 16px; background: #000; }
.driver-camera-controls > div { align-self: stretch; display: grid; justify-items: center; align-content: center; gap: 18px; }
.driver-camera-controls > div b { color: #ffd73e; font-size: 15px; font-weight: 500; }
.driver-camera-close, .driver-camera-flip { width: 54px; height: 54px; display: grid; place-items: center; justify-self: center; border-radius: 50%; color: #fff; background: #202023; }
.driver-camera-close span { position: relative; width: 25px; height: 25px; }
.driver-camera-close span:before, .driver-camera-close span:after { content: ""; position: absolute; left: 11px; top: -1px; width: 2px; height: 28px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.driver-camera-close span:after { transform: rotate(-45deg); }
.driver-camera-flip span { font-size: 34px; line-height: 1; }
.driver-camera-flip.is-turning span { animation: driver-camera-turn .26s ease; }
.driver-camera-shutter { width: 80px; height: 80px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.52); border-radius: 50%; background: #050505; box-shadow: 0 0 0 2px #000; }
.driver-camera-shutter span { width: 66px; height: 66px; border-radius: 50%; background: #fff; transition: transform .12s ease; }
.driver-camera-shutter:active span { transform: scale(.93); }
.driver-camera-capture-flash { position: absolute; z-index: 8; inset: 0; visibility: hidden; background: #fff; opacity: 0; pointer-events: none; }
.driver-camera-capture-flash.show { visibility: visible; animation: driver-camera-flash .18s ease-out; }
@keyframes driver-camera-flash { 0% { opacity: 0; } 35% { opacity: .92; } 100% { opacity: 0; } }
@keyframes driver-camera-turn { from { transform: rotate(0); } to { transform: rotate(180deg); } }
.media-add span { font-size: 26px; font-weight: 400; }
.media-add b { font-size: 10px; }
.remark-box span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.remark-box textarea { width: 100%; min-height: 72px; resize: none; border: 0; padding: 8px 0; outline: none; background: transparent; }
.sticky-submit { position: absolute; left: 0; right: 0; bottom: 0; min-height: 58px; display: grid; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); background: #fff; }
.sticky-submit button { width: 100%; }
.split-submit { grid-template-columns: .8fr 1.4fr; gap: 9px; }
.split-submit > button:first-child { height: 48px; border: 1px solid var(--line); border-radius: 7px; color: #5d6670; background: #fff; }
.result-banner { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; padding: 14px; border-radius: 7px; color: #086f45; background: #e8f8f1; }
.result-banner > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--green); font-size: 20px; }
.result-banner p { margin: 4px 0 0; font-size: 11px; }
.readonly-media figure { min-height: 98px; }

.profile-hero { height: 245px; position: relative; padding: 42px 22px 22px; color: #fff; }
.driver-profile-hero { background: linear-gradient(180deg,#3d80ff,#73b9ec); }
.warehouse-profile-hero { background: linear-gradient(180deg,#08aa66,#53c796); }
.settings-btn { position: absolute; right: 17px; top: 14px; color: #fff; background: transparent; font-size: 25px; }
.profile-user { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; margin-top: 34px; }
.avatar.large { width: 70px; height: 70px; color: #fff; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6); font-size: 24px; }
.profile-user b { font-size: 21px; }
.profile-user p { margin: 7px 0 0; font-size: 13px; }
.delivery-stats { padding: 17px 16px 20px; background: #fff; }
.delivery-stats h2 { margin: 0 0 18px; font-size: 18px; }
.delivery-stats > div { display: grid; grid-template-columns: repeat(3,1fr); }
.delivery-stats > div > span { display: grid; justify-items: center; gap: 5px; border-right: 1px solid var(--line); }
.delivery-stats > div > span:last-child { border-right: 0; }
.delivery-stats i { width: 30px; height: 5px; border-radius: 3px; background: var(--blue); }
.delivery-stats span:nth-child(2) i { background: var(--amber); }
.delivery-stats span:nth-child(3) i { background: var(--red); }
.delivery-stats b { font-size: 24px; }
.delivery-stats em { color: var(--muted); font-size: 12px; font-style: normal; }
.profile-actions { display: grid; margin-top: 10px; background: #fff; }
.profile-actions button { min-height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.profile-actions button b { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.settings-list { margin-top: 10px; background: #fff; }
.settings-list button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
.settings-list b { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 500; }
.settings-list .avatar { width: 42px; height: 42px; }
.logout-btn { width: calc(100% - 28px); height: 48px; margin: 26px 14px; border-radius: 7px; color: #fff; background: #b9bdc2; font-weight: 700; }

.warehouse-theme { --theme: var(--green); --theme-dark: var(--green-dark); }
.warehouse-hero { height: 158px; display: flex; justify-content: space-between; align-items: center; padding: 26px 20px; color: #fff; background: var(--green); }
.warehouse-hero h1, .warehouse-hero p { margin: 0; }
.warehouse-hero h1 { margin-top: 7px; font-size: 25px; }
.warehouse-hero p { font-size: 13px; opacity: .85; }
.warehouse-hero .avatar { color: var(--green-dark); background: #fff; }
.warehouse-stats { display: grid; grid-template-columns: repeat(2,1fr); margin: -22px 14px 0; position: relative; z-index: 2; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 7px 20px rgba(26,65,45,.12); }
.warehouse-stats button { min-width: 0; min-height: 92px; display: grid; grid-template-columns: minmax(0,1fr) 12px; gap: 8px; align-items: center; padding: 14px; border-right: 1px solid var(--line); background: #fff; text-align: left; }
.warehouse-stats button:last-child { border-right: 0; }
.warehouse-stats .warehouse-stat-copy { min-width: 0; display: block; }
.warehouse-stats b, .warehouse-stats small { display: block; }
.warehouse-stats b { color: var(--ink); font-size: 15px; line-height: 1.35; }
.warehouse-stats small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.warehouse-stats .row-chevron { justify-self: end; color: #9aa39e; }
.warehouse-home-content { padding: 18px 14px; }
.warehouse-focus { width: 100%; min-height: 84px; display: grid; grid-template-columns: 46px 1fr 15px; gap: 12px; align-items: center; padding: 14px; border: 1px solid #d9e9e1; border-radius: 7px; background: #fff; text-align: left; }
.warehouse-focus > .scan-glyph { --scan-color: var(--green); }
.warehouse-focus b { font-size: 16px; }
.warehouse-focus p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.warehouse-focus i { color: #9aa39e; font-style: normal; }
.warehouse-focus .row-chevron { justify-self: end; }
.warehouse-nav > button.active, .warehouse-nav .scan-main b { color: var(--green); }
.warehouse-nav .scan-main .scan-glyph { background-color: var(--green); box-shadow: 0 5px 12px rgba(8,185,107,.3); }
.warehouse-header { color: #fff; background: var(--green); border-bottom: 0; }
.warehouse-header > button:not(.back-light) { color: #fff; background: transparent; font-size: 12px; }
.warehouse-search button { background: var(--green); }
.warehouse-tabs button.active:after { background: var(--green); }
.warehouse-orders { height: calc(100% - 122px); padding: 10px; counter-reset: warehouse-order; }
.warehouse-order { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; counter-increment: warehouse-order; }
.warehouse-order.is-located { box-shadow: 0 0 0 3px rgba(8,185,107,.15); }
.warehouse-order-head { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; padding: 12px 38px 12px 13px; background: #fff; text-align: left; }
.warehouse-order-head:before { content: counter(warehouse-order) "."; flex: 0 0 12px; width: 12px; align-self: flex-start; margin: 1px 3px 0 0; color: var(--green-dark); font-size: 12px; font-weight: 700; line-height: 1.35; }
.warehouse-order-head span b, .warehouse-order-head span em { display: block; }
.warehouse-order-head b { font-size: 15px; }
.warehouse-order-head em { margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; }
.warehouse-order-head p { grid-column: 1/3; margin: 0; color: #59636c; font-size: 11px; }
.warehouse-order-head > .toggle-chevron { position: absolute; right: 6px; top: 50%; color: #8f9a94; transform: translateY(-50%); }
.warehouse-order.is-open .warehouse-order-head > .toggle-chevron:before { transform: translateY(2px) rotate(225deg); }
.warehouse-products { display: none; padding: 0 12px 12px; border-top: 1px solid var(--line); background: #fafcfb; }
.warehouse-order.is-open .warehouse-products { display: block; }
.warehouse-table-wrap { margin: 0 -12px; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.warehouse-goods-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.warehouse-goods-table th, .warehouse-goods-table td { height: 46px; padding: 8px 10px; border-right: 1px solid #e1e6e3; border-bottom: 1px solid #e1e6e3; text-align: center; vertical-align: middle; font-size: 14px; font-weight: 650; }
.warehouse-goods-table th { color: #33423b; background: #f2f5f3; font-weight: 700; }
.warehouse-goods-table thead th { height: 38px; font-size: 12px; }
.warehouse-goods-table thead th:first-child { width: 42%; }
.warehouse-goods-table thead th:nth-child(2) { width: 32%; }
.warehouse-goods-table thead th:nth-child(3) { width: 26%; }
.warehouse-goods-table .warehouse-product-title th { height: 40px; padding: 8px 10px; background: #f7faf8; text-align: left; }
.warehouse-product-title th { position: static; width: auto; box-shadow: none; }
.warehouse-product-title th span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.warehouse-spec-row .warehouse-spec-batch { display: block; width: 100%; padding: 0; color: var(--green-dark); background: transparent; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.warehouse-out-btn { width: 100%; height: 38px; margin-top: 10px; border-radius: 6px; color: #fff; background: var(--green); font-weight: 700; }
.warehouse-frame i { border-color: var(--green); }
.warehouse-frame span { background: var(--green); box-shadow: 0 0 12px var(--green); }
.warehouse-simulate { background: rgba(8,185,107,.9); }
.warehouse-capture-screen { background: #050708; }
.warehouse-capture-screen > header { position: relative; z-index: 2; }
.capture-view { position: relative; height: calc(100% - 238px); display: grid; place-items: center; align-content: end; padding-bottom: 28px; overflow: hidden; background-color: #58635e; background-image: linear-gradient(165deg,rgba(255,255,255,.22),rgba(255,255,255,0) 32%),linear-gradient(25deg,#27312d 0 18%,#6f7f76 18% 34%,#b3aa91 34% 51%,#53665e 51% 68%,#9b8d74 68% 82%,#3b4541 82%); }
.capture-view:after { content: ""; position: absolute; inset: 0; background: rgba(12,17,15,.18); backdrop-filter: blur(2px); }
.capture-focus { position: relative; z-index: 1; width: 150px; height: 108px; border: 1px solid rgba(255,255,255,.8); }
.capture-focus:before, .capture-focus:after, .capture-focus span:before, .capture-focus span:after { content: ""; position: absolute; width: 22px; height: 22px; border-color: #fff; border-style: solid; }
.capture-focus:before { left: -2px; top: -2px; border-width: 3px 0 0 3px; }
.capture-focus:after { right: -2px; top: -2px; border-width: 3px 3px 0 0; }
.capture-focus span:before { left: -2px; bottom: -2px; border-width: 0 0 3px 3px; }
.capture-focus span:after { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; }
.capture-view p { position: relative; z-index: 1; margin: 18px 0 0; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.capture-controls { position: absolute; left: 0; right: 0; bottom: 0; height: 182px; display: grid; justify-items: center; align-content: start; padding-top: 15px; color: #fff; background: #050708; }
.capture-modes { display: flex; gap: 30px; }
.capture-modes button { position: relative; padding: 4px 6px 9px; color: #9ba1a4; background: transparent; font-size: 12px; }
.capture-modes button.active { color: #fff; font-weight: 700; }
.capture-modes button.active:after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); transform: translateX(-50%); }
.capture-shutter { width: 68px; height: 68px; display: grid; place-items: center; margin-top: 10px; border: 3px solid #fff; border-radius: 50%; background: transparent; }
.capture-shutter span { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.capture-controls.video-mode .capture-shutter span { width: 28px; height: 28px; border-radius: 6px; background: #f04f4f; }
.capture-controls > p { margin: 9px 0 0; color: #aab0b3; font-size: 10px; }
.warehouse-detail-card h2, .warehouse-detail-card p, .warehouse-detail-card small { display: block; margin: 0; }
.warehouse-detail-card h2 { font-size: 17px; }
.warehouse-detail-card p { margin-top: 8px; color: var(--green-dark); font-size: 12px; }
.warehouse-detail-card small { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.detail-products { padding-bottom: 4px; }
.detail-heading span { color: var(--green-dark); font-size: 11px; }
.detail-products article { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); }
.detail-products article b, .detail-products article em { display: block; }
.detail-products article b { font-size: 12px; }
.detail-products article em, .detail-products article small { color: var(--muted); font-size: 10px; font-style: normal; }
.detail-products article button { grid-column: 2; grid-row: 2/4; min-height: 31px; padding: 0 9px; border-radius: 5px; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 700; }
.warehouse-primary { color: #fff !important; background: var(--green) !important; }
.warehouse-media { grid-template-columns: repeat(4,1fr); }
.warehouse-media figure, .warehouse-media .media-add { min-height: 86px; }
.warehouse-media .media-thumb { height: 61px; }
.finished-list { height: calc(100% - 112px); padding: 10px; }
.finished-order { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 7px; background: #fff; }
.finished-summary { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; background: #fff; text-align: left; }
.finished-summary > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.finished-summary time { margin-right: 5px; color: var(--green-dark); font-size: 12px; }
.finished-summary > span { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.finished-status { padding: 0; border: 0; border-radius: 0; font-size: 11px; font-style: normal; font-weight: 500; background: transparent; }
.finished-status.amber-text { color: #ad7000; }
.finished-status.blue-text { color: #2f70d8; }
.finished-status.green-text { color: var(--green-dark); }
.finished-summary .toggle-chevron { color: #8f9a94; }
.finished-order.is-open .finished-summary .toggle-chevron:before { transform: translateY(2px) rotate(225deg); }
.finished-detail { display: none; padding: 0 13px 13px; border-top: 1px solid var(--line); }
.finished-order.is-open .finished-detail { display: block; }
.finished-detail p, .finished-detail small { display: block; margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.finished-media-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.finished-media-grid figure { min-height: 0; aspect-ratio: 1; cursor: pointer; border: 0; border-radius: 6px; background: #f1f3f4; }
.finished-media-grid .media-thumb { width: 100%; height: 100%; }
.finished-media-grid .video-thumb { position: relative; font-size: 19px; }
.finished-media-grid .video-thumb i { position: absolute; right: 3px; bottom: 3px; padding: 1px 3px; border-radius: 2px; color: #fff; background: rgba(16,24,31,.72); font-size: 8px; font-style: normal; line-height: 1.25; }
.finished-media-grid figcaption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finished-media-grid .finished-media-overflow:after { content: "+6"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(29,38,43,.58); font-size: 17px; font-weight: 700; }
.finished-media-grid .finished-media-hidden { display: none; }
.filter-empty { margin: 80px 0 0; color: #929aa1; text-align: center; font-size: 12px; }
.warehouse-header > button.has-filter { position: relative; font-weight: 700; }
.warehouse-header > button.has-filter:after { content: ""; position: absolute; right: 4px; top: 9px; width: 6px; height: 6px; border: 2px solid var(--green); border-radius: 50%; background: #fff; }

.warehouse-filter-layer, .warehouse-date-layer { position: absolute; z-index: 95; inset: 28px 0 0; display: none; }
.warehouse-filter-layer.open, .warehouse-date-layer.open { display: block; }
.warehouse-filter-mask, .warehouse-date-mask { position: absolute; inset: 0; background: rgba(17,23,27,.56); }
.warehouse-filter-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 88%; display: grid; grid-template-rows: 58px 1fr 68px; color: var(--ink); background: #fff; box-shadow: -12px 0 34px rgba(18,28,23,.2); }
.warehouse-filter-drawer > header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 0 9px; border-bottom: 1px solid var(--line); }
.warehouse-filter-drawer > header h2 { grid-column: 2; margin: 0; text-align: center; font-size: 20px; }
.warehouse-filter-drawer > header button { grid-column: 3; color: #a2a8ad; background: transparent; font-size: 29px; font-weight: 300; }
.warehouse-filter-content { overflow-y: auto; padding: 18px 16px 20px; }
.warehouse-filter-field { position: relative; margin-bottom: 23px; }
.warehouse-filter-field h3 { margin: 0 0 10px; font-size: 15px; }
.filter-date-trigger { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; border: 1px solid #d9dee1; border-radius: 6px; color: #92999f; background: #fff; text-align: left; font-size: 13px; }
.filter-date-trigger.has-value { border-color: rgba(8,185,107,.55); color: #313a36; }
.filter-date-trigger .row-chevron { color: #a0a7ab; transform: rotate(90deg); }
.filter-choice-group { display: flex; flex-wrap: wrap; gap: 9px 8px; }
.filter-choice-group button { min-height: 38px; padding: 0 12px; border: 1px solid #d9dee1; border-radius: 6px; color: #333b38; background: #fff; font-size: 13px; }
.filter-choice-group button.active { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.driver-filter-input { position: relative; }
.driver-filter-input input { width: 100%; height: 44px; padding: 0 38px 0 12px; border: 1px solid #d9dee1; border-radius: 6px; outline: none; }
.driver-filter-input input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,185,107,.1); }
.search-mini { position: absolute; right: 14px; top: 13px; width: 14px; height: 14px; border: 2px solid #8d9691; border-radius: 50%; pointer-events: none; }
.search-mini:after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 2px; border-radius: 1px; background: #8d9691; transform: rotate(45deg); }
.driver-suggestions { position: absolute; z-index: 2; left: 0; right: 0; top: 71px; overflow: hidden; border: 1px solid #dce2df; border-radius: 6px; background: #fff; box-shadow: 0 9px 22px rgba(23,34,29,.14); }
.driver-suggestions button { width: 100%; height: 40px; padding: 0 12px; border-bottom: 1px solid #edf0ee; color: #333b37; background: #fff; text-align: left; font-size: 13px; }
.driver-suggestions button:last-child { border-bottom: 0; }
.warehouse-filter-drawer > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: #fff; }
.warehouse-filter-drawer > footer button { height: 44px; border: 1px solid var(--green); border-radius: 6px; color: var(--green-dark); background: #fff; font-size: 15px; font-weight: 700; }
.warehouse-filter-drawer > footer button:last-child { color: #fff; background: var(--green); }

.warehouse-date-layer { z-index: 105; }
.warehouse-date-sheet { position: absolute; left: 0; right: 0; bottom: 0; min-height: 390px; color: var(--ink); background: #fff; box-shadow: 0 -12px 36px rgba(15,23,19,.2); }
.warehouse-date-sheet > header { height: 58px; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.warehouse-date-sheet > header h2 { margin: 0; text-align: center; font-size: 18px; }
.warehouse-date-sheet > header button { color: #68716c; background: transparent; font-size: 13px; }
.warehouse-date-sheet > header button:last-child { color: var(--green-dark); font-weight: 700; }
.date-wheel-wrap { min-height: 330px; display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 3px; padding: 12px 12px 22px; }
.date-wheel-set h3 { margin: 0 0 13px; color: #7d8580; text-align: center; font-size: 11px; font-weight: 500; }
.date-wheel-columns { position: relative; display: grid; grid-template-columns: 1.45fr .9fr .9fr; gap: 2px; }
.date-wheel-columns:before, .date-wheel-columns:after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 1px; background: #edf0ee; pointer-events: none; }
.date-wheel-columns:before { top: 41px; }
.date-wheel-columns:after { top: 83px; }
.date-wheel-column { display: grid; }
.date-wheel-column button { height: 42px; padding: 0; color: #abb0ad; background: transparent; font-size: 13px; }
.date-wheel-column button.active { color: var(--green-dark); font-size: 15px; font-weight: 700; }
.date-wheel-column button span { margin-left: 2px; font-size: 10px; }
.date-range-divider { align-self: center; margin-top: 24px; color: var(--green); text-align: center; }

.modal { position: absolute; z-index: 80; inset: 28px 0 0; display: none; place-items: center; }
.modal.open { display: grid; }
.modal-mask { position: absolute; inset: 0; background: rgba(17,22,27,.48); }
.modal.numeric-input-open { place-items: start center; padding: 8px 0 242px; }
.dialog { position: relative; z-index: 1; width: calc(100% - 30px); overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.batch-dialog { width: calc(100% - 14px); max-height: calc(100% - 24px); }
.batch-dialog > header { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; background: var(--green); }
.batch-dialog h2 { margin: 0; font-size: 18px; }
.batch-dialog header button { color: #fff; background: transparent; font-size: 24px; }
.batch-product { padding: 12px 10px 10px; border-bottom: 1px solid var(--line); }
.batch-product-head { display: grid; gap: 6px; }
.batch-product-head p { min-width: 0; margin: 0; color: #3f4851; font-size: 11.5px; }
.batch-product-head b { color: var(--ink); font-size: 13px; }
.batch-metrics { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 11px; }
.batch-metrics span { min-width: 0; padding-left: 7px; border-left: 3px solid var(--green); }
.batch-metrics em, .batch-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-metrics em { color: #707981; font-size: 10.5px; font-style: normal; }
.batch-metrics b { margin-top: 3px; color: var(--green-dark); font-size: 12px; }
.batch-table-wrap { padding: 0 8px 10px; overflow: hidden; }
.batch-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.batch-table th, .batch-table td { border: 1px solid #dfe5e3; text-align: center; vertical-align: middle; }
.batch-table th { height: 39px; padding: 5px 2px; color: #26312d; background: #eef8f4; font-size: 11px; font-weight: 700; }
.batch-table th:nth-child(1), .batch-table th:nth-child(2) { width: 21%; }
.batch-table th:nth-child(3) { width: 21%; }
.batch-table th:nth-child(4) { width: 37%; }
.batch-table td { height: 62px; padding: 5px 2px; color: #3f4844; font-size: 10.5px; line-height: 1.3; }
.batch-quantity-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; }
.batch-quantity-inputs:has([data-batch-secondary-wrap].is-hidden) { grid-template-columns: 1fr; }
.batch-quantity-inputs label { min-width: 0; display: flex; align-items: center; gap: 2px; }
.batch-quantity-inputs input { min-width: 0; width: 100%; height: 32px; padding: 0 3px; border: 1px solid #dce2e0; border-radius: 4px; text-align: center; font-size: 11px; outline: none; }
.batch-quantity-inputs input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(8,185,107,.12); }
.batch-quantity-inputs input.keyboard-active { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(8,185,107,.14); font-weight: 700; }
.batch-quantity-inputs span { flex: 0 0 auto; color: #37413d; font-size: 10px; }.dialog footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dialog footer button { height: 50px; background: #fff; font-weight: 700; }
.confirm-dialog { padding-top: 22px; text-align: center; }
.dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: var(--amber); font-size: 22px; font-weight: 800; }
.confirm-dialog h2 { margin: 0; font-size: 18px; }
.confirm-dialog p { margin: 10px 24px 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.confirm-dialog footer .primary-btn { display: block; border-left: 1px solid var(--line); border-radius: 0; color: var(--blue); background: #fff; }

.number-keyboard { position: absolute; z-index: 120; left: 0; right: 0; bottom: 0; display: none; color: var(--ink); background: #d9dde2; box-shadow: 0 -8px 24px rgba(19,27,23,.22); }
.number-keyboard.open { display: block; }
.number-keyboard > header { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-top: 1px solid #d4d9dc; background: #f8f9fa; }
.number-keyboard > header span { color: #59616a; font-size: 12px; }
.number-keyboard > header button { height: 32px; padding: 0 4px; color: var(--green-dark); background: transparent; font-size: 14px; font-weight: 700; }
.number-keyboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; padding: 1px 0 0; background: #cbd0d5; }
.number-keyboard-grid button { height: 48px; padding: 0; color: #181b20; background: #fff; font-size: 21px; font-weight: 500; }
.number-keyboard-grid button:active { background: #e8f6ef; }
.number-keyboard-grid .keyboard-clear { color: #667078; font-size: 13px; }
.number-keyboard-grid .keyboard-delete { color: #3d474f; background: #edf0f2; font-size: 22px; }

.media-preview { position: absolute; z-index: 90; inset: 28px 0 0; display: none; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 20px; color: #fff; background: rgba(8,12,15,.94); }
.media-preview.open { display: grid; }
.preview-close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 23px; }
.preview-arrow { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); }
.preview-arrow:before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px; }
.preview-arrow.prev:before { transform: translateX(2px) rotate(135deg); }
.preview-arrow.next:before { transform: translateX(-2px) rotate(-45deg); }
.preview-content { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.preview-content .media-thumb { width: 100%; height: 360px; border-radius: 7px; }
.preview-content b { font-size: 13px; }
.preview-content em { color: #aeb5bc; font-size: 11px; font-style: normal; }
.toast { position: absolute; z-index: 100; left: 50%; bottom: 86px; max-width: 82%; padding: 9px 14px; border-radius: 18px; color: #fff; background: rgba(20,24,28,.86); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 760px) {
  .prototype-stage { display: block; padding: 0; }
  .prototype-menu, .prototype-notes { display: none; }
  .device { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
