/* Floor plan page: the new Locations page replica (floor.js) and the page around it.
   The replica is app content, so it stays light in dark mode like every other screen on the site. */

/* ---------- Page ---------- */
/* The demos are the page, so they break out of the content width (up to 1720px). The hints above and the whole demo fit one window. */
.f-stage { width: min(1720px, calc(100vw - 64px)); margin: 56px 0 0 calc(50% - min(860px, 50vw - 32px)); text-align: left; }
.f-stage .browser { box-shadow: 0 2px 4px rgba(15,34,54,.05), 0 40px 80px -30px rgba(15,34,54,.38); }
.f-stage .fp { --fp-h: clamp(500px, calc(100vh - 240px), 840px); }
.f-stage .fp-pane { width: 400px; }
.f-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 44px auto 0; padding: 0; list-style: none; }
.f-hints + .f-stage { margin-top: 20px; }
.f-hints li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.f-hints li b { color: var(--ink-strong); font-weight: 600; }
.f-hints kbd { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--paper-2); font: 600 12px/1.4 var(--font-body); color: var(--ink-strong); }
.f-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 36px; }
.f-next p { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink-strong); }
/* The labels section shows a printed sheet, drawn by the labels view's own code (floor.js labelSheet). */
.f-sheet-page { width: min(100%, 520px); margin: 0 auto; }
.f-sheet .fq-page { border-radius: 3px; box-shadow: 0 2px 4px rgba(15,34,54,.05), 0 30px 60px -24px rgba(15,34,54,.35); }
.f-sheet-note { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.f-sheet-note b { color: var(--ink-strong); font-weight: 600; }
@media (max-width: 767px) {
	.f-stage { width: auto; margin: 40px 0 0; }
	.f-hints { margin-top: 32px; gap: 6px; }
	.f-hints + .f-stage { margin-top: 16px; }
	.f-hints li { height: 32px; padding: 0 12px; font-size: 13px; }
	.f-hints .f-desk { display: none; }
	.f-next { flex-direction: column; margin-top: 28px; }
}

/* ---------- The replica ---------- */
.fp { --fp-blue: #2563eb; --fp-line: #e5e7eb; --fp-soft: #eef0f3; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; background: #f5f7fa; color: #1f2937; font-family: Poppins, system-ui, sans-serif; font-size: 13px; line-height: 1.4; text-align: left; -webkit-font-smoothing: antialiased; }
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
.fp button { font: inherit; color: inherit; }
.fp svg { display: block; width: 14px; height: 14px; flex: none; }
.fp [hidden] { display: none !important; }

.fp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.fp-title b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.fp-title small { display: block; margin-top: 2px; font-size: 12px; color: #6b7280; }
.fp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; }
.fp-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 12px; border: 0; border-radius: 4px; background: none; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; }
.fp-seg button.is-on { background: var(--fp-blue); color: #fff; }
.fp-search { position: relative; width: 270px; }
.fp-search > svg { position: absolute; left: 12px; top: 11px; color: #9ca3af; }
.fp-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; color: #1f2937; }
.fp input:focus { outline: none; border-color: var(--fp-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.fp-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 340px; overflow-y: auto; padding: 6px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.fp-results button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.fp-results button:hover, .fp-results button.is-on { background: #f3f6fd; }
.fp-results button > span:last-child { min-width: 0; }
.fp-results b, .fp-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-results b { font-size: 13px; font-weight: 600; }
.fp-results small { font-size: 11.5px; color: #6b7280; }
.fp-results p { margin: 0; padding: 8px; font-size: 12px; color: #9ca3af; }
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; white-space: nowrap; }
.fp-btn:hover { background: #f9fafb; }
.fp-btn.is-pri { border-color: var(--fp-blue); background: var(--fp-blue); color: #fff; font-weight: 600; }
.fp-btn.is-pri:hover { background: #1d4ed8; }
.fp-btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.fp-btn svg { width: 13px; height: 13px; }

.fp-body { display: flex; gap: 16px; height: var(--fp-h, 640px); min-height: 0; }
.fp-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* Map: tabs, path bar, palette, stage, legend */
.fp-map { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; overflow: hidden; }
.fp-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--fp-soft); overflow-x: auto; flex: none; scrollbar-width: none; }
.fp-tab { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; white-space: nowrap; }
.fp-tab:hover { background: #f7f9fc; }
.fp-tab.is-on { border-bottom-color: var(--fp-blue); color: var(--fp-blue); font-weight: 600; }
.fp-tab-add { font-size: 12px; color: #6b7280; }
.fp-tab-add svg { width: 12px; height: 12px; }
.fp-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--fp-soft); flex-wrap: wrap; flex: none; }
.fp-icbtn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; color: #374151; cursor: pointer; }
.fp-icbtn:hover { background: #f3f4f6; }
.fp-crumbs, .fp-colsbar { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-crumb { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--fp-blue) !important; cursor: pointer; }
.fp-crumb:hover { text-decoration: underline; }
.fp-crumb.is-cur { font-weight: 600; color: #1f2937 !important; cursor: default; text-decoration: none; }
.fp-sep svg { width: 12px; height: 12px; color: #9ca3af; }
.fp-chip { padding: 2px 8px; border-radius: 4px; background: var(--fp-soft); font-size: 11px; font-weight: 500; color: #6b7280; }
.fp-copy { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: #9ca3af !important; cursor: pointer; }
.fp-copy:hover { background: #f3f4f6; color: var(--fp-blue) !important; }
.fp-copy svg { width: 13px; height: 13px; }
.fp-edit { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: #374151; cursor: pointer; white-space: nowrap; }
.fp-edit svg { width: 13px; height: 13px; }
.fp-edit.is-on { border-color: #1f2937; background: #1f2937; color: #fff !important; }

.fp-pal { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--fp-soft); flex-wrap: wrap; flex: none; }
.fp-pal-k { margin-right: 4px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; white-space: nowrap; }
.fp-pchip { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 8px; border: 1px solid var(--fp-line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 500; color: #374151; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; white-space: nowrap; flex: none; }
.fp-pchip:hover { border-color: var(--fp-blue); color: var(--fp-blue) !important; }
.fp-pchip i { display: block; flex: none; }
.fp-pal-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.fp-zoom { display: flex; align-items: center; gap: 4px; }
.fp-zoom button { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 14px; color: #374151; cursor: pointer; }
.fp-zoom button:last-child { margin-left: 4px; font-size: 12px; font-weight: 500; }
.fp-zoom span { min-width: 44px; text-align: center; font-size: 12px; color: #4b5563; }
.fp-snap { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px; border: 0; background: none; font-size: 12px; color: #374151; cursor: pointer; white-space: nowrap; }
.fp-snap i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid #cfd4dc; background: #fff; color: #fff; }
.fp-snap.is-on i { border-color: var(--fp-blue); background: var(--fp-blue); }
.fp-snap i svg { width: 10px; height: 10px; }
.fp-saves { font-size: 12px; color: #9ca3af; white-space: nowrap; }

.fp-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fp-foot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--fp-soft); font-size: 11px; color: #6b7280; flex: none; flex-wrap: wrap; }
.fp-scale { display: block; width: 140px; height: 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,.06); background: linear-gradient(90deg, rgba(37,99,235,.06), rgba(37,99,235,.9)); }
.fp-hint { margin-left: auto; color: #9ca3af; }

/* Floor plan: a top-down blueprint inside a pannable, zoomable viewport */
.fp-vp { position: absolute; inset: 0; overflow: hidden; background: #cfd3d9; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fp.is-editing .fp-vp { touch-action: none; cursor: default; }
.fp-vp.is-panning { cursor: grabbing; }
.fp-floor { position: absolute; left: 0; top: 0; transform-origin: 0 0; background-color: #e4e6ea; background-image: linear-gradient(rgba(31,41,55,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(31,41,55,.10) 1px, transparent 1px); background-size: 120px 120px; box-shadow: 0 0 0 14px #3b4250, 0 30px 60px rgba(0,0,0,.25); }
.fp-floor.is-snap { background-image: linear-gradient(rgba(31,41,55,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(31,41,55,.10) 1px, transparent 1px), linear-gradient(rgba(31,41,55,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,41,55,.05) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 20px 20px, 20px 20px; }
.fp-it, .fp-mk { position: absolute; transition: opacity .2s, box-shadow .15s; }
.fp-it { cursor: pointer; }
.fp-it:hover, .fp-it:focus-visible { outline: none; box-shadow: 0 0 0 3px #2563eb, 0 10px 24px rgba(0,0,0,.18) !important; }
.fp.is-editing .fp-it, .fp.is-editing .fp-mk { cursor: move; }
.fp-unit { display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.fp-unit.is-sel { box-shadow: 0 0 0 3px #2563eb, 0 10px 24px rgba(0,0,0,.18); }
.fp-lab { --s: var(--fp-inv, 1); display: flex; align-items: center; gap: calc(6px * var(--s)); max-width: calc(100% - 6px); max-height: calc(100% - 6px); padding: calc(3px * var(--s)) calc(7px * var(--s)); border-radius: 3px; background: rgba(255,255,255,.88); overflow: hidden; pointer-events: none; }
.fp-lab b { font-size: calc(11px * var(--s)); font-weight: 700; white-space: nowrap; }
.fp-lab span { font-size: calc(10px * var(--s)); color: #6b7280; white-space: nowrap; }
.fp-area { overflow: hidden; }
.fp-mini { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.fp-mini span { padding: 0 3px; border-radius: 2px; background: rgba(255,255,255,.8); font-size: calc(9px * var(--fp-inv, 1)); font-weight: 600; white-space: nowrap; }
.fp-mini.fp-mk-walkway { background: repeating-linear-gradient(90deg, #f5c518 0 8px, transparent 8px 13px) 0 0/100% 1px no-repeat, repeating-linear-gradient(90deg, #f5c518 0 8px, transparent 8px 13px) 0 100%/100% 1px no-repeat; }
.fp-mini.fp-mk-dock { border-width: 1px; }
.fp-plate { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .8em; padding: .4em 1em; background: #3b4250; color: #fff; font-size: calc(10px * min(var(--fp-inv, 1), 1.4)); font-weight: 600; letter-spacing: .12em; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.fp-plate span { font-weight: 500; letter-spacing: 0; opacity: .6; }
.fp-units { position: absolute; right: 8px; bottom: 6px; padding: 0 4px; border-radius: 2px; background: rgba(255,255,255,.6); font-size: calc(11px * var(--fp-inv, 1)); font-weight: 500; color: rgba(31,41,55,.6); white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.fp-mk { display: flex; align-items: center; justify-content: center; }
.fp-mk span { font-weight: 600; letter-spacing: .16em; white-space: nowrap; pointer-events: none; }
.fp-mk-walkway { background: repeating-linear-gradient(90deg, #f5c518 0 24px, transparent 24px 40px) 0 0/100% 3px no-repeat, repeating-linear-gradient(90deg, #f5c518 0 24px, transparent 24px 40px) 0 100%/100% 3px no-repeat; }
.fp-mk-walkway span { font-size: calc(14px * var(--fp-inv, 1)); color: rgba(59,66,80,.35); }
.fp-mk-dock { background: repeating-linear-gradient(90deg, #9ca3af 0 8px, #d1d5db 8px 16px); border: 2px solid #3b4250; }
.fp-mk-dock span { font-size: calc(10px * var(--fp-inv, 1)); color: #1f2937; }
.fp-mk-wall { background: #3b4250; }
.fp-mk-wall span { font-size: 8px; color: #fff; }
.fp-mk.is-sel { z-index: 2; box-shadow: 0 0 0 3px #2563eb; }
.fp-it.is-sel { z-index: 2; }
.fp-it.is-bad, .fp-mk.is-bad { box-shadow: 0 0 0 3px #dc2626, 0 0 0 7px rgba(220,38,38,.25) !important; }
.fp-it.is-doomed, .fp-mk.is-doomed { opacity: .4; }
.fp-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border: 2px solid #2563eb; border-radius: 2px; background: #fff; cursor: nwse-resize; touch-action: none; }
.fp-area .fp-handle { right: 0; bottom: 0; }
.fp-veil { position: absolute; inset: 0; z-index: 4; background: #e4e6ea; opacity: 0; pointer-events: none; }
.fp-floor.is-zooming .fp-it:not(.is-target), .fp-floor.is-zooming .fp-mk { opacity: .2; }
.fp-floor.is-zooming .is-target .fp-plate, .fp-floor.is-zooming .is-target .fp-units { opacity: 0; }
.fp-empty { position: absolute; left: 50%; top: 50%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 24px 32px; border: 1px dashed rgba(59,66,80,.4); border-radius: 8px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translate(-50%, -50%); font-size: 14px; color: #4b5563; text-align: center; pointer-events: none; }
.fp-empty b { font-weight: 600; color: #1f2937; }
.fp-empty span { font-size: 12.5px; }
.fp-empty .fp-btn { pointer-events: auto; }
.fp-trash { position: absolute; left: 50%; bottom: 18px; z-index: 6; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 2px dashed #dc2626; border-radius: 22px; background: #fff; color: #dc2626; font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateX(-50%); transition: transform .15s, background-color .15s; pointer-events: none; }
.fp-trash svg { width: 16px; height: 16px; }
.fp-trash.is-hot { background: #dc2626; color: #fff; transform: translateX(-50%) scale(1.08); }
/* Edit layout: Rotate and Delete on the selected item. It lives on the floor, so --fp-k (1 / zoom) keeps it one size. */
.fp-seltools { position: absolute; z-index: 5; width: 0; height: 0; }
.fp-seltools > div { position: absolute; left: 0; top: 0; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.16); white-space: nowrap; transform-origin: 0 0; transform: scale(var(--fp-k, 1)) translate(-50%, calc(-100% - 8px)); }
.fp-seltools.is-below > div { transform: scale(var(--fp-k, 1)) translate(-50%, 8px); }
.fp-seltools button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 5px; background: none; font-size: 12.5px; font-weight: 600; color: #374151; cursor: pointer; }
.fp-seltools button:hover { background: #f3f4f6; }
.fp-seltools button svg { width: 13px; height: 13px; }
.fp-seltools .is-red { color: #dc2626; }
.fp-seltools .is-red:hover { background: #fef2f2; }
.fp.is-moving .fp-seltools { display: none; }
.fp-tip { position: absolute; z-index: 7; padding: 6px 10px; border-radius: 6px; background: #1f2937; color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.fp-tip b { display: block; font-weight: 600; }
.fp-tip small { display: block; font-size: 11px; opacity: .75; }
.fp-ghost { position: fixed; z-index: 9999; display: flex; align-items: center; justify-content: center; border: 2px dashed #2563eb; border-radius: 3px; background: rgba(37,99,235,.12); color: #1d4ed8; font: 600 11px/1.2 Poppins, system-ui, sans-serif; white-space: nowrap; overflow: hidden; pointer-events: none; }
.fp-ghost.is-bad { border-color: #dc2626; background: rgba(220,38,38,.12); color: #b91c1c; }

/* Front views: a rack's shelves as rows, a shelf's boxes as cartons */
.fp-front { position: absolute; inset: 0; overflow: auto; animation: fpIn .3s ease-out; }
@keyframes fpIn { from { opacity: 0; transform: translateY(6px); } }
.fp-rack { display: flex; flex-direction: column; align-items: center; padding: 24px 28px 0; background: linear-gradient(#eceef1, #dfe2e6); }
.fp-rack-in { width: min(100%, 900px); display: flex; align-items: stretch; margin-top: auto; }
.fp-upright { display: block; width: 18px; flex: none; border-radius: 2px 2px 0 0; background: #374151 radial-gradient(circle, rgba(255,255,255,.35) 1.5px, transparent 2px) 0 0/18px 14px; }
.fp-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fp-beam { display: block; height: 7px; flex: none; background: linear-gradient(#f28c28, #d9701a); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.fp-row { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.fp-row-in { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 0 26px; background: linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,0) 30%), #f3f4f6; overflow: hidden; transition: box-shadow .15s; }
.fp-row:hover .fp-row-in, .fp-row:focus-visible .fp-row-in { box-shadow: inset 0 0 0 2px #2563eb; }
.fp-row:focus-visible { outline: none; }
.fp-letter { position: absolute; left: 0; top: 6px; width: 16px; padding: 3px 0; border-radius: 0 2px 2px 0; background: #111827; color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
.fp-slot { position: relative; flex: 0 0 96px; display: flex; align-items: center; justify-content: center; border-radius: 2px 2px 0 0; overflow: hidden; }
.fp-slot.is-loc { flex-basis: 120px; height: 70%; border: 1px solid rgba(31,41,55,.35); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.fp-slot.is-loc span { padding: 0 4px; border-radius: 2px; background: rgba(255,255,255,.85); font-size: 9px; font-weight: 600; white-space: nowrap; }
.fp-slot.is-box { border: 1px solid rgba(31,41,55,.25); background: linear-gradient(#e2c79a, #cfae7c); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.fp-slot.is-box::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: rgba(120,80,30,.25); }
.fp-slot.is-free { height: 30%; border: 1px dashed rgba(31,41,55,.25); }
.fp-rtag { position: absolute; right: 10px; top: 8px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; background: rgba(255,255,255,.85); font-size: 11px; }
.fp-rtag b { font-weight: 700; }
.fp-rtag span { color: #6b7280; }
.fp-rtag i { padding: 0 6px; border-radius: 4px; background: var(--fp-soft); color: #4b5563; font-style: normal; font-weight: 700; }
.fp-rtag i.is-warn { background: #ffedd5; color: #c2410c; }
.fp-feet { width: min(100%, 900px); display: flex; justify-content: space-between; padding: 0 2px; }
.fp-feet i { display: block; width: 30px; height: 12px; border-radius: 0 0 2px 2px; background: #1f2937; }
.fp-ground { width: calc(100% + 56px); margin: 0 -28px; flex: none; height: 64px; display: flex; align-items: center; justify-content: center; border-top: 2px solid #9ca3af; background: linear-gradient(#b9bec6, #c9ced5 6px, #d5d9df); }
.fp-ground span { padding: 6px 14px; border-radius: 3px; background: #111827; color: #fbbf24; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
/* Rack with no shelves yet: ghost rows and an Add shelf card; a rack with shelves gets an Add shelf row on top. */
.fp-row.is-ghost { cursor: default; opacity: .55; }
.fp-row.is-ghost .fp-row-in::after { content: ''; position: absolute; inset: 10px 10px 0 26px; border: 1px dashed rgba(31,41,55,.2); border-bottom: 0; }
.fp-rack-empty { position: absolute; inset: 0 0 64px; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.fp-rack-empty > div { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 30px; border: 1px solid #e5e7eb; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(0,0,0,.12); text-align: center; pointer-events: auto; }
.fp-rack-empty b { font-size: 15px; font-weight: 600; }
.fp-rack-empty span { font-size: 12px; line-height: 1.5; color: #6b7280; }
.fp-rack-empty .fp-btn { margin-top: 6px; }
.fp-row-add { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; margin-bottom: 6px; border: 2px dashed #93b4f8; border-radius: 4px; background: rgba(219,231,253,.5); color: #2563eb !important; font-size: 12px; font-weight: 600; cursor: pointer; }
.fp-row-add:hover { border-color: #2563eb; background: #dbe7fd; }
.fp-row-add svg { width: 12px; height: 12px; }
.fp-shelf { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 28px 20px; background: linear-gradient(#eceef1, #e3e5e9); }
.fp-shelf-in { width: min(100%, 960px); display: flex; flex-direction: column; }
.fp-shelf-row { position: relative; display: flex; align-items: flex-end; gap: 14px; height: 230px; padding: 0 22px; overflow-x: auto; overflow-y: hidden; border-left: 18px solid #374151; border-right: 18px solid #374151; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,0) 40%), #f3f4f6; }
.fp-shelf-beam { display: block; height: 9px; background: linear-gradient(#f28c28, #d9701a); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.fp-shelf-plate { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 11px; color: #6b7280; }
.fp-carton { position: relative; flex: 0 0 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; border: 2px solid rgba(31,41,55,.25); border-radius: 3px 3px 0 0; background: linear-gradient(#e2c79a, #cfae7c); box-shadow: 0 2px 4px rgba(0,0,0,.12); text-align: left; cursor: pointer; transition: box-shadow .15s; }
.fp-carton::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; background: rgba(120,80,30,.25); }
.fp-carton:hover, .fp-carton.is-sel { border-color: #2563eb; box-shadow: 0 0 0 3px #2563eb, 0 8px 18px rgba(0,0,0,.15); }
.fp-carton:focus-visible { outline: none; box-shadow: 0 0 0 3px #2563eb; }
.fp-carton.is-empty { background: linear-gradient(#ebdcc0, #dccaa6); }
.fp-carton.is-free { height: 34%; align-items: center; justify-content: center; border: 2px dashed #c4c9d2; background: rgba(255,255,255,.4); box-shadow: none; cursor: default; }
.fp-carton.is-free::before { display: none; }
.fp-carton.is-free span { font-size: 11px; color: #9ca3af; }
.fp-carton.is-found { animation: fpFound .9s ease-out 2; }
@keyframes fpFound { 50% { box-shadow: 0 0 0 7px rgba(37,99,235,.35), 0 8px 18px rgba(0,0,0,.15); } }
.fp-sticker { position: relative; display: block; min-width: 0; padding: 6px 8px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.fp-st-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fp-st-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; }
.fp-st-top i { min-width: 22px; height: 18px; padding: 0 5px; flex: none; display: grid; place-items: center; border-radius: 4px; background: #f5a524; color: #1f2937; font-size: 11px; font-weight: 700; font-style: normal; }
.fp-st-top i.is-empty { background: #f3f4f6; color: #9ca3af; }
.fp-st-top i.is-hold { background: #ffedd5; color: #c2410c; }
.fp-st-desc { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #6b7280; }
.fp-barcode { display: block; height: 10px; margin-top: 5px; background: repeating-linear-gradient(90deg, #1f2937 0 2px, transparent 2px 4px, #1f2937 4px 5px, transparent 5px 8px); }
.fp-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: #6b7280; }
.fp-none div { display: flex; gap: 8px; }

/* Columns: a Finder-style drill-down */
.fp-colswrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-colsbar { flex: none; min-height: 24px; }
.fp-colsbar .fp-crumb { font-size: 13px; }
.fp-cols { flex: 1; min-height: 0; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.fp-col { width: 270px; flex: none; display: flex; flex-direction: column; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; overflow: hidden; }
.fp-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--fp-soft); }
.fp-col-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.fp-col-head i { min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 5px; background: var(--fp-soft); color: #4b5563; font-size: 11px; font-weight: 600; font-style: normal; }
.fp-col-head button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: #6b7280; cursor: pointer; }
.fp-col-head button:hover { background: #f3f4f6; }
.fp-col-filter { position: relative; padding: 10px 12px; }
.fp-col-filter svg { position: absolute; left: 24px; top: 20px; width: 12px; height: 12px; color: #9ca3af; }
.fp-col-filter input { width: 100%; height: 32px; padding: 0 64px 0 30px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font: inherit; font-size: 12px; color: #1f2937; }
.fp-col-filter span { position: absolute; right: 24px; top: 19px; font-size: 11px; color: #9ca3af; }
.fp-col-rows { flex: 1; overflow-y: auto; }
.fp-r { width: 100%; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 10px 0 9px; border: 0; border-bottom: 1px solid var(--fp-soft); border-left: 3px solid transparent; background: #fff; text-align: left; cursor: pointer; }
.fp-r:hover { background: #f7f9fc; }
.fp-r.is-on { border-left-color: var(--fp-blue); background: #eef4ff; }
.fp-r-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--fp-line); border-radius: 6px; background: #f9fafb; color: #9ca3af; }
.fp-r.is-on .fp-r-ic { border-color: #c3d6fb; background: #e8effd; color: var(--fp-blue); }
.fp-r-ic svg { width: 16px; height: 16px; }
.fp-r-t { flex: 1; min-width: 0; }
.fp-r-t b, .fp-r-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.fp-r-t b { font-size: 13px; font-weight: 600; }
.fp-r.is-on .fp-r-t b { color: var(--fp-blue); }
.fp-r-t small { font-size: 12px; color: #6b7280; }
.fp-r-t small.is-warn { color: #c2410c; }
.fp-r-chev svg { width: 12px; height: 12px; color: #c4c9d2; }
.fp-r.is-on .fp-r-chev svg { color: var(--fp-blue); }
.fp-r-q { min-width: 24px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 5px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; font-style: normal; }
.fp-r-q.is-empty { background: #f3f4f6; color: #9ca3af; }
.fp-r.is-found { animation: fpRowFound .9s ease-out 2; }
@keyframes fpRowFound { 50% { background: #dbe7fd; } }
.fp-col-empty { padding: 28px 12px; text-align: center; font-size: 12px; color: #9ca3af; }

/* Detail pane */
.fp-pane { width: 380px; flex: none; display: flex; flex-direction: column; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; overflow: hidden; }
.fp-nopane .fp-pane { display: none; }
.fp-pane-none { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; font-size: 13px; color: #9ca3af; text-align: center; }
.fp-pane-none svg { width: 22px; height: 22px; }
.fp-ph { display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 16px; border-bottom: 1px solid var(--fp-soft); }
.fp-ph-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1px solid var(--fp-line); border-radius: 8px; background: #f9fafb; color: #9ca3af; }
.fp-ph-ic svg { width: 22px; height: 22px; }
.fp-ph-t { flex: 1; min-width: 0; }
.fp-ph-t > b { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.fp-ph-t > small { display: block; margin-top: 2px; font-size: 13px; color: #6b7280; }
.fp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fp-badges span { padding: 3px 10px; border-radius: 5px; background: var(--fp-soft); color: #4b5563; font-size: 12px; font-weight: 600; }
.fp-badges .is-ok { background: #dcfce7; color: #15803d; }
.fp-badges .is-blue { background: #dbeafe; color: #1d4ed8; }
.fp-badges .is-warn { background: #ffedd5; color: #c2410c; }
.fp-big { flex: none; text-align: right; }
.fp-big b { display: block; font-size: 30px; font-weight: 700; line-height: 1; }
.fp-big small { display: block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.fp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--fp-soft); }
.fp-facts dt { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.fp-facts dt button { padding: 0; border: 0; background: none; color: #9ca3af !important; cursor: pointer; }
.fp-facts dt button:hover { color: var(--fp-blue) !important; }
.fp-facts dt svg { width: 12px; height: 12px; }
.fp-facts dd { margin: 3px 0 0; font-size: 13px; line-height: 1.4; word-break: break-word; }
.fp-moves { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.fp-moves > b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.fp-moves p { margin: 0; padding: 8px 0; font-size: 12px; color: #9ca3af; }
.fp-mv { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fp-soft); font-size: 13px; }
.fp-mv i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 5px; font-style: normal; font-weight: 700; }
.fp-mv i.is-out { background: #fee2e2; color: #dc2626; }
.fp-mv i.is-in { background: #dcfce7; color: #15803d; }
.fp-mv i.is-move { background: #dbeafe; color: #1d4ed8; }
.fp-mv i.is-count { background: #f3f4f6; color: #4b5563; }
.fp-mv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-mv small { font-size: 12px; color: #6b7280; white-space: nowrap; }
.fp-acts { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--fp-soft); }
.fp-acts .fp-btn { flex: 1; height: 40px; }
.fp-acts .fp-sq { flex: none; width: 40px; padding: 0; }
.fp-acts .fp-sq svg { width: 15px; height: 15px; }

/* Toast and the edit menu */
.fp-toast { position: absolute; left: 50%; bottom: 20px; z-index: 40; max-width: calc(100% - 40px); padding: 9px 16px; border-radius: 8px; background: #1f2937; color: #fff; font-size: 13px; text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fp-ctx { position: absolute; z-index: 41; min-width: 180px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.fp-ctx p { margin: 0; padding: 6px 10px 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.fp-ctx button { padding: 8px 10px; border: 0; border-radius: 5px; background: none; text-align: left; font-size: 13px; cursor: pointer; }
.fp-ctx button:hover { background: #f3f4f6; }
.fp-ctx .is-red { color: #dc2626 !important; }

/* Narrower copies: the pane goes under the map; phones get a compact header and a scrolling palette. */
.fp.is-stack .fp-body { flex-direction: column; height: auto; }
.fp.is-stack .fp-main { flex: none; height: var(--fp-map-h, 520px); }
.fp.is-stack .fp-pane { width: auto; }
.fp.is-stack .fp-moves { max-height: 250px; }
.fp.is-narrow .fp-print { display: none; }
.fp.is-small { gap: 10px; padding: 12px; }
.fp.is-small .fp-title b { font-size: 18px; }
.fp.is-small .fp-tools { width: 100%; gap: 8px; }
.fp.is-small .fp-seg { flex: 1; }
.fp.is-small .fp-seg button { flex: 1; }
.fp.is-small .fp-search { order: 3; width: 100%; }
.fp.is-small .fp-print { display: none; }
.fp.is-small .fp-head .is-pri span { display: none; }
.fp.is-small .fp-head .is-pri { width: 40px; padding: 0; }
.fp.is-small .fp-main { height: var(--fp-map-h-sm, 440px); }
.fp.is-small .fp-bar { gap: 8px; padding: 8px 10px; }
.fp.is-small .fp-crumb { font-size: 13px; }
.fp.is-small .fp-pal { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; }
.fp.is-small .fp-pal-k, .fp.is-small .fp-saves, .fp.is-small .fp-zoom { display: none; }
.fp.is-small .fp-pal-tools { flex-wrap: nowrap; margin-left: 0; }
.fp.is-small .fp-pchip { touch-action: pan-x; }
.fp.is-small .fp-foot { gap: 10px; }
.fp.is-small .fp-hint { width: 100%; margin-left: 0; }
.fp.is-small .fp-col { width: 236px; }
.fp.is-small .fp-ph { padding: 14px; }
.fp.is-small .fp-ph-ic { display: none; }
.fp.is-small .fp-ph-t > b { font-size: 16px; word-break: normal; overflow-wrap: break-word; }
.fp.is-small .fp-big b { font-size: 24px; }
.fp.is-small .fp-facts { padding: 14px; }
.fp.is-small .fp-moves { padding: 14px; }
.fp.is-small .fp-acts { padding: 12px 14px; }
.fp.is-small .fp-rack, .fp.is-small .fp-shelf { padding-left: 14px; padding-right: 14px; }
.fp.is-small .fp-ground { width: calc(100% + 28px); margin: 0 -14px; }
.fp.is-small .fp-carton { flex-basis: 128px; }
.fp.is-small .fp-rtag span { display: none; }

/* Add box: the dashed slot at the end of a shelf */
.fp-carton.is-add { flex: 0 0 104px; height: 40%; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 2px dashed #93b4f8; background: rgba(219,231,253,.5); box-shadow: none; color: #2563eb !important; font-size: 11px; font-weight: 600; }
.fp-carton.is-add::before { display: none; }
.fp-carton.is-add:hover { border-color: #2563eb; background: #dbe7fd; box-shadow: none; }

/* Dialogs: Add box and the delete confirm */
.fp-modal { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 0 16px 16px; background: rgba(17,24,39,.45); animation: fpFade .15s ease-out; }
@keyframes fpFade { from { opacity: 0; } }
.fp-dlg { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.fp-dlg-t { font-size: 17px; font-weight: 700; }
.fp-dlg-p { margin: 0; font-size: 13px; line-height: 1.5; color: #4b5563; }
.fp-dlg-hint { margin: 0; font-size: 12px; line-height: 1.45; color: #6b7280; }
.fp-fld { display: flex; flex-direction: column; gap: 6px; }
.fp-fld > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.fp-fld input { height: 38px; padding: 0 12px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; color: #1f2937; }
.fp-fld input[data-dlg="sku"] { font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; }
.fp-fld input[data-dlg="sku"]::placeholder { font-family: Poppins, system-ui, sans-serif; text-transform: none; }
.fp-ro { min-height: 38px; display: flex; align-items: center; padding: 6px 12px; border: 1px solid var(--fp-soft); border-radius: 6px; background: #f9fafb; font-size: 13px; }
.fp-ro .is-warn { color: #c2410c; }
.fp-ro .is-muted { color: #9ca3af; }
.fp-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.fp-sugg button { height: 26px; padding: 0 10px; border: 1px solid var(--fp-line); border-radius: 13px; background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; color: #374151; cursor: pointer; }
.fp-sugg button:hover { border-color: #2563eb; color: #2563eb !important; }
.fp-sugg button.is-on { border-color: #2563eb; background: #e8effd; color: #1d4ed8 !important; }
.fp-row2 { display: flex; gap: 14px; align-items: flex-start; }
.fp-row2 > .fp-fld:first-child { width: 136px; flex: none; }
.fp-row2 > .fp-fld:last-child { flex: 1; min-width: 0; }
.fp-stepper { display: flex; height: 38px; border: 1px solid var(--fp-line); border-radius: 6px; overflow: hidden; }
.fp-stepper button { width: 36px; flex: none; border: 0; background: #f9fafb; font-size: 16px; color: #374151; cursor: pointer; }
.fp-stepper button:hover { background: #f3f4f6; }
.fp-fld .fp-stepper input { width: 100%; min-width: 0; height: 100%; padding: 0 4px; border: 0; border-left: 1px solid var(--fp-line); border-right: 1px solid var(--fp-line); border-radius: 0; text-align: center; -moz-appearance: textfield; }
.fp-stepper input::-webkit-inner-spin-button, .fp-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fp-stepper input:disabled { background: #f3f4f6; color: #9ca3af; }
.fp-stat { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-stat button { height: 38px; padding: 0 12px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 500; color: #374151; cursor: pointer; }
.fp-stat button.is-on { border-color: #2563eb; background: #e8effd; color: #1d4ed8 !important; font-weight: 600; }
.fp-types { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-types button { height: 28px; padding: 0 11px; border: 1px solid var(--fp-line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 500; color: #374151; cursor: pointer; }
.fp-types button:hover { border-color: #9ca3af; }
.fp-types button.is-on { border-color: #1f2937; background: #1f2937; color: #fff !important; }
.fp-fld select { height: 38px; padding: 0 10px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; color: #1f2937; }
.fp select:focus { outline: none; border-color: var(--fp-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.fp-switch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.fp-switch i { position: relative; width: 32px; height: 18px; flex: none; border-radius: 9px; background: #d1d5db; transition: background-color .15s; }
.fp-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.fp-switch.is-on i { background: #2563eb; }
.fp-switch.is-on i::after { left: 16px; }
.fp-switch b { display: block; font-size: 13px; font-weight: 600; color: #1f2937; }
.fp-switch small { display: block; font-size: 12px; color: #6b7280; }
.fp-areaempty { background-color: #f8fafc; background-image: linear-gradient(rgba(31,41,55,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31,41,55,.045) 1px, transparent 1px); background-size: 24px 24px; }
.fp-areaempty .fp-rack-empty { inset: 0; }
.fp-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.fp-btn:disabled { opacity: .45; cursor: not-allowed; }
.fp-btn.is-red { border-color: #dc2626; background: #dc2626; color: #fff !important; font-weight: 600; }
.fp-btn.is-red:hover { background: #b91c1c; }

/* QR labels: the products QR labels page, for locations (cyan controls, as on that page) */
.fp-labels { display: none; }
.fp.is-labels > .fp-head, .fp.is-labels > .fp-body { display: none; }
.fp.is-labels .fp-labels { display: block; }
.fq { display: flex; flex-direction: column; gap: 14px; height: calc(var(--fp-h, 640px) + 50px); }
.fq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; }
.fq-head b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.fq-head small { display: block; margin-top: 2px; font-size: 12px; color: #6b7280; }
.fq-body { flex: 1; min-height: 0; display: flex; gap: 16px; }
.fq-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 18px; padding-right: 6px; overflow-y: auto; }
.fq-k { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #1f2937; }
.fq-card { border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; overflow: hidden; }
.fq-sub { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--fp-soft); background: #f9fafb; font-size: 11px; font-weight: 500; color: #6b7280; }
.fq-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--fp-soft); background: #fff; text-align: left; cursor: pointer; }
.fq-opt:last-child { border-bottom: 0; }
.fq-opt:hover { background: #f7f9fc; }
.fq-opt.is-on { background: #e8f6fc; }
.fq-radio { width: 18px; height: 18px; flex: none; border: 1.5px solid #c8d2dd; border-radius: 50%; background: #fff; }
.fq-opt.is-on .fq-radio { border: 5px solid #18aee3; }
.fq-ot { flex: 1; min-width: 0; }
.fq-ot b { display: block; font-size: 13px; font-weight: 500; color: #1f2937; }
.fq-opt.is-on .fq-ot b { color: #106f92; }
.fq-ot small { display: block; margin-top: 1px; font-size: 11.5px; color: #9ca3af; }
.fq-opt em { min-width: 30px; padding: 2px 8px; border-radius: 6px; background: #eef0f3; color: #4b5563; font-size: 12px; font-weight: 700; font-style: normal; text-align: center; }
.fq-opt.is-on em { background: #18aee3; color: #fff; }
.fq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 12.5px; color: #374151; cursor: pointer; }
.fq-chip i { width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid #c8d2dd; border-radius: 4px; background: #fff; color: #fff; }
.fq-chip i svg { width: 10px; height: 10px; opacity: 0; }
.fq-chip.is-on { border-color: #a6dcf1; background: #e8f6fc; color: #106f92 !important; }
.fq-chip.is-on i { border-color: #18aee3; background: #18aee3; }
.fq-chip.is-on i svg { opacity: 1; }
.fq-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #6b7280; }
.fq-start { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; }
.fq-start button { width: 30px; height: 30px; flex: none; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font-size: 15px; color: #374151; cursor: pointer; }
.fq-start button:disabled { opacity: .4; cursor: default; }
.fq-start span { flex: 1; text-align: center; }
.fq-start b { display: block; font-size: 13px; font-weight: 600; }
.fq-start small { display: block; font-size: 11.5px; color: #9ca3af; }
.fq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fq-pvh { display: flex; align-items: center; gap: 12px; flex: none; }
.fq-pvh > b { font-size: 13px; font-weight: 600; }
.fq-find { position: relative; width: 250px; }
.fq-find svg { position: absolute; left: 10px; top: 9px; color: #9ca3af; }
.fq-find input { width: 100%; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--fp-line); border-radius: 6px; background: #fff; font: inherit; font-size: 12.5px; color: #1f2937; }
.fq-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 22px; border-radius: 8px; background: #e7eaee; overflow-y: auto; }
.fq-pagewrap { width: min(100%, 580px); flex: none; }
.fq-pnum { margin: 0 0 6px; font-size: 11.5px; color: #6b7280; }
.fq-page { position: relative; width: 100%; background: #fff; box-shadow: 0 6px 20px rgba(15,34,54,.12); container-type: inline-size; }
.fq-cell { position: absolute; display: flex; border: 1px dashed #cfd5dc; border-radius: 3px; overflow: hidden; }
.fq-cell.is-blank { background: repeating-linear-gradient(45deg, #f4f6f8 0 4px, #fff 4px 8px); }
.fq-lab { width: 100%; height: 100%; display: flex; align-items: center; gap: calc(var(--lh) * .07cqw); padding: calc(var(--lh) * .1cqw); overflow: hidden; color: #111; text-align: left; }
.fq-qr { flex: none; width: min(calc(var(--lh) * .76cqw), calc(var(--lw) * .42cqw)); aspect-ratio: 1; }
.fq-qr svg { display: block; width: 100%; height: 100%; }
.fq-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; line-height: 1.15; }
.fq-lt b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; font-size: min(calc(var(--lh) * .17cqw), calc(var(--lw) * .072cqw)); font-weight: 700; }
.fq-lt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: min(calc(var(--lh) * .105cqw), calc(var(--lw) * .046cqw)); color: #374151; }
.fq-roll { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fq-rlab { display: flex; flex: none; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgba(15,34,54,.12); container-type: inline-size; }
.fq-roll.is-col .fq-lab { flex-direction: column; justify-content: center; text-align: center; }
.fq-roll.is-col .fq-qr { width: calc(var(--lw) * .62cqw); }
.fq-roll.is-col .fq-lt { flex: none; width: 100%; }
.fq-roll.is-col .fq-lt b { font-size: calc(var(--lw) * .09cqw); }
.fq-roll.is-col .fq-lt small { white-space: normal; font-size: calc(var(--lw) * .05cqw); }
.fq-more, .fq-none { margin: 0; font-size: 12.5px; color: #6b7280; }
.fq-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 12px 16px; border: 1px solid var(--fp-line); border-radius: 8px; background: #fff; }
.fq-bar b { display: block; font-size: 13px; font-weight: 600; }
.fq-bar small { display: block; margin-top: 2px; font-size: 12px; color: #6b7280; }
.fq-print { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; flex: none; border: 0; border-radius: 6px; background: #18aee3; color: #fff !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.fq-print:disabled { opacity: .5; cursor: not-allowed; }
.fp.is-stack .fq { height: auto; }
.fp.is-stack .fq-body { flex-direction: column; }
.fp.is-stack .fq-side { width: auto; padding-right: 0; overflow: visible; }
.fp.is-stack .fq-stage { flex: none; height: 520px; }
.fp.is-small .fp-row2 { flex-direction: column; }
.fp.is-small .fp-row2 > .fp-fld:first-child { width: 100%; }
.fp.is-small .fp-dlg { padding: 18px; }
.fp.is-small .fq-head b { font-size: 18px; }
.fp.is-small .fq-pvh { flex-wrap: wrap; }
.fp.is-small .fq-find { width: 100%; }
.fp.is-small .fq-stage { height: 440px; padding: 12px; }
.fp.is-small .fq-bar { flex-wrap: wrap; }
.fp.is-small .fq-print { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	.fp-front, .fp-carton.is-found, .fp-r.is-found { animation: none; }
}
