.capture-mode .content-layout { grid-template-columns: minmax(0, 1fr); }
.capture-mode .client-panel { display: none; }
.capture-mode .day-control { display: none; }
[hidden] { display: none !important; }
.history-mode .client-panel { display: none; }
.history-mode .content-layout { grid-template-columns: minmax(0,1fr); }
.listing-filters { padding: 0 18px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stage-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.listing-status-label { flex-direction: row; align-items: center; gap: 9px; margin-left: auto; font-size: 10px; color: #42434a; }
.listing-status-label select { width: auto; font-size: 11px; padding: 7px; }
.export-footer { padding: 17px 20px; border-top: 1px solid #e5e5ea; display: flex; gap: 9px; align-items: center; background: #fafafb; }
.export-footer > div { flex: 1; }
.export-footer strong { font-size: 12px; color: #42434a; }
.export-footer small { display: block; margin-top: 6px; color: #6e6e73; font-size: 10px; line-height: 1.6; }
.delivery-close-footer { padding: 18px 20px; display: flex; align-items: center; gap: 15px; border-top: 1px solid #e5e5ea; background: #f2f2f5; }
.delivery-close-footer > div { flex: 1; }
.delivery-close-footer strong { font-size: 12px; color: #42434a; }
.delivery-close-footer p { font-size: 10px; color: #6e6e73; line-height: 1.7; margin-top: 7px; }
.process-exports { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #e5e5ea; }
.process-exports > div { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-right: 1px solid #e5e5ea; flex-wrap: wrap; }
.process-exports strong { font-size: 11px; color: #42434a; flex: 1 0 100%; }
.process-exports strong span { background: #e5e5ea; border-radius: 4px; padding: 2px 5px; font-size: 10px; margin-left: 6px; }
.process-exports .text-button { font-size: 11px; }
.item-actions { display: flex; gap: 2px; flex-wrap: nowrap; }
.products-table tr.cancelled { opacity: 1; }
.retirement-note { white-space: normal; overflow-wrap: anywhere; color: #aa7259 !important; line-height: 1.7; }
.history-current-price { display: flex; align-items: center; justify-content: space-between; color: #6e6e73; font-size: 12px; }
.history-current-price strong { font-size: 19px; color: #42434a; }
.item-events article { padding: 16px 0; border-top: 1px solid #e5e5ea; }
.item-events article > strong { font-size: 13px; color: #42434a; }
.item-events p { margin-top: 9px; color: #6e6e73; white-space: pre-wrap; font-size: 12px; line-height: 1.7; }
.item-events small { display: block; margin-top: 9px; color: #6e6e73; font-size: 10px; }
.history-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 21px; align-items: start; }
.delivery-index .table-toolbar { padding: 17px; }
.delivery-index > .search-input { margin: 0 14px 13px; }
#delivery-cards { max-height: 650px; overflow: auto; padding: 0 8px 10px; }
.delivery-card { width: 100%; text-align: left; padding: 13px 10px; margin: 3px 0; border: 1px solid transparent; border-radius: 7px; }
.delivery-card.selected { background: #f2f2f5; border-color: #c7c7cc; }
.delivery-card strong { display: block; font-size: 12px; color: #42434a; }
.delivery-card span { display: block; font-size: 11px; color: #6e6e73; margin-top: 8px; }
.delivery-card small { display: block; font-size: 9px; color: #6e6e73; margin-top: 7px; }
.delivery-summary { display: grid; grid-template-columns: repeat(3,1fr); padding: 0 20px 16px; gap: 10px; }
.delivery-summary span { font-size: 10px; color: #6e6e73; padding: 13px; background: #f2f2f5; border-radius: 6px; }
.delivery-summary strong { display: block; font-size: 19px; color: #42434a; margin-top: 9px; }
.delivery-readonly-note { padding: 0 20px 14px; color: #6e6e73; font-size: 10px; line-height: 1.8; }
.client-status { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 500; color: #42434a; background: #e5e5ea; border: 1px solid #c7c7cc; vertical-align: middle; white-space: nowrap; }
.client-status.is-blocked { color: #a35140; background: #fff0eb; border-color: #efd0c5; }
.blocked-notice { padding: 15px 17px; background: #fff5ef; border: 1px solid #efd7c9; border-radius: 8px; margin: 0 0 18px; color: #995d46; }
.blocked-notice strong { font-size: 13px; }
.blocked-notice p { font-size: 12px; margin-top: 8px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.blocked-notice small { display: block; margin-top: 8px; font-size: 11px; color: #a57c64; }
.sales-console .blocked-notice, .sales-console .client-note { margin-top: 17px; }
.client-note { padding: 11px 14px; border: 1px solid #e5e5ea; background: #fafafb; border-radius: 7px; margin-bottom: 18px; font-size: 11px; color: #42434a; }
.client-note summary { cursor: pointer; }
.client-note p { margin-top: 10px; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-state-card { margin-bottom: 22px; }
.customer-state-card .table-toolbar { align-items: flex-start; }
.customer-state-card .table-toolbar h3 { gap: 10px; flex-wrap: wrap; }
.blocked-client-row .client-info strong, .blocked-client-row .client-info > span { color: #a96c58; }
.sale-options .blocked-client-option strong { color: #9c6350; }
.sale-options .client-status { font-size: 9px; margin-left: 5px; }
.warehouse-cell { min-width: 125px; max-width: 200px; }
.warehouse-cell > strong { display: block; font-size: 11px; color: #42434a; overflow-wrap: anywhere; }
.warehouse-cell .text-button { font-size: 10px; margin-top: 6px; display: flex; gap: 4px; }
.products-table:has(.warehouse-cell) { min-width: 850px; }
.recent-sales-table:has(.warehouse-cell) { min-width: 780px; }
.customer-details dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.sales-console { padding: 25px; }
.sales-console .section-heading { gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.sales-console .section-heading h2 { font-size: 21px; color: #42434a; }
.sales-console .section-heading p { font-size: 12px; color: #42434a; line-height: 1.6; margin-top: 8px; }
.sale-customer-line { display: flex; align-items: flex-end; gap: 12px; }
.sale-customer-line > button { min-height: 43px; }
.sale-picker { position: relative; flex: 1; min-width: 0; }
.sale-picker > label { margin-bottom: 9px; color: #42434a; font-size: 12px; }
.sale-picker-input { display: flex; align-items: center; gap: 10px; border: 1px solid #6e6e73; border-radius: 7px; background: #fafafb; padding: 0 13px; color: #6e6e73; }
.sale-picker-input:focus-within { border-color: #6e6e73; box-shadow: 0 0 0 3px #1d243320; }
.sale-picker-input input { border: 0; box-shadow: none; background: transparent; padding: 13px 0; font-size: 14px; color: #42434a; font-weight: 500; }
.sale-picker-input kbd { white-space: nowrap; color: #6e6e73; background: #e5e5ea; padding: 4px 6px; border-radius: 4px; font-size: 10px; }
.sale-options { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 30; padding: 6px; background: white; border: 1px solid #c7c7cc; border-radius: 9px; box-shadow: 0 12px 30px #1d243320; max-height: 330px; overflow: auto; }
.sale-options[hidden] { display: none; }
.sale-options [role=option] { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; padding: 11px; border-radius: 6px; }
.sale-options [role=option]:hover, .sale-options [aria-selected=true] { background: #f2f2f5; }
.sale-options strong { display: block; font-size: 13px; color: #42434a; }
.sale-options small { display: block; font-size: 11px; color: #6e6e73; margin-top: 5px; }
.sale-options p { padding: 15px; color: #6e6e73; font-size: 12px; line-height: 1.7; }
.sale-account-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 0 20px; margin-bottom: 20px; border-bottom: 1px solid #e5e5ea; color: #6e6e73; font-size: 11px; }
.sale-target { display: inline-flex; align-items: center; gap: 5px; margin-right: 5px; }
.sale-target strong { color: #42434a; }
.sale-account-line label { font-size: 10px; margin-left: auto; }
.sale-account-line select { width: auto; max-width: 215px; padding: 6px 24px 6px 9px; font-size: 11px; color: #42434a; background: #fafafb; }
.sale-account-choice { display: flex; align-items: center; gap: 10px; flex: 1 0 100%; flex-wrap: wrap; }
.sale-account-choice label { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: #42434a; }
.sale-account-choice select { max-width: none; flex: 1; min-width: 225px; min-height: 40px; font-size: 12px; }
.sale-account-choice .text-button { font-size: 11px; }
.sale-account-line .sale-balance { margin: 8px 0 0; flex-basis: 100%; }
.account-required { display: block; color: #9a814c; background: #f2f2f5; padding: 9px 12px; border-radius: 6px; flex-basis: 100%; line-height: 1.5; }
.sale-live-context { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 22px; }
.sale-live-context > label { font-size: 12px; color: #42434a; }
.sale-live-context input[type=date] { min-height: 40px; font-size: 13px; width: 190px; }
.live-shift-options { margin: 0; padding: 0; border: 0; display: flex; gap: 8px; }
.live-shift-options legend { margin-bottom: 8px; font-size: 12px; color: #42434a; padding: 0; }
.live-shift-options label { display: flex; flex-direction: row; gap: 8px; align-items: center; padding: 9px 12px; min-height: 40px; border: 1px solid #c7c7cc; border-radius: 6px; font-size: 12px; cursor: pointer; }
.live-shift-options label:has(input:checked) { background: #e5e5ea; border-color: #6e6e73; color: #42434a; }
.live-shift-options input { width: auto; margin: 0; accent-color: #42434a; }
.account-manager { margin-bottom: 22px; }
.account-product-list { margin-bottom: 22px; }
.account-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 0 20px 20px; }
.account-cards > .empty-state { grid-column: 1 / -1; }
.account-card { border: 1px solid #e5e5ea; border-radius: 8px; padding: 17px; }
.account-card.selected { border-color: #6e6e73; background: #fafafb; }
.account-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.account-card h3 { font-size: 13px; color: #42434a; }
.account-card p { font-size: 11px; color: #6e6e73; margin: 13px 0; line-height: 1.7; }
.account-card > strong { color: #42434a; font-size: 15px; }
.account-card-actions { margin-top: 17px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.account-card-actions .secondary, .account-card-actions .text-button { font-size: 11px; }
.sale-balance { margin-left: 10px; font-size: 11px; }
.sale-balance strong { color: #42434a; margin-left: 5px; }
.sale-product-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.sales-console .capture-fields { grid-template-columns: minmax(0, 1fr) 90px 140px auto; gap: 14px; }
.sales-console .capture-fields label { font-size: 12px; color: #42434a; }
.sales-console .capture-fields input { font-size: 13px; height: 43px; }
.sales-console .capture-fields .primary { grid-column: auto; height: 43px; font-size: 12px; margin: 0; }
.sales-console .capture-bottom { flex-wrap: nowrap; margin-top: 19px; }
.sales-console .capture-hint { flex-basis: auto; }
.sales-console .capture-bottom > strong { display: block; font-size: 15px; min-width: 75px; text-align: right; }
.sales-feed-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 20px; border-bottom: 1px solid #e5e5ea; background: #fafafb; }
.sales-feed-tabs > button:not(.text-button) { padding: 9px 11px; color: #6e6e73; font-size: 12px; border-radius: 6px; border: 1px solid transparent; }
.sales-feed-tabs > button.active { background: #e5e5ea; color: #42434a; border-color: #c7c7cc; }
.sales-feed-tabs button span { display: inline-block; margin-left: 7px; font-size: 10px; color: #6e6e73; }
.sales-feed-tabs .text-button { margin-left: auto; font-size: 11px; }
.recent-sales-table { min-width: 660px; }
.recent-sales-table th { font-size: 10px; }
.recent-sales-table td { font-size: 12px; }
.recent-sales-table td:nth-child(2) { width: 40%; }
.recent-sales-table td strong { color: #42434a; font-weight: 500; }
.recent-sales-table td small { font-size: 10px; color: #6e6e73; }
.recent-customer { font-size: 12px; color: #42434a; font-weight: 600; padding: 0; text-align: left; }
.recent-customer:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .history-layout { grid-template-columns: minmax(0,1fr); }
  #delivery-cards { max-height: 170px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sale-account-line .sale-balance { flex: 1 0 100%; margin: 4px 0 0; }
  .sales-console .capture-fields { grid-template-columns: minmax(0, 1fr) 70px 105px; gap: 11px; }
  .sales-console .capture-fields .primary { grid-column: 1 / -1; width: 100%; margin-top: 3px; }
  .sales-console .capture-bottom { flex-wrap: wrap; }
  .sales-console .capture-hint { flex-basis: 100%; }
  .sales-console .capture-bottom > strong { margin-left: auto; }
}
@media (max-width: 700px) {
  .delivery-close-footer { flex-wrap: wrap; }
  .delivery-close-footer .primary { width: 100%; }
  .sidebar .nav-item { padding: 10px; }
  .process-exports { grid-template-columns: minmax(0,1fr); }
  .process-exports > div { border-top: 1px solid #e5e5ea; }
  .process-exports strong { flex-basis: auto; }
  .listing-status-label { margin-left: 0; }
  .delivery-summary { grid-template-columns: minmax(0,1fr); }
  .delivery-summary span { display: flex; align-items: center; justify-content: space-between; }
  .delivery-summary strong { margin: 0; font-size: 17px; }
  .sale-live-context { flex-wrap: wrap; gap: 15px; }
  .sale-live-context input[type=date] { width: 155px; }
  .live-shift-options label { padding: 9px; }
  .sale-account-choice { gap: 9px; }
  .sale-account-choice select { min-width: 100%; }
  .sale-account-choice .secondary { font-size: 11px; }
  .account-cards { grid-template-columns: minmax(0,1fr); }
  .sales-console { padding: 18px; }
  .sales-console .section-heading h2 { font-size: 19px; }
  .sales-console .section-heading p { font-size: 11px; }
  .sales-console .section-heading { margin-bottom: 20px; }
  .sale-customer-line { flex-wrap: wrap; gap: 10px; }
  .sale-picker { flex-basis: 100%; }
  .sale-customer-line > button { min-height: 33px; font-size: 11px; }
  .sale-picker-input input { font-size: 12px; }
  .sale-picker-input kbd { display: none; }
  .sale-account-line { gap: 8px; margin-bottom: 17px; }
  .sale-target { flex-basis: 100%; }
  .sale-account-line label { margin-left: 0; }
  .sales-console .capture-fields { grid-template-columns: 1fr 1fr; }
  .sales-console .capture-fields .description-field { grid-column: 1 / -1; }
  .sales-console .capture-fields label { font-size: 11px; }
  .sales-feed-tabs { padding: 10px; gap: 5px; }
  .sales-feed-tabs > button:not(.text-button) { font-size: 11px; padding: 8px; }
  .sales-feed-tabs button span { display: none; }
  .sale-options { max-height: 260px; }
}
.delivery-notes { padding: 22px; border-top: 1px solid var(--line, #e5e5ea); border-bottom: 1px solid var(--line, #e5e5ea); }
.delivery-notes h3 { margin: 0 0 14px; font-size: 16px; }
.delivery-notes .modal-form { padding: 14px 0 0; }
.delivery-notes textarea { min-height: 82px; resize: vertical; }
.delivery-notes button { justify-self: start; }
#delivery-note-list { max-height: 320px; overflow-y: auto; }
.delivery-note { border-left: 3px solid #6e6e73; padding: 10px 14px; margin-bottom: 12px; background: #f2f2f5; }
.delivery-note p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 7px; line-height: 1.5; font-size: 13px; }
.delivery-note small { color: #42434a; }
.ready-pill { background: #e5e5ea; color: #1d1d1f; }
.statement-totals { display: grid; gap: 8px; padding: 16px; background: #f2f2f5; border-radius: 10px; margin-bottom: 15px; font-size: 13px; }
.statement-actions, .statement-downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.statement-downloads a { text-decoration: none; }
.statement-warning { background: #fff4d8; padding: 12px; border-radius: 8px; font-size: 13px; }
.statement-modal textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.statement-modal #statement-files { font-size: 13px; }
.batch-panel .table-toolbar { align-items: center; gap: 16px; flex-wrap: wrap; }
.batch-panel .table-toolbar p { max-width: 600px; line-height: 1.5; }
.batch-cards { display: grid; gap: 12px; padding: 0 22px 20px; }
.batch-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #e5e5ea; border-radius: 10px; background: #fafafb; }
.batch-card > div, .batch-product-summary { display: grid; gap: 7px; min-width: 0; }
.batch-card strong { overflow-wrap: anywhere; font-size: 14px; }
.batch-card small, .batch-allocation small { display: block; color: #42434a; font-size: 12px; line-height: 1.5; }
.batch-card button { flex-shrink: 0; }
.batch-stock { font-size: 14px; color: #1d1d1f; font-weight: 700; }
.batch-empty, .batch-loading { margin: 0; padding: 8px 0; color: #42434a; font-size: 13px; line-height: 1.6; }
.batch-loading { padding: 22px; }
.batch-completed summary { padding: 0 22px 20px; cursor: pointer; font-size: 13px; }
.batch-product-summary { padding: 15px; border-radius: 10px; background: #f2f2f5; margin-bottom: 20px; font-size: 13px; }
.batch-allocation-row { display: grid; grid-template-columns: minmax(160px,1.3fr) minmax(140px,1fr) 85px 30px; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid #e5e5ea; }
.batch-allocation-row label { min-width: 0; font-size: 12px; }
.batch-row-help { min-height: 16px; display: block; font-size: 11px; color: #42434a; line-height: 1.4; margin-top: 4px; }
.batch-allocation-row input, .batch-allocation-row select { width: 100%; min-width: 0; }
#batch-allocation-fields { border: 0; padding: 0; margin: 0; }
#batch-add-row { margin-top: 15px; }
.batch-counter { border-radius: 8px; padding: 12px; margin-top: 16px; background: #f2f2f5; color: #1d1d1f; font-size: 13px; font-weight: 700; }
.batch-counter.over-limit { background: #fff0e8; color: #a33b22; }
.batch-allocation-history { margin-top: 20px; font-size: 13px; }
.batch-allocation-history summary { cursor: pointer; margin-bottom: 12px; }
.batch-allocation { padding: 10px 0; border-top: 1px solid #e5e5ea; }
@media(max-width:650px){.batch-allocation-row{grid-template-columns:minmax(0,1fr) 85px 30px}.batch-allocation-row>label:first-child{grid-column:1 / -1}.batch-card{flex-wrap:wrap}.batch-card button{width:100%}}

.sale-capture-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.batch-allocation-row > button { margin-top: 22px; }
.delivery-pick-tools { display: flex; gap: 14px; flex-wrap: wrap; }
.delivery-pick-list { max-height: 340px; overflow-y: auto; border: 1px solid #e5e5ea; border-radius: 8px; }
.modal-form .delivery-pick-row { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid #e5e5ea; cursor: pointer; }
.delivery-pick-row:last-child { border-bottom: 0; }
.delivery-pick-row input { width: 18px; height: 18px; padding: 0; accent-color: #1d1d1f; }
.delivery-pick-row span { min-width: 0; overflow-wrap: anywhere; }
.delivery-pick-row small { display: block; margin-top: 5px; color: #42434a; font-size: 12px; font-weight: normal; }
.delivery-selection-summary { background: #f2f2f5; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.delivery-selection-summary p { font-size: 12px; margin: 4px 0 0; }
.delivery-funding { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.delivery-funding span { display: grid; gap: 4px; font-size: 12px; }
.delivery-funding strong { font-size: 19px; }
.delivery-funding-error { background: #fff0e8; padding: 12px; border-radius: 7px; color: #9a351f; }
.delivery-continuation { padding: 18px 22px; background: #f2f2f5; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.delivery-continuation p { font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
@media(max-width:650px){.delivery-funding{grid-template-columns:1fr}.delivery-continuation{flex-wrap:wrap}}
