/* Inventory (web/js/pages/inventory.js): items, check-outs, counts, reports, rooms. Prefix iv-. Brand colors from tokens. */
.iv-head { align-items: flex-end; }
.iv-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 14px 0 18px; border-bottom: 1px solid var(--line); }
.iv-bar .iv-tabs { border-bottom: 0; }
.iv-scan { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.iv-scanbox, .iv-search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #D5CFC2; border-radius: var(--r-sm); background: #fff; color: var(--ink-3); }
.iv-scanbox:focus-within, .iv-search:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-tint); }
.iv-scanbox input, .iv-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); min-width: 0; flex: 1; min-height: 38px; }
.iv-scanbox { width: 250px; }
.iv-scanbox input { text-transform: uppercase; letter-spacing: .02em; }
.iv-scanbox input::placeholder { text-transform: none; letter-spacing: 0; }
.iv-scanbox .jb-ico, .iv-search .jb-ico { width: 18px; height: 18px; flex: none; }
.iv-kpis { margin-bottom: 16px; }
.iv-kpis .jb-kpi, .iv-repkpis .jb-kpi { text-decoration: none; color: inherit; }
a.jb-kpi.big:hover { border-color: var(--maroon-line); background: var(--maroon-wash); }
.iv-banner { margin-bottom: 14px; }
.iv-banner span { min-width: 0; }

/* the list */
.iv-listcard { margin-bottom: 18px; }
.iv-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--chip-soft); align-items: center; }
.iv-filters .iv-search { flex: 2 1 260px; }
.iv-filters select.jb-input, .iv-filters input.jb-input { flex: 1 1 150px; width: auto; min-height: 40px; font-size: 14px; padding: 6px 10px; }
.iv-tbl td { vertical-align: middle; }
.iv-tag { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.iv-name { display: flex; align-items: center; gap: 6px; }
.iv-cam { color: var(--ink-4); display: inline-flex; } .iv-cam .jb-ico { width: 15px; height: 15px; }
.iv-flag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--maroon); color: var(--on-maroon); font-size: 12px; font-weight: 800; }
.iv-avail { font-size: 13px; font-weight: 600; color: var(--sage-text); white-space: nowrap; }
.iv-avail.none { color: var(--amber, #8a5a00); }
.iv-empty { padding: 26px 20px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.iv-acts { text-align: right; white-space: nowrap; }
.iv-acts { display: table-cell; } .iv-acts > * { vertical-align: middle; }
.iv-acts .jb-btn + .jb-btn, .iv-acts .jb-btn + .jb-iconbtn { margin-left: 6px; }
.iv-morebtn { width: 36px; height: 36px; }
.iv-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 20px 10px; }
.iv-pad { padding: 0 20px 16px; }
details.iv-pad > summary { cursor: pointer; padding: 6px 0; }
.iv-back { margin: 0 0 10px; } .iv-back a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 14px; }
.iv-back a:hover { color: var(--maroon-text); } .iv-back .jb-ico { width: 16px; height: 16px; }
.iv-menu { display: flex; flex-direction: column; }
.iv-menu .jb-item { border: 0; background: none; text-align: left; font: inherit; color: inherit; padding: 14px 6px; border-bottom: 1px solid var(--line-soft); width: 100%; cursor: pointer; border-radius: 8px; }
.iv-menu .jb-item:hover { background: var(--chip-soft); }
.iv-menu .jb-item .jb-ico { color: var(--ink-3); }

/* one item */
.iv-ihead { margin-bottom: 14px; }
.iv-photo { width: 64px; height: 64px; border-radius: 14px; background: var(--maroon-wash); color: var(--maroon-text); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.iv-photo img { width: 100%; height: 100%; object-fit: cover; }
.iv-photo .jb-ico { width: 30px; height: 30px; }
.iv-photo.big { width: 96px; height: 96px; }
.iv-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.iv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 22px; margin: 12px 0 0; }
.iv-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.iv-facts dd { margin: 2px 0 0; font-size: 15px; }
.iv-h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.iv-qrcard { display: flex; gap: 16px; align-items: center; }
.iv-qrcard .iv-qr { flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; line-height: 0; }
.iv-qrcard p { margin: 4px 0 10px; }
.iv-qrrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.iv-qrrow svg { border: 1px solid var(--line); border-radius: 8px; }
.iv-timeline { list-style: none; margin: 0; padding: 0; }
.iv-timeline li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.iv-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ink-4); }
.iv-dot.k-checked_out { background: var(--amber, #b7791f); } .iv-dot.k-checked_in { background: var(--sage); } .iv-dot.k-reported, .iv-dot.k-retired { background: var(--maroon); } .iv-dot.k-added { background: var(--maroon-line); }
tr.jb-flash td { background: var(--maroon-wash); }

/* editors and sheets */
.iv-editor { display: grid; gap: 18px; }
.iv-photoedit { display: flex; gap: 16px; align-items: center; }
.iv-photoedit p { margin: 2px 0 8px; }
.iv-holderseg { margin-bottom: 12px; }
.iv-who { display: grid; gap: 8px; }
.iv-results { display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.iv-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.iv-person .jb-grow { display: flex; flex-direction: column; min-width: 0; }
.iv-person:hover { border-color: var(--maroon-line); }
.iv-person[aria-pressed="true"] { border-color: var(--maroon); background: var(--maroon-wash); }
.iv-person .iv-tick { visibility: hidden; color: var(--maroon-text); } .iv-person[aria-pressed="true"] .iv-tick { visibility: visible; }
.iv-confirm { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--amber-tint, #fdf3df); }
.iv-preview { margin-top: 16px; display: grid; gap: 10px; }
.iv-attr { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.iv-attr .jb-input { min-height: 40px; font-size: 14px; }
.iv-video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; }
.iv-drop { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line); background: var(--chip-soft); cursor: pointer; color: var(--ink-2); }
.iv-drop:hover { border-color: var(--maroon-line); background: var(--maroon-wash); }
.iv-drop .jb-ico { width: 28px; height: 28px; color: var(--maroon-text); }
.iv-map { max-height: 46vh; overflow: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.iv-map select { min-height: 36px; font-size: 14px; padding: 4px 8px; }
.iv-importnote { margin: 10px 0 0; }
/* the fee panel: the step that comes before billing (check it in as damaged, mark it lost) */
.iv-feefirst { margin-top: 12px; align-items: center; }
.iv-feefirst > span { flex: 1 1 220px; }
/* a room's Remove sits at the left of the footer, away from Save */
.jb-sheet footer .iv-footleft { margin-right: auto; }
.iv-errs { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--maroon-text); }

/* lists of check-outs */
.iv-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 14px; }
.iv-narrow { width: auto; min-width: 200px; min-height: 40px; font-size: 14px; }
.iv-selbar { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 6px 4px 12px; border-radius: 10px; background: var(--maroon-wash); border: 1px solid var(--maroon-line); }
.iv-selbar b { font-size: 14px; color: var(--maroon-text); margin-right: 4px; }
.iv-loans input[type=checkbox], .iv-countrow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--sage); }

/* counts */
.iv-roompick { display: flex; flex-direction: column; margin-top: 8px; }
.iv-roomrow { text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-soft); padding: 12px 4px; }
.iv-roomrow .jb-grow { display: flex; flex-direction: column; }
.iv-roomrow:hover { background: var(--chip-soft); }
.iv-countbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; position: sticky; top: calc(var(--jb-head, 0px) + 8px); z-index: 5; }
.iv-countbar .iv-scan { padding: 0; }
.iv-progress { flex: 1 1 160px; height: 10px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.iv-progress span { display: block; height: 100%; background: var(--sage); transition: width .2s; }
.iv-countlist { display: flex; flex-direction: column; }
.iv-countrow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.iv-countrow .jb-grow { display: flex; flex-direction: column; min-width: 0; }
.iv-countrow.on { background: var(--sage-mist, #f1f6f0); }
.iv-qtybox { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.iv-qtybox input { width: 70px; min-height: 38px; border: 1px solid #D5CFC2; border-radius: 8px; padding: 4px 8px; font-size: 16px; }
.iv-away summary { cursor: pointer; }
.iv-linkrow { text-decoration: none; color: inherit; }
.iv-linkrow:hover b { color: var(--maroon-text); }
.iv-notfound { max-width: 520px; display: grid; gap: 10px; }

/* reports */
.iv-reports { align-items: flex-start; }
.iv-replist { flex: 0 0 250px; display: flex; flex-direction: column; padding: 8px; position: sticky; top: calc(var(--jb-head, 0px) + 16px); }
.iv-replist a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.iv-replist a:hover { background: var(--chip-soft); }
.iv-replist a[aria-current="page"] { background: var(--maroon-wash); } .iv-replist a[aria-current="page"] b { color: var(--maroon-text); }
.iv-report { display: grid; gap: 14px; min-width: 0; }
.iv-report .jb-field { min-width: 180px; }
.iv-foot td { font-weight: 700; border-top: 1.5px solid var(--ink-3); }

@media (max-width: 760px) {
  .iv-bar { align-items: stretch; border-bottom: 0; }
  .iv-bar .iv-tabs { border-bottom: 1px solid var(--line); overflow-x: auto; flex-wrap: nowrap; gap: 2px 18px; scrollbar-width: none; }
  .iv-long { display: none; }
  .iv-tabs a { white-space: nowrap; }
  .iv-scan, .iv-scanbox { width: 100%; }
  .iv-scanbox { flex: 1; }
  .iv-replist { flex: 1 1 100%; position: static; }
  .iv-attr { grid-template-columns: 1fr 1fr 40px; } .iv-attr [name=options] { grid-column: 1 / 3; }
  .iv-selbar { margin-left: 0; width: 100%; }
  .iv-countbar { top: calc(var(--jb-head, 0px) + 4px); }
  .iv-head > .jb-inline { flex-wrap: wrap; width: 100%; }
  .iv-head > .jb-inline > .jb-btn { flex: 1 1 auto; justify-content: center; }
}

.jb-tbl td > .jb-ico, .jb-tbl td > span > .jb-ico { vertical-align: middle; width: 18px; height: 18px; }
.iv-nw { white-space: nowrap; }
/* lending from a profile: who it goes to, and the item picker */
.iv-to { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--chip-soft); }
.iv-to > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.iv-picks { max-height: none; margin-top: 10px; }
.iv-picks .iv-person[disabled] { opacity: .5; cursor: not-allowed; }
.iv-picks .iv-tick { visibility: visible; opacity: .45; }
.iv-picks .iv-person:hover:not([disabled]) .iv-tick { opacity: 1; color: var(--maroon); }
/* a label scanned by a phone that isn't signed in (app.js publicTagPage) */
.iv-public .iv-pubcard { width: min(440px, calc(100% - 32px)); margin: 8vh auto; }
.iv-pubhead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.iv-pubhead img { max-height: 44px; max-width: 120px; object-fit: contain; }
.iv-pubhead > div { display: flex; flex-direction: column; }
.iv-pubtag { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .04em; background: var(--chip-soft); border-radius: 6px; padding: 3px 8px; font-size: 14px; }
.iv-pubname { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.iv-pubfacts { display: grid; gap: 10px; margin: 6px 0; }
.iv-pubfacts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.iv-pubfacts dt { color: var(--ink-3); font-size: 14px; } .iv-pubfacts dd { margin: 0; font-weight: 600; text-align: right; }
/* picking items to print their QR labels together */
.iv-tbl .iv-ck { width: 44px; padding-right: 0; }
.iv-tbl .iv-ck label { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -6px 0; cursor: pointer; }
.iv-tbl .iv-ck input { width: 17px; height: 17px; accent-color: var(--maroon); cursor: pointer; }
.iv-selbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--maroon-wash); border-bottom: 1px solid var(--maroon-line, var(--line)); }
.iv-selbar[hidden] { display: none; }
/* the sticker-sheet chooser */
.iv-lbl { display: flex; flex-direction: column; gap: 16px; }
.iv-sheets { display: grid; gap: 10px; }
.iv-sheet { display: grid; grid-template-columns: 22px 64px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.iv-sheet:hover { border-color: var(--maroon-line, var(--maroon)); }
.iv-sheet:has(input:checked) { border-color: var(--maroon); background: var(--maroon-wash); box-shadow: 0 0 0 1px var(--maroon); }
.iv-sheet input { width: 17px; height: 17px; accent-color: var(--maroon); }
.iv-mini { display: grid; gap: 2px; width: 64px; height: 82px; padding: 5px 4px; background: #fff; border: 1px solid #cfc9bf; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); align-content: start; }
.iv-mini i { display: block; background: var(--maroon-tint, #e9dddd); border-radius: 1.5px; height: 5px; }
.iv-mini i.square { height: 14px; margin: 1px 2px; } .iv-mini i.big { height: 12px; }
.iv-sheettx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iv-sheettx span { font-size: 13.5px; color: var(--ink-2); } .iv-sheettx small { font-size: 12px; color: var(--ink-3); }
.iv-skip input { max-width: 120px; }
.iv-lblsum { margin: 0; font-size: 14px; }
.iv-lbltips ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.iv-pubbtn { white-space: normal; }
