/* Gold Choice Rentals — the screens' own pieces (inventory, jobs: quote + pull sheet, scanning, repairs, crew, labels).
   Shared building blocks live in /app.css. Old-phone rules as there: no CSS grid, no flex gap, no inset/clamp;
   a literal colour before each var(). Dark mode: literal colours added here have a dark line at the end. */

/* -- the logo: blue + grey on clear; in white on the blue bar and the dark menu block -- */
.logo-img { display: block; width: auto; }
.logo-white { -webkit-filter: brightness(0) invert(1); filter: brightness(0) invert(1); }
.top .brand .logo-img { height: 34px; }
.side-brand .logo-img { height: 42px; margin-top: 0; }
body.site .site-hero .logo .logo-img { height: 96px; }
@media (max-width: 599px) { body.site .site-hero .logo .logo-img { height: 76px; } }

/* -- small shared bits -- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
.pad { padding-left: 1.35rem; padding-right: 1.35rem; }
p.pad, div.pad { margin-top: .6rem; margin-bottom: .6rem; }
.card.flush > .card-head { padding: 1.05rem 1.35rem 0; margin-bottom: .7rem; }
.card.flush > .tabs, .job-view > .tabs { margin-bottom: 0; }
.card.flush .card-foot { margin: 0; }
.card.flush > .empty, .card.flush > p.empty { padding: 1.4rem 1.35rem; }
.indent { color: #9aa4b5; display: inline-block; min-width: 1em; }
.radio-col .check { display: block; margin: .35rem 0; }
.radio-row .check { display: inline-block; margin: .2rem 1.2rem .2rem 0; }
.checks .check { display: inline-block; margin-right: 1.2rem; }
.skill-picks .check { display: inline-block; margin: .15rem 1rem .15rem 0; }
.set-sub { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 1.4rem 0 .6rem; font-size: 1rem; color: #4a5568; color: var(--ink2); }
.set-sub .ic { width: 19px; height: 19px; margin-right: .45rem; color: #7b8698; color: var(--muted); }
.add-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.add-row input { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.add-row > * + * { margin-left: .5rem; }
.add-row .add-qty { -webkit-flex: 0 0 4.2rem; flex: 0 0 4.2rem; text-align: center; }
.inv-search { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 0 0 1rem; max-width: 640px; }
.inv-search input[type=search] { -webkit-flex: 1; flex: 1; min-width: 0; margin-right: .5rem; }
.inv-search .btn + .btn { margin-left: .4rem; }
.tag-sample { text-transform: uppercase; font-size: .66rem; letter-spacing: .05em; }
.help-steps li { margin: .3rem 0; }
.job-note { margin: .8rem 0 0; padding: .7rem .8rem; background: #f7f9fc; background: var(--hover); border-radius: 4px; font-size: .92rem; }

/* -- availability numbers -- */
.av { display: inline-block; font-weight: 700; font-size: .84rem; padding: .12rem .5rem; border-radius: 4px; white-space: nowrap; }
.av-ok { color: #17803d; background: #e3f5ea; }
.av-tight { color: #9a6400; background: #fff4d6; }
.av-short { color: #c53030; background: #fdecec; }
td.av-ok, td.av-tight, td.av-short { text-align: center; font-weight: 700; padding: .45rem .2rem; }
td.av-ok a, td.av-tight a, td.av-short a { color: inherit; display: block; text-decoration: none; }
.av-strip th, .g-table thead th { text-align: center; padding: .4rem .15rem; font-size: .68rem; min-width: 2.2rem; }
.av-strip th.cal-off, .g-table th.cal-off { background: #eceff4; color: #7b8698; }
.av-sum { font-size: 1.15rem; margin: .4rem 0 .2rem; }
.av-sum .up { color: #17803d; } .av-sum .down { color: #c53030; }
.av-why-line { color: #4a5568; color: var(--ink2); font-size: .92rem; }
.av-form .row2 { max-width: 460px; }
.g-table .g-item { position: -webkit-sticky; position: sticky; left: 0; background: #fff; background: var(--card); text-align: left; white-space: nowrap; max-width: 15rem; overflow: hidden; text-overflow: ellipsis; z-index: 1; font-size: .86rem; }
.g-table thead .g-item { background: #4b5468; }
.g-table th.g-today { box-shadow: inset 0 -3px 0 #1f73d1; }
.grid-wrap { max-height: 75vh; }

/* -- inventory -- */
.inv-seg { margin-bottom: .8rem; }
.inv-group .card-head h2 small, .card-head h2 small { color: #7b8698; color: var(--muted); font-weight: 400; font-size: .85rem; }
.inv-table td { padding-top: .6rem; padding-bottom: .6rem; }
.inv-name { font-weight: 600; }
.inv-kv { margin-bottom: .6rem; }
.inv-bc { display: -webkit-inline-flex; display: inline-flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; padding: .6rem .8rem; border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; }
.inv-bc .bc { width: 220px; height: 52px; display: block; }
.inv-bc.big .bc { width: 300px; height: 80px; }
.inv-bc .mono { margin-top: .3rem; font-weight: 700; color: #2b3445; }
.bcode { font-weight: 700; }
.units-wrap { max-height: 520px; overflow-y: auto; }
.part-form, .line-form { padding: .7rem 0 .2rem; }
.part-add .row3 { -webkit-align-items: flex-end; align-items: flex-end; }
details.edit-part > summary, details.line-edit > summary, details.add-more > summary { list-style: none; cursor: pointer; }
details.edit-part > summary::-webkit-details-marker, details.line-edit > summary::-webkit-details-marker { display: none; }
/* the crew editor opens inside its cell (a popup would be clipped by the scrolling table) */
details.line-edit[open] .line-form { min-width: 260px; text-align: left; }

/* -- the line editor: a row under the line (Change), never clipped -- */
tr.line-editor > td { background: #eef4fb; background: var(--soft); padding: .9rem 1rem 1rem; border-top: 0; box-shadow: inset 3px 0 0 #1f73d1; }
.le-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: .5rem; }
.le-head b { -webkit-flex: 1; flex: 1; font-size: 1.02rem; }
.le-close { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; color: #7b8698; color: var(--muted); }
.le-close:hover { background: rgba(0, 0, 0, .06); }
.le-cols > .le-col { min-width: 0; }
@media (min-width: 900px) { .le-cols { display: -webkit-flex; display: flex; } .le-cols > .le-col { -webkit-flex: 1; flex: 1; } .le-cols > .le-col + .le-col { margin-left: 1.5rem; } }
.le-form .field { margin-bottom: .6rem; }
.le-qty { font-size: 1.25rem !important; font-weight: 700; max-width: 7rem; }
.le-replace { padding: .6rem .8rem .7rem; border: 1px dashed #b9c2d0; border: 1px dashed var(--line2); border-radius: 6px; margin-top: .3rem; }
.le-replace .field { margin-bottom: .4rem; }
.le-acts { margin-top: .4rem; }
tr.line-editor .btnrow .btn { margin-right: .4rem; }
tr.p-has-note > td { background: #fffbea; }
.p-note { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; margin: .35rem 0 .1rem; padding: .4rem .6rem; background: #fff1b8; color: #5c4300; border-left: 4px solid #f5b400; border-radius: 4px; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.p-note .ic { width: 18px; height: 18px; -webkit-flex: none; flex: none; margin: .05rem .4rem 0 0; color: #9a6400; }
.p-zero td .p-note { text-decoration: none; }
details.add-more { margin-top: .8rem; }
details.add-more > summary { color: #1f73d1; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* -- jobs -- */
.job-head h1 { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.job-head h1 .jobno { margin-right: .5rem; }
.job-head h1 .tag { margin-left: .6rem; font-size: .8rem; }
.job-tabs a { font-size: 1rem; }
.job-facts .kv dd { margin-bottom: .55rem; }
.wait-card { box-shadow: inset 4px 0 0 #f5b400, 0 1px 3px rgba(16, 32, 64, .08); }
.short-card { box-shadow: inset 4px 0 0 #e04848, 0 1px 3px rgba(16, 32, 64, .08); }
.add-gear { margin: 0 !important; }
.add-gear .add-what { font-size: 1rem; }
.q-dept-head th, .p-dept-head th { background: #f2f5f9; color: #2b3445; font-size: .78rem; letter-spacing: .08em; padding-top: .55rem; padding-bottom: .55rem; }
.p-dept-head th small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #7b8698; margin-left: .4rem; }
.q-table td, .p-table td { padding-top: .55rem; padding-bottom: .55rem; }
.q-part td, .p-part td { font-size: .9rem; color: #4a5568; color: var(--ink2); }
.p-part td:first-child, .q-part td:first-child { color: #7b8698; }
.p-d2 td:nth-child(2) { padding-left: 2.2rem; }
.p-done td { background: #f3fbf6; }
.p-done .p-qty b { color: #17803d; }
.p-zero td { text-decoration: line-through; color: #9aa4b5; }
.p-zero td .tag, .p-zero td details { text-decoration: none; }
.q-added td { background: #fffbea; }
.q-totals { width: auto; min-width: 280px; margin: .5rem 1.35rem 1rem auto; }
.q-totals td { padding: .4rem .75rem; border: 0; }
.q-totals .q-total td { font-size: 1.15rem; font-weight: 700; border-top: 2px solid #2b3445; }
.sc-out { color: #4f53cf; font-weight: 600; } .sc-in { color: #0d8a7f; font-weight: 600; }
.p-progress .bar { height: 10px; border-radius: 5px; background: #e3e8ef; overflow: hidden; margin: .2rem 0 .35rem; }
.p-progress .bar span { display: block; height: 100%; background: #12904a; }
.act-mini small { color: #7b8698; }
.crew-view .card-foot .row3 { -webkit-align-items: flex-end; align-items: flex-end; }

/* -- the month -- */
.mo-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
.mo-table th { padding: .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: #7b8698; border-bottom: 1px solid #e3e8ef; }
.mo-day { vertical-align: top; height: 110px; padding: .35rem .4rem; border: 1px solid #edf0f5; }
.mo-other { background: #fafbfd; } .mo-other .mo-n { color: #b4bcc9; }
.mo-today { box-shadow: inset 0 0 0 2px #1f73d1; }
.mo-day.cal-off { background: #f3f4f7; }
.mo-n { font-weight: 700; text-decoration: none; color: #2b3445; }
.mo-mark { display: block; font-size: .66rem; color: #7b8698; text-transform: uppercase; letter-spacing: .04em; }
.mo-list { margin-top: .2rem; }
.mo-chip { display: block; font-size: .76rem; line-height: 1.3; padding: .12rem .35rem; margin: 2px 0; border-radius: 3px; text-decoration: none; color: #2b3445; background: #eef2f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-out { background: #eeeefc; color: #3f43b8; } .mo-back { background: #e0f4f1; color: #0b7067; } .mo-event { background: #e7f0fc; color: #1f62b5; }
.mo-chip.st-quote { opacity: .7; border: 1px dashed #b9c2d0; }
.mo-more, .mo-count { display: block; font-size: .72rem; color: #7b8698; text-decoration: none; }
.mo-count { display: none; }
@media (max-width: 760px) { .mo-list { display: none; } .mo-count { display: block; } .mo-table { min-width: 0; } .mo-day { height: 64px; } }

/* -- scanning -- */
.scan-dir { margin-bottom: 1rem; }
.scan-dir a .ic { width: 18px; height: 18px; vertical-align: -4px; margin-right: .2rem; }
.scan-card { border-top: 4px solid #1b5680; }
.scan-row { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.scan-row > * { margin: 0 .5rem .5rem 0; }
.scan-input { -webkit-flex: 1 1 170px; flex: 1 1 170px; font-size: 1.35rem !important; padding: .7rem .8rem !important; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .05em; text-transform: uppercase; }
.scan-qty { width: 4.5rem; text-align: center; font-size: 1.1rem !important; }
.scan-dmg { margin: .4rem 0; }
.scan-dmg summary { color: #c53030; font-weight: 600; cursor: pointer; }
.scan-banner { margin-top: .8rem; padding: .9rem 1rem; border-radius: 6px; font-size: 1.05rem; border-left: 6px solid #9aa4b5; background: #f2f5f9; }
.scan-banner .mono { color: #7b8698; margin-left: .3rem; }
.scan-banner form { display: inline-block; margin-left: .5rem; }
.scan-ok { background: #e3f5ea; border-left-color: #12904a; color: #0e5c30; }
.scan-warn { background: #fff4d6; border-left-color: #f5b400; color: #6e4800; }
.scan-err { background: #fdecec; border-left-color: #e04848; color: #8f1f1f; }
.scan-info { background: #e7f0fc; border-left-color: #1f73d1; color: #1a4f8f; }
.scan-flash { -webkit-animation: scanflash .5s ease-out; animation: scanflash .5s ease-out; }
@-webkit-keyframes scanflash { from { -webkit-transform: scale(1.03); } to { -webkit-transform: scale(1); } }
@keyframes scanflash { from { transform: scale(1.03); } to { transform: scale(1); } }
.scan-list li.scan-err .grow { color: #c53030; }
.scan-list li.scan-warn .grow { color: #9a6400; }
.scan-pick .btn { margin-left: .6rem; }
.miss-bulk { margin: .4rem 0; }
.cam-btn[hidden] { display: none; }
.cam-box { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 100; background: #000; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.cam-box video { -webkit-flex: 1; flex: 1; width: 100%; height: 100%; object-fit: cover; }
.cam-box .cam-frame { position: absolute; left: 10%; right: 10%; top: 35%; height: 30%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.cam-box .cam-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); text-align: center; background: rgba(0, 0, 0, .55); color: #fff; }
.cam-box .cam-bar .btn { min-width: 9rem; }
.cam-box .cam-msg { display: block; margin-bottom: .6rem; font-size: 1.05rem; }

/* -- labels page (its own page, printed) -- */
body.labels { background: #eef1f6; margin: 0; }
.lbl-bar { padding: .8rem 1rem; background: #fff; border-bottom: 1px solid #e3e8ef; font-size: .92rem; }
.lbl-bar a { margin: 0 .2rem; } .lbl-bar a.on { font-weight: 700; color: #2b3445; text-decoration: none; }
.lbl-bar .btn { margin-left: 1rem; }
.lbl-sheet { padding: 1rem; }
.lbl { display: inline-block; vertical-align: top; background: #fff; color: #000; margin: 0 .5rem .5rem 0; padding: .06in .1in; overflow: hidden; text-align: center; box-shadow: 0 0 0 1px #d0d6df; page-break-inside: avoid; break-inside: avoid; }
.lbl .bc { display: block; width: 100%; height: 40%; }
.lbl-name { font: 700 9pt/1.15 -apple-system, Helvetica, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-code { font: 9pt/1.2 ui-monospace, Menlo, Consolas, monospace; }
.lbl-biz { font: 6.5pt/1.1 -apple-system, Helvetica, Arial, sans-serif; color: #333; }
.lbl-2x1 .lbl { width: 2in; height: 1in; }
.lbl-2_25x1_25 .lbl { width: 2.25in; height: 1.25in; }
.lbl-3x2 .lbl { width: 3in; height: 2in; } .lbl-3x2 .lbl-name { font-size: 12pt; } .lbl-3x2 .lbl-code { font-size: 12pt; }
.lbl-avery5160 .lbl { width: 2.625in; height: 1in; margin: 0 .125in 0 0; }
@media print {
  .noprint, .lbl-bar { display: none !important; }
  body.labels { background: #fff; }
  .lbl-sheet { padding: 0; }
  .lbl { box-shadow: none; margin: 0; }
  .lbl-2x1 .lbl, .lbl-2_25x1_25 .lbl, .lbl-3x2 .lbl { page-break-after: always; break-after: page; display: block; }
  .lbl-avery5160 .lbl-sheet { padding: .5in .19in 0; }
  body.app .side, body.app .top, body.app .tabbar { display: none !important; }
  body.app .frame { margin: 0 !important; }
}

/* -- dark mode for the literal colours above -- */
@media screen and (prefers-color-scheme: dark) {
  html:not(.theme-light) body.app .av-ok { background: #15301f; color: #7fd49b; }
  html:not(.theme-light) body.app .av-tight { background: #3a2f17; color: #f0c674; }
  html:not(.theme-light) body.app .av-short { background: #3a1d20; color: #f19a9a; }
  html:not(.theme-light) body.app .q-dept-head th, html:not(.theme-light) body.app .p-dept-head th { background: #1e2938; color: #e6ebf2; }
  html:not(.theme-light) body.app .p-done td { background: #15251c; }
  html:not(.theme-light) body.app .q-added td { background: #2c2716; }
  html:not(.theme-light) body.app .mo-day { border-color: #2a3545; } html:not(.theme-light) body.app .mo-other { background: #141c27; }
  html:not(.theme-light) body.app .mo-n { color: #e6ebf2; } html:not(.theme-light) body.app .mo-chip { background: #1e2938; color: #c3ccd9; }
  html:not(.theme-light) body.app .scan-ok { background: #15301f; color: #9fe0b5; } html:not(.theme-light) body.app .scan-warn { background: #3a2f17; color: #f0c674; }
  html:not(.theme-light) body.app .scan-err { background: #3a1d20; color: #f6b0b0; } html:not(.theme-light) body.app .scan-info { background: #16283d; color: #a9cdf5; }
  html:not(.theme-light) body.app .inv-bc { background: #fff; }
}
@media screen {
  html.theme-dark body.app .av-ok { background: #15301f; color: #7fd49b; }
  html.theme-dark body.app .av-tight { background: #3a2f17; color: #f0c674; }
  html.theme-dark body.app .av-short { background: #3a1d20; color: #f19a9a; }
  html.theme-dark body.app .q-dept-head th, html.theme-dark body.app .p-dept-head th { background: #1e2938; color: #e6ebf2; }
  html.theme-dark body.app .p-done td { background: #15251c; }
  html.theme-dark body.app .q-added td { background: #2c2716; }
  html.theme-dark body.app .mo-day { border-color: #2a3545; } html.theme-dark body.app .mo-other { background: #141c27; }
  html.theme-dark body.app .mo-n { color: #e6ebf2; } html.theme-dark body.app .mo-chip { background: #1e2938; color: #c3ccd9; }
  html.theme-dark body.app .scan-ok { background: #15301f; color: #9fe0b5; } html.theme-dark body.app .scan-warn { background: #3a2f17; color: #f0c674; }
  html.theme-dark body.app .scan-err { background: #3a1d20; color: #f6b0b0; } html.theme-dark body.app .scan-info { background: #16283d; color: #a9cdf5; }
}
.add-gear, .part-add, .unit-add, .crew-view .card-foot, .line-form, .card-foot.left { text-align: left; }
.unit-add h3 { margin-top: 0; }

/* -- the inventory panel on a job (left): a tree with icons, folders closed until opened -- */
.inv-panel { margin-bottom: 1.25rem; font-size: .95rem; }
.inv-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: .95rem 1.1rem; cursor: pointer; list-style: none; }
.inv-head::-webkit-details-marker { display: none; }
.inv-head > .ic { color: #1b5680; color: var(--brand-ink); margin-right: .55rem; width: 24px; height: 24px; }
.inv-head b { font-size: 1.05rem; }
.inv-head small { -webkit-flex: 1 0 100%; flex: 1 0 100%; color: #7b8698; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.inv-find { padding: 0 1.1rem .5rem; }
.inv-find .in-ic { position: relative; display: block; }
.inv-find .in-ic .ic { position: absolute; left: .6rem; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: #9aa4b5; }
.inv-find input { width: 100%; padding-left: 2.3rem !important; }
.inv-days { margin: 0 1.1rem .6rem; font-size: .78rem; color: #7b8698; color: var(--muted); }
.inv-tree { max-height: 60vh; overflow-y: auto; border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); padding: .3rem 0 .6rem; }
.inv-tree details > summary { list-style: none; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; cursor: pointer; min-height: 40px; padding: .3rem .8rem .3rem .6rem; color: #2b3445; color: var(--ink); }
.inv-tree details > summary::-webkit-details-marker { display: none; }
.inv-tree details > summary:hover { background: #f5f8fc; background: var(--hover); }
.tr-arrow { -webkit-flex: none; flex: none; width: 18px; height: 18px; position: relative; margin-right: .15rem; }
.tr-arrow::before { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 7px; border-right: 2px solid #7b8698; border-bottom: 2px solid #7b8698; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transition: -webkit-transform .15s; transition: transform .15s; }
details[open] > summary > .tr-arrow::before { -webkit-transform: rotate(45deg); transform: rotate(45deg); top: 2px; }
.tr-ic { -webkit-flex: none; flex: none; display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 7px; margin-right: .6rem; background: #e8f1fc; background: var(--soft); color: #1f73d1; color: var(--accent); }
.tr-ic .ic { width: 18px; height: 18px; }
.tr-dept > summary { font-weight: 700; }
.tr-dept > summary .tr-ic { background: #1b5680; background: var(--brand); color: #fff; }
.tr-name { -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-tree summary small { color: #7b8698; color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: .5rem; }
.tr-cat > summary { padding-left: 1.6rem; font-weight: 600; font-size: .92rem; }
.tr-cat.tr-d2 > summary { padding-left: 2.6rem; } .tr-cat.tr-d3 > summary { padding-left: 3.6rem; } .tr-cat.tr-d4 > summary { padding-left: 4.6rem; }
.tr-cat > summary .tr-ic { width: 26px; height: 26px; line-height: 26px; }
.tr-cat > summary .tr-ic .ic { width: 16px; height: 16px; }
.tr-items { list-style: none; margin: 0; padding: 0 0 .2rem; }
.tr-dept > .tr-items .inv-row { padding-left: 1.6rem; }
.inv-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 38px; padding: .2rem .7rem .2rem 3.2rem; cursor: grab; font-size: .92rem; }
.inv-row.tr-d1 { padding-left: 2.2rem; } .inv-row.tr-d2 { padding-left: 3.2rem; } .inv-row.tr-d3 { padding-left: 4.2rem; } .inv-row.tr-d4 { padding-left: 5.2rem; }
.inv-row:hover { background: #f5f8fc; background: var(--hover); }
.inv-row.dragging { opacity: .45; }
.tr-ic-item { width: 22px; height: 22px; line-height: 22px; border-radius: 5px; margin-right: .5rem; background: transparent; color: #9aa4b5; color: var(--muted); }
.tr-ic-item .ic { width: 15px; height: 15px; }
.inv-nm { -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: .4rem; }
.inv-row .av { font-size: .74rem; padding: .08rem .4rem; margin-right: .4rem; }
.inv-add { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: none; flex: none; margin: 0; }
.inv-add input.inv-qty { width: 2.7rem !important; -webkit-flex: none; flex: none; padding: .15rem .2rem !important; height: 2rem; text-align: center; font-size: .88rem; min-height: 0; margin-right: .3rem; }
.inv-add .btn-sm { padding: 0; width: 2rem; height: 2rem; line-height: 2rem; min-height: 0; font-size: 1.15rem; border-radius: 50%; text-align: center; }
.job-view.drop-ready { box-shadow: 0 0 0 2px #9cc3ea, 0 1px 3px rgba(16, 32, 64, .08); }
.job-view.drop-over { box-shadow: 0 0 0 3px #1f73d1, 0 6px 20px rgba(31, 115, 209, .2); background: #f4f9ff; }
.inv-toast { position: fixed; left: 50%; bottom: 84px; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 90; max-width: 90vw; box-shadow: 0 8px 26px rgba(16, 32, 64, .2); }
@media (min-width: 1180px) {
  .job-wrap.has-inv { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
  .job-wrap.has-inv > .inv-panel { -webkit-flex: 0 0 480px; flex: 0 0 480px; margin-right: 1.25rem; position: -webkit-sticky; position: sticky; top: 110px; }
  .job-wrap.has-inv > .job-body { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
  .job-wrap.has-inv .inv-tree { max-height: calc(100vh - 250px); }
}
@media (min-width: 1600px) { .job-wrap.has-inv > .inv-panel { -webkit-flex-basis: 560px; flex-basis: 560px; } }
@media (min-width: 2400px) { .job-wrap.has-inv > .inv-panel { -webkit-flex-basis: 680px; flex-basis: 680px; } .inv-panel { font-size: 1.02rem; } }
/* with the panel open the details column goes under the job, unless the screen is very wide */
@media (min-width: 1180px) and (max-width: 2199px) {
  .job-wrap.has-inv .cols { display: block; }
  .job-wrap.has-inv .cols > .col-side { margin-left: 0; }
}
@media screen and (prefers-color-scheme: dark) {
  html:not(.theme-light) body.app .tr-arrow::before { border-color: #95a1b4; }
  html:not(.theme-light) body.app tr.p-has-note > td { background: #2c2716; }
  html:not(.theme-light) body.app .p-note { background: #4a3a10; color: #ffe9a3; border-left-color: #f0c674; } html:not(.theme-light) body.app .p-note .ic { color: #f0c674; }
  html:not(.theme-light) body.app .le-close:hover { background: rgba(255, 255, 255, .08); }
  html:not(.theme-light) body.app .job-view.drop-over { background: #16283d; }
}
@media screen { html.theme-dark body.app .tr-arrow::before { border-color: #95a1b4; } html.theme-dark body.app .job-view.drop-over { background: #16283d; }
  html.theme-dark body.app tr.p-has-note > td { background: #2c2716; } html.theme-dark body.app .p-note { background: #4a3a10; color: #ffe9a3; border-left-color: #f0c674; } html.theme-dark body.app .p-note .ic { color: #f0c674; } }

/* -- arrange the inventory tree -- */
.tree-list { list-style: none; margin: 0; padding: .4rem 0; }
.tree-row { border-bottom: 1px solid #edf0f5; border-bottom: 1px solid var(--line); }
.tree-main { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: .5rem 1rem .5rem .9rem; }
.tree-d1 .tree-main { padding-left: 2.6rem; } .tree-d2 .tree-main { padding-left: 4.3rem; } .tree-d3 .tree-main { padding-left: 6rem; } .tree-d4 .tree-main { padding-left: 7.7rem; }
.tree-d0 { background: #f7f9fc; background: var(--hover); }
.tree-d0 .tree-name a { font-weight: 700; font-size: 1.05rem; }
.tr-ic-root { background: #1b5680 !important; background: var(--brand) !important; color: #fff !important; }
.tree-name { -webkit-flex: 1; flex: 1; min-width: 12rem; }
.tree-name a { text-decoration: none; color: #2b3445; color: var(--ink); font-weight: 600; }
.tree-name small { display: block; color: #7b8698; color: var(--muted); font-size: .78rem; }
.tree-acts { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.tree-acts > * { margin: .15rem .25rem .15rem 0; }
.tree-acts .btn[disabled] { opacity: .35; cursor: default; }
details.tree-edit > summary { list-style: none; cursor: pointer; }
details.tree-edit > summary::-webkit-details-marker { display: none; }
details.tree-edit[open] { -webkit-flex: 1 0 100%; flex: 1 0 100%; }
.tree-form { margin: .5rem 0 .3rem; padding: .8rem 1rem; background: #fff; background: var(--card); border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; }
.tree-form .row3 .field { margin-bottom: .4rem; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) body.app .tree-row { border-bottom-color: #222c3a; } }
@media screen { html.theme-dark body.app .tree-row { border-bottom-color: #222c3a; } }

/* -- full width: big screens use the whole screen (client video Oct 19: an ultra-wide monitor) -- */
body.app .main { max-width: none; }

/* -- tabs across the top (/tabs.js) -- */
.wb-tabs { display: none; }
@media (min-width: 900px) {
  .wb-tabs { display: -webkit-flex; display: flex; -webkit-align-items: flex-end; align-items: flex-end; overflow-x: auto; padding: .45rem 1rem 0; background: #e3e9f1; border-bottom: 1px solid #cfd6e0; position: -webkit-sticky; position: sticky; top: 60px; z-index: 15; }
  .wb-tab { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: 0 1 230px; flex: 0 1 230px; min-width: 120px; max-width: 230px; margin-right: 3px; padding: .5rem .35rem .5rem .7rem; border-radius: 7px 7px 0 0; background: #d3dbe6; color: #3f4a5c; text-decoration: none; font-size: .86rem; font-weight: 600; border: 1px solid transparent; border-bottom: 0; }
  .wb-tab:hover { background: #c6d0dd; }
  .wb-tab.on { background: #fff; background: var(--bg); color: #1b5680; color: var(--brand-ink); border-color: #cfd6e0; margin-bottom: -1px; padding-bottom: calc(.5rem + 1px); }
  .wb-tab .ic { width: 17px; height: 17px; margin-right: .45rem; -webkit-flex: none; flex: none; }
  .wb-tab span { -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wb-x { -webkit-flex: none; flex: none; width: 22px; height: 22px; line-height: 21px; text-align: center; border-radius: 50%; margin-left: .3rem; font-size: 1rem; font-weight: 400; color: #7b8698; }
  .wb-x:hover { background: rgba(0, 0, 0, .1); color: #c53030; }
  .wb-clear { margin: 0 0 .35rem auto; -webkit-flex: none; flex: none; background: none; border: 0; color: #7b8698; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
  .wb-clear:hover { color: #c53030; text-decoration: underline; }
}
@media screen and (prefers-color-scheme: dark) {
  html:not(.theme-light) body.app .wb-tabs { background: #0b111a; border-bottom-color: #2a3545; }
  html:not(.theme-light) body.app .wb-tab { background: #141c27; color: #95a1b4; }
  html:not(.theme-light) body.app .wb-tab:hover { background: #1b2533; }
  html:not(.theme-light) body.app .wb-tab.on { background: #0f1621; color: #e6ebf2; border-color: #2a3545; }
  html:not(.theme-light) body.app .wb-x:hover { background: rgba(255, 255, 255, .1); }
}
@media screen {
  html.theme-dark body.app .wb-tabs { background: #0b111a; border-bottom-color: #2a3545; }
  html.theme-dark body.app .wb-tab { background: #141c27; color: #95a1b4; }
  html.theme-dark body.app .wb-tab:hover { background: #1b2533; }
  html.theme-dark body.app .wb-tab.on { background: #0f1621; color: #e6ebf2; border-color: #2a3545; }
}

/* -- the inventory panel, Oct 19: resizable, pictures, names open the item, "how many?" after a drop -- */
.inv-panel { position: relative; }
.inv-resize { display: none; }
@media (min-width: 1180px) {
  .inv-resize { display: block; position: absolute; top: 0; right: -9px; bottom: 0; width: 14px; cursor: ew-resize; z-index: 6; }
  .inv-resize::after { content: ""; position: absolute; top: 50%; left: 5px; width: 4px; height: 56px; margin-top: -28px; border-radius: 3px; background: #b9c2d0; opacity: .7; }
  .inv-resize:hover::after, .inv-resizing .inv-resize::after { background: #1f73d1; opacity: 1; }
  body.inv-resizing, body.inv-resizing * { cursor: ew-resize !important; -webkit-user-select: none; user-select: none; }
}
.inv-pic { -webkit-flex: none; flex: none; width: 30px; height: 30px; -o-object-fit: cover; object-fit: cover; border-radius: 5px; margin-right: .55rem; background: #fff; }
a.inv-nm { color: #2b3445; color: var(--ink); text-decoration: none; }
a.inv-nm:hover { color: #1f73d1; color: var(--accent); text-decoration: underline; }
.inv-add .btn-sm { width: 2.1rem; height: 2.1rem; line-height: 2.1rem; }
.qty-dlg { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 120; background: rgba(10, 20, 35, .45); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.qty-box { background: #fff; background: var(--card); color: #2b3445; color: var(--ink); border-radius: 10px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); padding: 1.2rem 1.4rem 1.1rem; width: 360px; max-width: 92vw; }
.qty-box h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.qty-box p { margin: 0 0 .8rem; color: #7b8698; color: var(--muted); font-size: .88rem; }
.qty-box input { font-size: 1.6rem !important; font-weight: 700; text-align: center; width: 100%; padding: .5rem !important; }
.qty-box .btnrow { margin-top: .9rem; text-align: right; }
.qty-box .btnrow .btn { margin-left: .4rem; }

/* -- item pictures -- */
.item-top { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: flex-start; align-items: flex-start; }
.item-photo { -webkit-flex: 0 0 240px; flex: 0 0 240px; margin: 0 1.4rem .8rem 0; text-align: center; }
.item-photo img { display: block; width: 240px; height: 240px; -o-object-fit: contain; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #e3e8ef; }
.item-photo-none { width: 240px; height: 160px; border: 2px dashed #cfd6e0; border-radius: 8px; color: #9aa4b5; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.item-photo-none .ic { width: 34px; height: 34px; margin-bottom: .3rem; }
.item-photo-form { margin-top: .5rem; }
.item-photo-form label.btn { cursor: pointer; }
.item-facts { -webkit-flex: 1 1 320px; flex: 1 1 320px; min-width: 0; }
td > .inv-pic { width: 34px; height: 34px; vertical-align: middle; }
.p-pic { width: 28px !important; height: 28px !important; }
@media (max-width: 599px) { .item-photo { -webkit-flex-basis: 100%; flex-basis: 100%; margin-right: 0; } .item-photo img, .item-photo-none { width: 100%; } }
html.js-on .item-photo-form .photo-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* -- crew: full-time highlighted, teams under their lead -- */
tr.crew-ft > td { background: #e6f6ec; }
tr.crew-ft > td:first-child { box-shadow: inset 5px 0 0 #12904a; }
tr.crew-ft a b { color: #0e7a3e; }
.crew-ft-tag { font-size: .72rem; background: #12904a !important; color: #fff !important; }
/* operators (client video, Oct 21 2026): a part of their own, purple; a full-time operator keeps his green row + this tag */
.crew-op-tag { font-size: .72rem; background: #6b3fb8 !important; color: #fff !important; }
.ci.ci-op { background: #f1ebfb; color: #6b3fb8; }
/* the person form: "also an operator" means something for Full-time only (hidden otherwise where :has works) */
.crew-also-op { margin: -.4rem 0 .8rem; }
form:has(select[name=employment] option[value=employee]:not(:checked)) .crew-also-op { display: none; }
tr.crew-member > td { font-size: .92rem; }
tr.crew-member > td:first-child { padding-left: 2rem; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) body.app tr.crew-ft > td { background: #133122; } html:not(.theme-light) body.app tr.crew-ft a b { color: #7fd49b; } }
@media screen { html.theme-dark body.app tr.crew-ft > td { background: #133122; } html.theme-dark body.app tr.crew-ft a b { color: #7fd49b; } }

/* suggestions under a search box (app.js data-suggest, client video Oct 28 2026) */
.sg-list { position: absolute; z-index: 1000; margin: 0; padding: .25rem 0; list-style: none; max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; background: var(--card); color: #2b3445; color: var(--ink); border: 1px solid #cfd6e0; border: 1px solid var(--line2); border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); text-align: left; }
.sg-it { padding: .5rem .8rem; cursor: pointer; line-height: 1.3; }
.sg-it b { display: block; font-weight: 600; }
.sg-it small { display: block; color: #697386; color: var(--muted); font-size: .8rem; }
.sg-it.on, .sg-it:hover { background: #e8f1fc; background: var(--soft); }
.sg-it { position: relative; padding-right: 7.5rem; }
.sg-av { position: absolute; right: .8rem; top: .55rem; font-size: .78rem; font-weight: 600; }
.sg-av.av-ok { color: #12904a; } .sg-av.av-short { color: #c53030; color: var(--err); }

/* a back button that only repeats the menu on the left (client video Oct 28 2026: "you have again a button customers"):
   on a computer the menu is there, so only phones and tablets (no menu) show it */
@media (min-width: 1024px) { .btn.side-dup { display: none; } }

/* -- phones: tables become rows that fit the screen (client screenshot Oct 19: "we have to swipe left and right") -- */
.m-only { display: none; }
@media (max-width: 760px) {
  .inv-table, .jobs-table, .p-table, .q-table { min-width: 0 !important; }
  .inv-table, .jobs-table, .p-table, .q-table, .inv-table tbody, .jobs-table tbody, .p-table tbody, .q-table tbody { display: block; width: 100%; }
  .inv-table thead, .jobs-table thead, .p-table thead, .q-table thead { display: none; }
  .inv-table tbody tr, .jobs-table tbody tr { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: .65rem .9rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
  .inv-table td, .jobs-table td { display: block; border: 0 !important; padding: .1rem .7rem .1rem 0 !important; text-align: left !important; background: transparent !important; }
  .m-only { display: inline; }
  /* inventory: line 1 = picture, name, price on the right; line 2 = have · pieces · available · barcode */
  .inv-table td.c-name { -webkit-flex: 1 0 100%; flex: 1 0 100%; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; font-size: 1rem; padding-bottom: .3rem !important; }
  .inv-table td.c-name .inv-name { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; font-size: 1.02rem; }
  .inv-table td.c-name .inv-pic { width: 40px; height: 40px; }
  .inv-table .m-price .tag-sample { font-size: .58rem; padding: .12rem .3rem; margin-left: .25rem; }
  .inv-table td.c-kind { display: none; }
  .inv-table td.c-name .tag { margin: .1rem .3rem .1rem 0; }
  .inv-table .m-price { margin-left: auto; padding-left: .6rem; white-space: nowrap; font-weight: 600; }
  .inv-table td.c-price { display: none; }
  .inv-table td.c-have::before { content: attr(data-label) " "; color: #7b8698; color: var(--muted); font-size: .8rem; }
  .inv-table td.c-bc::before { content: "#"; color: #7b8698; }
  .inv-table td.c-kind small { font-size: .82rem; }
  .inv-table td.c-avail { -webkit-order: 5; order: 5; margin-left: auto; padding-right: 0 !important; }
  .inv-table td:empty { display: none; }
  /* jobs: line 1 = number + event; line 2 = customer · dates · lines · status */
  .jobs-table td.c-no { -webkit-flex: none; flex: none; font-size: 1.05rem; }
  .jobs-table td.c-name { -webkit-flex: 1 1 calc(100% - 4rem); flex: 1 1 calc(100% - 4rem); }
  .jobs-table td.c-cust:empty { display: none; }
  .jobs-table td.c-dates, .jobs-table td.c-cust, .jobs-table td.c-lines { font-size: .88rem; color: #4a5568; color: var(--ink2); }
  .jobs-table td.c-lines::after { content: " lines"; }
  .jobs-table td:last-child { margin-left: auto; padding-right: 0 !important; }
  /* pull sheet: line 1 = qty + item; line 2 = barcode · scanned · Change */
  .p-table tbody tr:not(.line-editor) { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: .5rem .8rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
  .p-table tbody tr:not(.line-editor) > td { display: block; border: 0 !important; padding: .1rem .5rem .1rem 0 !important; }
  .p-table tbody tr:not(.line-editor) > td:nth-child(1) { -webkit-flex: 0 0 2.8rem; flex: 0 0 2.8rem; text-align: left !important; font-size: 1.1rem; }
  .p-table tbody tr:not(.line-editor) > td:nth-child(2) { -webkit-flex: 1 1 calc(100% - 3.3rem); flex: 1 1 calc(100% - 3.3rem); }
  .p-table tbody tr:not(.line-editor) > td:nth-child(3) { padding-left: 2.8rem !important; font-size: .85rem; }
  .p-table tbody tr:not(.line-editor) > td:nth-child(3):empty { display: none; }
  .p-table tbody tr:not(.line-editor) > td:nth-child(4) { font-size: .85rem; }
  .p-table tbody tr:not(.line-editor) > td:nth-child(3):empty + td { padding-left: 2.8rem !important; }
  .p-table tbody tr:not(.line-editor) > td:last-child { margin-left: auto; padding-right: 0 !important; }
  .p-table .p-dept-head, .q-table .q-dept-head { display: block; }
  .p-table .p-dept-head th, .q-table .q-dept-head th { display: block; }
  .q-table .q-dept-head th.num { display: none; }
  /* quote: line 1 = qty + item; line 2 = price × days = total · Change */
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: .5rem .8rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td { display: block; border: 0 !important; padding: .1rem .5rem .1rem 0 !important; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(1) { -webkit-flex: 0 0 2.8rem; flex: 0 0 2.8rem; text-align: left !important; font-size: 1.1rem; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(2) { -webkit-flex: 1 1 calc(100% - 3.3rem); flex: 1 1 calc(100% - 3.3rem); }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(3) { padding-left: 2.8rem !important; font-size: .88rem; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(4):empty { display: none; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(5)::before { content: "= "; color: #7b8698; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:nth-child(5):empty::before { content: ""; }
  .q-table tbody tr:not(.line-editor):not(.q-dept-head) > td:last-child { margin-left: auto; padding-right: 0 !important; }
  .q-totals { margin-right: .9rem; min-width: 0; }
  tr.line-editor, tr.line-editor > td { display: block; }
}

/* -- crew list in sections (Full-time / Freelancers / Operators / Not set yet); a lead's people fold under him (client, Oct 19) -- */
.crew-list { border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); }
.crew-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
.crew-row > span { display: block; padding-right: .7rem; min-width: 0; }
.crew-row .cl-name { -webkit-flex: 1 1 30%; flex: 1 1 30%; display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.crew-row .cl-name > span:last-child { min-width: 0; }
.crew-row .cl-does { -webkit-flex: 1 1 26%; flex: 1 1 26%; }
.crew-row .cl-does .tag { margin: .08rem .1rem .08rem 0; }
.crew-row .cl-phone { -webkit-flex: 0 0 9.5rem; flex: 0 0 9.5rem; white-space: nowrap; }
.crew-row .cl-rate, .crew-row .cl-owed { -webkit-flex: 0 0 6.5rem; flex: 0 0 6.5rem; text-align: right; white-space: nowrap; }
.crew-row .cl-jobs { -webkit-flex: 0 0 3.5rem; flex: 0 0 3.5rem; text-align: right; padding-right: 0; }
.crew-headrow { font-size: .78rem; font-weight: 700; color: #697386; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: .45rem; padding-bottom: .45rem; }
.crew-row.crew-ft { background: #e6f6ec; box-shadow: inset 5px 0 0 #12904a; }
.crew-row.crew-ft a b { color: #0e7a3e; }
.crew-team > summary { cursor: pointer; list-style: none; }
.crew-team > summary::-webkit-details-marker { display: none; }
.crew-team > summary:hover { background: #f4f7fb; background: var(--hover); }
.crew-team > summary.crew-ft:hover { background: #d9f0e2; }
.crew-caret { display: inline-block; width: 1.1rem; margin-right: .2rem; color: #1b5680; color: var(--accent); font-size: .9rem; line-height: 1.5; -webkit-transition: -webkit-transform .15s; transition: transform .15s; }
.crew-team[open] > summary .crew-caret { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.crew-row .indent { margin-right: .3rem; }
.crew-brings { color: #1b5680; color: var(--accent); }
.crew-people { background: #f7f9fc; background: var(--bg); }
.crew-member { padding-left: 2.3rem; font-size: .94rem; }
.crew-gone > summary { cursor: pointer; list-style: none; margin: 0; padding: 1rem 1.2rem; }
.crew-gone > summary::-webkit-details-marker { display: none; }
.crew-sec-employee > .card-head h2 { color: #0e7a3e; }
.crew-sec-operator > .card-head h2 { color: #6b3fb8; }
small.clocked { color: #17803d; color: var(--ok); font-weight: 600; }
@media screen and (prefers-color-scheme: dark) {
  html:not(.theme-light) body.app .crew-row.crew-ft { background: #133122; } html:not(.theme-light) body.app .crew-row.crew-ft a b { color: #7fd49b; }
  html:not(.theme-light) body.app .crew-team > summary.crew-ft:hover { background: #18402b; } html:not(.theme-light) body.app .crew-sec-employee > .card-head h2 { color: #7fd49b; }
  html:not(.theme-light) body.app .crew-sec-operator > .card-head h2 { color: #c4a8f5; } html:not(.theme-light) body.app .ci.ci-op { background: #2a2140; color: #c4a8f5; }
}
@media screen {
  html.theme-dark body.app .crew-row.crew-ft { background: #133122; } html.theme-dark body.app .crew-row.crew-ft a b { color: #7fd49b; }
  html.theme-dark body.app .crew-team > summary.crew-ft:hover { background: #18402b; } html.theme-dark body.app .crew-sec-employee > .card-head h2 { color: #7fd49b; }
  html.theme-dark body.app .crew-sec-operator > .card-head h2 { color: #c4a8f5; } html.theme-dark body.app .ci.ci-op { background: #2a2140; color: #c4a8f5; }
}
@media (max-width: 760px) {
  .crew-headrow { display: none; }
  .crew-row { -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: .65rem .9rem; }
  .crew-row .cl-name { -webkit-flex: 1 0 100%; flex: 1 0 100%; padding-bottom: .25rem; }
  .crew-row .cl-does { -webkit-flex: 1 0 100%; flex: 1 0 100%; padding-bottom: .2rem; }
  .crew-row .cl-does:empty { display: none; }
  .crew-row .cl-phone, .crew-row .cl-rate, .crew-row .cl-owed, .crew-row .cl-jobs { -webkit-flex: 0 0 auto; flex: 0 0 auto; text-align: left; font-size: .9rem; }
  .crew-row .cl-rate:empty, .crew-row .cl-owed:empty { display: none; }
  .crew-member { padding-left: 1.6rem; }
}

/* -- the job's Crew tab: offers (client voice notes, Oct 19 2026). One row per person, on every screen size: line 1 =
   who · role · day; line 2 = where it stands, his message, the next step · pay · Change. (A table this wide did not fit
   the job page's main column.) -- */
.crew-bar { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding-top: .7rem; padding-bottom: .6rem; color: #4a5568; color: var(--ink2); font-size: .92rem; }
.crew-bar .grow { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; margin-right: .6rem; }
.crew-table, .crew-table tbody { display: block; width: 100%; }
.crew-table thead { display: none; }
.crew-table tbody tr { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: .7rem 1.35rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
.crew-table tbody tr > td { display: block; border: 0 !important; padding: .1rem .9rem .1rem 0 !important; background: transparent !important; box-shadow: none !important; min-width: 0; }
.crew-table td.cw-who { -webkit-flex: 0 1 14rem; flex: 0 1 14rem; }
.crew-table td.cw-role { -webkit-flex: 0 1 auto; flex: 0 1 auto; font-weight: 600; }
.crew-table td.cw-day { -webkit-flex: 1 1 auto; flex: 1 1 auto; }
.crew-table td.cw-pay { -webkit-order: 11; order: 11; -webkit-flex: none; flex: none; text-align: right; -webkit-align-self: flex-start; align-self: flex-start; padding-top: .4rem !important; }
.crew-table td.cw-paid { -webkit-order: 12; order: 12; -webkit-flex: none; flex: none; -webkit-align-self: flex-start; align-self: flex-start; padding-top: .4rem !important; }
.crew-table td.cw-role:empty, .crew-table td.cw-paid:empty, .crew-table td.cw-edit:empty { display: none; }
.crew-table td.cw-st { -webkit-order: 10; order: 10; -webkit-flex: 1 1 20rem; flex: 1 1 20rem; padding-top: .4rem !important; }
.crew-table td.cw-edit { -webkit-order: 13; order: 13; -webkit-flex: none; flex: none; margin-left: auto; padding-right: 0 !important; -webkit-align-self: flex-start; align-self: flex-start; padding-top: .4rem !important; max-width: 100%; }
.crew-table td.cw-edit details[open] { text-align: left; }
.crew-table tbody tr.crew-member { padding-left: 2.6rem; }
.crew-table tbody tr.crew-member > td { font-size: .94rem; }
.crew-table tbody tr.crew-ft { background: #e6f6ec; box-shadow: inset 5px 0 0 #12904a; }
.cw-state small { color: #697386; color: var(--muted); }
.cw-acts { margin-top: .35rem; }
.cw-unsent { color: #9a6400; color: var(--warn); }
.cw-hint { display: block; margin-top: .25rem; color: #697386; color: var(--muted); }
tr.crew-off > td { color: #7b8698; color: var(--muted); }
tr.crew-off .cw-who a b { color: #7b8698; color: var(--muted); font-weight: 600; }
html.js-on .wa-mark { display: none; }
.crew-notes { padding-top: .7rem; padding-bottom: .9rem; border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); }
.crew-notes .field { margin-bottom: .5rem; }
.crew-view .card-foot .btnrow { margin-top: .3rem; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) body.app .crew-table tbody tr.crew-ft { background: #133122; } }
@media screen { html.theme-dark body.app .crew-table tbody tr.crew-ft { background: #133122; } }
@media (max-width: 760px) {
  .crew-table tbody tr { padding: .65rem .9rem; }
  .crew-table td.cw-who { -webkit-flex: 1 0 100%; flex: 1 0 100%; }
  .crew-table td.cw-role, .crew-table td.cw-day, .crew-table td.cw-pay { font-size: .9rem; color: #4a5568; color: var(--ink2); text-align: left !important; }
  .crew-table td.cw-st { -webkit-flex: 1 0 100%; flex: 1 0 100%; }
  .crew-table td.cw-edit details[open] .line-form { min-width: 0; }
  .crew-table tbody tr.crew-member { padding-left: 1.8rem; }
  .crew-bar .grow { -webkit-flex-basis: 100%; flex-basis: 100%; margin: 0 0 .4rem; }
}

/* -- the panel next to a job: Gear | Crew. The crew side needs /crewpanel.js (it puts .cp-on on the panel): without
   JavaScript it stays hidden, and on the Crew tab (crew only) the whole panel does. -- */
.inv-panel .pnl-switch, .inv-panel .pnl-crew, .inv-panel.crew-only, .cp-form { display: none; }
.inv-panel.cp-on.crew-only, .inv-panel.cp-on.side-crew .pnl-crew { display: block; }
.inv-panel.cp-on.side-crew > .inv-wrap { display: none; }
.inv-panel.cp-on .pnl-switch { display: -webkit-flex; display: flex; margin: 0; padding: 0 .5rem; }
.pnl-switch button { -webkit-flex: 1 1 0; flex: 1 1 0; -webkit-justify-content: center; justify-content: center; padding: .8rem .6rem .7rem; }
.cp-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 44px; padding: .25rem .7rem .25rem 2.2rem; cursor: grab; font-size: .92rem; }
.cp-row.tr-d2 { padding-left: 3.5rem; }
.inv-tree summary.cp-row { padding: .25rem .7rem .25rem 1.05rem; font-weight: 400; }
.cp-row:hover { background: #f5f8fc; background: var(--hover); }
.cp-row.dragging { opacity: .45; }
.cp-row .tr-ic-item { margin-right: .5rem; }
.cp-ft .tr-ic-item { color: #12904a; }
.cp-nm { -webkit-flex: 1; flex: 1; min-width: 0; margin-right: .4rem; line-height: 1.3; }
.cp-nm a { color: #2b3445; color: var(--ink); text-decoration: none; font-weight: 600; }
.cp-nm a:hover { color: #1f73d1; color: var(--accent); text-decoration: underline; }
.cp-nm small { display: block; color: #697386; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-nm small.cp-brings { display: inline; font-weight: 700; }
.cp-row .av { -webkit-flex: none; flex: none; font-size: .72rem; padding: .08rem .4rem; margin-right: .4rem; }
.av-on { color: #1f62b5; background: #e7f0fc; }
.cp-add { -webkit-flex: none; flex: none; padding: 0; width: 2.1rem; height: 2.1rem; line-height: 2.1rem; min-height: 0; font-size: 1.15rem; border-radius: 50%; text-align: center; }
.cp-sec-employee > summary .tr-ic { background: #12904a; }
.cp-sec-operator > summary .tr-ic { background: #6b3fb8; }
.cp-sec-unknown > summary .tr-ic { background: #b7791f; }
.cp-teamli { list-style: none; }
.job-wrap.has-inv .inv-panel.cp-on .inv-tree { max-height: calc(100vh - 300px); }
/* the box after a drop or + (the inventory's "How many?" box, with fields) */
.cp-box { width: 440px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cp-box input:not([type=checkbox]) { font-size: 1rem !important; font-weight: 400; text-align: left; padding: .55rem .75rem !important; }
.cp-box .check input { width: 20px; padding: 0 !important; font-size: 1rem !important; }
.cp-box .field { margin-bottom: .7rem; }
.cp-box .cp-day { margin: .15rem 0; }
.cp-box .cp-day small { color: #697386; color: var(--muted); }
.cp-box .cp-day.cp-busy .cp-note { color: #9a6400; color: var(--warn); font-weight: 600; }
.cp-box .cp-team-names { display: block; margin: -.25rem 0 .3rem 2rem; color: #697386; color: var(--muted); }
.cp-box p.cp-warn, .cp-box p.cp-err { margin: .5rem 0 0; font-weight: 600; font-size: .9rem; }
.cp-box p.cp-warn { color: #9a6400; color: var(--warn); }
.cp-box p.cp-err { color: #c53030; color: var(--err); }
.cp-box p:empty { display: none; }
.cp-toast a { color: inherit; font-weight: 700; }
/* the row just put on the job (the Crew tab, after the panel added it) */
@-webkit-keyframes cpnew { from { background-color: #ffe39a; } }
@keyframes cpnew { from { background-color: #ffe39a; } }
.crew-table tbody tr.cp-new { -webkit-animation: cpnew 3s ease-out; animation: cpnew 3s ease-out; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) body.app .av-on { background: #16283d; color: #8cbcf2; } }
@media screen { html.theme-dark body.app .av-on { background: #16283d; color: #8cbcf2; } }

/* -- the time clock: crew open their link on the phone; one big button -- */
body.site .main.clock { max-width: 460px; margin: 0 auto; padding: 1.2rem 1rem 2rem; padding-top: calc(1.2rem + env(safe-area-inset-top)); }
.clock-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(20, 40, 70, .1); padding: 1.4rem 1.2rem; text-align: center; }
.clock-logo { display: block; height: 54px; width: auto; margin: 0 auto .8rem; }
.clock-card h1 { margin: 0 0 .2rem; font-size: 1.6rem; }
.clock-date { margin: 0 0 1rem; color: #697386; }
.clock-msg { background: #e3f5ea; color: #17803d; border-radius: 8px; padding: .6rem .8rem; font-weight: 600; }
.clock-on { background: #e6f6ec; border: 2px solid #12904a; border-radius: 10px; padding: .8rem; margin: 0 0 1rem; font-size: 1.05rem; }
.clock-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: #12904a; margin-right: .3rem; vertical-align: middle; -webkit-animation: clockpulse 1.6s infinite; animation: clockpulse 1.6s infinite; }
@-webkit-keyframes clockpulse { 50% { opacity: .35; } }
@keyframes clockpulse { 50% { opacity: .35; } }
.clock-btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 1.25rem 1rem; font-size: 1.5rem; font-weight: 800; color: #fff; cursor: pointer; -webkit-appearance: none; margin-top: .6rem; }
.clock-btn.clock-in { background: #12904a; }
.clock-btn.clock-out { background: #c0392b; }
.clock-btn:active { opacity: .85; }
.clock-jobs { text-align: left; margin: 0 0 .4rem; }
/* one card per job he accepted for today, and Warehouse for full-time (Oct 22 2026), each with its own Clock in */
.clock-pick { margin: 0 0 .75rem; padding: .75rem; border: 1px solid #d5dce6; border-radius: 12px; }
.clock-pick-txt { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.35; }
.clock-pick .clock-btn { padding: 1rem; font-size: 1.3rem; }
.clock-job { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: .7rem .75rem; border: 1px solid #d5dce6; border-radius: 9px; margin-bottom: .45rem; cursor: pointer; }
.clock-job input[type=radio] { width: 1.25rem; height: 1.25rem; margin: .1rem .65rem 0 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.clock-job select { width: 100%; margin-top: .35rem; }
.clock-job > span { -webkit-flex: 1; flex: 1; min-width: 0; }
.clock-card .field { text-align: left; }
.clock-week { margin: 1.1rem 0 .5rem; font-size: 1.05rem; }
.clock-recent { list-style: none; margin: 0; padding: 0; text-align: left; font-size: .92rem; border-top: 1px solid #e3e8ef; }
.clock-recent li { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid #e3e8ef; }
.clock-recent li span { margin-right: .8rem; }
.clock-recent li small { margin-left: auto; color: #697386; }
.clock-foot { margin: 1rem 0 0; font-size: .85rem; color: #697386; }
/* the office's week of hours */
.time-grid td.num, .time-grid th.num { text-align: center; }
.time-grid th.g-today { color: #1b5680; }
.list > li.pad, .list > li.time-entry { padding-left: 1.35rem; padding-right: 1.35rem; }
.time-line { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: flex-start; align-items: flex-start; }
.time-line .grow { -webkit-flex: 1; flex: 1; min-width: 0; }
.time-line > details { margin-left: .6rem; text-align: right; }
.time-line > details[open] { -webkit-flex: 0 0 100%; flex: 0 0 100%; text-align: left; }
.time-entry .tree-form { margin-top: .5rem; }
.time-long { background: #fff4d6; }

/* -- the time clock: sign in, ask for hours, the person's login (client video Oct 19) -- */
.clock-err { background: #fdecec; color: #b42318; border-radius: 8px; padding: .6rem .8rem; font-weight: 600; text-align: left; }
.clock-err a { color: inherit; }
.clock-login, .clock-ask form { text-align: left; }
.clock-login input, .clock-ask input, .clock-ask select { width: 100%; font-size: 1.05rem; min-height: 46px; }
.clock-ask .row2 > .field { min-width: 0; }
.clock-more { margin: 1rem 0 .2rem; }
.clock-more .btn { width: 100%; }
.clock-recent li .clock-fix { margin-left: auto; font-weight: 700; font-size: .9rem; }
.clock-recent li .clock-job-no { -webkit-flex: 0 0 100%; flex: 0 0 100%; margin-left: 0; }
.clock-asks { margin-bottom: .8rem; }
.clock-asks li .tag { margin-left: auto; font-size: .7rem; }
.clock-asks li small { -webkit-flex: 0 0 100%; flex: 0 0 100%; margin-left: 0; }
.clock-out-form { margin-top: .6rem; }
.linkbtn { background: none; border: 0; padding: .3rem; color: #697386; text-decoration: underline; font-size: .88rem; cursor: pointer; -webkit-appearance: none; }
.clock-login-box { border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); padding-top: .8rem; padding-bottom: .8rem; }
.clock-login-box h3 { margin: 0 0 .4rem; font-size: 1rem; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.clock-login-box h3 .ic { width: 18px; height: 18px; margin-right: .4rem; }
.clock-login-box details > summary { list-style: none; display: inline-block; }
.clock-login-box details > summary::-webkit-details-marker { display: none; }
.clock-login-box .tree-form { margin-top: .6rem; }
.ask-card { border-left: 4px solid #e0a100; }
.time-ask .time-line form { margin-left: .6rem; white-space: nowrap; }
@media (max-width: 760px) { .time-ask .time-line form { margin: .5rem 0 0; } }

/* -- the crew app (/c/, routes/portal.js): new offers, coming up, one job. The time clock's look; phone first (375 px),
      big buttons, no sideways scrolling: long words wrap and the tags may wrap too -- */
body.site .main.clock .clock-card + .clock-card, body.site .main.clock .cp-foot { margin-top: 1rem; }
.cp-h { margin: 1.2rem 0 .55rem; font-size: 1.15rem; text-align: left; }
.cp-h small { color: #697386; font-weight: 600; }
.cp-card > .cp-h:first-child, .cp-card > .cp-past > summary .cp-h { margin-top: 0; }
.cp-notices, .cp-offer, .cp-list, .cp-kv, .cp-crew, .cp-say, .cp-push { word-wrap: break-word; overflow-wrap: break-word; }
.cp-list .tag, .cp-status .tag, .cp-offer .tag { white-space: normal; }
.cp-empty { color: #697386; text-align: left; margin: .2rem 0; }
.cp-notices { background: #eaf2fb; border-radius: 10px; padding: .2rem .85rem .5rem; margin: 0 0 .6rem; text-align: left; }
.cp-notices .cp-h { margin-top: .6rem; }
.cp-notices ul { list-style: none; margin: 0; padding: 0; }
.cp-notices li { padding: .45rem 0; border-bottom: 1px solid #d3e3f4; }
.cp-notices li:last-child { border-bottom: 0; }
.cp-notices li a { font-weight: 600; }
.cp-notices li small { display: block; color: #697386; }
.cp-notices form { text-align: right; }
.cp-offer { border: 2px solid #e0a100; border-radius: 12px; background: #fffaf0; padding: .85rem; margin: 0 0 .9rem; text-align: left; }
.cp-what { display: block; color: inherit; text-decoration: none; }
.cp-what > b { font-size: 1.1rem; }
.cp-line { display: block; margin-top: .25rem; }
.cp-more { display: block; margin-top: .35rem; color: #1b5680; font-weight: 700; font-size: .92rem; }
.cp-answer { margin-top: .6rem; text-align: left; }
.cp-answer textarea { display: block; width: 100%; min-height: 46px; font-size: 1rem; resize: vertical; }
.cp-btns { display: -webkit-flex; display: flex; margin: 0 -.25rem; }
.cp-btns .clock-btn { -webkit-flex: 1 1 0%; flex: 1 1 0%; width: auto; min-width: 0; margin: .55rem .25rem 0; padding: 1rem .3rem; font-size: 1.08rem; line-height: 1.2; }
.clock-btn.cp-yes { background: #12904a; }
.clock-btn.cp-no { background: #fff; color: #b42318; border: 2px solid #e4a9a4; }
.cp-list { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid #e3e8ef; }
.cp-list li { border-bottom: 1px solid #e3e8ef; }
.cp-list a { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: .7rem 0; color: inherit; text-decoration: none; }
.cp-day { -webkit-flex: 0 0 5.4rem; flex: 0 0 5.4rem; font-weight: 700; font-size: .92rem; padding-right: .4rem; }
.cp-day small { font-weight: 600; color: #697386; }
.cp-job { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.cp-job small { color: #697386; }
.cp-job .tag { margin-top: .3rem; }
.cp-list .chev { -webkit-flex: 0 0 auto; flex: 0 0 auto; color: #7b8698; font-size: 1.3rem; line-height: 1; margin-left: .4rem; }
.cp-past > summary { list-style: none; cursor: pointer; text-align: left; }
.cp-past > summary::-webkit-details-marker { display: none; }
.cp-past > summary .cp-h { display: inline-block; margin: 0; }
.cp-past > summary .cp-h::after { content: " ›"; color: #7b8698; }
.cp-past[open] > summary { margin-bottom: .55rem; }
.cp-push { text-align: left; }
.cp-push .push-ok { color: #17803d; }
.cp-push .push-err { color: #b42318; }
.cp-push .push-device { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.cp-push .push-device .grow { -webkit-flex: 1; flex: 1; min-width: 0; }
.cp-foot { text-align: center; }
.cp-jobcard { text-align: left; }
.cp-jobcard h1, .cp-jobcard .clock-date { text-align: center; }
.cp-back { margin: 0 0 .4rem; font-weight: 700; }
.cp-status { text-align: center; margin: 0 0 .8rem; }
.cp-kv { margin: 0 0 .6rem; }
.cp-kv dt { font-size: .8rem; font-weight: 700; color: #697386; text-transform: uppercase; letter-spacing: .03em; margin-top: .7rem; }
.cp-kv dd { margin: .15rem 0 0; font-size: 1.02rem; }
.cp-notes { white-space: pre-line; }
.cp-say { font-weight: 600; margin: .8rem 0 0; }
.cp-crew { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3e8ef; }
.cp-crew li { padding: .5rem 0; border-bottom: 1px solid #e3e8ef; }

/* -- Notes and files: the card at the top of a job, on every view (client videos Oct 20 2026). The two buttons are
      <details>: the one opened drops under the heading, full width (no JavaScript needed) -- */
.nf-head { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.nf-card .nf-head { margin-bottom: .7rem; }
.nf-head > h2, .nf-none { -webkit-flex: 0 1 auto; flex: 0 1 auto; margin-right: .75rem; }
.nf-none { color: #697386; color: var(--muted); }
.nf-empty { padding-top: .75rem; padding-bottom: .75rem; }
.nf-card.nf-empty .nf-head { margin: 0; }
/* the two buttons stay together (right of the title, or on their own line); the one opened takes the whole width */
.nf-btns { -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: flex-end; justify-content: flex-end; }
.nf-head:has(details[open]) > .nf-btns { -webkit-flex-basis: 100%; flex-basis: 100%; }
.nf-pop { margin: .2rem 0 .2rem .5rem; }
.nf-pop > summary { list-style: none; cursor: pointer; }
.nf-pop > summary::-webkit-details-marker { display: none; }
.nf-pop[open] { -webkit-order: 5; order: 5; -webkit-flex: 0 0 100%; flex: 0 0 100%; margin: .7rem 0 0; }
.nf-pop[open] > summary { background: #e8f1fc; background: var(--soft); }
.nf-form { margin-top: .55rem; padding: .9rem 1rem .5rem; border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; background: #f5f8fc; background: var(--hover); text-align: left; font-size: .95rem; }
.nf-form textarea { width: 100%; }
.nf-form input[type=file] { max-width: 100%; }
.nf-form .btnrow { margin-top: .5rem; }
.nf-cols { display: -webkit-flex; display: flex; margin: 0 -.7rem; }
.nf-cols > div { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; padding: 0 .7rem; }
.nf-cols > div + div { border-left: 1px solid #e3e8ef; border-left: 1px solid var(--line); }
.nf-note + .nf-note { margin-top: .75rem; }
.nf-note .cap small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.nf-note p { margin: .15rem 0 0; white-space: pre-line; word-wrap: break-word; overflow-wrap: break-word; }
.nf-files > .cap { display: block; margin-bottom: .4rem; }
.nf-tiles { list-style: none; margin: 0; padding: 0; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.nf-tile { margin: 0 .55rem .55rem 0; max-width: 100%; }
.nf-photo { width: 78px; }
.nf-pic { display: block; width: 78px; height: 78px; border-radius: 6px; overflow: hidden; background: #f5f8fc; background: var(--hover); border: 1px solid #e3e8ef; border: 1px solid var(--line); }
.nf-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-noimg { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; height: 100%; color: #697386; color: var(--muted); padding: 0 .25rem; }
.nf-noimg small { display: block; max-width: 100%; font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-chip { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 48px; max-width: 17rem; padding: .4rem .7rem .4rem .5rem; border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; background: #fff; background: var(--card); color: #2b3445; color: var(--ink); text-decoration: none; }
.nf-chip:hover { border-color: #1f73d1; border-color: var(--accent); }
.nf-chip .ic { color: #c53030; color: var(--err); margin-right: .45rem; }
.nf-nm { min-width: 0; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-nm small { display: block; font-weight: 400; font-size: .75rem; color: #697386; color: var(--muted); }
.nf-foot { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin-top: .15rem; }
.nf-acts { display: -webkit-flex; display: flex; margin-left: auto; }
.nf-btn { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #697386; color: var(--muted); cursor: pointer; -webkit-appearance: none; }
.nf-btn .ic { width: 17px; height: 17px; }
button.nf-btn:hover { background: #f5f8fc; background: var(--hover); color: #2b3445; color: var(--ink); }
.nf-btn.on { color: #1f73d1; color: var(--accent); background: #e8f1fc; background: var(--soft); }
button.nf-btn.nf-x:hover { color: #c53030; color: var(--err); }
.nf-office { font-size: .64rem; padding: .05rem .35rem; }
@media (max-width: 760px) {
  .nf-cols { display: block; }
  .nf-cols > div + div { border-left: 0; margin-top: .9rem; }
  .nf-btns { -webkit-justify-content: flex-start; justify-content: flex-start; }
  .nf-pop { margin: .3rem .5rem .1rem 0; }
  .nf-chip { max-width: 100%; }
}
/* the quote's Hide / Show and the "Hidden from the quote" list (jobs.js quoteBtn, client voice note Oct 27 2026) */
.q-acts { white-space: nowrap; text-align: right; }
/* the quote as an estimate (jobs.js quoteView, client videos Oct 28 2026): the number and the price typed on the line,
   ⋯ on each line (insert above / below, copy, move, change, delete), the typing row, the Order switch, heading lines */
.q-acts .q-menu { display: inline-block; position: relative; vertical-align: middle; }
.q-menu > summary { list-style: none; min-width: 2.4em; font-weight: 700; letter-spacing: .05em; }
.q-menu > summary::-webkit-details-marker { display: none; }
.q-menu > summary::marker { content: ''; }
.q-menu[open] > summary { background: #e8f1fc; background: var(--soft); }
.q-menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 15rem; padding: .3rem 0; text-align: left; white-space: normal; background: #fff; background: var(--card); border: 1px solid #cfd6e0; border: 1px solid var(--line2); border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); }
.q-menu-pop form { margin: 0; }
.q-mi { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; padding: .55rem .9rem; border: 0; background: transparent; color: #2b3445; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.q-mi:hover, .q-mi:focus { background: #f5f8fc; background: var(--hover); }
.q-mi .ic { width: 16px; height: 16px; margin-right: .6rem; color: #697386; color: var(--muted); }
.q-mi .q-arrow { display: inline-block; width: 16px; margin-right: .6rem; text-align: center; color: #697386; color: var(--muted); }
.q-mi-del, .q-mi-del .ic { color: #c53030; color: var(--err); }
.q-order { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: .35rem; padding: .6rem 1rem 0; font-size: .88rem; color: #697386; color: var(--muted); }
.q-order form.inline { margin: 0; }
.q-order .btn.on { background: #e8f1fc; background: var(--soft); color: #1f73d1; color: var(--accent); border-color: #1f73d1; border-color: var(--accent); }
tr.q-head td { padding-top: .8rem; }
tr.q-head b { font-size: 1.02rem; }
.q-ins td { background: #f2f8ff; }
.q-ins-form { padding: .4rem 0; }
.q-ins-cap { display: block; font-weight: 600; margin-bottom: .45rem; }
.q-ins-cap .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; color: #1f73d1; color: var(--accent); }
.q-ins-row { display: -webkit-flex; display: flex; gap: .5rem; margin-bottom: .55rem; }
/* the forms rule for every input (app.css, width 100%) is more specific than a plain class: name the input type too */
.q-ins-row input.add-qty:not([type=checkbox]):not([type=radio]) { -webkit-flex: none; flex: none; width: 4.5em; }
.q-ins-row input[name=what]:not([type=checkbox]):not([type=radio]) { -webkit-flex: 1 1 12rem; flex: 1 1 12rem; width: auto; min-width: 0; }
.q-ins-row input.q-ins-price:not([type=checkbox]):not([type=radio]) { -webkit-flex: none; flex: none; width: 8.5em; }
.q-ins .hint { margin: .4rem 0 0; }
.qty-form.q-price-form input.qty-in:not([type=checkbox]):not([type=radio]) { width: 5.2em; }
.q-cur { color: #697386; color: var(--muted); margin-right: .1rem; }
.q-pr { white-space: nowrap; }
.q-unit { display: block; }
html.theme-dark .q-ins td { background: #13253b; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .q-ins td { background: #13253b; } }
@media (max-width: 760px) { .q-menu-pop { max-width: calc(100vw - 32px); } .q-ins-row { -webkit-flex-wrap: wrap; flex-wrap: wrap; } }
.q-acts form.inline { margin: 0 .3rem 0 0; }
.q-acts .btn .ic, .inv-qhide .btn .ic { width: 16px; height: 16px; margin-right: .3rem; }
.btn.q-hide { color: #697386; color: var(--muted); }
.btn.q-hide:hover { color: #c53030; color: var(--err); }
.q-hidden { margin: 1rem 0 .5rem; border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; background: #f5f8fc; background: var(--hover); }
.q-hidden > summary { list-style: none; cursor: pointer; padding: .7rem .9rem; font-weight: 600; }
.q-hidden > summary::-webkit-details-marker { display: none; }
.q-hidden > summary::marker { content: ''; }
.q-hidden > summary .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: .45rem; color: #697386; color: var(--muted); }
.q-hidden > summary small { font-weight: 400; color: #697386; color: var(--muted); margin-left: .35rem; }
.q-hidden[open] > summary { border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
.q-hidden .table { margin: 0; }
.q-hidden .table td { padding-top: .45rem; padding-bottom: .45rem; }
.q-hidden .num { width: 3.5em; }
.inv-qhide { margin-left: .5rem; }
.pr-hide .check { margin: 0; white-space: nowrap; }
@media print { .q-hidden, .q-acts form { display: none; } }
/* the demo (src/demo.js): a slim bar on every app page */
.demo-bar { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .55rem .9rem; border-radius: 6px; background: #fbf3dc; color: #5c4300; border: 1px solid #ecd9a3; font-size: .9rem; }
.demo-bar .ic { width: 18px; height: 18px; -webkit-flex: none; flex: none; color: #a9843a; }
.demo-bar a { color: #7d6020; font-weight: 600; }
html.theme-dark .demo-bar { background: #2e2716; color: #f1e2b0; border-color: #5a4a22; } html.theme-dark .demo-bar a { color: #e3ca80; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .demo-bar { background: #2e2716; color: #f1e2b0; border-color: #5a4a22; } html:not(.theme-light) .demo-bar a { color: #e3ca80; } }
.pick-crew .pick-ic { background: #e6f6ec; color: #12733b; }

/* the Package maker (Oct 29 2026): a package's choices on its page, Choose on a job's Packages folder; Close all */
.inv-row.inv-pkg { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.inv-pkg .pk-choose { margin-left: .35rem; }
.inv-pkg .pk-choose > summary { list-style: none; }
.inv-pkg .pk-choose > summary::-webkit-details-marker { display: none; }
.inv-pkg .pk-choose > summary::marker { content: ''; }
.inv-pkg .pk-choose > summary .ic { width: 14px; height: 14px; margin-right: .25rem; }
.inv-pkg .pk-choose[open] { -webkit-order: 9; order: 9; -webkit-flex: 0 0 100%; flex: 0 0 100%; margin: .45rem 0 .35rem; cursor: default; }
.pk-form { padding: .6rem .7rem; border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; background: #f5f8fc; background: var(--hover); }
.pk-row { display: block; margin: 0 0 .5rem; }
.pk-row > span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #697386; color: var(--muted); margin-bottom: .2rem; }
.pk-row select:not([multiple]), .pk-row input:not([type=checkbox]):not([type=radio]) { min-height: 38px; padding: .35rem .6rem; }
.pk-row input[name=qty]:not([type=checkbox]):not([type=radio]) { width: 6em; }
.pk-maker { margin: .2rem 0 .3rem 2.4rem; font-size: .88rem; }
.pk-maker .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: .25rem; }
.pk-maker small { color: #697386; color: var(--muted); }
.inv-closeall { margin-left: .4rem; padding: .1rem .5rem; min-height: 0; font-size: .78rem; vertical-align: middle; }
.inv-closeall .ic { width: 13px; height: 13px; margin-right: .2rem; }
tr.pk-choice-head th { text-align: left; font-weight: 700; padding-top: .8rem; text-transform: none; letter-spacing: 0; font-size: .95rem; }
tr.pk-choice-head th .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: .35rem; color: #1f73d1; color: var(--accent); }
tr.pk-choice-head small { font-weight: 400; color: #697386; color: var(--muted); margin-left: .35rem; }

/* a venue's Documents tab (routes/venuedocs.js, client video Oct 26 2026): one row a document */
.vd-tabs { margin-bottom: .9rem; }
.vd-tabs small { margin-left: .4rem; font-size: .78rem; font-weight: 600; color: #7b8698; color: var(--muted); }
.vd-card .nf-head { margin-bottom: .4rem; }
.vd-card .nf-head h2 small { font-weight: 400; }
.vd-list { list-style: none; margin: 0; padding: 0; }
.vd-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: .55rem 0; border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); }
.vd-row:first-child { border-top: 0; }
.vd-ic { -webkit-flex: none; flex: none; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; width: 44px; height: 44px; margin-right: .75rem; border-radius: 6px; overflow: hidden; background: #f5f8fc; background: var(--hover); border: 1px solid #e3e8ef; border: 1px solid var(--line); color: #1f73d1; color: var(--accent); }
.vd-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd-pdf .vd-ic { color: #c53030; color: var(--err); }
.vd-file .vd-ic { color: #6b4fbb; }
.vd-main { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.vd-nm { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-main small { display: block; color: #697386; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-count { white-space: nowrap; }
.vd-count .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: .2rem; }
html.theme-dark .vd-file .vd-ic { color: #b9a6f2; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .vd-file .vd-ic { color: #b9a6f2; } }
/* the Crew tab's "Who": tick one or more (client video Oct 20 2026) */
.cw-pick-box { max-height: 14em; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .2rem .75rem .35rem; border: 1px solid #cfd6e0; border: 1px solid var(--line2); border-radius: 6px; background: #fff; background: var(--field); }
.cw-pick-sec .cap { display: block; margin: .45rem 0 .1rem; }
.cw-pick { margin: .1rem 0; min-height: 28px; }
.cw-pick small { color: #697386; color: var(--muted); }
.cw-pick-sub { padding-left: 1.7rem; }
.cw-pick-ft b { color: #12904a; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) body.app .cw-pick-ft b { color: #7fd49b; } }
@media screen { html.theme-dark body.app .cw-pick-ft b { color: #7fd49b; } }
/* the crew panel: tick several people (/crewpanel.js adds the boxes and the bar under the search) */
.cp-row input.cp-pick { -webkit-flex: none; flex: none; width: 18px; height: 18px; margin: 0 .5rem 0 0; cursor: pointer; accent-color: #1f73d1; }
.cp-row.cp-sel { background: #e8f1fc; background: var(--soft); }
.cp-picked { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: 0 1.1rem .6rem; padding: .45rem .6rem .45rem .8rem; border-radius: 6px; background: #e8f1fc; background: var(--soft); font-size: .88rem; }
.cp-picked-txt { -webkit-flex: 1 1 9rem; flex: 1 1 9rem; min-width: 0; font-weight: 600; margin: .15rem .5rem .15rem 0; }
.cp-picked-btns { white-space: nowrap; }
.cp-drag-tag { position: absolute; top: -300px; left: 0; padding: .35rem .75rem; border-radius: 14px; background: #1b5680; color: #fff; font: 600 13px/1.2 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; white-space: nowrap; }

/* -- A list from Vectorworks into a pull sheet (client video Oct 20 2026): the tools row under a job's tabs, the
      "waits for you to check" line above the pull sheet, the start page, the review page (a table on a computer;
      one block per line on a phone), the remembered names -- */
.job-tools { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding-top: .75rem; padding-bottom: .15rem; }
.job-tools > * { margin: 0 .5rem .5rem 0; }
.vw-wait { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: .35rem 1.35rem .65rem; padding: .55rem .8rem; border-radius: 6px; background: #fff4d6; background: var(--warn-bg); color: #2b3445; color: var(--ink); }
.vw-wait-txt { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: 1 1 16rem; flex: 1 1 16rem; min-width: 0; margin: .15rem .6rem .15rem 0; font-weight: 600; }
.vw-wait-txt .ic { -webkit-flex: none; flex: none; color: #9a6400; color: var(--warn); margin-right: .5rem; }
.vw-wait-txt small { font-weight: 400; color: #4a5568; color: var(--ink2); }
.vw-wait-btns { white-space: nowrap; }
.vw-wait-btns > * + * { margin-left: .4rem; }
.add-vw { margin: .2rem 0 .6rem; }
.vw-how { margin: 0 0 1rem; padding-left: 1.3rem; }
.vw-start textarea { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; }
.vw-start input[type=file] { max-width: 100%; }
.vw-intro { margin-top: 1rem; }
.vw-sum { margin-top: .2rem; }
.vw-sheets { margin-bottom: 0; }
.vw-table { width: 100%; }
.vw-table td { vertical-align: top; padding-top: .6rem; padding-bottom: .6rem; }
.vw-table th.vw-tick, .vw-table td.vw-tick { width: 2.2rem; padding-right: 0; }
.vw-table td.vw-tick input { width: 20px; height: 20px; margin: .1rem 0 0; cursor: pointer; accent-color: #1f73d1; }
.vw-table .vw-name { min-width: 12rem; word-wrap: break-word; overflow-wrap: break-word; }
.vw-table .vw-name small { display: block; margin-top: .1rem; color: #697386; color: var(--muted); font-size: .8rem; }
.vw-table .vw-drawn, .vw-table .vw-have { white-space: nowrap; }
.vw-table .vw-have { color: #4a5568; color: var(--ink2); }
.vw-table tr input.vw-add { width: 4.6rem; text-align: center; }
.vw-table .vw-item { width: 19rem; min-width: 14rem; }
.vw-table tr .vw-item select, .vw-table tr .vw-item input.vw-typed { display: block; width: 100%; max-width: 22rem; }
.vw-table tr .vw-item input.vw-typed { margin-top: .35rem; font-size: .9rem; }
.vw-js .vw-table tr .vw-item input.vw-typed.vw-hide { display: none; }   /* /vwreview.js: shown for "Other: type it below" */
.vw-table .vw-item .tag, .vw-table .vw-item .vw-new { display: inline-block; margin-top: .35rem; margin-right: .4rem; }
.vw-table .vw-new { font-size: .85rem; }
.vw-table .vw-skip { white-space: nowrap; font-size: .85rem; color: #4a5568; color: var(--ink2); }
.vw-table tr.vw-group th { padding: .7rem 1rem .5rem; text-align: left; background: #f5f8fc; background: var(--hover); font-size: .95rem; text-transform: none; letter-spacing: 0; color: #2b3445; color: var(--ink); }
.vw-table tr.vw-group th small { font-weight: 400; color: #697386; color: var(--muted); }
.vw-table .vw-help { display: block; font-weight: 400; font-size: .82rem; color: #697386; color: var(--muted); margin-top: .1rem; }
.vw-table tr.vw-row.vw-on td.vw-tick { box-shadow: inset 3px 0 0 #1f73d1; box-shadow: inset 3px 0 0 var(--accent); }
.vw-b-rem { color: #1f62b5; color: var(--info); background: #e7f0fc; background: var(--info-bg); }
.vw-skipped { margin: .8rem 0 .4rem; }
.vw-skipped > summary { cursor: pointer; font-weight: 600; color: #4a5568; color: var(--ink2); }
.vw-skip-list { list-style: none; margin: .4rem 0 .2rem; padding: 0; }
.vw-skip-list li { margin: .25rem 0; word-wrap: break-word; overflow-wrap: break-word; }
.vw-foot { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.vw-foot .vw-remember { margin: .3rem 1rem .3rem 0; }
.vw-foot .btnrow { margin: .2rem 0; }
.vw-nm { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding-left: 1.35rem !important; padding-right: 1.35rem !important; }
.vw-nm .grow { -webkit-flex: 1; flex: 1; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; margin-right: .6rem; }
.vw-arrow { color: #697386; color: var(--muted); }
.vw-set-line .btn { margin-left: .5rem; }
@media (max-width: 760px) {
  .vw-table, .vw-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .vw-table thead { display: none; }
  .vw-table tr.vw-group, .vw-table tr.vw-group th { display: block; }
  .vw-table tr.vw-row { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
  .vw-table tr.vw-row > td { display: block; border: 0 !important; padding: .15rem .7rem .15rem 0 !important; text-align: left !important; min-width: 0; width: auto; }
  .vw-table tr.vw-row > td.vw-tick { -webkit-flex: 0 0 2.2rem; flex: 0 0 2.2rem; }
  .vw-table tr.vw-row > td.vw-name { -webkit-flex: 1 1 calc(100% - 2.6rem); flex: 1 1 calc(100% - 2.6rem); }
  .vw-table tr.vw-row > td.vw-drawn { margin-left: 2.2rem; }
  .vw-table tr.vw-row > td.vw-drawn::before, .vw-table tr.vw-row > td.vw-have::before, .vw-table tr.vw-row > td.vw-addc::before { content: attr(data-label) " "; color: #697386; color: var(--muted); font-size: .8rem; font-weight: 400; }
  /* line 2: in the drawing · on the sheet; line 3: Add [n] … always skip; line 4: our item */
  .vw-table tr.vw-row > td.vw-have { -webkit-flex: 1 0 45%; flex: 1 0 45%; }
  .vw-table tr.vw-row > td.vw-addc { -webkit-order: 5; order: 5; margin-left: 2.2rem; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
  .vw-table tr.vw-row > td.vw-addc::before { margin-right: .4rem; }
  .vw-table tr.vw-row > td.vw-skipc { -webkit-order: 6; order: 6; margin-left: auto; padding-right: 0 !important; }
  .vw-table tr.vw-row > td.vw-item { -webkit-order: 7; order: 7; -webkit-flex: 1 1 100%; flex: 1 1 100%; padding-left: 2.2rem !important; padding-right: 0 !important; margin-top: .25rem; }
  .vw-table tr .vw-item select, .vw-table tr .vw-item input.vw-typed { max-width: none; }
  .vw-foot { display: block; }
  .vw-foot .btnrow .btn { display: block; width: 100%; margin: .4rem 0 0; }
  .vw-wait { margin-left: .8rem; margin-right: .8rem; }
  .vw-nm { padding-left: .9rem !important; padding-right: .9rem !important; }
}

/* -- The assistant on a job (client video Oct 20 2026: "a bot I could talk to and tell him to add stuff"): a <details>
      in the tools row; open, it takes the whole width under the row (no JavaScript needed). /assistant.js adds the
      microphone where the browser can record -- */
.ai-box > summary { list-style: none; cursor: pointer; }
.ai-box > summary::-webkit-details-marker { display: none; }
.ai-box[open] { -webkit-order: 5; order: 5; -webkit-flex: 0 0 100%; flex: 0 0 100%; width: 100%; margin-right: 0; }
.ai-box[open] > summary { background: #e8f1fc; background: var(--soft); }
.ai-panel { margin-top: .55rem; padding: .9rem 1rem .6rem; border: 1px solid #e3e8ef; border: 1px solid var(--line); border-radius: 6px; background: #f5f8fc; background: var(--hover); font-size: .95rem; }
.ai-say { margin: 0 0 .65rem; }
.ai-say .cap { display: block; }
.ai-say p { margin: .1rem 0 0; white-space: pre-line; word-wrap: break-word; overflow-wrap: break-word; }
.ai-you p { font-weight: 600; }
.ai-err p { color: #c53030; color: var(--err); }
.ai-props { margin: 0 0 .9rem; padding-bottom: .8rem; border-bottom: 1px solid #e3e8ef; border-bottom: 1px solid var(--line); }
.ai-list { list-style: none; margin: .1rem 0 .5rem; padding: 0; }
.ai-prop { padding: .3rem 0; }
.ai-prop + .ai-prop { border-top: 1px solid #e3e8ef; border-top: 1px solid var(--line); }
.ai-prop .check { margin: 0; }
.ai-prop input { width: 20px; height: 20px; accent-color: #1f73d1; }
.ai-prop span { font-weight: 600; word-wrap: break-word; overflow-wrap: break-word; }
.ai-prop small { display: block; font-weight: 400; color: #9a6400; color: var(--warn); }
.ai-blocked span { color: #697386; color: var(--muted); }
.ai-props .hint { margin: .2rem 0 .5rem; }
.ai-done { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; color: #17803d; color: var(--ok); margin: 0 0 .8rem; }
.ai-done .ic { margin-right: .35rem; }
.ai-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.ai-row .ai-text { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; width: auto; }
.ai-row .btn { -webkit-flex: none; flex: none; margin-left: .4rem; }
.ai-mic[hidden] { display: none; }
.ai-mic { padding-left: .65rem; padding-right: .65rem; }
.ai-mic .ic { margin: 0; }
.ai-mic.ai-rec { background: #c53030; border-color: #c53030; color: #fff; -webkit-animation: ai-pulse 1.2s ease-in-out infinite; animation: ai-pulse 1.2s ease-in-out infinite; }
@-webkit-keyframes ai-pulse { 50% { opacity: .65; } }
@keyframes ai-pulse { 50% { opacity: .65; } }
.ai-status { margin: .4rem 0 0; font-weight: 600; color: #4a5568; color: var(--ink2); }
.ai-status:empty { display: none; }
.ai-status.ai-bad { color: #c53030; color: var(--err); }
.ai-help { margin: .45rem 0 .1rem; }
/* the review page of a Vectorworks list: "Ask the assistant to match the lines left" */
.vw-ai { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 6px; background: #e8f1fc; background: var(--soft); }
.vw-ai-txt { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; -webkit-flex: 1 1 18rem; flex: 1 1 18rem; min-width: 0; margin: .2rem .6rem .2rem 0; }
.vw-ai-txt > .ic { -webkit-flex: none; flex: none; color: #1f73d1; color: var(--accent); margin: .1rem .5rem 0 0; }
.vw-ai-txt small { display: block; color: #4a5568; color: var(--ink2); }
/* Settings: the Assistant card */
.ai-use { margin: .2rem 0 .9rem; }
.ai-provs .check { margin: .35rem 0; }
.ai-provs .ai-off { opacity: .6; }
@media (max-width: 760px) {
  .ai-panel { padding: .75rem .75rem .5rem; }
  .ai-row { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .ai-row .ai-text { -webkit-flex: 1 1 100%; flex: 1 1 100%; margin-bottom: .45rem; }
  .ai-row .btn { margin-left: 0; margin-right: .4rem; }
  .ai-row .ai-send { -webkit-flex: 1 1 auto; flex: 1 1 auto; margin-right: 0; }
  .ai-props .btnrow .btn { display: block; width: 100%; margin: .4rem 0 0; text-align: center; }
  .vw-ai .btn { margin-top: .3rem; }
}

/* Inventory, Prices (Oct 22 2026): the price sheet */
.pr-table td { vertical-align: middle; }
.pr-group th { background: #f1f4f8; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6270; }
.pr-price { white-space: nowrap; }
.pr-price input { width: 7em; text-align: right; }
.pr-cur { color: #5b6270; margin-right: .2rem; }
.pr-unit { color: #5b6270; white-space: nowrap; }
.pr-tabs { margin: 0 0 .75rem; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .pr-group th { background: #1b2230; color: #9aa2ae; } }
html.theme-dark .pr-group th { background: #1b2230; color: #9aa2ae; }
.pr-tabs small { margin-left: .4rem; opacity: .75; }
.pr-table .check { white-space: nowrap; }

/* Create quote (Oct 22 2026), next to Confirm the job (green) and Scan out (blue) */
.btn.btn-quote { background: #7a4fd1; border-color: #7a4fd1; color: #fff; }
/* Confirm on the Jobs list (client video Oct 28 2026), next to the Quote tag */
.jl-confirm { margin-left: .35rem; }
.btn.btn-confirm { padding: .2rem .55rem; min-height: 0; font-size: .8rem; background: #e6f6ec; border-color: #9fd8b3; color: #12733b; }
.btn.btn-confirm .ic { width: 14px; height: 14px; margin-right: .25rem; }
.btn.btn-confirm:hover { background: #17803d; border-color: #17803d; color: #fff; }
html.theme-dark .btn.btn-confirm { background: #133122; border-color: #2c6b45; color: #8fe0ad; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .btn.btn-confirm { background: #133122; border-color: #2c6b45; color: #8fe0ad; } }
.btn.btn-quote:hover { background: #6a41bf; border-color: #6a41bf; }

/* the pull sheet's quantity is a field (Oct 22 2026): it looks like the number; tapped, it is a box with a check */
.qty-form { display: inline-flex; align-items: center; gap: .2rem; margin: 0; }
.qty-in { width: 3.2em; padding: .2rem .25rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: right; cursor: pointer; }
.qty-in:hover { border-color: #c9d2de; }
.qty-in:focus { border-color: #1f73d1; background: #fff; color: #16181d; cursor: text; outline: none; }
/* the forms' rule for every input (app.css: input:not([type=checkbox]):not([type=radio]), full width, 44px tall, a border)
   is more specific than .qty-in and made the number a wide box (client video Oct 22 2026: "just make it way smaller") */
.qty-form input.qty-in:not([type=checkbox]):not([type=radio]) { width: 3.2em; min-height: 0; padding: .2rem .25rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; box-shadow: none; }
.qty-form input.qty-in:not([type=checkbox]):not([type=radio]):hover { border-color: #c9d2de; }
.qty-form input.qty-in:not([type=checkbox]):not([type=radio]):focus { border-color: #1f73d1; background: #fff; color: #16181d; box-shadow: 0 0 0 3px rgba(31, 115, 209, .18); }
html.theme-dark .qty-form input.qty-in:not([type=checkbox]):not([type=radio]):focus { background: #0b111a; color: #eef0f3; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .qty-form input.qty-in:not([type=checkbox]):not([type=radio]):focus { background: #0b111a; color: #eef0f3; } }
/* the Note button under an item on the pull sheet (jobs.js noteBox) */
.p-notebox { margin: .2rem 0 0; }
.p-notebtn { display: inline-block; list-style: none; cursor: pointer; font-size: .8rem; font-weight: 600; color: #5b6b80; padding: .1rem .35rem; border-radius: 4px; }
.p-notebtn::-webkit-details-marker { display: none; }
.p-notebtn::marker { content: ''; }
.p-notebtn .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: .25rem; }
.p-notebtn:hover { background: rgba(31, 115, 209, .08); color: #1f73d1; }
.p-notebox[open] > .p-notebtn { color: #1f73d1; }
.p-noteform { display: -webkit-flex; display: flex; gap: .4rem; -webkit-align-items: center; align-items: center; margin: .3rem 0 .1rem; max-width: 34rem; }
.p-noteform input:not([type=checkbox]):not([type=radio]) { min-height: 36px; padding: .35rem .6rem; -webkit-flex: 1; flex: 1; width: auto; min-width: 0; }
.p-noteform .btn { -webkit-flex: none; flex: none; }
html.theme-dark .p-notebtn { color: #a9b4c4; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .p-notebtn { color: #a9b4c4; } }
@media print { .p-notebox { display: none; } }
.qty-ok { display: none; border: 0; background: #12904a; color: #fff; border-radius: 6px; width: 1.9rem; height: 1.9rem; padding: 0; cursor: pointer; }
.qty-ok .ic { width: 1.05rem; height: 1.05rem; }
.qty-form:focus-within .qty-ok { display: inline-block; }
html.theme-dark .qty-in:focus { background: #0b111a; color: #eef0f3; }
@media screen and (prefers-color-scheme: dark) { html:not(.theme-light) .qty-in:focus { background: #0b111a; color: #eef0f3; } }

/* -- the crew app in dark (Oct 26 2026: the business was set to dark and the workers' app at /c stayed light; it had no
      dark at all). <html> gets theme-dark from clock.js crewLook (the phone's own choice, else the business's). The
      same colours as the office app's dark; the shared parts (buttons, tags, fields) follow the variables. -- */
html.theme-dark body.site { --bg: #0f1621; --card: #18212e; --field: #111a26; --hover: #1e2938; --ink: #e6ebf2; --ink2: #c3ccd9; --muted: #95a1b4; --line: #2a3545; --line2: #3a4658;
  --head: #1f2228; --brand: #174a6e; --brand-ink: #7fb3dd; --accent: #6aa8ee; --soft: #1a2c44; --go: #1f9d55; --go-dark: #188547; --ok: #7fd49b; --ok-bg: #15301f; --err: #f19a9a; --err-bg: #3a1d20;
  --info: #8cbcf2; --info-bg: #16283d; --warn: #f0c674; --warn-bg: #3a2f17; --out: #a5a8f5; --out-bg: #23244a; --back: #5fd3c4; --back-bg: #12322f; --shadow: 0 0 0 1px #2a3545;
  background: #0f1621; color: #e6ebf2; color-scheme: dark; }
html.theme-dark body.site a { color: #7fb3dd; }
html.theme-dark body.site .clock-card { background: #18212e; box-shadow: 0 0 0 1px #2a3545; }
html.theme-dark body.site .clock-date, html.theme-dark body.site .clock-foot, html.theme-dark body.site .clock-recent li small,
html.theme-dark body.site .cp-h small, html.theme-dark body.site .cp-empty, html.theme-dark body.site .cp-notices li small,
html.theme-dark body.site .cp-day small, html.theme-dark body.site .cp-job small, html.theme-dark body.site .cp-kv dt,
html.theme-dark body.site .linkbtn, html.theme-dark body.site .cp-list .chev, html.theme-dark body.site .cp-past > summary .cp-h::after { color: #95a1b4; }
html.theme-dark body.site .clock-msg { background: #15301f; color: #7fd49b; }
html.theme-dark body.site .clock-on { background: #15301f; border-color: #1f9d55; }
html.theme-dark body.site .clock-err { background: #3a1d20; color: #f19a9a; }
html.theme-dark body.site .clock-pick, html.theme-dark body.site .clock-job { border-color: #3a4658; }
html.theme-dark body.site .clock-recent, html.theme-dark body.site .clock-recent li, html.theme-dark body.site .cp-list,
html.theme-dark body.site .cp-list li, html.theme-dark body.site .cp-crew, html.theme-dark body.site .cp-crew li { border-color: #2a3545; }
html.theme-dark body.site .cp-notices { background: #16283d; }
html.theme-dark body.site .cp-notices li { border-bottom-color: #22364f; }
html.theme-dark body.site .cp-offer { background: #2a2414; }
html.theme-dark body.site .cp-more { color: #7fb3dd; }
html.theme-dark body.site .clock-btn.cp-no { background: #18212e; color: #f19a9a; border-color: #6b3438; }
html.theme-dark body.site .cp-push .push-ok { color: #7fd49b; }
html.theme-dark body.site .cp-push .push-err { color: #f19a9a; }
html.theme-dark body.site input, html.theme-dark body.site textarea, html.theme-dark body.site select { background-color: #111a26; color: #e6ebf2; border-color: #3a4658; }
html.theme-dark body.site .btn { background: #1e2938; color: #e6ebf2; border-color: #3a4658; }
html.theme-dark body.site .btn-primary { background: #1f9d55; border-color: #1f9d55; color: #fff; }
html.theme-dark body.site .tag { background: #273242; color: #c3ccd9; }
html.theme-dark body.site .st-req { background: #3a2f17; color: #f0c674; }
html.theme-dark body.site .st-ok { background: #16283d; color: #8cbcf2; }
html.theme-dark body.site .st-done { background: #15301f; color: #7fd49b; }
html.theme-dark body.site .st-no { background: #3a1d20; color: #f19a9a; }
html.theme-dark body.site .st-here { background: #23244a; color: #b4b6f7; }
html.theme-dark body.site .st-cx { background: #222b38; color: #95a1b4; }
/* the Dark mode button under the worker's name */
.cp-look { margin: -.4rem 0 .9rem; }
