/* Incoming packages (2026-10-12) — Stock Locations → Incoming, the add/edit sheet and the Package card on a watch.
   Theme tokens only (day + night + remodel follow). Layout copies the Ship-to grid (.lm-table) so the two tabs read as one page. */

/* ── status pill (same family as .lm-st / the Invoices pills) ── */
.ipk-st { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: color-mix(in srgb, #7c8591 16%, transparent); color: color-mix(in srgb, #7c8591 80%, var(--white)); }
.ipk-st.is-expected { background: color-mix(in srgb, var(--gold) 16%, transparent); color: color-mix(in srgb, var(--gold) 80%, var(--white)); }
.ipk-st.is-in_transit { background: color-mix(in srgb, var(--blue) 18%, transparent); color: color-mix(in srgb, var(--blue) 75%, var(--white)); }
.ipk-st.is-delivered { background: color-mix(in srgb, var(--amber) 18%, transparent); color: color-mix(in srgb, var(--amber) 72%, var(--white)); }
.ipk-st.is-received { background: color-mix(in srgb, var(--green) 16%, transparent); color: color-mix(in srgb, var(--green) 70%, var(--white)); }
.ipk-st.is-problem { background: color-mix(in srgb, var(--red) 16%, transparent); color: color-mix(in srgb, var(--red) 75%, var(--white)); }

/* ── the list ── */
#lm-incoming-view .ipk-kpis { margin-bottom: 14px; }
.ipk-table .ipk-c-name { min-width: 190px; }
.ipk-table td b { color: var(--white); font-weight: 600; }
.ipk-sid { font-size: 11px; color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace); }
.ipk-more { font-size: 11px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.ipk-dim { color: var(--faint, var(--muted)); }
.ipk-track { color: var(--gold); text-decoration: none; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ipk-track:hover, .ipk-track:focus-visible { text-decoration: underline; }
.ipk-track-plain { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; white-space: nowrap; }
.ipk-late { color: var(--red); font-weight: 600; }
.ipk-late-n { display: block; font-size: 11px; color: var(--red); }
.ipk-by { display: block; font-size: 11px; color: var(--muted); }
.ipk-row.is-late td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.ipk-row.is-problem td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.ipk-table .ipk-c-n, .ipk-table .ipk-c-st { white-space: nowrap; }
.ipk-table .ipk-c-date { white-space: nowrap; }
.ipk-table .ipk-c-addr { max-width: 220px; }
.ipk-kpis .pay-kpi.is-active { border-color: var(--gold); }

/* ── phone: one card per package ── */
@media (max-width: 840px) {
  /* thin card, built like the inventory phone cards: item on top, the address under it, then a row of small labelled sections.
     No tracking number here (tap the card: the package detail shows it). */
  .ipk-table tr.ipk-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 14px 11px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-void); cursor: pointer; }
  .ipk-row.is-late { box-shadow: inset 3px 0 0 var(--red); } .ipk-row.is-problem { box-shadow: inset 3px 0 0 var(--amber); }
  .ipk-row.is-late td:first-child, .ipk-row.is-problem td:first-child { box-shadow: none; }
  #page-locations .ipk-table td { display: block !important; padding: 0; border: 0; font-size: 13px; min-width: 0; }
  .ipk-table td.ipk-c-name { grid-column: 1 / -1; grid-row: 1; max-width: none; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ipk-table td.ipk-c-addr { grid-column: 1 / -1; grid-row: 2; max-width: none; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ipk-table td.ipk-c-date { grid-column: 1; grid-row: 3; }
  .ipk-table td.ipk-c-st { grid-column: 2; grid-row: 3; white-space: nowrap; }
  .ipk-table td.ipk-c-car { grid-column: 3; grid-row: 3; color: var(--off-white, var(--white)); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #page-locations .ipk-table td.ipk-c-track { display: none !important; }
  #page-locations .ipk-table td { text-align: left; }
  #ip-add-btn { justify-content: center; }
  #page-locations .ipk-table td[data-l]::before { content: none !important; }
  #page-locations .ipk-table td.ipk-c-date::before, #page-locations .ipk-table td.ipk-c-st::before, #page-locations .ipk-table td.ipk-c-car::before { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 3px; }
  #page-locations .ipk-table td.ipk-c-date::before { content: 'Expected' !important; }
  #page-locations .ipk-table td.ipk-c-st::before { content: 'Status' !important; }
  #page-locations .ipk-table td.ipk-c-car::before { content: 'Carrier' !important; }
}
/* Four tabs (Stock / Map / Ship-to / Incoming) on a phone: icons stay, labels stay on one line, nothing overflows at 390 or 360.
   Only when Shipping is on (the Incoming tab exists); with it off the three-tab look of Stock Locations is untouched. */
@media (max-width: 768px) {
  #page-locations .lm-tabs:has(#lm-tab-incoming.ipk-on) button { flex: 1 1 auto; padding: 0 6px; gap: 5px; font-size: 14px; white-space: nowrap; min-width: 0; }
  #page-locations .lm-tabs:has(#lm-tab-incoming.ipk-on) button svg { display: block; width: 16px; height: 16px; flex: none; }
}
@media (max-width: 350px) {
  #page-locations .lm-tabs:has(#lm-tab-incoming.ipk-on) button { font-size: 13px; gap: 3px; }
  #page-locations .lm-tabs:has(#lm-tab-incoming.ipk-on) button svg { width: 14px; height: 14px; }
}

/* ── the add / edit sheet (round 3: whole modal in the new style; the address picker is a STEP inside it) ── */
#modal-package .ipk-sheet, .ipk-sheet { width: min(980px, 94vw); max-width: 980px; padding: 0; overflow: hidden; border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(8, 15, 30, .35); }
.ipk-sheet::before { display: none !important; }
.ipk-stage { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; min-height: 0; overflow: hidden; }
.ipk-pane { grid-area: 1 / 1; min-width: 0; min-height: 0; box-sizing: border-box; transition: transform .26s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s linear 0s; }
.ipk-pane-form { position: relative; padding: 32px 36px 0; max-height: min(86vh, 860px); overflow-y: auto; overscroll-behavior: contain; }
.ipk-pane-pick { padding: 32px 36px 28px; transform: translateX(32px); opacity: 0; visibility: hidden; transition: transform .26s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s linear .26s; overflow: hidden; max-height: min(86vh, 860px); display: flex; flex-direction: column; }
.ipk-stage.is-picking .ipk-pane-form { transform: translateX(-32px); opacity: 0; visibility: hidden; transition: transform .26s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s linear .26s; pointer-events: none; }
.ipk-stage.is-picking .ipk-pane-pick { transform: none; opacity: 1; visibility: visible; transition: transform .26s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s linear 0s; }
.ipk-pane-form > .uic-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-raised); color: var(--off-white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ipk-pane-form > .uic-close:hover { background: var(--bg-hover); }
.ipk-pane-form > .uic-close svg { width: 18px; height: 18px; }
.ipk-card .wfap-f-chip { display: none; }
.ipk-foot { box-shadow: none !important; background: var(--bg-panel) !important; position: sticky; bottom: 0; z-index: 3; padding-bottom: 28px; margin-bottom: 0; }
.ipk-chip i { white-space: nowrap; }
.ipk-head { margin: 0 56px 22px 0; }
.ipk-head .modal-title { margin: 0; font-family: var(--font-body); font-size: 28px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.ipk-head .modal-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ipk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ipk-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ipk-card { padding: 20px 22px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); min-width: 0; }
.ipk-card[hidden] { display: none; }
.ipk-h { margin: 0 0 16px; font-family: inherit !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 1.4px !important; text-transform: uppercase; color: var(--white); line-height: 1.3; }
.ipk-card .form-group { margin: 0 0 16px; }
.ipk-card .form-group:last-child { margin-bottom: 0; }
.ipk-card .form-group > label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--off-white); text-transform: none; letter-spacing: 0; }
.ipk-opt { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.ipk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ipk-src { display: none !important; }
.ipk-seg { margin: 0; width: 100%; flex-wrap: nowrap; border-radius: 14px; gap: 4px; }
.ipk-seg .inv-kind-tab { flex: 1 1 0; justify-content: center; padding: 8px 4px; min-height: 40px; font-size: 13px; border-radius: 10px; }
.ipk-seg .inv-kind-tab:disabled { opacity: .55; cursor: not-allowed; }
.ipk-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.ipk-hint:empty { display: none; }
.ipk-hint a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.ipk-hint b { color: var(--white); }
.ipk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ipk-chips:has(> .ipk-dim) { margin-bottom: 8px; }
.ipk-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg-hover); color: var(--white); font-size: 13px; }
.ipk-chip i { font-style: normal; color: var(--muted); font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); }
.ipk-chip em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--green); }
.ipk-chip button { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; width: 24px; height: 24px; min-height: 0; border-radius: 50%; cursor: pointer; padding: 0; }
.ipk-chip button:hover { color: var(--red); background: var(--bg-raised); }
.ipk-pick { position: relative; }
.ipk-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 240px; overflow: auto; border: 1px solid var(--border-light, var(--border)); border-radius: 10px; background: var(--bg-void); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.ipk-res { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--off-white); font: inherit; font-size: 13px; cursor: pointer; min-height: 44px; }
.ipk-res:last-child { border-bottom: 0; }
.ipk-res:hover, .ipk-res:focus-visible { background: var(--bg-hover); outline: none; }
.ipk-res b { color: var(--white); font-weight: 600; } .ipk-res i { font-style: normal; color: var(--muted); font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); } .ipk-res span { margin-left: auto; font-size: 11px; color: var(--muted); }
.ipk-res-none { padding: 12px; font-size: 13px; color: var(--muted); }
.ipk-err { margin-top: 16px; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--red) 12%, transparent); color: color-mix(in srgb, var(--red) 80%, var(--white)); }
.ipk-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.ipk-spacer { flex: 1; }
.ipk-del { color: var(--red); }
.ipk-recv { margin: 0 0 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--gold) 7%, transparent); }
.ipk-recv.is-done { display: flex; align-items: center; gap: 10px; border-color: color-mix(in srgb, var(--green) 40%, var(--border)); background: color-mix(in srgb, var(--green) 7%, transparent); font-size: 13px; color: var(--off-white); }
.ipk-recv-t { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.ipk-recv-b { display: flex; flex-wrap: wrap; gap: 8px; }
/* picker as a step INSIDE the sheet */
.wfap-inline { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.wfap-inline .wfap-sheet { width: auto; max-height: none; padding: 0; border: 0; box-shadow: none; background: transparent; transform: none; border-radius: 0; flex: 1; min-height: 0; }
.wfap-inline .wfap-head { align-items: center; justify-content: flex-start; gap: 14px; }
.wfap-inline .wfap-head-t { flex: 1; min-width: 0; }
.wfap-inline .wfap-body { max-height: none; flex: 1; min-height: 0; }
.wfap-inline .wfap-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 900px) { .ipk-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  #modal-package .ipk-sheet, .ipk-sheet { width: calc(100% - 20px); max-width: none; padding: 0; border-radius: 22px; }
  .ipk-pane-form { padding: 18px 16px 0; max-height: 88dvh; }
  .ipk-pane-pick { padding: 18px 16px 16px; max-height: 88dvh; }
  .ipk-pane-form > .uic-close { top: 12px; right: 12px; }
  .ipk-head { margin-right: 48px; margin-bottom: 16px; }
  .ipk-head .modal-title { font-size: 22px; }
  .ipk-head .modal-sub { font-size: 13px; }
  .ipk-cols, .ipk-col { gap: 12px; }
  .ipk-card { padding: 16px 16px 18px; border-radius: 14px; }
  .ipk-recv-b .btn { flex: 1 1 100%; justify-content: center; }
  .ipk-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; } .ipk-foot .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .ipk-spacer { display: none; }
  .ipk-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ipk-seg .inv-kind-tab { padding: 8px 6px; }
  .ipk-card .wfap-code { display: none; }
  .wfap-inline .wfap-grid { grid-template-columns: 1fr; }
}

/* ── the Package card on a watch ── */
.ipk-detail-card .card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ipk-detail-act { display: flex; gap: 8px; flex-wrap: wrap; }
.ipk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; }
.ipk-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ipk-fact > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.ipk-fact > b { font-size: 13.5px; color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ipk-empty { font-size: 13px; color: var(--muted); }
/* Desktop: the card sits top right. Phone: it is the panel of the Shipping tab (inside #inv-detail-tabwrap); the tab wrap owns margins + show/hide. */
#page-inventory-detail .ipk-detail-card:not(.ipk-as-tab) { margin: 0 0 14px !important; }
#page-inventory-detail .ipk-detail-card { flex: 0 0 auto !important; min-height: auto !important; height: auto !important; overflow: visible; }
#page-inventory-detail .inv-detail-tabwrap > .ipk-detail-card.is-hidden { display: none !important; }
#page-inventory-detail #inv-detail-package-card[hidden] { display: none !important; }
#page-inventory-detail #inv-detail-package-card.ipk-as-tab { border: 1px solid var(--border); border-left: 3px solid color-mix(in srgb, var(--gold) 55%, var(--border-light)); background: var(--bg-raised); }
#page-inventory-detail #inv-detail-package-card.ipk-as-tab > .card-header { padding: 12px 16px 11px; }
#page-inventory-detail #inv-detail-package-card.ipk-as-tab > .card-body { padding: 12px 16px 14px; }
.ipk-title-pill { order: 4; align-self: flex-start; width: auto; max-width: 100%; flex: 0 0 auto; justify-self: start; margin: 4px 0 0; display: inline-flex; align-items: center; min-height: 28px; height: 28px; box-sizing: border-box; padding: 0 12px; border-radius: 999px; font-family: inherit; line-height: 1; letter-spacing: .3px; white-space: nowrap; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--border)); background: color-mix(in srgb, var(--blue) 12%, var(--bg-raised)); color: var(--blue); }
.ipk-title-pill.is-late { border-color: color-mix(in srgb, var(--red) 50%, var(--border)); background: color-mix(in srgb, var(--red) 12%, var(--bg-raised)); color: var(--red); }
.ipk-title-pill { position: relative; }
/* Compact pill, 28px painted; the global 44px touch floor exempts .ipk-title-pill (index.html #wf-touch-floor) and a transparent 44px hit box (::before) keeps it easy to tap. */
.ipk-title-pill::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.ipk-title-pill[hidden] { display: none !important; }
@media (max-width: 640px) { #page-inventory-detail #inv-detail-package-card > .card-header { flex-wrap: wrap; } .ipk-detail-act .btn { min-height: 44px; } }

#page-locations #lm-tab-incoming[hidden] { display: none !important; }

/* A ship-to address this runner may not use: kept in the list, red and disabled, with the reason in its label. */
/* round 3b: eyebrow, summary strip, bold uppercase labels, white rounded fields */
.ipk-eyebrow, .wfap-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.ipk-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--blue) 9%, var(--bg-raised)); overflow: hidden; }
.ipk-strip-c { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; min-width: 0; border-left: 1px solid color-mix(in srgb, var(--blue) 20%, var(--border)); }
.ipk-strip-c:first-child { border-left: 0; }
.ipk-strip-c span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ipk-strip-c b { font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipk-strip-c.is-on b { color: var(--white); }
.ipk-card .form-group > label { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--off-white); }
.ipk-card .form-group > label .ipk-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ipk-card input:not([type=checkbox]), .ipk-card .wfap-field { background: var(--bg-raised) !important; border: 1px solid var(--border); border-radius: 12px; min-height: 48px; }
.wfap-search { background: var(--bg-raised); }
.wfap-inline .wfap-head { align-items: center; }
@media (max-width: 640px) {
  .ipk-strip { grid-template-columns: 1fr 1fr; }
  .ipk-strip-c:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--blue) 20%, var(--border)); }
  .ipk-strip-c { padding: 10px 14px; }
}

/* round 3c, PHONE ONLY (<= 600px): the Add a package sheet. Desktop is untouched.
   One tap row per choice (carrier, status: WFSheetPicker as a step INSIDE the sheet), no summary strip (it repeats the fields),
   and four groups that each show a fact once: Shipment (tracking, carrier, delivery date) / Where / What's inside / Notes. */
.ipk-h-m { display: none; }
.ipk-lab-m { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the tap rows exist for the phone only; on a desktop the pills stay and the form label stays */
#modal-package .wfsp-row { display: none; }
#modal-package .form-group.wfsp-has-row { margin: 0 0 16px; container-type: normal; }
#modal-package .form-group.wfsp-has-row > label { display: block !important; }
@media (max-width: 600px) {
  #modal-package .ipk-strip { display: none; }
  #modal-package .ipk-seg { display: none; }
  #modal-package .wfsp-row { display: flex; min-height: 52px; }
  #modal-package .form-group.wfsp-has-row { margin: 0 0 12px; }
  #modal-package .form-group.wfsp-has-row > label { display: none !important; }
  .ipk-h-d { display: none; }
  .ipk-h-m { display: inline; }
  .ipk-h { font-size: 12px !important; font-weight: 700 !important; letter-spacing: 1.4px !important; margin-bottom: 14px; }
  .ipk-card .form-group > label.ipk-lab-m { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  #modal-package .ipk-card .form-group:last-child { margin-bottom: 0; }
  #modal-package .ipk-card > .wfsp-row:last-child { margin-bottom: 0; }
  #modal-package .ipk-hint { margin-top: 6px; }
}
@media (max-width: 600px) {
  /* the carrier / status choice is a step INSIDE this sheet: give it the sheet's own padding and let it scroll */
  #modal-package .ipk-sheet.wfsp-picking { padding: 20px 16px 22px; max-height: 88dvh; overflow-y: auto; }
  #modal-package .ipk-sheet.wfsp-picking .wfsp-inline { overflow: visible; }
}

/* ── Stock Locations › a place (Shipping ON) ──
   The initials bubble is gone (the name stands alone). On a phone an open place reads as a detail page: "All places" first,
   then the name and address, then the actions; the page title and the Stock / Map / Ship-to / Incoming tabs step aside. */
#page-locations .rp-person-head.lm-ph-plain { gap: 10px 14px; }
@media (max-width: 768px) {
  #page-locations.lm-place-open .lm-head { display: none !important; }
  #page-locations.lm-place-open .lm-page { padding-top: 6px; }
  #page-locations.lm-place-open .rp-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--blue, var(--gold)); }
  #page-locations.lm-place-open .rp-person-head { flex-direction: column; align-items: stretch; gap: 10px; }
  #page-locations.lm-place-open .rp-person-head h1 { font-family: var(--font-body); font-size: 24px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
  #page-locations.lm-place-open .lm-place-acts { display: flex; gap: 8px; width: 100%; margin: 0; }
  #page-locations.lm-place-open .lm-place-acts .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
}

/* Package sheet title: bold Absans 700 (var(--font-body)) like every new-UI title (Hal 10-14) */
#modal-package #pk-title { font-family: var(--font-body) !important; font-weight: 700 !important; letter-spacing: -0.4px; }
#modal-package #pk-title::before { content: none !important; }

/* 2026-10-18 (Hal): the pill sits on the title line's centre on desktop, not 6px high (it was align-self:flex-start + margin-top:4px),
   and its label is centred in the pill (the old `font: 600 11px/1.2 inherit` shorthand was invalid, so line-height fell back to normal). */
@media (min-width: 769px) {
  #page-inventory-detail #inv-detail-header-body > .ipk-title-pill { align-self: center !important; margin-top: 0 !important; margin-bottom: 0 !important; }
}
.ipk-title-pill { justify-content: center; padding-top: 0; padding-bottom: 0; }
