/* The dashboard's new look, being tried out (Mahmood, 2026-11-25): on only when <html> has class "v2"
   (open /dashboard/?new; /dashboard/?old goes back). Same brand (Archivo, the yellow, the same words),
   but sized for a mouse and a big screen: a bar on top with one search, a quieter menu, smaller
   controls, tighter rows, thin lines instead of cards, and the list staying in view beside an open item.
   First pages done: the frame and Items. Change the v= date in index.html whenever this file changes. */
.v2 { --radius: 8px; --line: #e4e7eb; --soft: #f1f3f5; --edge: #cfd4da; --bar: 0px; }
.v2 body { font-size: 14px; background: #fff; }
.v2 .small { font-size: 12.5px; }
.v2 h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.v2 h2 { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.v2 h3 { font-size: 11.5px; margin: 18px 0 6px; }

/* Controls */
.v2 label { font-size: 12.5px; }
.v2 input[type='email'], .v2 input[type='text'], .v2 input[type='search'], .v2 input[type='number'], .v2 input[type='date'], .v2 select, .v2 textarea {
  border: 1px solid var(--edge); border-radius: 7px; padding: 6px 10px; min-height: 34px; font-size: 13.5px;
}
.v2 input:hover, .v2 select:hover, .v2 textarea:hover { border-color: #9aa2ab; }
.v2 input:focus-visible, .v2 select:focus-visible, .v2 textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 0; border-color: var(--text); }
.v2 .btn { font-size: 13.5px; font-weight: 700; border-width: 1px; border-radius: 7px; padding: 0 14px; min-height: 36px; }
.v2 .btn.secondary { border-color: var(--edge); }
.v2 .btn.secondary:hover { border-color: #9aa2ab; }
.v2 .btn.link { padding: 0 8px; font-weight: 600; }
.v2 .small-btn { padding: 0 11px; min-height: 32px; border-radius: 7px; }
.v2 .icon-btn { padding: 6px; border-radius: 7px; }
.v2 .actions { gap: 8px; }
.v2 input[type='checkbox'] { width: 15px; height: 15px; }
.v2 .card { border-radius: 10px; }
.v2 .modal { border-radius: 12px; }
.v2 .modal h2, .v2 .panel-side header h2 { font-size: 17px; }
.v2 .tag { border-radius: 4px; font-size: 10.5px; padding: 1px 6px; }
.v2 .toast { font-size: 13.5px; padding: 10px 14px; }

/* The frame: the menu on the left, a bar on top, the page under it */
.v2 .shell { grid-template-columns: 216px minmax(0, 1fr); }
.v2 .side { background: #f7f8f9; padding: 10px 8px; gap: 8px; }
.v2 .brand { padding: 6px 8px; gap: 9px; }
.v2 .top-logo { width: 28px; height: 28px; border-radius: 7px; }
.v2 .company { font-size: 14px; font-weight: 700; }
.v2 #who { font-size: 12px; }
.v2 .nav { gap: 1px; overflow-y: auto; }
.v2 .nav a { padding: 6px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; gap: 9px; }
.v2 .nav a .icon { width: 17px; height: 17px; }
.v2 .nav a:hover { background: #eceef1; }
.v2 .nav a.on { background: #e4e7eb; color: var(--text); }
.v2 .nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7b848e; padding: 14px 10px 4px; }
.v2 .badge { font-size: 11px; padding: 0 7px; }
.v2 .side-foot { padding: 6px 4px 2px; border-top: 1px solid var(--line); }
.v2 .main { padding: 0; max-width: none; background: #fff; }
.v2 .page { padding: 18px 24px 48px; }
.v2 #app-error { margin: 12px 24px 0; }
.v2 .page-head { margin-bottom: 12px; min-height: 34px; }


/* Pages not redone yet: keep their own search box in one piece. */
.v2 .search-field { border-width: 1px; border-color: var(--edge); padding: 6px 12px; gap: 10px; }
.v2 .search-field input[type='search'] { border: none; min-height: 0; padding: 0; font-size: 14px; outline: none; }

/* Tabs on a line (Items: which items) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -24px 12px; padding: 0 16px; overflow-x: auto; }
.tab { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 8px 9px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--text); }
.tab-n { font-size: 11.5px; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.tab.alert .tab-n { background: var(--dangerbg); color: var(--danger); }

/* Tables */
.v2 .toolbar { gap: 8px; margin-bottom: 10px; }
.v2 .toolbar input[type='search'] { flex: 0 1 340px; min-width: 200px; }
.v2 .count { margin: 0 0 8px; }
.v2 .bulk { border-radius: 8px; padding: 4px 6px 4px 12px; gap: 6px; margin-bottom: 8px; font-size: 13.5px; }
.v2 .bulk .btn.secondary { border-color: transparent; min-height: 28px; }
.v2 table { font-size: 13.5px; }
.v2 th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 8px 12px; background: #fafbfb; }
.v2 th.sortable { padding: 0; }
.v2 th button { padding: 8px 12px; font-weight: 600; }
.v2 td { padding: 7px 12px; }
.v2 td.name { font-weight: 600; }
.v2 td.pick, .v2 th.pick { width: 32px; padding: 7px 0 7px 12px; }
.v2 tr.click:hover td { background: #f6f7f8; }
.v2 tr.sel td, .v2 tr.sel:hover td { background: #fff7dc; }
.v2 tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.v2 .details { border-radius: 8px; font-size: 13.5px; }
.v2 .details dt, .v2 .details dd { padding: 7px 10px; }
.v2 .feed-row { padding: 8px 2px; }

@media (min-width: 901px) {
  /* Items fills the window: the title, tabs and filters stay put and the table scrolls under its headings. */
  .v2 #page-tools:not(.hidden) { display: flex; flex-direction: column; height: calc(100vh - var(--bar)); padding-bottom: 0; }
  .v2 #page-tools > * { flex: none; }
  .v2 #page-tools #item-list { flex: 1; min-height: 0; margin: 0 -24px; }
  .v2 #page-tools .table-wrap { height: 100%; overflow: auto; border: none; border-top: 1px solid var(--line); border-radius: 0; }
  .v2 #page-tools th { position: sticky; top: 0; z-index: 1; box-shadow: inset 0 -1px 0 var(--line); border-bottom: none; }
  .v2 #page-tools td { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
  .v2 #page-tools td.pick, .v2 #page-tools th.pick { padding-left: 24px; width: 44px; }
  .v2 #page-tools td:last-child, .v2 #page-tools th:last-child { padding-right: 24px; }
  .v2 #page-tools tbody tr:last-child td { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  /* An open item sits beside the list instead of covering it: click another row and it changes. */
  .v2 .panel-side { width: 440px; box-shadow: none; border-left: 1px solid var(--line); transition: none; transform: none; opacity: 1; }
  .v2 #panel-shade { display: none; }
  .v2.has-panel .main { margin-right: 440px; }
  .v2 .panel-side header { padding: 14px 18px 12px; min-height: 52px; }
  .v2 .panel-body { padding: 14px 18px 28px; }
}
@media (max-width: 900px) {
  .v2 .nav-label { display: none; }
  .v2 .page { padding: 14px 14px 40px; }
  .tabs { margin: 0 -14px 12px; padding: 0 8px; }
}

/* Overview in the new look: boxes with a thin edge, a strip of numbers, a worklist. */
.v2 #page-overview { background: #fafbfb; min-height: calc(100vh - var(--bar)); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04); }
.box-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 46px; }
.box-head h2 { margin: 0; }
.box-head .btn.link { margin-left: auto; min-height: 0; font-size: 12.5px; color: var(--muted); }
.box-head .btn.link:hover { color: var(--text); }
.box-empty { padding: 16px; margin: 0; }
.pill { font-size: 11.5px; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.strip-cell { font: inherit; color: var(--text); text-align: left; background: none; border: none; border-left: 1px solid var(--line); padding: 14px 16px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.strip-cell:first-child { border-left: none; }
.strip-cell:hover { background: #fafbfb; }
.strip-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.strip-cell b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.strip-cell.danger b { color: var(--danger); }
.split { border-top: 1px solid var(--line); padding: 12px 16px 13px; display: flex; flex-direction: column; gap: 9px; }
.split-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; }
.split-bar i { min-width: 6px; }
.split-key { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--muted); }
.split-key span { display: inline-flex; align-items: center; gap: 6px; }
.split-key b { color: var(--text); font-variant-numeric: tabular-nums; }
.split-key i { width: 8px; height: 8px; border-radius: 2px; }
.split i.ok { background: var(--ok); }
.split i.out { background: var(--acc); }
.split i.late { background: var(--danger); }
.split i.off { background: #aab1b9; }
.home-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.work-row { font: inherit; color: var(--text); text-align: left; background: none; border: none; border-top: 1px solid var(--line); width: 100%; padding: 10px 14px 10px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.work-row:first-child { border-top: none; }
.work-row:hover { background: #fafbfb; }
.work-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); }
.work-icon.danger { background: var(--dangerbg); color: var(--danger); }
.work-icon.warn { background: var(--warnbg); color: #8a6100; }
.work-icon.ok { background: var(--okbg); color: var(--ok); }
.work-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.work-text b { font-weight: 600; }
.work-go { color: #aab1b9; display: flex; }
.work-row:hover .work-go { color: var(--text); }
.all-clear { display: flex; align-items: center; gap: 12px; padding: 16px; }
.holders { padding: 6px 0; }
.holder { font: inherit; color: var(--text); background: none; border: none; width: 100%; text-align: left; padding: 7px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.holder:hover { background: #fafbfb; }
.holder-name { flex: 0 0 38%; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holder-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.holder-bar i { display: block; height: 100%; border-radius: 999px; background: var(--text); }
.holder-n { min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.timeline { padding: 8px 16px 10px; }
.tl-row { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 6px 0 6px 18px; }
.tl-row::before { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-row:first-child::before { top: 14px; }
.tl-row:last-child::before { bottom: calc(100% - 14px); }
.tl-row:only-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid #9aa2ab; }
.tl-text { flex: 1; min-width: 0; }

/* The item panel: its details as plain lines, not a boxed grid. */
.v2 .details { border: none; border-radius: 0; }
.v2 .details dt, .v2 .details dd { padding: 7px 0; }
.v2 .details dd { font-weight: 600; }

@media (max-width: 900px) {
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  .strip-cell { border-top: 1px solid var(--line); margin-top: -1px; }
}

/* "Updated 2:41 PM" in the top bar: it stands where the Refresh button was, and a click fetches the latest. */
.updated { font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: none; border-radius: 7px; padding: 6px 8px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.updated:hover { background: var(--soft); color: var(--text); }
.updated.busy { opacity: 1; }

/* The several-choice filters, sized for the new look. */
.v2 .mp-btn { border: 1px solid var(--edge); border-radius: 7px; padding: 0 10px; min-height: 34px; font-size: 13.5px; gap: 6px; }
.v2 .mp-btn:hover { border-color: #9aa2ab; }
.v2 .mp-btn.on { border-color: var(--text); background: #fff7dc; }
.v2 .mp-val { font-weight: 600; }
.v2 .mp-menu { border-radius: 10px; font-size: 13.5px; }
.v2 .mp-opt { padding: 5px 8px; border-radius: 6px; font-size: 13.5px; }

/* ---------- Locations: the tree on the left, the chosen location on the right ---------- */
.loc2-side > .page-head { margin: 0 16px 12px; }
.loc2-side > input[type='search'] { margin: 0 16px 12px; }
.loc2-group { display: flex; align-items: center; gap: 7px; width: 100%; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7b848e; padding: 14px 16px 5px 10px; background: none; border: none; cursor: pointer; text-align: left; }
.loc2-group:hover { color: var(--text); }
.loc2-fold { display: inline-flex; transition: transform 0.15s; }
.loc2-fold.closed { transform: rotate(-90deg); }
.loc2-group-count { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; }
.loc2-none { padding: 2px 16px 6px; margin: 0; }
.loc2 .tree-row, .loc2 .tree-row.sub { min-height: 34px; padding-top: 2px; padding-bottom: 2px; padding-right: 12px; gap: 6px; }
.loc2 .tree-row .tree-name, .loc2 .tree-row:not(.sub) .tree-name { font-size: 13.5px; font-weight: 600; }
.loc2 .tree-row.sub .tree-name { font-weight: 500; }
.loc2 .tree-text { flex-direction: row; align-items: baseline; gap: 8px; }
.loc2 .tree-text .small { font-size: 12px; white-space: nowrap; }
.loc2 .tree-div, .loc2 .tree-go { display: none; }
.loc2 .tree-row:hover { background: #f6f7f8; }
.loc2 .tree-row.on, .loc2 .tree-row.on:hover { background: #fff7dc; box-shadow: inset 3px 0 0 var(--acc); }
.loc2 .tree-caret .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.loc2 .tl-v, .loc2 .tl-b, .loc2 .tl-es, .loc2 .tl-d { background: #c5cad0; width: 1.5px; }
.loc2 .tl-b { width: auto; height: 1.5px; }
.loc2 .tl-ec { border-color: #c5cad0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.loc2 .tree .tag { border: none; background: var(--soft); color: var(--muted); border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 11.5px; padding: 0 7px; }
.loc2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.loc2-head h1 { margin: 1px 0 6px; }
.loc2-head .actions { margin: 0; }
.facts { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.fact { padding: 10px 16px 11px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 120px; margin-right: -1px; }
.fact b { font-size: 15px; font-weight: 700; }
@media (min-width: 901px) {
  .v2 #page-locations:not(.hidden) { padding: 0; height: calc(100vh - var(--bar)); }
  .loc2 { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: 100%; }
  .loc2-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding-top: 18px; }
  .loc2-tree { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); padding-bottom: 20px; }
  .loc2-main { overflow-y: auto; padding: 18px 24px 48px; min-width: 0; }
}
@media (max-width: 900px) {
  .loc2-side > .page-head, .loc2-side > input[type='search'] { margin-left: 0; margin-right: 0; }
  .loc2-side > input[type='search'] { width: 100%; }
  .loc2-tree { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; padding-bottom: 8px; max-height: 50vh; overflow-y: auto; }
}

/* ---------- The pages not rebuilt one by one: the same parts, sized for the new look ---------- */
.v2 .page > p.muted { max-width: 860px; }
.v2 .page > h2 { margin: 22px 0 8px; }
.v2 #page-reports, .v2 #page-settings, .v2 #page-upload, .v2 #page-labels { background: #fafbfb; min-height: calc(100vh - var(--bar)); }
.v2 #page-settings > *, .v2 #page-upload > *, .v2 #page-labels > * { max-width: 900px; }
.v2 .seg { display: inline-flex; background: var(--soft); border-radius: 8px; padding: 3px; gap: 2px; margin: 0; }
.v2 .seg button, .v2 .seg .seg-btn { flex: none; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 6px; color: var(--muted); }
.v2 .seg button:hover { color: var(--text); background: none; }
.v2 .seg button.on, .v2 .seg button.on:hover { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(14, 17, 22, 0.14); }
.v2 .asks { padding: 2px 16px; border-radius: 10px; }
.v2 .ask { padding: 10px 0; }
.v2 .ask .btn.link { min-height: 28px; }
.v2 .settings { padding: 2px 16px; border-radius: 10px; }
.v2 .setting { padding: 11px 0; }
.v2 .setting input[type='checkbox'] { width: 18px; height: 18px; }
.v2 .notice { border-radius: 10px; padding: 12px 14px; }
.v2 .notice h3 { font-size: 14px; }
.v2 .drop { border-width: 1.5px; border-radius: 10px; border-color: var(--edge); padding: 24px 16px; }
.v2 .drop:hover { border-color: var(--text); }
.v2 .steps { padding-left: 20px; }
.v2 .row-actions .btn.link { min-height: 28px; }
.v2 .table-wrap { border-radius: 10px; }
.v2 .export-head { margin-top: 26px; }
/* Reports */
.v2 .box.strip { margin-bottom: 16px; }
.v2 div.strip-cell { cursor: default; }
.v2 div.strip-cell:hover { background: none; }
.v2 .strip-cell.warn b { color: #8a6100; }
.v2 .card.report { padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04); }
.v2 .report .page-head { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 46px; }
.v2 .report .table-wrap { margin: 0; border: none; border-radius: 0; }
.v2 .report .chart-box { padding: 12px 16px 14px; }
.v2 .report .report-filter { padding: 10px 16px 0; margin: 0; }
.v2 .cols { gap: 16px; }
.v2 label.inline { font-weight: 600; color: var(--muted); }
.loc2-main > .table-wrap { margin-bottom: 12px; }
.v2 #people-top > h2, .v2 #people-body > h2, .v2 #rentals-body > h2 { margin: 20px 0 8px; }
.v2 #people-top > h2:first-child, .v2 #rentals-body > h2:first-child { margin-top: 4px; }
.v2 #people-top:not(:empty) { margin-bottom: 10px; }
html.v2 { background: #fff; }
.v2 .center-page .btn { min-height: 40px; }
.v2 .center-page input { min-height: 40px; }

/* Phones and narrow windows: the menu becomes a row on top, as before, and every page is one column. */
@media (max-width: 900px) {
  .v2 .shell { grid-template-columns: minmax(0, 1fr); }
  .v2 .side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 6px; }
  .v2 .nav { flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 2px; }
  .v2 .nav a { white-space: nowrap; flex: none; }
  .v2 .nav a .badge { margin-left: 4px; }
  .v2 .updated { padding: 6px 4px; }
  .v2 .side-foot { border-top: none; padding: 0; }
  .v2 .toolbar input[type='search'] { flex: 1 1 100%; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc2-head .actions { width: 100%; }
}

/* Items as picture cards: the cards scroll inside the full-height page, like the list. */
@media (min-width: 901px) {
  .v2 #page-tools .item-grid { height: 100%; overflow: auto; padding: 16px 24px 24px; border-top: 1px solid var(--line); }
  .v2 #page-tools .item-grid-empty { padding: 24px; border-top: 1px solid var(--line); }
}

/* A location's address on a map (Locations, right-hand side). */
.loc-map { position: relative; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); }
.loc-map iframe { display: block; width: 100%; height: 220px; border: 0; }
.loc-map .btn { position: absolute; right: 8px; bottom: 8px; background: #fff; border-radius: 7px; padding: 4px 10px; box-shadow: 0 1px 3px rgba(14, 17, 22, 0.2); text-decoration: none; }
.loc-map.none { border: none; background: none; margin-top: -8px; }
.loc-map.none .btn { position: static; box-shadow: none; padding: 4px 0; text-decoration: underline; }

/* ---------- Polish (Mahmood, 2026-11-28): Geardox's own look ----------
   The app's light grey page with white cards (14 px corners), Archivo headings at 800, the menu's open page in
   the app's yellow (like the dock's pill), and the Overview and Reports numbers with an icon each; a zero stays
   grey so the numbers that matter stand out. */
.v2 { --line: #e6e8eb; --card-shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 6px 18px rgba(14, 17, 22, 0.04); }
html.v2, .v2 body, .v2 .main { background: var(--bg); }
.v2 #page-overview, .v2 #page-reports, .v2 #page-settings, .v2 #page-upload, .v2 #page-labels { background: transparent; }
.v2 .page { padding: 24px 32px 56px; }
.v2 h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.v2 h2 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.005em; }
.v2 .page-head { margin-bottom: 16px; }

/* The menu: white, the open page in yellow. */
.v2 .side { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.v2 .brand { padding: 4px 8px 10px; }
.v2 .top-logo { width: 32px; height: 32px; border-radius: 9px; }
.v2 .company { font-weight: 800; }
.v2 .nav a { color: var(--muted); padding: 7px 10px; border-radius: 9px; }
.v2 .nav a:hover { background: var(--bg); color: var(--text); }
.v2 .nav a.on, .v2 .nav a.on:hover { background: var(--acc); color: var(--text); font-weight: 700; }
.v2 .nav a.on .icon { stroke-width: 2.3; }
.v2 .nav-label { color: #8a929b; }

/* Cards */
.v2 .box, .v2 .card, .v2 .card.report, .v2 .table-wrap, .v2 .facts, .v2 .settings, .v2 .asks, .v2 .loc-map { border-radius: 14px; border-color: var(--line); box-shadow: var(--card-shadow); background: #fff; }
.v2 .box-head, .v2 .report .page-head { padding: 14px 18px; min-height: 52px; }
.v2 th { background: #f8f9fa; color: var(--muted); }
.v2 tr.click:hover td, .v2 .work-row:hover, .v2 .holder:hover, .strip-cell:hover { background: #f8f9fa; }
.v2 .btn { border-radius: 9px; }
.v2 .small-btn { border-radius: 8px; }

/* The numbers: an icon in a tinted square beside each. */
.v2 .strip { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.v2 .strip-cell { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.strip-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--text); margin-top: 1px; }
.strip-icon.ok { background: var(--okbg); color: var(--ok); }
.strip-icon.out { background: #fff3cf; color: #8a6100; }
.strip-icon.danger { background: var(--dangerbg); color: var(--danger); }
.strip-icon.warn { background: var(--warnbg); color: #8a6100; }
.strip-icon.quiet { background: #f3f4f6; color: #a3aab2; }
.strip-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v2 .strip-cell b { font-size: 28px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.v2 .strip-cell.zero b { color: #a3aab2; }
.v2 .strip-cell.zero .strip-label { color: #8a929b; }
.v2 .split { padding: 14px 18px; }

/* Overview's lists */
.v2 .work-row { padding: 12px 16px 12px 18px; }
.v2 .work-icon { width: 34px; height: 34px; border-radius: 10px; }
.v2 .home-cols { gap: 20px; margin-top: 20px; }
.v2 .home-side { gap: 20px; }

/* Locations and Items fill the window: their own panes stay white. */
.v2 .loc2-side { background: #fff; }
@media (min-width: 901px) {
  .v2 #page-tools .table-wrap { border-radius: 0; box-shadow: none; }
}
@media (max-width: 900px) {
  .v2 .page { padding: 16px 14px 40px; }
  .v2 .side { border-right: none; }
}
.v2 .strip { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.v2 .strip-cell { gap: 10px; padding: 16px 14px; }
@media (min-width: 901px) { .v2 .shell { grid-template-columns: 236px minmax(0, 1fr); } }
/* Report bars in the app's yellow, not blue. */
.v2 .barcell i { background: #ffe9a8; }

/* ---------- Overview icons all one size (Mahmood, 2026-11-28) ----------
   The numbers' icons and the Needs attention icons: the same 38 px square, 10 px corners, 20 px icon. */
.v2 .strip-icon, .v2 .work-icon { width: 38px; height: 38px; border-radius: 10px; }
.v2 .work-row { align-items: center; }
/* A small line under a number stays on one line, so the cells line up. */
.v2 .strip-text .muted.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Items › Pictures: with many items the cards were squeezed to fit the page height, cutting off the item number
   (Mahmood, 2026-11-28). Each card keeps its full height; the grid scrolls. */
.item-grid { grid-auto-rows: max-content; }

/* Items list: bigger pictures, and "1 of 3 · 2 available" under the name (Mahmood, 2026-11-28). */
#page-tools .with-thumb { gap: 12px; }
#page-tools .with-thumb .thumb { width: 48px; height: 48px; border-radius: 10px; }
.name-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.name-text .muted.small { font-weight: 500; }

/* The logo, company and your name at the bottom left of the menu, above Refresh / Sign out (Mahmood,
   2026-11-28); the pages come first. Narrow screens keep them on top. */
@media (min-width: 901px) {
  .v2 .brand { order: 10; margin-top: auto; padding: 10px 8px 6px; border-top: 1px solid var(--line); }
  .v2 #company-pick { order: 11; }
  .v2 .side-foot { order: 12; margin-top: 0; border-top: none; }
  .v2 .nav { padding-top: 4px; }
}

/* Items › Pictures: who has it (or where it is) on its own line under the status, so the name isn't cut off
   (Mahmood, 2026-11-28). A very long one wraps. */
.card-who { margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }

/* Transfer (item 25), like the phone's: items, where they're going (the tree), who to. */
.modal:has(.transfer-box) { width: min(600px, 94vw); max-width: none; max-height: 92vh; overflow: auto; }
.transfer-box { display: flex; flex-direction: column; gap: 10px; }
.transfer-box .field { display: flex; flex-direction: column; gap: 6px; }
.transfer-box .field select, .transfer-box .field input { width: 100%; }
.transfer-box .transfer-person-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.transfer-box h3 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.transfer-hint { margin: 0; }
.transfer-items { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.transfer-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.transfer-item:first-child { border-top: none; }
.transfer-item .name-text { flex: 1; }
.transfer-tree { max-height: 240px; overflow: auto; }
.transfer-tree .tree-row.on, .transfer-tree .tree-row.on:hover { background: #fff7dc; box-shadow: inset 3px 0 0 var(--acc); }
.transfer-where { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.transfer-where > span { display: inline-flex; align-items: center; gap: 6px; }
.transfer-box .seg { align-self: flex-start; }
.danger-link { color: var(--danger); }
.hidden { display: none !important; }

/* A long status ("At Maple St Remodel until Sun, Dec 20") wraps on a picture card instead of being cut off. */
.card-foot .tag { white-space: normal; text-align: left; line-height: 1.3; height: auto; padding-top: 3px; padding-bottom: 3px; }

/* ---------- The menu collapses instead of moving to the top (Mahmood, 2026-11-29) ----------
   A button at the top of the menu (shell2.mjs) turns it into a narrow strip of icons and back. In a narrow window
   (601 to 900 wide) the menu now stays on the left, collapsed to start with; before, it became a row on top.
   Phones (600 and under) keep the row on top and have no button. */
.side-toggle { display: none; }
@media (min-width: 601px) {
  .v2 .side-toggle { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 34px; height: 34px; margin: 0 2px; border: none; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; flex: none; }
  .v2 .side-toggle:hover { background: var(--bg); color: var(--text); }
  .v2 .shell.side-collapsed { grid-template-columns: 60px minmax(0, 1fr); }
  .v2 .side-collapsed .side { padding-left: 8px; padding-right: 8px; align-items: stretch; }
  .v2 .side-collapsed .side-toggle { align-self: center; margin: 0; }
  .v2 .side-collapsed .nav a { position: relative; justify-content: center; padding: 9px 0; gap: 0; font-size: 0; }
  .v2 .side-collapsed .nav a .icon { width: 20px; height: 20px; }
  .v2 .side-collapsed .nav a .badge { position: absolute; top: 1px; right: 3px; margin: 0; font-size: 10px; padding: 0 5px; }
  .v2 .side-collapsed .nav a .badge:empty { display: none; }
  .v2 .side-collapsed .nav-label { display: block; font-size: 0; padding: 0; height: 1px; background: var(--line); margin: 8px 8px; }
  .v2 .side-collapsed .top-names, .v2 .side-collapsed #company-pick, .v2 .side-collapsed .side-foot, .v2 .side-collapsed #scan-btn { display: none; }
  .v2 .side-collapsed .brand { justify-content: center; padding: 10px 0 4px; }
}
/* 601 to 900 wide: the menu stays a column on the left (these undo the "row on top" rules above for this range). */
@media (min-width: 601px) and (max-width: 900px) {
  .v2 .shell { grid-template-columns: 236px minmax(0, 1fr); }
  .v2 .side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); border-bottom: none; padding: 14px 10px; gap: 8px; }
  .v2 .nav { flex-direction: column; overflow-x: visible; overflow-y: auto; padding-top: 4px; padding-bottom: 0; gap: 1px; }
  .v2 .nav a { white-space: normal; flex: initial; }
  .v2 .nav-label { display: block; }
  .v2 .brand { order: 10; margin-top: auto; padding: 10px 8px 6px; border-top: 1px solid var(--line); }
  .v2 #company-pick { order: 11; }
  .v2 .side-foot { order: 12; margin-top: 0; border-top: none; flex-direction: column; padding: 6px 4px 2px; }
}
