/*
  FBA Signal / dispatch console
  A restrained warehouse UI: cool work surfaces, label-like utility type,
  and a single "shipment runway" motif for the operational sequence.
*/
:root {
  --ink: #16231e;
  --muted: #68736d;
  --paper: #eef2f0;
  --panel: #fbfcfb;
  --line: #cfd8d3;
  --forest: #245443;
  --forest-2: #183e32;
  --mint: #dcebe4;
  --signal: #df6337;
  --signal-soft: #f8e5dd;
  --amber: #b77a17;
  --red: #a9443d;
  --red-soft: #f4dfdc;
  --bay: #315f73;
  --shadow: 0 18px 42px rgba(28, 45, 37, .075);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, ui-sans-serif, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, ui-sans-serif, sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-family: var(--body);
  background: var(--paper);
}

body {
  background:
    linear-gradient(90deg, rgba(36, 84, 67, .028) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
}

a, button, input, select, textarea { outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(223, 99, 55, .42);
}

.topbar {
  height: 70px;
  border-bottom: 1px solid #bfcac4;
  background: rgba(248, 250, 249, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.brand { gap: 11px; }
.brand-mark {
  width: 49px;
  height: 32px;
  border-radius: 3px;
  background: var(--forest-2);
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: .08em;
  box-shadow: inset 4px 0 0 var(--signal);
}
.brand strong { font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.brand small { font-family: var(--utility); font-size: 9px; letter-spacing: .02em; }
.topbar nav { align-self: stretch; gap: 6px; }
.topbar nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #58655f;
  font-size: 13px;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: transparent;
}
.topbar nav a:hover, .topbar nav a.is-active { color: var(--forest-2); }
.topbar nav a.is-active::after { background: var(--signal); }

.page-shell { padding-top: 38px; }
.hero { margin-bottom: 30px; }
.hero h1, .shipment-hero h1, .detail-heading h1, .auth-copy h1,
.form-page h1, .settings-layout h1, .settings-layout h2,
.panel-heading h2, .admin-strip h2, .auth-card h2,
.empty-state h3, .shipment-suggestions h2, .shipment-editor legend,
.smtp-card h3, .shipment-card h3 {
  font-family: var(--display);
}
.hero h1, .shipment-hero h1, .detail-heading h1, .auth-copy h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.eyebrow {
  font-family: var(--utility);
  color: var(--forest);
  font-size: 10px;
  letter-spacing: .14em;
}
.lede { max-width: 690px; color: #5e6964; }
.freshness {
  border: 1px solid #d6caa7;
  border-radius: 4px;
  background: #f8f2df;
  font-family: var(--utility);
  font-size: 11px;
}

/* One continuous status console replaces a row of generic floating cards. */
.summary-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(28, 45, 37, .045);
}
.summary-grid article {
  position: relative;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(28, 45, 37, .04);
}
.summary-grid article:last-child { border-right: 0; }
.summary-grid article::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  background: #aab6b0;
}
.summary-grid article.attention::before { background: var(--amber); }
.summary-grid article.danger::before { background: var(--red); }
.summary-grid article.positive::before { background: var(--forest); }
.summary-grid article.attention,
.summary-grid article.danger,
.summary-grid article.positive { border-top: 0; }
.summary-grid span, .metric-card span { font-family: var(--utility); font-size: 10px; }
.summary-grid strong, .metric-card strong { font-family: var(--display); font-weight: 700; }

.panel {
  border-color: var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.panel-heading { padding: 21px 24px; }
.panel-heading h2, .admin-strip h2 { font-weight: 700; letter-spacing: -.015em; }
.filters input, .filters select, .auth-card input,
.settings-card input:not([type=checkbox]), .settings-card select,
.settings-card textarea {
  border-color: #c7d0cb;
  border-radius: 5px;
  background: #fff;
}
.button {
  border-radius: 5px;
  background: var(--forest-2);
  border-color: var(--forest-2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  font-weight: 760;
}
.button:hover { background: #102f26; }
.button.secondary { border-color: #bac7c1; background: #fff; }

.inventory-guide {
  border-color: var(--line);
  background: #f1f5f3;
  font-size: 11px;
}
.inventory-guide span { padding-left: 11px; border-left: 2px solid #b9c8c0; }
.table-wrap { border-color: var(--line); }
.inventory-table {
  min-width: 1380px;
  table-layout: fixed;
}
.inventory-table .product-col { width: 14%; }
.inventory-table .action-col { width: 18%; }
.inventory-table .number-col { width: 8%; }
.inventory-table .value-col { width: 10%; }
.inventory-table .date-col { width: 10%; }
.inventory-table .coverage-col { width: 10%; }
.inventory-table .admin-col { width: 4%; }
.inventory-table th {
  padding: 12px 12px;
  background: #e7edea;
  color: #58645e;
  font-family: var(--utility);
  font-size: 9px;
  line-height: 1.35;
}
.inventory-table td {
  padding: 16px 12px;
  border-color: #dde4e0;
  line-height: 1.35;
}
.inventory-table tbody tr:nth-child(odd) td { background: #fbfcfb; }
.inventory-table tbody tr:nth-child(even) td { background: #f1f5f3; }
.inventory-table tbody tr:hover td { background: #e7f0eb; }
.inventory-table td small, .inventory-table .product-link small {
  white-space: normal;
  line-height: 1.35;
}
.inventory-table td.numeric strong { font-family: var(--utility); font-size: 12px; }
.inventory-table .sales-value-cell strong { color: var(--forest-2); font-size: 14px; }
.inventory-table .sales-value-cell small { color: #526c60; font-weight: 700; }
.product-link strong { line-height: 1.22; }
.product-link small { font-family: var(--utility); font-size: 9px; }
.status { border-radius: 3px; font-family: var(--utility); font-size: 9px; }
.status-0, .status-1 { background: var(--signal-soft); color: #8b392a; }
.badges > span:not(.status) { border-radius: 2px; background: rgba(255, 255, 255, .55); font-family: var(--utility); }
.pallet-pair span { border-radius: 3px; }
.fnsku-notice {
  border: 2px solid var(--red);
  border-radius: 4px;
  background: var(--red-soft);
  box-shadow: inset 4px 0 0 var(--red);
  color: #762b26;
}
.fnsku-notice small { color: #762b26; }
.fnsku-notice a { color: #6f211d; }

/* Weekly shipping manifest: the first operational answer on the inventory screen. */
.weekly-plan {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #203f34;
  border-radius: 10px;
  background: var(--forest-2);
  color: #f6faf8;
  box-shadow: 0 14px 34px rgba(24, 62, 50, .14);
}
.weekly-plan-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 25px 20px;
  background:
    linear-gradient(90deg, transparent 0 78%, rgba(255, 255, 255, .045) 78% 78.3%, transparent 78.3%),
    var(--forest-2);
}
.weekly-plan .eyebrow { color: #adc8bd; }
.weekly-plan h2 {
  margin: 6px 0 5px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.015em;
}
.weekly-plan-heading p:last-child { max-width: 760px; margin: 0; color: #c6d5ce; font-size: 12px; line-height: 1.5; }
.weekly-tally { display: grid; grid-template-columns: auto auto 1px auto auto; align-items: baseline; gap: 5px 8px; white-space: nowrap; }
.weekly-tally strong { color: #fff; font-family: var(--utility); font-size: 22px; }
.weekly-tally span { color: #b9cec4; font-family: var(--utility); font-size: 9px; text-transform: uppercase; }
.weekly-tally i { width: 1px; height: 28px; margin: 0 8px; background: rgba(255, 255, 255, .22); }
.weekly-list { display: grid; border-top: 1px solid rgba(255, 255, 255, .16); }
.weekly-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  gap: 24px;
  align-items: center;
  padding: 17px 25px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 5px 0 0 var(--signal);
}
.weekly-item:first-child { border-top: 0; }
.weekly-item.is-addressed { background: #55451f; box-shadow: inset 5px 0 0 #e6ad3c; }
.weekly-marker { display: block; margin-bottom: 5px; color: #f3ab8d; font-family: var(--utility); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.weekly-item.is-addressed .weekly-marker { color: #ffd981; }
.weekly-item h3 { display: inline; margin: 0 9px 0 0; font: 700 17px var(--display); }
.weekly-item-main p { display: inline; margin: 0; color: #d2ddd8; font-size: 13px; line-height: 1.5; }
.weekly-item-main p strong { color: #fff; }
.weekly-context { display: grid; gap: 8px; }
.weekly-value { padding: 10px 12px; border-left: 3px solid #78a591; background: rgba(255, 255, 255, .07); }
.weekly-value span { display: block; color: #b9cec4; font: 800 9px var(--utility); letter-spacing: .06em; text-transform: uppercase; }
.weekly-value strong { display: block; margin: 3px 0 1px; color: #fff; font: 750 19px var(--utility); }
.weekly-value small { color: #c6d5ce; font-size: 10px; }
.weekly-note { padding: 10px 12px; border-left: 3px solid #e6ad3c; background: rgba(255, 255, 255, .08); color: #fff4d7; font-size: 12px; line-height: 1.4; }
.weekly-note span { display: block; margin-bottom: 3px; color: #e8c875; font: 800 9px var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.weekly-clear { display: flex; align-items: center; gap: 14px; padding: 18px 25px; border-top: 1px solid rgba(255, 255, 255, .16); color: #d7e3dd; }
.weekly-clear > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #77a18e; color: #a9d1bf; font-weight: 800; }
.weekly-clear strong { color: #fff; }
.weekly-clear p { margin: 3px 0 0; font-size: 12px; }

/* The two future weeks form a compact production and raw-material runway. */
.production-lookahead { background: #edf3f0; }
.next-week-plan {
  border-top: 4px solid #6f9484;
  background: #edf3f0;
  color: var(--ink);
}
.outlook-week + .outlook-week { border-top-color: #b3c7bd; }
.next-week-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 25px 17px;
}
.weekly-plan .next-week-plan .eyebrow { color: #55766a; }
.next-week-plan h2 { margin-top: 5px; color: var(--forest-2); font-size: 22px; }
.next-week-heading p:last-child { max-width: 760px; margin: 0; color: #65736d; font-size: 12px; line-height: 1.5; }
.next-week-tally { display: grid; grid-template-columns: auto auto 1px auto auto; align-items: baseline; gap: 5px 8px; white-space: nowrap; }
.next-week-tally strong { color: var(--forest-2); font: 750 20px var(--utility); }
.next-week-tally span { color: #60746b; font: 800 9px var(--utility); text-transform: uppercase; }
.next-week-tally i { width: 1px; height: 25px; margin: 0 8px; background: #b9c8c1; }
.next-week-list { border-top-color: #ccd8d2; }
.next-week-plan .weekly-item {
  border-top-color: #d7e0dc;
  background: #f8fbf9;
  box-shadow: inset 5px 0 0 #739989;
}
.next-week-plan .weekly-item.is-addressed { background: #fff7e3; box-shadow: inset 5px 0 0 #dca339; }
.next-week-plan .weekly-marker { color: #547668; }
.next-week-plan .weekly-item.is-addressed .weekly-marker { color: #8a640f; }
.next-week-plan .weekly-item h3 { color: var(--forest-2); }
.next-week-plan .weekly-item-main p { color: #53635c; }
.next-week-plan .weekly-item-main p strong { color: var(--ink); }
.next-week-plan .weekly-value { border-left-color: #88a99b; background: #e8f0ec; }
.next-week-plan .weekly-value span { color: #60756b; }
.next-week-plan .weekly-value strong { color: var(--forest-2); }
.next-week-plan .weekly-value small { color: #66766f; }
.next-week-plan .weekly-note { background: #fff0c9; color: #654b12; }
.next-week-plan .weekly-note span { color: #806019; }
.next-week-clear { border-top-color: #ccd8d2; color: #637169; }
.next-week-clear > span { border-color: #9eb6ab; color: #537567; }
.next-week-clear strong { color: var(--forest-2); }

.status-handled { background: #f3e1ad; color: #6d4c0b; }
.risk-label { color: #8b5b10 !important; font-weight: 750; }
body .inventory-table tbody tr.row-addressed td { background: #fff8e6; }
body .inventory-table tbody tr.row-addressed:hover td { background: #fff3d0; }
.shipment-status-link { display: block; width: fit-content; margin-top: 7px; color: var(--forest); font-size: 10px; font-weight: 800; }
.action-note { margin-top: 9px; padding: 9px 10px; border-left: 3px solid #d59a2d; background: #fff3d2; color: #60470f; }
.action-note strong { font: 800 9px var(--utility); letter-spacing: .07em; text-transform: uppercase; }
.action-note p { margin: 4px 0; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.action-note small { margin-top: 0 !important; color: #806925 !important; font-family: var(--utility); font-size: 8px; }
.action-note-editor { margin-top: 9px; }
.action-note-editor summary { width: fit-content; color: var(--forest); cursor: pointer; font-size: 10px; font-weight: 800; }
.action-note-editor form { margin-top: 7px; }
.action-note-editor textarea { width: 100%; resize: vertical; border: 1px solid #c7d0cb; border-radius: 4px; background: #fff; padding: 7px 8px; color: var(--ink); font: 11px/1.4 var(--body); }
.action-note-editor form > div { display: flex; gap: 6px; margin-top: 5px; }
.note-save, .note-clear { min-height: 28px; padding: 0 9px; border: 1px solid var(--forest-2); border-radius: 3px; background: var(--forest-2); color: #fff; cursor: pointer; font: 750 10px var(--body); }
.note-clear { border-color: #b9a373; background: transparent; color: #775a18; }
.detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sales-value-detail { box-shadow: inset 0 3px 0 var(--forest), 0 8px 22px rgba(28, 45, 37, .04); }

.admin-strip {
  border-radius: 7px;
  background: var(--forest-2);
  box-shadow: inset 5px 0 0 var(--signal);
}

@media (max-width: 820px) {
  .weekly-plan-heading, .next-week-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .weekly-item { grid-template-columns: 1fr; gap: 11px; }
}

@media (max-width: 520px) {
  .weekly-plan-heading, .next-week-heading, .weekly-item, .weekly-clear { padding-right: 17px; padding-left: 17px; }
  .weekly-tally, .next-week-tally { grid-template-columns: auto auto; white-space: normal; }
  .weekly-tally i, .next-week-tally i { display: none; }
}

/* Shipment runway: the board is the one expressive, subject-specific moment. */
.shipment-suggestions {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-radius: 9px;
  border-color: #decda4;
  background: #f8f2df;
}
.suggestion-heading { min-width: 0; }
.suggestion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(270px, 1fr));
  gap: 9px;
  overflow: visible;
}
.suggestion-item {
  min-width: 0;
  max-width: none;
  border-radius: 5px;
  border-color: #dfd5bc;
  box-shadow: 0 2px 0 rgba(74, 65, 39, .04);
}
.quick-add-form select, .quick-add-form input { border-radius: 4px; }
.quick-quantity { min-width: 0; }
.quick-quantity small { color: #65736d; line-height: 1.35; }
.pallet-shortcuts { grid-row: 2; margin-top: 1px; }
.pallet-shortcuts button { border-radius: 3px; }
.quick-availability {
  grid-column: 1 / 3;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #4f5c56;
  font-size: 10px;
  font-weight: 750;
}
.quick-availability input { width: auto; height: auto; margin: 0; }
.quick-availability > span { margin: 0 !important; color: inherit !important; font-size: inherit !important; text-transform: none !important; }
.quick-add-form .button { grid-column: 3; grid-row: 1; align-self: end; }
.shipment-group-toolbar {
  border-radius: 7px;
  border-color: #bdcbc4;
  background: #e3ece7;
  box-shadow: inset 4px 0 0 var(--forest);
}
.shipment-group-toolbar input, .shipment-group-toolbar select { border-radius: 4px; }
.kanban-instruction {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #202e29;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #202e29;
  color: #f7f9f8;
}
.kanban-instruction span {
  color: #a9bcb3;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kanban-instruction strong { font-family: var(--display); font-size: 17px; }
.kanban-instruction small { color: #c4d0ca; font-family: var(--utility); font-size: 9px; }
.kanban-wrap {
  border: 1px solid #202e29;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #d8dfdb;
  scrollbar-color: var(--signal) #c4cdc8;
  scroll-snap-type: x proximity;
}
.kanban-board {
  grid-template-columns: repeat(6, minmax(278px, 1fr));
  min-width: 1730px;
  gap: 8px;
  padding: 8px;
}
.kanban-column {
  --stage-color: #74827b;
  min-height: 510px;
  border: 0;
  border-top: 4px solid var(--stage-color);
  border-radius: 5px;
  background: #e9eeeb;
  scroll-snap-align: start;
}
.kanban-column[data-stage="needs_shipment"] { --stage-color: #a9443d; }
.kanban-column[data-stage="ready_to_build"] { --stage-color: #b77a17; }
.kanban-column[data-stage="preparing"] { --stage-color: #df6337; }
.kanban-column[data-stage="shipped"] { --stage-color: #315f73; }
.kanban-column[data-stage="amazon_confirmed"] { --stage-color: #477867; }
.kanban-column[data-stage="complete"] { --stage-color: #6f7a74; }
.kanban-column > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  padding: 13px;
  background: #f7f9f8;
}
.kanban-column > header .stage-sequence {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--stage-color);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: -.04em;
}
.kanban-column > header .stage-count {
  width: 23px;
  height: 23px;
  background: #e2e8e4;
}
.kanban-column > header h2 { font-family: var(--display); font-size: 14px; letter-spacing: -.01em; }
.kanban-column > header div > small { max-width: 195px; }
.shipment-card { border-radius: 5px; border-color: #c9d2cd; cursor: grab; }
.shipment-card.requires-fnsku {
  border: 2px solid var(--red);
  box-shadow: 0 7px 18px rgba(105, 37, 32, .13);
}
.fnsku-card-alert {
  display: grid;
  gap: 3px;
  margin: -14px -14px 12px;
  padding: 10px 12px;
  background: var(--red);
  color: #fff;
}
.fnsku-card-alert strong {
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fnsku-card-alert span { font-size: 10px; line-height: 1.35; }
.load-chip { border-radius: 3px; font-family: var(--utility); }
.shipment-lines li, .shipment-identifiers div, .shipment-attachments, .stage-fallback select { border-radius: 4px; }
.shipment-card h3 { font-weight: 750; letter-spacing: -.015em; }
.shipment-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.shipment-tags span {
  padding: 4px 6px;
  border: 1px solid #b9ced8;
  border-radius: 3px;
  background: #e7f0f4;
  color: #254f62;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
}
.shipment-card-note {
  margin-top: 10px;
  padding: 10px 11px;
  border-left: 4px solid var(--amber);
  background: #f8f2df;
  color: #5c4315;
}
.shipment-card-note strong {
  display: block;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.shipment-card-note p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; }
.inventory-availability {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 5px;
  border-radius: 3px;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
}
.inventory-availability.available { background: var(--mint); color: var(--forest-2); }
.inventory-availability.unconfirmed { background: #f8f2df; color: #79540c; }
.fnsku-line-warning {
  border: 1px solid var(--red);
  border-radius: 3px;
  background: var(--red-soft);
  color: #762b26;
}
.fnsku-label-link { color: #762b26; }

.settings-card, .auth-card {
  border-radius: 9px;
  border-color: var(--line);
}
.form-page h1, .settings-layout h1 { font-weight: 700; letter-spacing: -.02em; }
.shipment-editor { counter-reset: form-stage; }
.shipment-editor fieldset { counter-increment: form-stage; }
.shipment-editor legend::before {
  content: "0" counter(form-stage) " / ";
  color: var(--signal);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .05em;
}
.shipment-line-form, .existing-attachments > label { border-radius: 5px; }
.shipment-tag-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f1f5f3;
}
.shipment-tag-field > strong { display: block; font-size: 12px; }
.shipment-tag-field > small { display: block; margin: 4px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.shipment-tag-field > div { display: flex; flex-wrap: wrap; gap: 7px; }
.shipment-tag-field > div > div label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #c7d2cc;
  border-radius: 4px;
  background: #fff;
  font-family: var(--utility);
  font-size: 10px;
  cursor: pointer;
}
.shipment-tag-field input { margin: 0; }
.availability-check {
  grid-column: 1 / 4;
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  align-items: start;
  margin: 3px 0 0 !important;
  padding: 9px 10px;
  border: 1px solid #cfdbd5;
  border-radius: 4px;
  background: #eef5f1;
}
.availability-check input { grid-row: 1 / 3; margin: 2px 0 0; }
.availability-check span { font-size: 11px; font-weight: 800; }
.availability-check small { margin: 0 !important; font-size: 9px !important; }
.shipment-line-form .delete-line { grid-column: 4; grid-row: 2; margin-top: 12px; }

footer { font-family: var(--utility); }

@media (max-width: 1120px) {
  .suggestion-list { grid-template-columns: 1fr; }
  .inventory-table { min-width: 1080px; }
}

@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid article:nth-child(2) { border-right: 0; }
  .summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shipment-suggestions { grid-template-columns: 1fr; }
  .topbar nav { margin-left: auto; }
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
  .topbar { height: 62px; }
  .brand-mark { width: 39px; height: 29px; font-size: 10px; }
  .topbar nav a { padding: 0 7px; }
  .topbar nav a::after { right: 7px; left: 7px; }
  .topbar nav .admin-nav { display: none; }
  .text-button { font-size: 0; }
  .text-button::after { content: "Out"; font-size: 11px; }
  .page-shell { padding-top: 25px; }
  .hero h1, .shipment-hero h1, .detail-heading h1, .auth-copy h1 { font-size: 39px; }
  .summary-grid article, .metric-card { padding: 16px; }
  .summary-grid article::before { top: 13px; bottom: 13px; }
  .inventory-guide span { padding-left: 9px; }
  .suggestion-list { grid-template-columns: minmax(0, 1fr); }
  .suggestion-item { width: 100%; }
  .quick-availability { grid-column: 1 / -1; grid-row: auto; }
  .quick-add-form .button { grid-column: 1 / -1; grid-row: auto; }
  .availability-check, .shipment-line-form .delete-line { grid-column: 1; grid-row: auto; }
  .kanban-instruction { grid-template-columns: 1fr auto; }
  .kanban-instruction span { grid-column: 1 / -1; }
}

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

/* Keep all primary tabs reachable on narrow screens. */
@media (max-width: 640px) {
  .topbar { height: auto; min-height: 94px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 16px 0; }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .brand strong { white-space: nowrap; font-size: 16px; }
  .topbar .account { grid-column: 2; grid-row: 1; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 10px; min-height: 36px; max-width: calc(100vw - 32px); overflow-x: auto; }
  .topbar nav a { flex: 0 0 auto; padding: 0 8px; white-space: nowrap; }
}

.dashboard-buybox { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 20px 24px; border: 1px solid #c5d4c9; border-left: 5px solid #28744e; border-radius: 6px; background: #edf4ef; color: var(--forest); text-decoration: none; }
.dashboard-buybox.has-issues { background: #fff3dd; border-color: #d9bc78; border-left-color: #a57022; color: #714f17; }
.dashboard-buybox strong, .dashboard-buybox small { display: block; }
.dashboard-buybox strong { font-family: var(--display); font-size: 22px; margin: 5px 0 7px; }
.dashboard-buybox small { font-size: 12px; line-height: 1.5; }
.dashboard-buybox > span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.dashboard-buybox:focus-visible { outline: 3px solid #c17b28; outline-offset: 3px; }
@media (max-width: 650px) { .dashboard-buybox { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; } }
