:root {
  color-scheme: light;
  --ink: #17243a;
  --muted: #55667c;
  --subtle: #64748a;
  --blue: #245ad8;
  --blue-dark: #1d48b5;
  --blue-soft: #eef4ff;
  --canvas: #f3f6fb;
  --line: #e2e8f2;
  --sidebar: #111c31;
  --white: #fff;
  --radius: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #78a5ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; display: block; }
[data-icon] { display: inline-flex; vertical-align: middle; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; min-height: 490px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; padding: 29px 17px 19px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 6px 43px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #3468ee; color: #fff; box-shadow: 0 6px 18px #080e2347, inset 0 1px 0 #ffffff42; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand strong, .sidebar-footer strong { display: block; }
.brand strong { font-size: 1.13rem; letter-spacing: -.035em; }
.brand small, .sidebar-footer small { display: block; margin-top: 3px; font-size: .76rem; color: #a9b8d1; }
.sidebar nav { display: grid; gap: 5px; }
.nav-short { display: none; }
.nav-label { margin: 0 11px 7px; color: #9dafcc; font-size: .72rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.nav-group { margin-top: 25px; }
.sidebar nav a { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 8px; color: #c5d1e7; text-decoration: none; font-size: .9rem; font-weight: 550; }
.sidebar nav a .icon { width: 18px; height: 18px; }
.sidebar nav a:hover { background: #1c2b47; color: #fff; }
.sidebar nav a[aria-current="page"] { background: #254781; color: #fff; }
.sidebar nav a[aria-current="page"] [data-icon] { color: #b4cbff; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #2a3650; padding: 18px 6px 2px; display: flex; align-items: center; gap: 11px; }
.sidebar-footer strong { font-size: .82rem; font-weight: 650; }
.sidebar-footer span:last-child { min-width: 0; overflow-wrap: anywhere; }
.workspace-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #384969; color: #b3c5e9; border-radius: 8px; background: #1b2944; }
.workspace-icon .icon { width: 17px; height: 17px; }
.workspace { min-width: 0; }
.topbar { height: 68px; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breadcrumb, .demo-badge { display: inline-flex; align-items: center; gap: 10px; font-size: .87rem; }
.breadcrumb { color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 620; }
.breadcrumb .icon { width: 14px; height: 14px; color: #8f9db2; }
.demo-badge { color: #82510d; background: #fff5dd; border: 1px solid #f4e2b8; border-radius: 100px; padding: 6px 11px; font-size: .81rem; font-weight: 650; white-space: nowrap; gap: 6px; }
.demo-badge .icon { width: 15px; height: 15px; }
main { max-width: 1440px; margin: 0 auto; padding: 30px 32px 46px; }
.page-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.page-heading h1 { font-size: clamp(1.8rem, 3.2vw, 2.45rem); letter-spacing: -.048em; line-height: 1.1; margin: 0 0 8px; }
.page-heading p, .section-head p, .summary-header p { margin: 0; color: var(--muted); line-height: 1.48; }
.page-heading p { font-size: .97rem; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 21px; align-items: start; }
.order-main { display: grid; gap: 17px; min-width: 0; }
.shared-status { border-radius: 99px; background: #e8f6ef; color: #246843; padding: 6px 11px; font-size: .81rem; font-weight: 650; white-space: nowrap; }
.shared-status.stale { background: #fff1d6; color: #794c13; }
.shared-department { max-width: 18rem; margin: 15px 21px 17px; }
.shared-location .section-head + .location-address { margin-top: 15px; }
.sync-note { color: var(--muted); margin: 0 0 8px; font-size: .88rem; }
.sync-error { color: #9c263b; }
.shared-table { margin-top: 15px; }
.shared-lines { table-layout: fixed; }
.shared-col-qty { width: 5.75rem; }
.shared-col-unit { width: 4.5rem; }
.shared-col-supplier { width: 29%; }
.shared-col-actions { width: 3.5rem; }
.shared-lines th, .shared-lines td { padding: 10px 10px; border-top: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere; }
.shared-lines th:first-child { padding-left: 21px; }
.shared-lines th:last-child, .shared-lines td:last-child { padding-right: 10px; }
.shared-lines thead th { background: #eff4fc; color: #405677; }
.shared-lines tbody tr:nth-child(even) { background: #fafcff; }
.shared-lines tbody tr:focus-within { background: #f2f7ff; }
.shared-lines tbody .shared-line-name { color: var(--ink); background: transparent; font-size: .92rem; }
.shared-line-name small, .activity-list small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }
.shared-line-name small { font-weight: 400; }
.shared-qty-cell, .shared-line-action { text-align: center; }
.shared-quantity { font-variant-numeric: tabular-nums; font-weight: 700; }
.shared-quantity.button { min-width: min(3.1rem, 100%); min-height: 36px; padding: 4px 7px; }
.shared-unit-cell, .shared-supplier, .shared-mobile-unit { color: var(--muted); }
.shared-mobile-unit { display: none; }
.shared-supplier .order-supplier { width: 100%; min-height: 36px; padding: 6px 26px 6px 8px; text-overflow: ellipsis; }
.shared-lines tbody tr:last-child > :first-child { border-bottom-left-radius: var(--radius); }
.shared-lines tbody tr:last-child > :last-child { border-bottom-right-radius: var(--radius); }
.shared-delivery dl { display: grid; grid-template-columns: minmax(105px, .38fr) minmax(0, 1fr); gap: 12px; margin: 0; padding: 15px 21px; }
.shared-delivery dt { color: var(--muted); font-size: .81rem; }
.shared-delivery dd { margin: 4px 0 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.shared-groups { margin: 12px 0; }
.shared-groups .button { white-space: normal; justify-content: start; text-align: left; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { padding: 8px 0; overflow-wrap: anywhere; }
.activity-list li + li { border-top: 1px solid var(--line); }
.message-card .activity-list { margin-top: 8px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 5px #172b5505; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 21px 0; }
.heading-pair { display: flex; align-items: center; gap: 11px; min-width: 0; }
.section-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.section-icon .icon { width: 18px; height: 18px; }
.section-head h2, .summary-header h2 { font-size: 1.13rem; letter-spacing: -.025em; margin: 0; line-height: 1.22; }
.section-head p, .summary-header p { font-size: .87rem; margin-top: 4px; }
.location-options { border: 0; padding: 0; margin: 17px 21px 13px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.location-choice { display: flex; position: relative; align-items: center; gap: 7px; padding: 9px 8px; min-height: 43px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; min-width: 0; font-size: .86rem; font-weight: 650; }
.location-choice:hover { border-color: #98b5fa; }
.location-choice:has(:checked) { border-color: #7398f3; color: #1a4dca; background: var(--blue-soft); box-shadow: 0 0 0 1px #dce8ff; }
.location-choice:has(:focus-visible) { outline: 3px solid #78a5ff; outline-offset: 2px; }
.location-choice > span { overflow-wrap: anywhere; }
.location-choice input { margin: 0; accent-color: var(--blue); width: 15px; height: 15px; flex: none; }
.location-address { margin: 0 21px 17px; display: flex; align-items: center; flex-wrap: wrap; column-gap: 7px; row-gap: 3px; color: var(--muted); font-size: .84rem; }
.location-address .icon { height: 15px; width: 15px; color: var(--blue); }
.location-address strong { color: var(--ink); font-weight: 650; }
.location-address .dot { color: #8292a9; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid #d9e1ef; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 650; font-size: .875rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.button:hover { border-color: #9db3db; background: #f8faff; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 3px 6px #2659d329; }
.button.primary:not(:disabled):not([aria-disabled="true"]):hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.accent { color: #1e50cc; background: #f8faff; border-color: #cfddf8; }
.button.accent:hover { background: #eef4ff; border-color: #9db7f1; }
.button:disabled, .button[aria-disabled="true"] { opacity: .53; }
.button.danger { color: #a12a3b; }
.icon-button { padding: 6px; width: 34px; min-height: 34px; }
.subtle-button { border: 0; background: transparent; color: #647892; }
.subtle-button:hover { color: #264474; }
.table-scroll { position: relative; overflow-x: auto; }
.order-table { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #50627c; background: #f6f8fc; line-height: 1.3; font-size: .83rem; font-weight: 650; white-space: nowrap; }
td { font-size: .9rem; border-top: 1px solid #edf0f6; }
th, td { padding: 10px 12px; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 21px; }
.order-table table { min-width: 450px; }
.order-table tbody tr:last-child td { padding-bottom: 13px; }
.item-cell { display: flex; align-items: center; gap: 9px; }
.item-cell strong, .supplier-group strong { display: block; font-weight: 680; line-height: 1.25; }
.item-cell small, .supplier-group small, .cell-meta { display: block; font-size: .79rem; color: var(--muted); margin-top: 3px; }
.item-cell > div { min-width: 0; overflow-wrap: anywhere; }
.item-icon { width: 32px; height: 32px; border-radius: 8px; background: #eff3f9; color: #557099; display: grid; place-items: center; flex: none; }
.item-icon .icon { width: 17px; height: 17px; }
.item-icon.tonic { color: #518176; background: #ecf6f3; }
.item-icon.beer { color: #8a5b1f; background: #f9f0df; }
input, select, textarea { min-width: 0; border: 1px solid #d7e0ee; border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 10px; font-size: .9rem; }
input:hover, select:hover, textarea:hover { border-color: #a8b9d3; }
input[type="number"] { width: 66px; min-height: 34px; padding: 6px 7px 6px 9px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566b87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 31px; }
input:not([type="radio"]), select, textarea { max-width: 100%; }
textarea { resize: vertical; }
.unit { color: var(--muted); white-space: nowrap; }
.supplier-cell { color: #3f526e; overflow-wrap: anywhere; }
.order-supplier { width: clamp(7rem, 18vw, 11rem); }
.order-table td:last-child { padding-left: 2px; padding-right: 12px; text-align: right; }
.details { display: grid; grid-template-columns: minmax(130px, .74fr) minmax(0, 1.5fr); gap: 12px; padding: 14px 21px 18px; }
.field { display: grid; gap: 6px; align-content: start; color: #32455f; font-size: .87rem; font-weight: 610; min-width: 0; }
.field input, .field textarea, .field select { width: 100%; font-weight: 400; }
.field small { color: var(--muted); font-weight: 400; }
.category-fields { display: grid; gap: 8px; }
.category-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.product-suppliers { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 2px 12px 4px; min-width: 0; }
.product-suppliers legend { font-size: .87rem; font-weight: 610; padding: 0 5px; }
.product-supplier { padding: 7px 0; }
.product-supplier + .product-supplier { border-top: 1px solid var(--line); }
.product-supplier-choice { display: flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.product-supplier-choice input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.product-supplier .field { margin: 7px 0 2px 25px; font-size: .81rem; }
.member-locations { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 9px 12px 11px; min-width: 0; }
.member-locations legend { font-size: .87rem; font-weight: 610; padding: 0 5px; }
.member-locations p { color: var(--muted); font-size: .83rem; margin: 0 0 5px; }
.member-location { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.member-location input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.member-location input[disabled] { opacity: .65; }
.departments { margin-top: 22px; }
.department-list { list-style: none; padding: 0; margin: 14px 0 0; }
.department-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 21px; }
.department-list strong { overflow-wrap: anywhere; }
.summary { padding: 19px 18px 17px; }
.summary-header { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.summary-kicker { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 9px; gap: 8px; font-size: .87rem; font-weight: 650; }
.count-badge { border-radius: 100px; color: #2856c4; background: var(--blue-soft); padding: 3px 8px; font-size: .77rem; white-space: nowrap; }
.supplier-groups { display: grid; gap: 7px; }
.supplier-group { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; width: 100%; text-align: left; background: #fff; color: var(--ink); }
.supplier-group:hover { border-color: #a4baeb; background: #f8faff; }
.supplier-group strong { font-size: .87rem; overflow-wrap: anywhere; }
.supplier-group .mail-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #3d6bd4; background: #eff5ff; border-radius: 8px; flex: none; }
.mail-icon .icon, .supplier-group > [data-icon] .icon { width: 16px; height: 16px; }
.supplier-group > [data-icon]:last-child { color: #5b7397; margin-left: auto; }
.summary-actions { display: grid; gap: 8px; margin-top: 16px; }
.summary-actions .primary { min-height: 43px; }
.info-note { display: flex; align-items: flex-start; gap: 7px; color: #506884; background: #f1f6fd; border-radius: 8px; padding: 9px 10px; font-size: .79rem; line-height: 1.36; margin: 14px 0 0; }
.info-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.empty { text-align: center; color: var(--muted); padding: 24px 20px; font-size: .92rem; line-height: 1.5; }
.summary .empty { padding: 11px 4px 7px; text-align: left; }
.list-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 18px 21px; }
.list-toolbar .field { width: 220px; }
.catalog th, .catalog td { padding-top: 13px; padding-bottom: 13px; }
.catalog td { overflow-wrap: anywhere; }
.catalog td:last-child { text-align: right; }
.catalog th:last-child { text-align: right; }
.catalog .strong { font-weight: 650; }
.history-order-number { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.order-delivery-icon { display: inline-grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; color: #50627c; background: #eef2f8; }
.order-delivery-icon .icon { width: 15px; height: 15px; }
.order-delivery-icon.partial { color: #794c13; background: #fff1d6; }
.order-delivery-icon.received { color: #267048; background: #eaf6ef; }
.status-label { display: inline-flex; background: #eaf6ef; color: #267048; border-radius: 100px; padding: 4px 9px; font-size: .79rem; font-weight: 650; white-space: nowrap; }
.status-label.draft { background: #eef2f8; color: #50627c; }
.status-label.partial { background: #fff1d6; color: #794c13; }
dialog { width: min(540px, calc(100% - 28px)); max-height: min(88vh, 760px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 24px 80px #12234940; }
dialog::backdrop { background: #101c37a3; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.21rem; letter-spacing: -.024em; }
.dialog-body { padding: 18px 21px; line-height: 1.48; display: grid; gap: 12px; }
.dialog-body > p { margin: 0; }
.form-error { color: #9c263b; font-size: .88rem; }
.form-error:empty { display: none; }
.dialog-footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 21px 17px; border-top: 1px solid var(--line); }
.dialog-footer .danger { margin-right: auto; }
.picker-list { display: grid; gap: 7px; }
.picker-row { justify-content: flex-start; text-align: left; white-space: normal; }
.picker-row > span:last-child { display: grid; gap: 2px; }
.picker-row small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.message-card { background: #f4f7fc; border: 1px solid var(--line); border-radius: 9px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.message-card summary { cursor: pointer; color: #224790; font-weight: 650; }
.message-meta { margin: 8px 0 0; font-size: .88rem; }
.message-content { font: inherit; white-space: pre-wrap; margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 10px; font-size: .9rem; }
.history-supplier { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.history-supplier-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: #eff4fc; }
.history-supplier h3 { margin: 0; color: #23477e; font-size: .95rem; overflow-wrap: anywhere; }
.history-supplier table { table-layout: fixed; }
.history-supplier th, .history-supplier td { padding: 7px 12px; white-space: normal; overflow-wrap: anywhere; }
.history-supplier th:last-child, .history-supplier td:last-child { width: 34%; text-align: right; }
.history-supplier tbody th { background: transparent; color: var(--ink); border-top: 1px solid var(--line); font-size: .88rem; }
.history-supplier td { font-variant-numeric: tabular-nums; }
.history-supplier .cell-meta { font-weight: 400; }
.receiving-table th:nth-child(2) { width: 5.85rem; text-align: right; }
.receiving-table th:nth-child(3) { width: 5.1rem; text-align: center; }
.history-supplier .receiving-table th:last-child, .history-supplier .receiving-table td:last-child { width: 2.9rem; text-align: center; padding-inline: 3px; }
.receiving-table td:nth-child(2) { text-align: right; }
.receiving-table td:nth-child(3) { text-align: center; }
.receiving-table .receipt-value { width: 100%; min-height: 34px; padding: 4px; color: var(--blue-dark); }
.receipt-shortage { display: block; margin-top: 3px; color: #794c13; font-size: .73rem; }
.receipt-check { display: inline-flex; min-width: 35px; min-height: 35px; align-items: center; justify-content: center; cursor: pointer; }
.receipt-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--blue); }
.supplier-notice { border-top: 1px solid var(--line); padding: 8px 12px; }
#receipt-form [name="receivedQty"] { font-size: 1rem; }
.toast { position: fixed; z-index: 5; bottom: 20px; right: 20px; max-width: calc(100% - 40px); padding: 12px 16px; background: #152947; color: #fff; border-radius: 9px; font-size: .92rem; font-weight: 600; box-shadow: 0 8px 24px #101c3740; }
.toast:empty { display: none; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; white-space: nowrap; clip-path: inset(50%); }
@media (min-width: 1480px) { .app-shell { grid-template-columns: 248px minmax(0, 1fr); } .order-layout { grid-template-columns: minmax(0, 1fr) 342px; } }
@media (max-width: 1140px) { .app-shell { grid-template-columns: 195px minmax(0, 1fr); } main, .topbar { padding-left: 23px; padding-right: 23px; } .order-layout { grid-template-columns: minmax(0, 1fr) 278px; gap: 14px; } .summary { padding-left: 14px; padding-right: 14px; } .location-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 975px) { .order-layout { grid-template-columns: minmax(0, 1fr); } .location-options { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 710px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 12px 12px 8px; }
  .brand { margin: 0 4px 10px; }
  .brand-mark { height: 35px; width: 35px; }
  .brand small, .sidebar-footer, .nav-label { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px 0; }
  .nav-short { display: inline; }
  .nav-full { display: none; }
  .sidebar nav a { flex: 1 0 64px; justify-content: center; flex-direction: column; gap: 4px; min-height: 46px; padding: 4px 1px; font-size: .77rem; }
  .sidebar nav a .icon { width: 16px; height: 16px; }
  .topbar { height: 49px; }
  main { padding-top: 22px; }
  .topbar, main { padding-left: 13px; padding-right: 13px; }
  .page-heading { margin-bottom: 17px; }
  .order-main { gap: 13px; }
  .page-heading h1 { overflow-wrap: anywhere; }
  .section-head, .details { padding-left: 13px; padding-right: 13px; }
  .location-options, .location-address { margin-left: 13px; margin-right: 13px; }
  .shared-department { margin-left: 13px; margin-right: 13px; }
  .catalog table { min-width: 520px; }
  .shared-lines th:first-child { padding-left: 13px; }
  .shared-delivery dl { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 470px) {
  .location-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .details { grid-template-columns: 1fr; }
  .section-head p { display: none; }
  .order-table table { min-width: 0; }
  .order-table th, .order-table td { padding-right: 5px; padding-left: 5px; }
  .order-table th:first-child, .order-table td:first-child { padding-left: 11px; }
  .order-table th:last-child, .order-table td:last-child { padding-right: 6px; }
  .order-table input[type="number"] { width: 46px; padding-left: 5px; padding-right: 4px; }
  .order-table .item-icon { display: none; }
  .order-table .supplier-cell { font-size: .79rem; }
  .order-supplier { width: 6.6rem; font-size: inherit; padding-left: 6px; padding-right: 22px; background-position: right 4px center; }
  .breadcrumb > span { display: none; }
  .shared-col-qty { width: 4.2rem; }
  .shared-col-unit, .shared-lines .shared-unit-cell { display: none; }
  .shared-col-supplier { width: 34%; }
  .shared-col-actions { width: 3rem; }
  .shared-lines th, .shared-lines td { padding: 8px 5px; }
  .shared-lines th:first-child { padding-left: 10px; }
  .shared-lines th:last-child, .shared-lines td:last-child { padding-right: 5px; }
  .shared-lines thead th, .shared-supplier, .shared-line-name small { font-size: .76rem; }
  .shared-lines tbody .shared-line-name { font-size: .87rem; }
  .shared-quantity.button, .shared-supplier .order-supplier, .shared-line-action .icon-button { min-height: 42px; }
  .shared-line-action .icon-button { width: 38px; }
  .shared-mobile-unit { display: block; font-size: .72rem; margin-top: 2px; }
  .shared-supplier .order-supplier { padding-left: 6px; padding-right: 17px; }
  .history-supplier .receiving-table th, .history-supplier .receiving-table td { padding: 6px; }
  .history-supplier .receiving-table thead th { white-space: nowrap; }
  .receiving-table thead th, .history-supplier .receiving-table tbody th, .receiving-table .receipt-value { font-size: .76rem; }
  .receiving-table th:nth-child(2) { width: 4.55rem; }
  .receiving-table th:nth-child(3) { width: 3.6rem; }
  .history-supplier .receiving-table th:last-child, .history-supplier .receiving-table td:last-child { width: 2.45rem; }
  .receipt-unit { display: block; font-size: .73rem; color: var(--muted); }
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions .button { min-height: 33px; }
.signed-out .sidebar, .signed-out .topbar { display: none; }
.signed-out .app-shell { display: block; }
.signed-out main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 425px); padding: 33px; }
.auth-brand { font-size: .9rem; font-weight: 750; text-decoration: none; color: var(--blue); }
.auth-card h1 { margin: 11px 0 23px; font-size: 1.65rem; letter-spacing: -.035em; }
.auth-card form { display: grid; gap: 13px; }
.auth-card form p { margin: 0; }
.auth-card form .button { margin-top: 4px; }
