* { box-sizing: border-box; }
:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #20242a;
  background: #eef1f4;
  font-synthesis: none;
}
html { min-height: 100%; background: #eef1f4; }
body { margin: 0; min-height: 100vh; background: #eef1f4; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
[hidden] { display: none !important; }
.app-shell { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; background: #f7f8fa; }

.topbar { position: sticky; top: 0; z-index: 1000; overflow: visible; padding: 10px 12px 8px; border-bottom: 1px solid #dfe3e8; background: rgba(255,255,255,.98); }
.title-row { position: relative; display: flex; align-items: center; justify-content: center; min-height: 28px; }
.title-row h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.user-button { position: absolute; right: 0; max-width: 84px; overflow: hidden; border: 0; padding: 5px 4px; background: transparent; color: #68717c; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.meta-row { position: relative; display: flex; align-items: center; justify-content: center; min-height: 28px; }
.meta-row strong { color: #4d5660; font-size: 20px; line-height: 1.3; }
.network-status { position: absolute; right: 0; color: #177245; font-size: 11px; font-weight: 800; }
.network-status.bad { color: #c33a32; }
.user-menu { position: absolute; top: calc(100% - 3px); right: 10px; z-index: 1010; width: 138px; overflow: hidden; border: 1px solid #d9dee4; border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgba(28,35,43,.17); }
.user-menu button { display: block; width: 100%; height: 40px; border: 0; border-bottom: 1px solid #edf0f3; background: #fff; color: #333a43; font-size: 13px; text-align: left; padding: 0 13px; }
.user-menu button:last-child { border-bottom: 0; }
.user-menu button:hover { background: #f4f6f8; }

.main-tabs { position: sticky; top: 74px; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e3e7eb; background: #fff; }
.main-tab { height: 36px; border: 0; border-radius: 6px; background: #eef1f4; color: #5d6671; font-size: 13px; font-weight: 900; }
.main-tab.active { background: #fff1df; color: #a94b0d; box-shadow: inset 0 0 0 1px #e8a25f; }
.view { padding: 9px; }

.processing-sections { display: grid; gap: 9px; }
.processing-zone { overflow: hidden; border: 1px solid #dfe3e7; border-radius: 7px; background: #fff; }
.zone-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 7px 10px; border-bottom: 1px solid #e7eaed; }
.zone-head h2 { margin: 0; font-size: 16px; }
.zone-head span { color: #6d7580; font-size: 11px; }
.skewer-zone .zone-head { border-left: 4px solid #df5b3c; background: #fff1ec; }
.prep-zone .zone-head { border-left: 4px solid #57975a; background: #eef7ed; }
.processing-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; min-height: 58px; padding: 7px 8px 7px 11px; border-bottom: 1px solid #e7eaed; background: #fffaf9; }
.processing-row:last-child { border-bottom: 0; }
.prep-zone .processing-row:not(.done) { background: #f8fcf7; }
.processing-name { min-width: 0; font-size: 15px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.processing-quantity { color: #707780; font-size: 10px; white-space: nowrap; }
.processing-quantity strong { margin-left: 2px; color: #d04f16; font-size: 18px; }
.processing-action { width: 78px; height: 35px; border: 0; border-radius: 6px; background: #dc5a3a; color: #fff; font-size: 11px; font-weight: 900; }
.prep-zone .processing-row:not(.done) .processing-action { background: #57975a; }
.processing-row.done { background: #f1f3f5; }
.processing-row.done .processing-name { color: #8d949c; text-decoration: line-through; text-decoration-color: #d4473d; text-decoration-thickness: 1px; }
.processing-row.done .processing-quantity, .processing-row.done .processing-quantity strong { color: #9aa0a7; }
.processing-row.done .processing-action { background: #a5acb4; }

.store-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin-bottom: 8px; }
.store-tab { min-height: 38px; border: 0; border-radius: 6px; padding: 3px 4px; background: #eceff3; color: #59626d; font-size: 12px; font-weight: 900; }
.store-tab.active { background: #fff0dc; color: #a74b0c; box-shadow: inset 0 0 0 1px #eba564; }
.shipping-panel { overflow: hidden; border: 1px solid #dfe3e7; border-radius: 7px; background: #fff; }
.shipping-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 47px; padding: 8px 10px; border-bottom: 1px solid #e5e8ec; background: #fff7ed; }
.shipping-head h2 { margin: 0; font-size: 17px; }
.shipping-head strong { color: #b75417; font-size: 12px; }
.shipping-row { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "product action" "reported action"; gap: 3px 8px; min-height: 70px; padding: 8px 9px; border-bottom: 1px solid #e7eaed; background: #fff; }
.shipping-row:last-child { border-bottom: 0; }
.shipping-row.shipped, .shipping-row.no-stock { background: #f1f3f5; }
.shipping-product { grid-area: product; min-width: 0; }
.shipping-product strong { display: block; color: #242a31; font-size: 15px; line-height: 1.25; }
.shipping-product small { display: block; margin-top: 2px; color: #727a84; font-size: 10px; line-height: 1.25; }
.inline-price { border: 0; padding: 0; background: transparent; color: #c65419; font-size: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.inline-price:disabled { opacity: 1; color: #727a84; text-decoration: none; cursor: default; }
.shipping-row.shipped .shipping-product strong, .shipping-row.no-stock .shipping-product strong { color: #8e949c; text-decoration: line-through; text-decoration-color: #d4473d; text-decoration-thickness: 1px; }
.reported { grid-area: reported; color: #747c86; font-size: 10px; align-self: center; }
.shipping-controls { grid-area: action; display: flex; align-items: center; gap: 5px; }
.qty-stepper { display: grid; grid-template-columns: 29px 34px 29px; height: 34px; overflow: hidden; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; }
.qty-stepper button { border: 0; background: #f3f5f7; color: #3f4751; font-size: 17px; }
.ship-qty { width: 34px; border: 0; border-right: 1px solid #e2e5e9; border-left: 1px solid #e2e5e9; color: #242a31; font-size: 14px; font-weight: 900; text-align: center; -moz-appearance: textfield; }
.ship-qty::-webkit-inner-spin-button, .ship-qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.ship-button { min-width: 63px; height: 35px; border: 0; border-radius: 6px; background: #ed7a20; color: #fff; font-size: 12px; font-weight: 900; }
.ship-button.shipped, .ship-button.no-stock { background: #a5acb4; }
.shipping-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe3e8; background: rgba(255,255,255,.97); }
.shipping-footer div { display: grid; gap: 2px; }
.shipping-footer span { color: #6e7781; font-size: 10px; }
.shipping-footer strong { color: #d45b16; font-size: 21px; }
.delivery-button { min-width: 112px; height: 42px; border: 0; border-radius: 6px; background: #0d8058; color: #fff; font-size: 14px; font-weight: 900; }
.delivery-button.receipt-ready { background: #2d69a6; }

.warnings { margin: 0 9px 14px; color: #b13f32; font-size: 11px; text-align: center; }
.empty { padding: 22px 12px; color: #858d96; font-size: 12px; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 12px; background: rgba(25,31,38,.46); }
.login-gate { z-index: 1000; padding: 22px; background: #eef3f6; }
.login-card { width: min(100%, 420px); padding: 0 26px 26px; overflow-x: hidden; border: 1px solid #d5e1e6; border-radius: 8px; box-shadow: 0 20px 54px rgba(16,79,114,.18); }
.login-brand { margin: 0 -26px 24px; padding: 28px 26px 25px; background: #104f72; color: #fff; text-align: center; }
.login-brand span { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.login-brand strong { display: block; color: #fff; font-size: 27px; line-height: 1.25; }
.login-brand small { display: block; margin-top: 8px; color: #d6eaf2; font-size: 13px; }
.login-card .modal-head { justify-content: center; margin-bottom: 16px; }
.login-card .modal-head h2 { color: #173344; font-size: 18px; }
.login-card > label { color: #405864; font-size: 13px; }
.login-card input { min-height: 48px; border-color: #cbd9df; font-size: 15px; }
.login-card input:focus { border-color: #117b7c; outline: 2px solid rgba(17,123,124,.13); }
.login-card .login-submit { width: 100%; min-height: 48px; background: #117b7c !important; font-size: 16px; }
.modal-card { width: min(100%, 760px); max-height: calc(100vh - 24px); overflow: auto; border-radius: 7px; background: #fff; box-shadow: 0 18px 44px rgba(18,25,33,.25); }
.modal-card.login-card { overflow-x: hidden; overflow-y: auto; }
.compact-card { width: min(100%, 390px); padding: 15px; }
.admin-card, .history-card { padding: 14px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head p { margin: 3px 0 0; color: #737b85; font-size: 11px; }
.modal-head-actions { display: flex; align-items: center; gap: 7px; }
.modal-head-actions .primary-button { min-height: 34px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.icon-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eff2f5; color: #4e5761; font-size: 23px; line-height: 1; }
.modal-card label { display: grid; gap: 5px; color: #525b66; font-size: 12px; font-weight: 800; }
.modal-card input, .modal-card select, .modal-card textarea { width: 100%; min-height: 40px; border: 1px solid #d7dce2; border-radius: 5px; padding: 8px 10px; background: #fff; color: #252b32; }
.modal-card textarea { resize: vertical; }
.compact-card > label { margin-bottom: 11px; }
.primary-button { min-height: 40px; border: 0; border-radius: 5px; padding: 0 16px; background: #2874b7; color: #fff; font-weight: 900; }
.form-message { min-height: 20px; margin: 6px 0; color: #18724b; font-size: 11px; }
.form-message.error { color: #bd3d33; }
.grid-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 10px; border: 1px solid #e1e5e9; border-radius: 6px; background: #f7f9fa; }
.wide-field { grid-column: 1 / -1; }
.customer-settlement-config { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 10px; border: 1px dashed #c9d7df; border-radius: 6px; background: #fff; }
.customer-settlement-config > [hidden] { display: none; }
.customer-prepay-notice { grid-column: 1/-1; padding: 10px 12px; border: 1px solid #d8e4e8; border-radius: 5px; background: #eef6f7; color: #465d67; line-height: 1.6; }
.customer-prepay-notice strong, .customer-prepay-notice span { display: block; }
.customer-prepay-notice span { margin-top: 3px; font-size: 11px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.form-actions button { min-height: 38px; border: 1px solid #ccd2d9; border-radius: 5px; padding: 0 15px; background: #fff; }
.form-actions .primary-button { border: 0; background: #2874b7; color: #fff; }
.admin-list { display: grid; gap: 8px; margin-top: 10px; }
.account-row, .product-row { display: grid; align-items: end; gap: 8px; padding: 9px; border: 1px solid #e0e4e8; border-radius: 6px; }
.account-row { grid-template-columns: minmax(120px,.8fr) repeat(3,minmax(120px,1fr)) auto; }
.product-row { grid-template-columns: minmax(120px,.8fr) repeat(2,minmax(120px,1fr)) auto; }
.account-identity { align-self: center; }
.account-identity strong { display: block; font-size: 14px; }
.account-status { display: inline-block; margin-top: 3px; color: #168052; font-size: 10px; }
.account-status.disabled { color: #b3463e; }
.account-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.account-actions button, .product-row-actions button { min-height: 34px; border: 1px solid #ccd2d9; border-radius: 5px; background: #fff; color: #3d4650; }
.account-actions .danger, .product-row-actions .danger { color: #bd3d33; }
.account-row small { grid-column: 1 / -1; color: #858d96; font-size: 10px; }
.product-row { grid-template-columns: minmax(140px,1fr) auto auto; align-items: center; }
.product-row-info strong { display: block; font-size: 14px; }
.product-row-info small { color: #7a828b; font-size: 10px; }
.product-row-price { color: #ca5518; font-size: 13px; font-weight: 900; }
.product-row-actions { display: flex; gap: 5px; }
.product-form output { display: flex; align-items: center; min-height: 40px; border: 1px solid #d7dce2; border-radius: 5px; padding: 8px 10px; background: #eef6ef; color: #15734c; font-size: 16px; font-weight: 900; }

.backend-card { width: min(100%, 640px); padding: 14px; }
.backend-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 11px; }
.backend-overview > div { min-height: 64px; border: 1px solid #dfe3e8; border-radius: 6px; padding: 9px; background: #f6f8fa; }
.backend-overview span, .backend-overview strong { display: block; }
.backend-overview span { color: #717984; font-size: 10px; }
.backend-overview strong { margin-top: 4px; color: #202733; font-size: 18px; }
.backend-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.backend-grid button { min-height: 74px; border: 1px solid #dfe3e8; border-radius: 6px; padding: 11px; background: #fff; text-align: left; }
.backend-grid strong, .backend-grid span { display: block; }
.backend-grid strong { color: #28303a; font-size: 15px; }
.backend-grid span { margin-top: 5px; color: #7a828c; font-size: 10px; }
.customer-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid #e0e4e8; border-radius: 6px; padding: 10px; background: #fff; }
.customer-row strong, .customer-row small { display: block; }
.customer-row strong { font-size: 14px; }
.customer-row small { margin-top: 3px; color: #78818b; font-size: 10px; }
.customer-row-actions { display: flex; gap: 5px; }
.customer-row-actions button { min-height: 34px; border: 1px solid #d2d7dc; border-radius: 5px; background: #fff; }

.customer-dashboard-card { width: min(100%, 620px); padding: 14px; }
.customer-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.customer-stats div { border: 1px solid #e0e4e8; border-left: 3px solid #e37132; border-radius: 5px; padding: 9px; }
.customer-stats span, .customer-stats strong { display: block; }
.customer-stats span { color: #777f89; font-size: 10px; }
.customer-stats strong { margin-top: 3px; font-size: 18px; }
.customer-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 10px 0; }
.customer-actions button { min-height: 44px; border: 1px solid #dfe3e7; border-radius: 5px; background: #fff; font-weight: 900; }
.customer-content h3 { margin: 10px 0 7px; font-size: 15px; }
.catalog-row, .customer-order { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; border-bottom: 1px solid #e6e9ec; padding: 7px 4px; }
.catalog-row strong, .catalog-row small { display: block; }
.catalog-row small { color: #79818a; font-size: 10px; }
.catalog-row b { color: #ca5518; white-space: nowrap; }
.customer-order > button:first-child { flex: 1; border: 0; background: transparent; text-align: left; }
.customer-order > button:first-child strong, .customer-order > button:first-child span { display: block; }
.customer-order > button:first-child span { margin-top: 3px; color: #737b85; font-size: 10px; }
.customer-order em { color: #168052; font-size: 11px; font-style: normal; }
.confirm-receipt { min-height: 35px; border: 0; border-radius: 5px; background: #19845a; color: #fff; font-weight: 900; }
.receipt-confirm-actions { display: flex; gap: 5px; }
.difference-receipt { min-height: 35px; border: 1px solid #dc6b32; border-radius: 5px; background: #fff6ef; color: #b34b1d; font-weight: 900; }
.bill-summary { border-radius: 5px; padding: 10px; background: #fff6e9; color: #a64c13; font-weight: 900; }
.audit-list { display: grid; gap: 7px; }
.audit-row { border: 1px solid #e0e4e8; border-radius: 6px; padding: 9px; }
.audit-row strong, .audit-row span { display: block; }
.audit-row span { margin-top: 3px; color: #77808a; font-size: 10px; }
.audit-row pre { max-height: 120px; overflow: auto; margin: 6px 0 0; white-space: pre-wrap; color: #525b65; font-size: 9px; }
.edit-order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.receipt-note { min-height: 48px; margin-top: 6px; border: 1px solid #dfe3e7; padding: 8px; color: #515a64; font-size: 11px; }

.receipt-modal { z-index: 300; align-items: end; padding: 0; }
#editDeliveryModal { z-index: 320; }
.receipt-card { position: relative; width: min(100%, 560px); max-height: 94vh; padding: 18px 14px 14px; border-radius: 7px 7px 0 0; }
.receipt-handle { width: 44px; height: 4px; margin: -9px auto 11px; border-radius: 4px; background: #d5d9de; }
.receipt-head { position: relative; text-align: center; }
.receipt-head h2 { margin: 0 0 5px; font-size: 19px; }
.receipt-head p { display: flex; justify-content: center; gap: 14px; margin: 3px 0; color: #707780; font-size: 10px; }
.receipt-date-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.receipt-date-button:not(:disabled) { color: #216ba7; text-decoration: underline; cursor: pointer; }
.receipt-status { font-weight: 900; }
.receipt-status.confirmed { color: #14784d; }
.receipt-status.difference { color: #bc4f1d; }
.receipt-status.void { color: #8a3333; text-decoration: line-through; }
.revision-badge { display: inline-block; margin-top: 5px; border-radius: 4px; padding: 3px 7px; background: #fff0dc; color: #a75114; font-size: 10px; font-weight: 900; }
.receipt-table-wrap { margin-top: 12px; overflow-x: auto; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.receipt-table th, .receipt-table td { padding: 9px 4px; border-bottom: 1px solid #e8ebee; text-align: right; }
.receipt-table th:first-child, .receipt-table td:first-child { text-align: left; }
.receipt-total { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 2px 8px; }
.receipt-total span { color: #6d7580; font-size: 12px; }
.receipt-total strong { color: #d45b16; font-size: 23px; }
.change-log { margin-top: 8px; overflow: hidden; border: 1px solid #eadbc9; border-radius: 5px; background: #fffaf2; }
.change-entry { padding: 8px; border-bottom: 1px solid #efe2d2; font-size: 10px; }
.change-entry:last-child { border-bottom: 0; }
.change-entry strong { display: block; margin-bottom: 3px; }
.change-entry p { margin: 2px 0; color: #5e6670; }
.receipt-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(92px,1fr)); gap: 7px; margin-top: 12px; }
.receipt-actions button { min-height: 40px; border: 1px solid #ccd3da; border-radius: 5px; background: #fff; color: #46505a; font-weight: 900; }
.receipt-actions .primary-button { border: 0; background: #17855a; color: #fff; }
.receipt-actions .danger-button { border-color: #d86a6a; color: #a73838; }
.edit-delivery-items { display: grid; gap: 6px; margin-bottom: 12px; }
.edit-delivery-row { display: grid; grid-template-columns: minmax(0,1fr) 88px; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e0e4e8; border-radius: 5px; }
.edit-delivery-row strong { font-size: 13px; }
.edit-delivery-row small { display: block; margin-top: 2px; color: #777f89; font-size: 10px; }

.history-filter { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.history-shortcuts { display: flex; gap: 7px; margin-top: 8px; }
.history-shortcuts button { min-height: 34px; border: 1px solid #d6dce2; border-radius: 5px; padding: 0 14px; background: #fff; font-weight: 800; }
.history-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 12px 0; }
.summary-box { padding: 11px; border: 1px solid #dfe4e8; border-radius: 6px; background: #f6f8fa; }
.summary-box span { display: block; color: #747c86; font-size: 10px; }
.summary-box strong { display: block; margin-top: 3px; color: #ca5518; font-size: 21px; }
.history-list { display: grid; gap: 7px; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; min-height: 54px; border: 1px solid #e0e4e8; border-radius: 6px; padding: 8px 10px; background: #fff; text-align: left; }
.history-open { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; width: 100%; border: 0; padding: 0; background: transparent; text-align: left; }
.history-row.void { opacity: .58; background: #f3f3f3; }
.history-void { min-height: 34px; border: 1px solid #d86a6a; border-radius: 5px; background: #fff; color: #a73838; font-weight: 800; }
.history-row strong { display: block; color: #282e35; font-size: 13px; }
.history-row small { color: #7b838c; font-size: 10px; }
.history-row b { color: #ca5518; font-size: 15px; }
.history-row span { color: #3170aa; font-size: 11px; }
.payment-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; border: 1px solid #e0e4e8; border-radius: 6px; padding: 9px; background: #fff; }
.payment-row strong, .payment-row small { display: block; }
.payment-row small { margin-top: 3px; color: #777f89; font-size: 10px; }
.payment-row b { color: #ca5518; }
.payment-row button { min-height: 34px; border: 1px solid #d86a6a; border-radius: 5px; background: #fff; color: #a73838; font-weight: 800; }
.payment-row.void { opacity: .58; text-decoration: line-through; }

.finance-card { width: min(100%, 860px); padding: 14px; }
.finance-card .history-filter { grid-template-columns: repeat(2,minmax(0,1fr)) auto; }
.finance-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 12px 0 8px; }
.finance-box { min-height: 72px; padding: 10px; border: 1px solid #dfe4e8; border-radius: 6px; background: #f6f8fa; }
.finance-box span, .finance-box strong { display: block; }
.finance-box span { color: #747c86; font-size: 10px; }
.finance-box strong { margin-top: 5px; color: #ca5518; font-size: 19px; }
.finance-box strong.positive { color: #14784d; }
.finance-box strong.negative { color: #bd3d33; }
.finance-notice { margin: 8px 0 12px; border-left: 3px solid #2874b7; border-radius: 4px; padding: 9px 10px; background: #eef6fc; color: #4c5965; font-size: 11px; line-height: 1.5; }
.finance-notice.warning { border-left-color: #db772c; background: #fff4e8; color: #9f4e16; }
.purchase-panel { margin-top: 12px; border-top: 1px solid #e2e6ea; padding-top: 12px; }
.purchase-panel h3 { margin: 0 0 8px; font-size: 15px; }
.purchase-form { grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; }
.purchase-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; border: 1px solid #e0e4e8; border-radius: 6px; padding: 9px; background: #fff; }
.purchase-row strong, .purchase-row small { display: block; }
.purchase-row small { margin-top: 3px; color: #777f89; font-size: 10px; }
.purchase-row b { color: #ca5518; font-size: 15px; }
.purchase-row button { min-height: 34px; border: 1px solid #d86a6a; border-radius: 5px; background: #fff; color: #a73838; font-weight: 800; }
.purchase-row.void { opacity: .58; text-decoration: line-through; }

.warehouse-view { display: grid; gap: 10px; }
.warehouse-titlebar, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.warehouse-titlebar { border: 1px solid #dfe5ea; border-radius: 7px; padding: 12px; background: linear-gradient(135deg,#f8fbfd,#eef6f3); }
.warehouse-titlebar h2, .panel-heading h3 { margin: 0; }
.warehouse-titlebar p, .panel-heading p { margin: 3px 0 0; color: #737d86; font-size: 10px; }
.voice-placeholder { min-height: 40px; border: 1px solid #83bca7; border-radius: 7px; padding: 0 14px; background: #eaf7f1; color: #157653; font-weight: 900; }
.warehouse-entry-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.image-entry-button { min-height: 40px; border: 1px solid #8aaee0; border-radius: 7px; padding: 0 14px; background: #eef5ff; color: #245ea7; font-weight: 900; }
.warehouse-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.warehouse-tabs button { flex: 0 0 auto; min-height: 38px; border: 1px solid #d8dee4; border-radius: 6px; padding: 0 13px; background: #fff; color: #56616b; font-weight: 800; }
.warehouse-tabs button.active { border-color: #1a855c; background: #1a855c; color: #fff; }
.warehouse-panel { border: 1px solid #e0e5e9; border-radius: 7px; padding: 12px; background: #fff; }
.warehouse-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.warehouse-overview > div { min-height: 76px; border: 1px solid #dde4e8; border-radius: 6px; padding: 10px; background: #f7f9fa; }
.warehouse-overview span, .warehouse-overview strong { display: block; }
.warehouse-overview span { color: #737d86; font-size: 10px; }
.warehouse-overview strong { margin-top: 6px; color: #273139; font-size: 20px; }
.warehouse-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.warehouse-two-column h3 { margin: 0 0 7px; font-size: 14px; }
.warehouse-list { display: grid; gap: 7px; margin-top: 10px; }
.warehouse-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; min-height: 56px; border: 1px solid #e0e5e9; border-radius: 6px; padding: 9px 10px; background: #fff; }
.warehouse-row.warning { border-color: #e6a45e; background: #fff8ee; }
.warehouse-row.disabled { opacity: .58; background: #f3f4f5; }
.warehouse-row strong, .warehouse-row small { display: block; }
.warehouse-row small { margin-top: 3px; color: #727d86; font-size: 10px; line-height: 1.45; }
.warehouse-row b { color: #c65418; white-space: nowrap; }
.row-actions { display: flex; gap: 5px; }
.row-actions button, .warehouse-row > button, .panel-heading button, .warehouse-date-filter button, .form-actions button, .remove-line { min-height: 34px; border: 1px solid #cfd7dd; border-radius: 5px; padding: 0 10px; background: #fff; color: #46515b; font-weight: 800; }
.warehouse-form { margin-top: 10px; border: 1px solid #e1e6ea; border-radius: 7px; padding: 11px; background: #fafbfc; }
.warehouse-item-editor { display: grid; gap: 7px; margin: 10px 0; }
.warehouse-item-row { display: grid; grid-template-columns: minmax(170px,2fr) repeat(3,minmax(90px,1fr)) auto; align-items: end; gap: 7px; border: 1px solid #e0e5e9; border-radius: 6px; padding: 9px; background: #fff; }
.warehouse-item-row label { display: grid; gap: 4px; color: #65717b; font-size: 10px; font-weight: 800; }
.warehouse-item-row input, .warehouse-item-row select, .warehouse-date-filter input { min-height: 36px; border: 1px solid #ccd4db; border-radius: 5px; padding: 0 8px; background: #fff; }
.remove-line { color: #a73b3b; }
.purchase-draft-total { margin: 10px 0; text-align: right; color: #c44322; font-size: 20px; font-weight: 900; }
.warehouse-date-filter { display: flex; align-items: center; gap: 6px; }
.voice-entry-card { width: min(720px,calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; }
.voice-entry-card .modal-head p { margin: 4px 0 0; color: #6f7982; font-size: 11px; }
.voice-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.voice-controls button { min-height: 40px; border: 1px solid #ccd5dc; border-radius: 6px; padding: 0 13px; font-weight: 800; }
.voice-controls span { color: #58636d; font-weight: 800; }
.voice-controls span.listening { color: #c84e18; }
.voice-transcript-label { display: grid; gap: 6px; color: #59656f; font-weight: 800; }
.voice-transcript-label textarea { resize: vertical; min-height: 92px; border: 1px solid #cbd4db; border-radius: 7px; padding: 10px; font: inherit; }
.voice-draft { margin-top: 12px; border-top: 1px solid #e1e6ea; padding-top: 10px; }
.voice-draft h3 { margin: 0 0 8px; }
.voice-draft .warehouse-row { grid-template-columns: minmax(0,1fr) auto; }
.voice-unmatched-product > div { display: grid; gap: 7px; }
.voice-candidate-picker { display: grid; gap: 5px; margin-top: 7px; color: #7b3f12; font-size: 11px; font-weight: 800; }
.voice-candidate-picker select { width: 100%; min-height: 40px; border: 1px solid #d68a43; border-radius: 7px; padding: 0 10px; background: #fff; color: #202a32; font: inherit; }
.voice-unmatched-product button { justify-self: start; min-height: 36px; border: 1px solid #c76a20; border-radius: 7px; padding: 0 12px; background: #fff; color: #9a430e; font-weight: 800; }
.voice-entry-card.assistant-mode { width: min(620px,100vw); height: min(820px,calc(100vh - 12px)); max-height: calc(100vh - 12px); border-radius: 24px; display: flex; flex-direction: column; background: #f8faf9; }
.voice-entry-card.assistant-mode .modal-head { padding: 17px 18px; background: #fff; border-bottom: 1px solid #e7ecea; }
.voice-entry-card.assistant-mode .modal-head h2 { text-align: center; font-size: 21px; }
.voice-entry-card.assistant-mode .voice-controls { order: 6; margin: auto 14px 14px; padding: 9px; border: 1px solid #dce4e1; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(30,68,58,.12); }
.voice-entry-card.assistant-mode .voice-controls #startWarehouseVoice { flex: 1; min-height: 48px; border: 0; background: transparent; color: #17201e; font-size: 17px; }
.voice-entry-card.assistant-mode .voice-controls #stopWarehouseVoice { display: none; }
.voice-entry-card.assistant-mode .voice-controls #warehouseVoiceStatus { width: 100%; text-align: center; font-size: 11px; }
.voice-entry-card.assistant-mode .voice-transcript-label { margin: 16px 16px 8px; padding: 14px; border: 1px solid #d8e3ee; border-radius: 18px; background: #fff; color: #17212b; }
.voice-entry-card.assistant-mode .voice-transcript-label textarea { border: 1px solid #c8d7e6; background: #f5f9ff; color: #17212b; min-height: 92px; line-height: 1.55; }
.voice-entry-card.assistant-mode .voice-transcript-label textarea::placeholder { color: #566575; opacity: 1; }
.voice-entry-card.assistant-mode .voice-transcript-label textarea:focus { outline: 3px solid rgba(22,119,239,.18); border-color: #1677ef; background: #fff; }
.voice-entry-card.assistant-mode .voice-draft { margin: 8px 16px; padding: 14px; border: 1px solid #e1e7e5; border-radius: 18px; background: #fff; }
.voice-entry-card.assistant-mode > .form-actions:last-child { margin: 8px 16px 14px; }
.image-entry-card, .purchase-confirm-card { width: min(720px,calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; }
.image-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.image-source-grid button { min-height: 92px; border: 1px solid #cdd8e5; border-radius: 8px; padding: 12px; background: #f7faff; color: #263746; text-align: left; }
.image-source-grid strong, .image-source-grid small { display: block; }
.image-source-grid strong { font-size: 16px; }
.image-source-grid small { margin-top: 6px; color: #6b7782; line-height: 1.45; }
.image-preview { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 12px; min-height: 120px; margin: 10px 0; border: 1px dashed #bdc9d5; border-radius: 8px; padding: 10px; background: #fafcfe; }
.image-preview img { width: 120px; height: 110px; object-fit: cover; border-radius: 6px; }
.image-preview strong, .image-preview small { display: block; }
.image-preview small { margin-top: 6px; color: #6d7882; }
.purchase-confirm-summary { margin: 12px 0; }
.purchase-confirm-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.purchase-confirm-table { border: 1px solid #dfe5ea; border-radius: 7px; overflow: hidden; }
.purchase-confirm-row { display: grid; grid-template-columns: minmax(0,1.5fr) 1fr 1fr 1fr; gap: 6px; padding: 10px; border-top: 1px solid #e5e9ed; }
.purchase-confirm-row:first-child { border-top: 0; }
.purchase-confirm-row.header { background: #edf4ff; font-weight: 900; }
.purchase-confirm-total { margin-top: 12px; text-align: right; color: #c44322; font-size: 21px; font-weight: 900; }
.document-row { grid-template-columns: minmax(0,1fr) auto auto; }
.positive { color: #167c55 !important; }
.negative { color: #bb3f37 !important; }

@media (min-width: 700px) {
  body { padding: 22px; }
  .app-shell { min-height: calc(100vh - 44px); overflow: visible; border-radius: 8px; box-shadow: 0 12px 34px rgba(30,38,48,.14); }
  .topbar { padding: 12px 20px 9px; }
  .title-row h1, .meta-row strong { font-size: 24px; }
  .user-button, .network-status { font-size: 12px; }
  .main-tabs { top: 84px; padding: 9px 18px; }
  .main-tab { height: 40px; font-size: 15px; }
  .view { padding: 12px 18px 18px; }
  .processing-sections { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  .zone-head { min-height: 45px; padding: 8px 12px; }
  .zone-head h2 { font-size: 18px; }
  .processing-row { min-height: 64px; padding: 8px 10px 8px 13px; }
  .processing-name { font-size: 17px; }
  .processing-quantity { font-size: 12px; }
  .processing-quantity strong { font-size: 20px; }
  .processing-action { width: 88px; height: 38px; font-size: 12px; }
  .store-tabs { width: min(100%, 650px); }
  .shipping-row { grid-template-columns: minmax(0,1fr) auto; min-height: 76px; padding: 10px 14px; }
  .shipping-product strong { font-size: 17px; }
  .shipping-product small, .reported { font-size: 11px; }
  .qty-stepper { grid-template-columns: 34px 40px 34px; height: 38px; }
  .ship-qty { width: 40px; }
  .ship-button { min-width: 76px; height: 38px; font-size: 13px; }
  .receipt-modal { place-items: center; padding: 18px; }
  .receipt-card { border-radius: 7px; }
}

@media (max-width: 699px) {
  .grid-form, .history-filter, .customer-settlement-config { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .account-row { grid-template-columns: 1fr; align-items: stretch; }
  .account-row small { grid-column: auto; }
  .product-row { grid-template-columns: 1fr auto; }
  .product-row-price { grid-column: 1; }
  .shipping-controls { gap: 4px; }
  .backend-grid { grid-template-columns: 1fr 1fr; }
  .backend-overview { grid-template-columns: 1fr 1fr; }
  .backend-grid button { min-height: 66px; padding: 9px; }
  .customer-row { grid-template-columns: 1fr; }
  .customer-row-actions { justify-content: flex-end; }
  .finance-card .history-filter, .purchase-form { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: 1fr 1fr; }
  .finance-box { min-height: 66px; }
  .finance-box strong { font-size: 16px; }
  .modal-head-actions { align-items: flex-start; }
  .modal-head-actions .primary-button { padding: 0 9px; }
  .receipt-card { padding-right: 10px; padding-left: 10px; }
  .receipt-table { font-size: 10px; }
  .receipt-table th, .receipt-table td { padding: 8px 2px; }
  .warehouse-titlebar, .panel-heading { align-items: stretch; flex-direction: column; }
  .warehouse-entry-actions, .voice-placeholder, .image-entry-button { width: 100%; }
  .warehouse-panel { padding: 9px; }
  .warehouse-overview { grid-template-columns: 1fr 1fr; }
  .warehouse-two-column { grid-template-columns: 1fr; }
  .warehouse-row { grid-template-columns: minmax(0,1fr) auto; }
  .warehouse-row .row-actions, .warehouse-row > button { grid-column: 1 / -1; justify-content: flex-end; }
  .warehouse-item-row { grid-template-columns: 1fr 1fr; }
  .warehouse-item-row label:first-child { grid-column: 1 / -1; }
  .warehouse-item-row .remove-line { grid-column: 1 / -1; }
  .warehouse-date-filter { width: 100%; flex-wrap: wrap; }
  .warehouse-date-filter input { flex: 1 1 125px; }
  .image-source-grid { grid-template-columns: 1fr; }
  .purchase-confirm-row { grid-template-columns: minmax(0,1.2fr) .9fr .9fr .9fr; font-size: 11px; }
}

.global-voice-assistant {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  min-height: 50px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f8f78, #146a5a);
  box-shadow: 0 9px 26px rgba(14,78,67,.28);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.list-search-field { display: block; margin: 10px 0 14px; color: #52615d; font-size: 12px; font-weight: 800; }
.list-search-field input { display: block; width: 100%; margin-top: 6px; min-height: 42px; padding: 9px 12px; border: 1px solid #d9e2df; border-radius: 10px; background: #fff; font-size: 14px; }
.list-search-field input:focus { outline: 2px solid rgba(31,143,120,.16); border-color: #1f8f78; }
.global-voice-assistant:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(14,78,67,.34); }
.global-voice-assistant.dragging { cursor: grabbing; transform: scale(.98); transition: none; }
.global-voice-assistant.recording { background: linear-gradient(135deg, #e04c45, #b72e2a); box-shadow: 0 0 0 12px rgba(224,76,69,.16), 0 12px 30px rgba(134,35,31,.32); }
.global-voice-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  position: relative;
}
.global-voice-icon::before { content: ""; width: 7px; height: 13px; border-radius: 6px; background: #16705f; }
.global-voice-icon::after { content: ""; position: absolute; width: 13px; height: 13px; border: 2px solid #16705f; border-top: 0; border-radius: 0 0 9px 9px; bottom: 5px; }
.site-compliance-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid #e3e9e7;
  color: #68736f;
  background: #f7f9f8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.site-compliance-footer a { color: inherit; text-decoration: none; }
.site-compliance-footer a:hover,
.site-compliance-footer a:focus-visible { color: #146a5a; text-decoration: underline; }
.login-compliance { margin: 4px 0 0; color: #68736f; font-size: 12px; line-height: 1.5; text-align: center; }
.login-compliance a { color: inherit; text-decoration: none; }
.login-compliance a:hover,
.login-compliance a:focus-visible { color: #146a5a; text-decoration: underline; }

@media (max-width: 680px) {
  .global-voice-assistant { min-width: 52px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .global-voice-assistant > span:last-child { display: none; }
}

.account-row.locked { background: #f7f9fa; border-color: #dfe5e8; }
.account-row.locked input:disabled,
.account-row.locked select:disabled { color: #667985; background: #eef2f4; opacity: 1; }
.account-feature-permissions, .account-ai-permissions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 8px 10px; border: 1px solid #e1e6e9; border-radius: 5px; background: #f7f9fa; }
.account-feature-permissions label, .account-ai-permissions label { display: flex; align-items: center; gap: 5px; min-height: 28px; color: #54616b; font-size: 11px; font-weight: 700; }
.account-feature-permissions input, .account-ai-permissions input { width: 17px; height: 17px; }
.temporary-purchase-zone { border-color: #e1c68d; background: #fffbf2; }
.temporary-purchase-zone .zone-head { border-bottom-color: #ead7ac; }
.account-actions span { color: #71828d; font-size: 13px; }

.product-import-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #b9d8d8;
  border-radius: 14px;
  background: #f0f8f7;
}
.product-import-panel h3 { margin: 0 0 4px; }
.product-import-panel p { margin: 0; color: #617682; }
.product-import-actions { display: flex; gap: 8px; }
.product-import-preview { grid-column: 1 / -1; border-top: 1px solid #cfe1e1; padding-top: 12px; }
.import-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.import-summary span { color: #60737e; }
.import-errors { max-height: 160px; overflow: auto; padding: 10px; color: #a23b2b; background: #fff2ef; border-radius: 10px; }
.import-rows { max-height: 260px; overflow: auto; margin-top: 10px; border: 1px solid #d7e2e5; border-radius: 10px; background: #fff; }
.import-rows > div { display: grid; grid-template-columns: minmax(140px, 1fr) 64px minmax(120px, .8fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid #edf1f2; }
.import-rows > div:last-child { border-bottom: 0; }
.import-rows b { color: #0f6b78; }
.import-rows small { color: #71828d; }

.store-order-card { max-width: 920px; }
.store-order-entry { grid-template-columns: 1.2fr 1.8fr .7fr .7fr auto; align-items: end; }
.store-order-entry button { min-height: 44px; }
.store-order-items { margin: 16px 0; border: 1px solid #d9e3e6; border-radius: 12px; overflow: hidden; }
.store-order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e9eef0; }
.store-order-row:last-child { border-bottom: 0; }
.store-order-row div { display: grid; gap: 3px; }
.store-order-row small { color: #6d808b; }

@media (max-width: 760px) {
  .product-import-panel { grid-template-columns: 1fr; }
  .product-import-actions { width: 100%; }
  .product-import-actions button { flex: 1; }
  .import-summary { flex-direction: column; }
  .import-rows > div { grid-template-columns: 1fr auto; }
  .import-rows small { grid-column: 1 / -1; }
  .store-order-entry { grid-template-columns: 1fr 1fr; }
  .store-order-entry label:nth-of-type(1), .store-order-entry label:nth-of-type(2), .store-order-entry button { grid-column: 1 / -1; }
  .modal-head-actions { flex-wrap: wrap; justify-content: flex-end; }
  #exportHistory { font-size: 12px; padding: 8px 10px; }
}

@media print {
  @page { size: A5 portrait; margin: 8mm; }
  body * { visibility: hidden !important; }
  #receiptModal, #receiptModal * { visibility: visible !important; }
  #receiptModal { position: absolute; inset: 0; display: block !important; padding: 0; background: #fff; }
  .receipt-card { width: 100%; max-height: none; padding: 0; border-radius: 0; box-shadow: none; }
  .receipt-handle, .receipt-actions { display: none !important; }
  .receipt-head h2 { font-size: 18pt; }
  .receipt-table { font-size: 9pt; }
  .change-log { break-inside: avoid; }
}

/* 07B13 desktop full-management additions */
.p1-management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 20px}.p1-management-grid button{min-height:108px;text-align:left;padding:18px;border:1px solid #cfdee4;border-radius:14px;background:#fff;color:#123b5d}.p1-management-grid button:hover{border-color:#0f6b78;box-shadow:0 7px 18px rgba(18,59,93,.09)}.p1-management-grid strong,.p1-management-grid small{display:block}.p1-management-grid strong{font-size:19px;margin-bottom:8px}.p1-management-grid small{color:#6c818b;line-height:1.45}.p1-summary-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.p1-summary-table>div,.p1-summary-line{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border:1px solid #d6e2e7;border-radius:12px;background:#f8fbfc}.p1-summary-table span,.p1-summary-line span{color:#677d87}.p1-summary-table strong,.p1-summary-line strong{font-size:22px;color:#123b5d}.p1-stat-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.p1-export-main,.p1-export-button{white-space:nowrap}.p1-export-main{background:#fff!important;color:#0f6b78!important;border-color:#fff!important;font-weight:800}.p1-export-card{max-width:720px}.p1-product-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin:10px 0 14px}.p1-type-badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#e5f2f1;color:#0f6b78;font-size:12px;vertical-align:middle}.p1-disabled{opacity:.68;background:#f3f5f6}.p1-checkbox-label{display:flex!important;align-items:center;gap:9px}.p1-checkbox-label input{width:auto!important}.p1-production-heading{margin-top:14px}.p1-production-row{grid-template-columns:minmax(220px,2fr) minmax(120px,1fr) minmax(120px,1fr) auto}.p1-attachment-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;margin-bottom:14px;border:1px solid #8bc6b4;border-radius:12px;background:#eef9f5}.p1-attachment-summary span{color:#496c63}.p0-doc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.p1-category-field>span,.p1-new-category>span:first-child{display:block;margin-bottom:5px;font-size:13px;font-weight:800;color:#36515e}.p1-category-field>div,.p1-new-category>span{display:flex;gap:8px}.p1-category-field select,.p1-new-category input{min-width:0;flex:1}.p1-category-field button,.p1-new-category button,.p1-product-more{min-height:40px;border:1px solid #9ebbc5;border-radius:6px;background:#fff;color:#0f6b78;font-weight:800;padding:0 12px}.p1-new-category{padding:10px;border:1px dashed #8cb5c0;border-radius:8px;background:#eef8f8}.p1-same-unit-tip{padding:10px 12px;border:1px solid #9bcbb9;border-radius:7px;background:#eef9f4;color:#226951;font-weight:700}.p1-product-more{width:100%;text-align:center;background:#eef7f8}.product-form .form-message{grid-column:1/-1}.product-form button:disabled{opacity:.65;cursor:wait}
@media(max-width:900px){.p1-management-grid{grid-template-columns:1fr 1fr}.p1-stat-columns{grid-template-columns:1fr}.p1-summary-table{grid-template-columns:1fr 1fr}.p1-production-row{grid-template-columns:1fr 1fr}.p1-product-filters{grid-template-columns:1fr}}
