@font-face { font-family: Inter; src: url(/static/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --teal: #0d88a7; --char: #22313a; --gold: #c8a96e; --bg: #f5f6f7; --line: #e2e6e9; --muted: #6b7780; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--char); background: var(--bg); font-size: 14px; }
a { color: var(--teal); text-decoration: none; } a:hover { text-decoration: underline; }
/* Kris, Nov 25 2026: "the blue is wrong again": every header uses the website blue #0d88a7, like the client page */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--teal); color: #fff; padding: 10px 24px; position: relative; z-index: 30; }
.brand { color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.mark { background: #fff; color: var(--teal); width: 28px; height: 28px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 800; }
#who { font-size: 13px; }
.link { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; margin-left: 8px; }
main { max-width: 1280px; margin: 0 auto; padding: 20px 24px 40px; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 15px; margin: 0 0 12px; }
.head { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 14px 0; }
.card.narrow { max-width: 440px; margin: 80px auto; text-align: center; }
.btn { background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.err { color: #b42318; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 8px; font: inherit; cursor: pointer; margin-left: 4px; }
.tabs button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.grid th, .grid td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.grid th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; position: sticky; top: 0; }
.grid tbody tr:hover { background: #f0f8fa; }
.grid tfoot td { font-weight: 700; border-top: 2px solid var(--char); }
.r { text-align: right !important; font-variant-numeric: tabular-nums; }
.ok { color: #127a3a; font-weight: 600; } .bad { color: #b42318; font-weight: 600; }
.pill { background: #e6f3f6; color: var(--teal); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; } .cols .card { margin: 14px 0 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.fin td, .fin th { padding: 6px 8px; } .fin th { font-size: 12px; color: var(--muted); }
.fin tr.sub td { border-top: 1px solid var(--line); font-weight: 600; }
.fin tr.total td { border-top: 2px solid var(--char); font-weight: 700; font-size: 15px; }
tr.excl td { color: var(--muted); } tr.neg td:last-child { color: #b42318; }
/* nav lives in the ☰ Menu dropdown (shell.js) */
.jobtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin: 14px 0 4px; }
.jobtabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.jobtabs a:hover { text-decoration: none; color: var(--char); }
.jobtabs a.on { color: var(--teal); border-bottom-color: var(--teal); }
.grid td.wrap { white-space: normal; min-width: 160px; max-width: 360px; }
.grid td.note { max-width: 420px; }
.filter, .search input, .search select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; background: #fff; }
.filter { min-width: 240px; }
.search { display: flex; gap: 6px; flex-wrap: wrap; } .search input { min-width: 260px; }
.btn.sm { padding: 7px 14px; }
.kv td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .kv td:first-child { color: var(--muted); width: 42%; }
.file { font-weight: 600; }
.st { display: inline-block; border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; background: #eef1f3; color: var(--char); }
.st-current, .st-accepted, .st-approved, .st-processed, .st-paid { background: #e3f4ea; color: #127a3a; }
.st-superseded, .st-cancelled, .st-disabled, .st-voided { background: #f3eceb; color: #8a3b2f; }
.st-declined { background: #fde8e7; color: #b42318; }
.st-issued, .st-posted, .st-pending { background: #e6f3f6; color: var(--teal); }
tr.sup td { color: #5b666e; } tr.cur td { background: #f3faf6; }
.card.next { text-align: center; padding: 40px; } .card.next h2 { font-size: 17px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
details.docsec { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; background: #fff; }
details.docsec > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: 15px; background: #fafbfc; border-radius: 8px; }
details.docsec > summary::-webkit-details-marker { display: none; }
details.docsec > summary .sl::before { content: '▸'; display: inline-block; width: 18px; color: var(--teal); transition: transform .15s; }
details.docsec[open] > summary .sl::before { transform: rotate(90deg); }
details.docsec[open] > summary { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
details.docsec .cnt { font-weight: 600; font-size: 12px; color: var(--muted); }
details.docsec.unsorted > summary { background: #fbf8f1; } details.docsec.unsorted > summary .sl { color: #8a6d2f; }
details.docsec .tablewrap { padding: 4px 8px 8px; } details.docsec .empty { padding: 6px 16px 12px; margin: 0; }
details.upload { margin: 8px 0 12px; } details.upload > summary { cursor: pointer; color: var(--teal); font-weight: 600; padding: 4px 0; }
details.upload form { margin-top: 8px; align-items: center; }
select.mv { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; background: #fff; max-width: 190px; }
.docsearch { min-width: 320px; }

.client h2 { margin: 0; } .btn.ghost { background: #fff; color: var(--teal); border: 1px solid var(--teal); text-decoration: none; display: inline-block; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; } @media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; } }
.stage { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; } .stage b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.mod { display: block; padding: 3px 0; cursor: pointer; } .mod.on { color: var(--teal); font-weight: 600; }
.relbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .relbar .note { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.people ul { margin: 6px 0; padding-left: 18px; } .inv, .newc { display: flex; gap: 8px; flex-wrap: wrap; } .inv input, .newc input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 200px; }

/* Schedule (Module 2) */
.banner { background: #fbf8f1; border: 1px solid #eadfc4; color: #6b5a2c; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.banner.ok-b { background: #eef8f2; border-color: #cfe9da; color: #1f6b41; }
.flash { background: #e6f3f6; border-radius: 8px; padding: 10px 14px; color: var(--teal); font-weight: 600; }
.filter.sm { min-width: 0; }
table.sched td { vertical-align: top; }
table.sched td.c, table.sched th.c { text-align: center; }
table.sched tr.done td { color: #7d8a92; }
table.sched tr.done td b { font-weight: 600; }
table.sched tr.editing td { background: #f0f8fa; }
.barcell { width: 26%; min-width: 180px; }
th.barcell { font-weight: 500; text-transform: none; letter-spacing: 0; }
td.barcell { padding-top: 12px !important; background-image: linear-gradient(to right, #eef1f3 1px, transparent 1px); background-size: 10% 100%; }
.bar { height: 10px; border-radius: 5px; background: var(--gold); min-width: 4px; }
.bar.b-conf { background: var(--teal); } .bar.b-done { background: #9fb8a9; }
.mt { font-size: 11px; color: var(--muted); background: #f1f3f4; border-radius: 4px; padding: 1px 5px; }
.note-l { color: #6b5a2c; background: #fbf8f1; border-radius: 4px; padding: 2px 6px; margin-top: 3px; white-space: pre-wrap; }
tr.resp td { background: #fffaf3; border-bottom: 1px dashed var(--line); padding-left: 28px !important; white-space: normal; }
tr.editrow td { background: #f7fbfc; white-space: normal; }
.edf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.edf input, .edf select { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }
.edf input[type=number] { width: 70px; } .edf .note-in { flex: 1; min-width: 240px; }
.edf .rad { font-size: 13px; } #edout { flex-basis: 100%; } #edout ul { margin: 4px 0; padding-left: 18px; }
.edmore { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px dashed var(--line); padding-top: 8px; }
.edmore select { max-width: 260px; } .edmore .grow { flex: 1; display: flex; gap: 6px; align-items: center; } .edmore .grow input { flex: 1; }
h3.dayh { font-size: 13px; margin: 16px 0 4px; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
details.card.upload > summary { font-weight: 700; }
/* schedule fixes Nov 24 2026: dependencies, end of job warnings, basement flag, add task */
.banner.warn-b { background: #fff6ec; border-color: #f2d3ad; color: #7a4a12; } .banner.warn-b ul { margin: 4px 0 8px; padding-left: 18px; }
.warn-l { color: #9a5a12; } .dep .nolink { color: #9aa5ab; font-style: italic; }
.jobopts { margin: 6px 0 10px; } .jobopts label { font-weight: 600; margin-right: 6px; }
td.acts { white-space: nowrap; } td.acts .link { margin-right: 4px; }

/* Prospects (Module 1 part 2) */
.filters { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; } .filters input { min-width: 280px; }
.grid td.wrap { white-space: normal; max-width: 320px; }
.ps-cold, .ps-paused { background: #eef0f2; color: #66727c; } .ps-converting, .ps-estimating { background: #eef8f2; color: #1f6b41; } .ps-pricing-sent, .ps-plans-sent { background: #fbf8f1; color: #6b5a2c; }
label.opt { display: block; margin: 6px 0; }

/* Action Log (Module 3) */
.grid.actions td.wrap { max-width: 420px; } .grid.actions tr.done td { color: var(--muted); } .grid.actions td.late { color: #b3261e; font-weight: 600; }
.pr-High { background: #fdecea; color: #b3261e; } .pr-Low { background: #eef0f2; color: #66727c; } .pill.ok { background: #eef8f2; color: #1f6b41; }
form.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; } form.grid2 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } form.grid2 .span2 { grid-column: 1 / -1; }
tr.edrow td { background: #fafbfc; white-space: normal; }
/* Action Log photos (Module 3, Nov 25 2026) */
.aphotos { margin: 10px 0; } .aphotos h4 { margin: 0 0 6px; font-size: 13px; }
.aphotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid #dfe5e8; margin: 0 6px 6px 0; }
.aphup { cursor: pointer; display: inline-block; vertical-align: top; margin-top: 36px; }
/* Selections (Module 4, Nov 25 2026) */
.ps-due { background: #fff6ec; color: #7a4a12; }
.warn-t { color: #a35a00; }
.seltab tr.msrow td { background: #f6f8f9; }
.seltab select, .seltab input[type=date] { max-width: 160px; }

/* ---- header: menu dropdown + search (Kris, Nov 25 2026) ---------------------------------------- */
.btn:hover { background: #0a6f89; }
.top .brand { flex: 0 0 auto; }
.sbox { flex: 1 1 auto; max-width: 460px; margin: 0 0 0 auto; position: relative; }
.sbox input { width: 100%; border: 0; border-radius: 8px; padding: 9px 12px; font: inherit; background: rgba(255,255,255,.95); color: var(--char); }
.sbox input:focus { outline: 2px solid #fff; background: #fff; }
.iconbtn { display: none; background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 8px; width: 40px; height: 38px; font-size: 17px; cursor: pointer; }
.menubtn { flex: 0 0 auto; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.menubtn:hover, .menubtn.on { background: #fff; color: var(--teal); }
.menu { position: absolute; right: 16px; top: calc(100% + 6px); width: 280px; max-height: calc(100vh - 80px); overflow-y: auto; background: #fff; color: var(--char); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20,40,50,.18); padding: 8px; z-index: 40; }
.menu[hidden] { display: none; }
.menu a { display: block; color: var(--char); padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.menu a:hover { background: #eef7fa; text-decoration: none; }
.menu a.on { background: var(--teal); color: #fff; }
.menu .mg { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.menu .mg[hidden] { display: none; }
.menu .mg b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 12px; }
.menu #who { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 12px 4px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.menu #who .link { color: var(--teal); font-weight: 600; }
.sres { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--char); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20,40,50,.18); max-height: 70vh; overflow-y: auto; padding: 6px; z-index: 40; min-width: 320px; }
.sres[hidden] { display: none; }
.sg + .sg { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.sgl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 2px; font-weight: 700; }
a.si { display: block; padding: 7px 10px; border-radius: 8px; color: var(--char); }
a.si:hover, a.si.act { background: #eef7fa; text-decoration: none; }
.st1 { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st2 { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snone { padding: 10px; color: var(--muted); }
@media (max-width: 760px) {
  .top { padding: 10px 14px; flex-wrap: wrap; }
  .bname { display: none; }
  .brand::after { content: "Launch Homes"; }
  .sbox { display: none; order: 5; flex: 1 0 100%; max-width: none; margin: 4px 0 0; }
  body.sopen .sbox { display: block; }
  .iconbtn { display: inline-block; margin-left: auto; }
  .menu { left: 10px; right: 10px; width: auto; }
  .sres { min-width: 0; }
  main { padding: 14px 12px 32px; }
}
/* ---- Home page ---------------------------------------------------------------------------------- */
.home .hhero { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.home .hhero h1 { font-size: 24px; } .home .hhero p { margin: 4px 0 12px; }
.hsearch input { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 2px solid var(--teal); border-radius: 10px; }
.hres:not(:empty) { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; max-height: 60vh; overflow-y: auto; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.hcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.hhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .hhead h2 { margin: 0; font-size: 16px; } .hhead a { font-size: 13px; font-weight: 600; }
.hstat { margin: 2px 0 8px; font-size: 13px; color: var(--muted); } .hstat b { color: var(--char); }
.hrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid var(--line); color: var(--char); }
a.hrow:hover { background: #f0f8fa; text-decoration: none; }
.hrow .hd { flex: 0 0 78px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.hrow .hm { flex: 1 1 auto; min-width: 0; } .hrow .hm b { font-weight: 600; } .hrow .hm .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .tag, .hrow .r { flex: 0 0 auto; }
.late { color: #b42318 !important; }
.tag.mine { background: #e6f3f6; color: var(--teal); margin-left: 6px; }
.htiles-h { margin: 22px 0 10px; }
.htiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--teal); color: #fff; border-radius: 12px; padding: 18px 14px; font-weight: 700; text-align: center; }
.tile:hover { background: #0a6f89; text-decoration: none; }
@media (max-width: 760px) { .hgrid { grid-template-columns: 1fr; } .htiles { grid-template-columns: 1fr 1fr; } }
/* ---- Action Log as cards on a phone (Kris, Nov 25 2026) --------------------------------------------- */
@media (max-width: 760px) {
  table.grid.actions thead { display: none; }
  table.grid.actions, table.grid.actions tbody, table.grid.actions tr, table.grid.actions td { display: block; width: 100%; }
  table.grid.actions tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 8px 12px; position: relative; }
  table.grid.actions td { border: 0; padding: 3px 0; white-space: normal; }
  table.grid.actions td:nth-child(1) { position: absolute; right: 12px; top: 10px; width: auto; }
  table.grid.actions td:nth-child(2) { font-weight: 700; padding-right: 30px; }
  table.grid.actions td:nth-child(4):empty, table.grid.actions td:nth-child(8):empty { display: none; }
  table.grid.actions td:nth-child(5)::before { content: "Assigned: "; color: var(--muted); }
  table.grid.actions td:nth-child(6)::before { content: "By: "; color: var(--muted); }
  table.grid.actions td:nth-child(7)::before { content: "Due: "; color: var(--muted); }
  table.grid.actions td:nth-child(9) { display: none; }
  table.grid.actions tr.edrow { padding: 0; } table.grid.actions tr.edrow td { position: static; }
}
/* ---- Module 5 Service (Nov 25 2026) ------------------------------------------------------------- */
.grid.svc td.wrap { max-width: 420px; white-space: normal; } .grid.svc tr.done td { color: var(--muted); }
.grid.svc input[type=date], .grid.svc select { font: inherit; padding: 3px 4px; }
@media (max-width: 760px) {
  table.grid.svc thead { display: none; }
  table.grid.svc, table.grid.svc tbody, table.grid.svc tr, table.grid.svc td { display: block; width: 100%; }
  table.grid.svc tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 8px 12px; }
  table.grid.svc td { border: 0; padding: 3px 0; white-space: normal; }
  table.grid.svc td:empty { display: none; }
}

/* Job hub (Kris, Nov 25 2026): the job page is the main place to work. Tabs scroll sideways as chips on phones. */
.hubtabs { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.hubtabs::-webkit-scrollbar { display: none; }
.hubtabs a { flex: 0 0 auto; }
.hubbody { margin-top: 10px; }
.hubbody p:first-child:has(> a[href="/schedule"]), .hubbody p:first-child:has(> a[href="/selections"]), .hubbody p:first-child:has(> a[href="/service"]) { display: none; }
.hubbody h1 { font-size: 1.15rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.chip { border: 1px solid #cfd8dc; border-radius: 999px; padding: 4px 12px; font-size: .9rem; text-decoration: none; color: #22313a; background: #fff; }
.chip.on { background: #0d88a7; border-color: #0d88a7; color: #fff; }
.htiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.htile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #e0e6ea; border-radius: 10px; background: #fff; text-decoration: none; color: #22313a; }
.htile:hover { border-color: #0d88a7; }
.htile .ht { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #0d88a7; font-weight: 600; }
.htile b { font-size: 1.25rem; }
ul.scope { margin: 4px 0 4px 18px; padding: 0; }
ul.scope li { margin: 2px 0; }
td.perms { white-space: normal; min-width: 220px; }
label.perm { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 2px 0; font-size: .85rem; white-space: nowrap; }
@media (max-width: 760px) { .htiles { grid-template-columns: 1fr 1fr; } .htile b { font-size: 1.05rem; } }
/* Module 6 Budgets (Nov 25 2026) */
table.bvers tr.sel td { background: #e8f4f8; }
table.blines input[data-f=description] { width: 100%; min-width: 180px; }
table.blines input[data-f=amount], #bfee { width: 130px; }
table.blines input[data-f=note] { width: 100%; min-width: 120px; }
table.btot { max-width: 460px; }
@media (max-width: 760px) { table.blines input[data-f=description] { min-width: 120px; } }
#bnew label, #bnew select, #bnew input, #bsign input { max-width: 100%; }
#bnew select[name=src] { width: 100%; max-width: 420px; }
@media (max-width: 760px) { #bnew label { width: 100%; } table.btot { width: 100%; } }
@media print {
  header, .top, #menu, .hubtabs, .crumbs, .noprint, #bnew, #badd, #bsign, #bvoid, #bsave, #bnotes, [data-rm], details.sec:not([open]) { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; border: 0; }
  table.blines input { border: 0; background: transparent; padding: 0; }
}
/* Module 8 job cost report */
.jcr .jcrtools{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.jflag{display:inline-block;font-size:.72rem;padding:.05rem .4rem;border-radius:9px;margin:.05rem 0;white-space:nowrap}
.jf-overpo,.jf-overbud{background:#fde8e8;color:#9b1c1c}
.jf-nopo,.jf-nobud{background:#fff4e0;color:#8a5300}
.jcr tfoot td{font-weight:600;border-top:2px solid #22313a}

/* Module 10 slice 3 contract builder */
#cbform label { display: block; margin: 6px 0; font-size: 13px; } #cbform input, #cbform select, #cbform textarea { width: 100%; box-sizing: border-box; }
.cbrow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (max-width: 700px) { .cbrow3 { grid-template-columns: 1fr; } }
#cbform h3 { margin: 14px 0 4px; font-size: 14px; } #cbcard details summary { cursor: pointer; font-weight: 600; margin: 8px 0; } #cbform .btnrow { margin-top: 10px; }

/* Module 11 billing */
#drawsub label { display: block; margin: 6px 0; font-size: 13px; } #drawsub input, #drawsub select { width: 100%; box-sizing: border-box; }
#drstages input { width: 100%; min-width: 60px; } #drawsub .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
#drawsub details summary { cursor: pointer; margin: 8px 0; } #drawsub label.small input[type=checkbox] { width: auto; }

/* Iris, Nov 25 2026: on a desktop the job tabs ran off the right edge with no way to scroll (hidden scrollbar, no touch), so
   Job Cost / Invoices / Billing were unreachable. Wide screens wrap the tabs onto a second line; phones keep the swipe row. */
@media (min-width: 761px) { .hubtabs { flex-wrap: wrap; overflow-x: visible; white-space: normal; } }
@media (max-width: 760px) { .hubtabs { scrollbar-width: thin; } .hubtabs::-webkit-scrollbar { display: block; height: 3px; } }

/* Module 12 weekly */
.wk .wkl { margin: 4px 0 10px 18px; padding: 0; } .wk .wkl li { margin: 2px 0; } .wk h3.small { margin: 10px 0 2px; font-size: 13px; } .wk .bad { color: #b5443a; font-weight: 600; } .wk .wkbtns { margin-top: 10px; }
@media (max-width: 760px) { .wk .wkcols { display: block; } }

/* Receipts */
.rform { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0; } .rform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .rform label.wide { grid-column: 1 / -1; } .rform input, .rform select { width: 100%; box-sizing: border-box; }
.rlist { display: grid; gap: 8px; } .rcard { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; } .rcard:hover { background: #f0f8fa; }
@media (max-width: 760px) { .rform { grid-template-columns: 1fr; } }

/* Module 12 team */
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; } .tperson h3 { margin: 0 0 6px; } .tperson .tl { margin: 2px 0 8px 18px; padding: 0; } .tperson .bad, .teamgrid .bad { color: #b5443a; }
.tperson { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; } .tperson table.grid { width: 100%; table-layout: fixed; } .tperson table.grid td { white-space: normal; } .tperson table.grid td:first-child { width: 34%; } .tperson .tl { overflow-wrap: anywhere; }
@media (max-width: 760px) { .teamgrid { display: block; } .teamgrid > .tperson { width: auto; } }

/* Permits */
.pmgrid th, .pmgrid td { vertical-align: top; min-width: 96px; } .pmgrid .pmh { min-width: 200px; position: sticky; left: 0; background: #fff; z-index: 1; }
.pmc { border-radius: 4px; } td.pmc { font-size: 12px; white-space: normal; } span.pmc { display: inline-block; padding: 1px 6px; font-size: 12px; border: 1px solid var(--line); }
.pm-req { background: #fff6df; } .pm-done { background: #e3f4e8; } .pm-fail { background: #fde4e1; } .pm-na { background: #f1f1f1; color: #777; } .pm-note { background: #eef5fb; }
.pmed { cursor: pointer; } td.pmed:hover, li.pmed:hover { outline: 2px solid #0d88a7; }
.pmcards { display: none; } .pmcard h3 { margin: 0 0 4px; font-size: 15px; } .pml { list-style: none; margin: 0; padding: 0; } .pml li { padding: 5px 0; border-top: 1px solid var(--line); }
.modalbg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 12px; } .pmmodal { max-width: 480px; width: 100%; } .pmmodal label { display: block; margin: 8px 0; }
@media (max-width: 760px) { .pmwrap { display: none; } .pmcards { display: block; } .pmcard { min-width: 0; overflow-wrap: anywhere; } }

/* portal@ reply capture */
.inb { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; overflow-x: hidden; } .inb .ilist { display: block; max-width: 100%; }
.inb .imail { display: block; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; margin-bottom: 8px; }
.inb .isubj, .inb .iwrap { overflow-wrap: anywhere; min-width: 0; } .inb .isubj b { word-break: break-all; } .inb .ibody { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.inb form.ifile { margin-top: 6px; } .inb form.ifile input { width: 11em; max-width: 60%; }

/* service front (Nov 26 2026) */
.hubtabs a[data-count]::after { content: attr(data-count); display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 99px; background: #c8a96e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.svh { margin-top: 18px; }
h3.svg { margin: 14px 0 6px; font-size: 15px; }
.svgroups .tag { margin-right: 4px; }
input.svtask { flex: 1; min-width: 200px; }

/* service room + photos */
.svphotos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.svphotos img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #d9e1e5; display: block; }
.svphup { font-size: 13px; cursor: pointer; }
input.svroom { width: 140px; max-width: 100%; margin-top: 4px; font-size: 13px; }
input.svroomadd { width: 150px; max-width: 100%; }
.svroompill { font-size: 12px; }

/* retest N11 (Nov 26 2026): job cost on a phone = one card per cost code, no sideways scroll */
@media (max-width: 760px) {
  .jcr .tablewrap { overflow-x: visible; }
  table.jcrt, table.jcrt tbody, table.jcrt tfoot, table.jcrt tr { display: block; width: 100%; box-sizing: border-box; }
  table.jcrt thead { display: none; }
  table.jcrt tr { padding: 8px 0; border-bottom: 1px solid #e3e8eb; }
  table.jcrt td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 1px 0; text-align: left; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  table.jcrt td:first-child { font-weight: 600; }
  table.jcrt td[data-l]::before { content: attr(data-l); color: #6b7a83; font-weight: 400; }
  table.jcrt td:empty { display: none; }
  .jcr .head { flex-wrap: wrap; } .jcr .jcrtools { flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 760px) { /* retest N11: the Financial Summary above the job cost cards fits a phone too */
  table.fin { width: 100%; table-layout: fixed; } table.fin td, table.fin th { padding: 4px 3px; font-size: 12.5px; overflow-wrap: anywhere; white-space: normal; }
  table.fin th:first-child, table.fin td:first-child { width: 36%; } table.fin th:last-child, table.fin td:last-child { width: 18px; }
}

/* Home options panel (Nov 26 2026) */
.jopts .jopt { padding: 8px 0; border-top: 1px solid #e3e8ec; }
.jopts .jopt:first-of-type { border-top: 0; }
.jopts .jopt-l { cursor: pointer; }
.jopts .jopt-sug { color: #8a6d2b; background: #fbf5e8; padding: 6px 9px; border-radius: 6px; margin: 6px 0 0; }

/* Iris's Nov 26 2026 test feedback: job cost wide view, a scrollbar on top of wide tables, month end adjustments */
main:has(.jcr) { max-width: none; }
body.client main:has(.ccost) { max-width: 1400px; }
.jcrt th, .jcrt td { padding: 6px 7px; }
.jcrt td.wrap { min-width: 140px; max-width: 300px; }
.ccostt td.wrap { white-space: normal; min-width: 140px; }
.topscroll { overflow-x: auto; overflow-y: hidden; height: 16px; position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.topscroll-in { height: 1px; }
.jmonth { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; padding: 8px 10px; background: #f4f9fa; border: 1px solid var(--line); border-radius: 8px; }
.jmonth input[type=date] { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; }
.jcr.asof h2::after { content: ' (as of month end)'; color: var(--teal); font-size: 14px; font-weight: 600; }
.jadj { padding: 2px 8px; font-size: 12px; }
tr.jadjform td { background: #fffbea; white-space: normal; }
.jadjbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jadjbox input { border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; font: inherit; }
.jadjbox .grow { flex: 1 1 260px; display: flex; gap: 6px; align-items: center; } .jadjbox .grow input { flex: 1; }
.jadjlist { margin-top: 14px; } .jadjlist h3 { font-size: 14px; margin: 6px 0; }
@media (max-width: 760px) { .jcr .jadj { margin-top: 4px; } tr.jadjform td { display: block; } .topscroll { display: none; } }

/* Trade messages (Iris, Nov 26 2026) */
.tmsgs .tlist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.tm { max-width: 640px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #e3e8eb); background: #fff; }
.tm-trade { align-self: flex-start; background: #f4f9fa; } .tm-staff { align-self: flex-end; background: #fffbea; }
.tmb { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.treply { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 6px; }
.treply textarea { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line, #e3e8eb); border-radius: 8px; padding: 7px 9px; font: inherit; }
.treply select { max-width: 100%; border: 1px solid var(--line, #e3e8eb); border-radius: 8px; padding: 6px 8px; font: inherit; }
details.tthread, details.tnew { border-top: 1px solid var(--line, #e3e8eb); padding: 8px 0; } details.tthread summary, details.tnew summary { cursor: pointer; }
.tbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #c8a96e; color: #fff; font-size: 11px; text-align: center; }
/* month end close (Nov 26 2026) */
.jcloses { margin-top: 14px; } .jcloses h3 { font-size: 14px; margin: 6px 0; }
.jclosebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.jclosebar input { border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; font: inherit; }
/* trade message attachments (Nov 27 2026) */
.tmf { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; }
.tmf a { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.tmattach { display: block; margin: 6px 0; }
.tmattach input[type=file], .tmfile { display: block; max-width: 100%; margin: 4px 0; font-size: 13px; }

/* Job cost drill down (public/jc-drill.js, Nov 27 2026) */
.jcr .jdcode{margin-left:0;color:var(--teal);font-weight:600;text-decoration:underline dotted;white-space:nowrap}
.jcr .jdcode.on{color:var(--gold)}
.jcr .jdcode::before{content:'\25B8 ';display:inline-block}
.jcr .jdcode.on::before{content:'\25BE '}
.jcr tr.jdrill>td{background:#f6f9fa;padding:.6rem .8rem;white-space:normal}
.jdbox h4{margin:.4rem 0 .3rem;font-size:.85rem}
.jdhead{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between}
.jdcols{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:1100px){.jdcols{grid-template-columns:1fr}}
.jdbox .jdv.on{background:var(--teal);color:#fff}
.jdviewer{margin-top:.6rem;border:1px solid #d5dee2;border-radius:8px;background:#fff}
.jdvhead{display:flex;gap:.6rem;align-items:center;padding:.4rem .6rem;border-bottom:1px solid #e3e9ec}
.jdframe{display:block;width:100%;height:75vh;border:0}
.jf-after{background:#eef2ff;color:#3730a3}

/* tester round Nov 27 (finding 12): selections tables scroll inside their own box */
.selwrap { max-width: 100%; overflow-x: auto; }

/* item 7 #2 Super Today (Nov 27 2026) */
.today { max-width: 860px; }
.today .tdcard { margin: 10px 0; }
.today .tdcard h2 .badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 10px; background: #0d88a7; color: #fff; font-size: 12px; text-align: center; vertical-align: middle; }
.today ul.tdl { list-style: none; margin: 0; padding: 0; }
.today li.tdi { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #eef1f3; }
.today li.tdi:first-child { border-top: 0; }
.today .tdm { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.today .tda { display: flex; gap: 8px; align-items: center; flex: none; }
.today .tda .btn.sm { padding: 8px 14px; font-size: 14px; }
@media (max-width: 600px) { .today li.tdi { flex-wrap: wrap; } .today .tda { width: 100%; justify-content: flex-end; } .today .tda .btn.sm { padding: 10px 18px; } }

/* item 7 #4 month end checklist (Nov 27 2026) */
.mel .mecards { margin: 10px 0; }
.mel table.mel-t td { vertical-align: top; }
.mel tr.me-closed td { background: #f4faf6; }

/* item 7 #7 holdbacks (Nov 27 2026) */
.hbk .hbcards { margin: 10px 0; }
.hbk table td { vertical-align: top; }
.hbk .hbbtns .btn { margin: 0 4px 4px 0; }
.hbk section.hbs h3 { margin: 0; font-size: 15px; }

/* item 7 #8 daily log (Nov 27 2026) */
.dlog { max-width: 760px; }
.dlog ul.dlj, .dlog ul.dls, .dlog ul.dlr { list-style: none; margin: 8px 0; padding: 0; }
.dlog ul.dlj li a { display: flex; gap: 8px; align-items: baseline; padding: 10px 4px; border-top: 1px solid #eef1f3; overflow-wrap: anywhere; }
.dlog ul.dls li { padding: 8px 0; border-top: 1px solid #eef1f3; }
.dlog ul.dls li:first-child { border-top: 0; }
.dlog .dlday { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.dlog label.dlbl { display: block; margin: 8px 0; }
.dlog label.dlbl textarea { width: 100%; box-sizing: border-box; }
.dlog .dlp { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dlog .dlp img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; }
.wkdl ul { margin: 4px 0 6px; padding-left: 18px; }

/* item 7 #9 PO review speed ups (Nov 27 2026) */
.prbulk { margin: 8px 0; }

/* item 7 #9 PO templates (Nov 27 2026) */
.ptpl { margin-left: 6px; white-space: nowrap; }
table.tlines input[data-k="description"] { width: 100%; min-width: 260px; }

/* item 7 #10 Kris waiting board (Nov 27 2026) */
.wboard .wrow .hd { min-width: 64px; }
.wboard .wtr { margin-left: 8px; white-space: nowrap; }

/* item 7 #11 job health strip (Nov 27 2026) */
table.grid tr.hasjh td { border-bottom: 0; }
table.grid tr.jh td { padding-top: 0; color: #4b5b65; }
tr.jh meter, .jhub meter { width: 70px; height: 10px; vertical-align: middle; }
tr.jh .bad, .jhub .bad { color: #b3261e; } tr.jh .ok, .jhub .ok { color: #1e7a3c; }
.jhub { margin: 4px 0 10px; }

/* item 7 #12 change history (Nov 27 2026) */
table.hist td.nowrap { white-space: nowrap; }

/* item 7 #14 not accepted POs (Nov 27 2026) */
.pnacc { margin-top: 16px; }

/* item 7 #15 CO from a client question, #18 draws ready to send (Nov 27 2026) */
.cofq { background: #fff7e0; border-left: 3px solid #c8a96e; padding: 6px 9px; margin: 0 0 8px; }
.stagedraws .tag.amber { white-space: nowrap; }

/* item 7 #22 chargebacks (Nov 27 2026) */
.cbinv { border-left: 3px solid #c8a96e; }
.cbinv li { margin: 4px 0; }

/* item 7 #21 pay run sheet (Nov 27 2026) */
.prs .prcards { margin: 10px 0; }
.prs tr.prg td { background: #f3f6f8; border-top: 2px solid #d8e1e7; }
.prs td.pri { padding-left: 22px; }
.prs tr.prtot td { border-top: 2px solid #c8a96e; }
.prs .prwarn { color: #b3261e; }

/* item 7 #19 read the invoice PDF (Nov 27 2026) */
.airead { background: #f4f8fb; border-left: 3px solid #0d88a7; padding: 8px 10px; margin: 8px 0; }
.tag.ai { background: #22313a; color: #fff; font-weight: 600; letter-spacing: .5px; }
.aifill { background: #fff7e0 !important; }
.aichk { margin: 6px 0 0 18px; padding: 0; color: #8a5a00; }

/* item 8 #1 quote to PO (Nov 27 2026) */
#qread { margin: 10px 0; }
#qread .qrlines { margin: 6px 0; }
#qread .qrex, #qread .qrop { margin: 8px 0; padding: 6px 8px; background: #fff7e0; border-left: 3px solid #c8a96e; }
#qread .qrex ul, #qread .qrop ul { margin: 4px 0 6px 18px; padding: 0; }
tr.pit.aifill input { background: #fff7e0; }
/* end item 8 #1 */

/* item 8 inbox autopilot demo */
.iad .iad-ai { display: inline-block; font-size: 12px; font-weight: 700; background: #eef6f9; color: #0a6f89; border-radius: 9px; padding: 1px 8px; vertical-align: middle; }
.iad .iad-m { margin: 12px 0; border-left: 4px solid #c8d3da; }
.iad .iad-quote { border-left-color: #0d88a7; } .iad .iad-invoice { border-left-color: #c8a96e; } .iad .iad-client { border-left-color: #5a8f3c; } .iad .iad-permit { border-left-color: #8a5cb8; }
.iad .iad-t { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #f3f6f8; border-radius: 9px; padding: 1px 7px; margin-right: 4px; }
.iad .iad-s { color: #555; overflow-wrap: anywhere; }
.iad .iad-do { background: #f7fbfc; border: 1px solid #e3e8ec; border-radius: 8px; padding: 8px 12px; }
.iad .iad-dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0; font-size: 14px; } .iad .iad-dl dt { color: #666; } .iad .iad-dl dd { margin: 0; }
.iad .iad-c { color: #8a5a00; margin: 6px 0; padding-left: 18px; }
.iad table.iad-l { margin: 6px 0; }

/* item 8 #5 month end autopilot */
.meauto { margin-top: 16px; border-left: 4px solid #0d88a7; }
.meauto .mea-ai { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: #eef6f9; color: #0a6f89; border-radius: 9px; padding: 1px 7px; vertical-align: middle; }
.meauto .mea-job { border-top: 1px solid #e3e8ec; padding: 10px 0; }
.meauto .mea-note { width: 100%; box-sizing: border-box; font-size: 14px; padding: 8px; border: 1px solid #ccd; border-radius: 6px; margin: 4px 0; }
.meauto table.mea-t td { vertical-align: top; }

/* item 8 #4 trade notices */
.dchg { margin-top: 14px; border-left: 4px solid #0d88a7; }
.dchg .dchg-ai { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: #eef6f9; color: #0a6f89; border-radius: 9px; padding: 1px 7px; vertical-align: middle; }
.dchg .dchg-row { border-top: 1px solid #e3e8ec; padding: 9px 0; }
.dchg .dchg-row.wd { opacity: .6; }
.dchg .dchg-sum { margin: 4px 0; overflow-wrap: anywhere; }
.dchg .dchg-t { width: 100%; box-sizing: border-box; font-size: 14px; padding: 8px; border: 1px solid #ccd; border-radius: 6px; }
.dchg .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* item 9 drafting files (staff) */
details.dfiles{border-top:1px solid #e3e8ec;margin-top:10px;padding-top:8px}details.dfiles summary{cursor:pointer}
.dfiles .df-list{list-style:none;margin:6px 0;padding:0}.dfiles .df-list li{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #eef1f3;padding:7px 0}
.dfiles .df-w{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}.dfiles .df-w a{font-weight:600;margin:0 6px}
.dfiles .df-up{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}.dfiles .df-up input[type=text]{flex:1 1 220px;min-width:0;padding:6px 8px;border:1px solid #ccd;border-radius:6px}
.dfiles .df-up input[type=file]{max-width:100%}.dfiles .df-share{display:flex;gap:4px;align-items:center}.dfiles .df-msg{color:#b42318}

/* item 9 drafter page */
body.drafter main{max-width:880px;margin:14px auto;padding:0 14px}.drafter .dr-login label{display:block;margin:8px 0}.drafter .dr-login input{display:block;width:100%;box-sizing:border-box;padding:9px;font-size:16px;border:1px solid #ccd;border-radius:6px}
.drafter a.dr-rec{display:block;text-decoration:none;color:inherit;border-left:4px solid #0d88a7}.drafter .dr-list{list-style:none;margin:0;padding:0}.drafter .dr-list li{border-top:1px solid #e3e8ec;padding:8px 0;overflow-wrap:anywhere}
.drafter .dr-up{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}.drafter .dr-up input[type=text]{flex:1 1 220px;min-width:0;padding:8px;border:1px solid #ccd;border-radius:6px}.drafter .dr-up input[type=file]{max-width:100%}
.drafter .dr-form dt{font-weight:600;margin-top:6px}.drafter .dr-form dd{margin:2px 0 0}.drafter .dr-h{font-size:15px;margin:12px 0 2px}.drafter .dr-msg,.drafter .err{color:#b42318}
.drlogins summary{cursor:pointer}.drlogins .dr-accts{list-style:none;margin:8px 0;padding:0}.drlogins .dr-accts li{border-top:1px solid #eef1f3;padding:6px 0;overflow-wrap:anywhere}
.drlogins .dr-new{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.drlogins .dr-new input[type=email],.drlogins .dr-new input:not([type]){flex:1 1 180px;min-width:0;padding:6px 8px;border:1px solid #ccd;border-radius:6px}
.drlogins .dr-msg{color:#b42318}.drshare{margin:8px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* item 9 client file uploads (staff) */
.cfs .cfs-row{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #e3e8ec;padding:9px 0}
.cfs .cfs-w{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}.cfs .cfs-w a{font-weight:600;margin-right:6px}.cfs .cfs-done{color:#0a6f89;margin-top:3px}
.cfs .cfs-file{display:flex;gap:6px;flex-wrap:wrap}.cfs .cfs-file input{flex:1 1 200px;min-width:0;padding:6px 8px;border:1px solid #ccd;border-radius:6px}

/* item 10 C quote requests (tenders): staff Budget tab card + Trade Portal card */
.tnd-staff, .tnd-trade { margin-bottom: 16px; }
.tnd-req, .tnd-card { border: 1px solid #dfe6ea; border-radius: 8px; padding: 10px 12px; margin: 10px 0; min-width: 0; overflow-wrap: anywhere; }
.tnd-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.tnd-count { margin-left: auto; color: #0d88a7; font-weight: 600; }
.tnd-note { white-space: pre-wrap; margin: 6px 0; }
.tnd-grid { width: 100%; table-layout: fixed; margin-top: 6px; }
.tnd-grid td { vertical-align: top; overflow-wrap: anywhere; }
.tpill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef1f3; color: #22313a; }
.tpill.ok { background: #e3f4ea; color: #1d6b3a; }
.tpill.wait { background: #fff5dc; color: #7a5a00; }
.tpill.late { background: #fde8e8; color: #a12a2a; }
.tnd-actions, .tnd-up { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.tnd-actions input, .tnd-up input[name=note] { flex: 1 1 180px; min-width: 0; }
.tnd-hit { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border: 1px solid #c9d4da; border-radius: 6px; background: #fff; cursor: pointer; }
.tnd-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.tnd-form label { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.tnd-form .wide { grid-column: 1 / -1; }
.tnd-form textarea, .tnd-form input { width: 100%; box-sizing: border-box; }
.tchip { display: inline-block; margin: 4px 6px 0 0; padding: 2px 6px 2px 10px; border-radius: 12px; background: #e6f3f6; }
.tchip button { border: 0; background: none; cursor: pointer; font-size: 14px; }
.tnd-files { margin: 6px 0; padding-left: 18px; }
.tnd-pick { cursor: pointer; }
@media (max-width: 760px) { .tnd-form { grid-template-columns: minmax(0, 1fr); } .tnd-count { margin-left: 0; } }

/* item 10 B tender package (quote package PDF, match finishes, plans for invited trades) */
.tp-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; min-width: 0; overflow-wrap: anywhere; }
.tp-match { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tp-match input { width: 170px; max-width: 100%; }
.tp-plans { flex-basis: 100%; min-width: 0; }

/* company documents and renewals */
.company .co-ren td{vertical-align:top}.company .co-acts{white-space:nowrap}
.company .co-rf{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:8px 0}.company .co-rf label{display:grid;gap:3px;font-size:13px}
.company .co-rf .co-wide{grid-column:1/-1}.company .co-rf input,.company .co-rf select,.company .co-rf textarea{padding:6px 8px;border:1px solid #ccd;border-radius:6px;font:inherit;min-width:0}
.company .co-docs,.company .co-notes{list-style:none;margin:6px 0;padding:0}.company .co-docs li,.company .co-notes li{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #eef1f3;padding:7px 0;overflow-wrap:anywhere}
.company .co-up,.company .co-ac{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}.company .co-up input[type=text],.company .co-ac input{flex:1 1 200px;min-width:0;padding:6px 8px;border:1px solid #ccd;border-radius:6px}
.company .co-up input[type=file]{max-width:100%}.company .co-msg{color:#b42318}.company .co-add{margin-top:10px}
.cohome{border-left:4px solid #c8a96e}.cohome ul{margin:6px 0;padding-left:18px}
@media (max-width:640px){.company .co-acts{white-space:normal}}

/* item 12 budget from quotes (tender board) */
.tb-board { margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.tb-ai { display: inline-block; padding: 0 6px; border-radius: 4px; background: #c8a96e; color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.tb-grid { width: 100%; table-layout: fixed; }
.tb-grid td { vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.tb-grid th:nth-child(2), .tb-grid td:nth-child(2) { width: 80px; }
.tb-grid th:nth-child(4), .tb-grid td:nth-child(4) { width: 170px; }
.tb-q { padding: 4px 6px; margin: 2px 0; border-radius: 6px; }
.tb-q.used { background: #e6f3f6; }
.tb-checks { color: #7a5a00; margin-top: 2px; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
@media (max-width: 760px) { .tb-grid th:nth-child(4), .tb-grid td:nth-child(4) { width: 110px; } }

/* item 9 drafting plan compare (staff) */
.dfiles .df-chg{border-left:3px solid #c8a96e;background:#fbf8f1;padding:6px 8px;margin-top:6px;border-radius:4px;overflow-wrap:anywhere}
.dfiles .df-chg .df-ai{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:#0d88a7;border-radius:3px;padding:0 5px;margin-right:4px}
.dfiles .df-chg-t{margin-top:3px}.dfiles .df-chg-edit summary{cursor:pointer;margin-top:4px}
.dfiles .df-chg-f{display:flex;flex-direction:column;gap:6px;margin-top:6px}.dfiles .df-chg-f textarea{width:100%;box-sizing:border-box;padding:6px 8px;border:1px solid #ccd;border-radius:6px;font:inherit}
.dfiles .df-chg-f .df-chg-b{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.dfiles .df-chg-msg{color:#b42318}
.drafter .dr-chg{border-left:3px solid #c8a96e;background:#fbf8f1;padding:6px 8px;margin-top:6px;border-radius:4px}.drafter .dr-ai{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:#0d88a7;border-radius:3px;padding:0 5px;margin-right:4px}

/* Questions 39: inline styles moved out of the scripts (CSP style-src self) */
[data-sty="ml-auto"]{margin-left:auto !important}
[data-sty="w-full"]{width:100% !important}
[data-sty="w150"]{width:150px !important}
[data-sty="w130"]{width:130px !important}
[data-sty="minh50"]{min-height:50px !important}
[data-sty="mt14"]{margin-top:14px !important}
[data-sty="ws-normal"]{white-space:normal !important}
[data-sty="c-bad"]{color:#b54 !important}
[data-sty="w140"]{width:140px !important}
[data-sty="w200"]{width:200px !important}
[data-sty="ws-preline"]{white-space:pre-line !important}
[data-sty="w170"]{width:170px !important}
[data-sty="w70"]{width:70px !important}
[data-sty="w60"]{width:60px !important}
[data-sty="w120"]{width:120px !important}
[data-sty="w100"]{width:100px !important}
[data-sty="q-item"]{border-top:1px solid #e3e8ec !important;padding:10px 0 !important}
[data-sty="w-full-bb"]{width:100% !important;box-sizing:border-box !important}
[data-sty="tgrid-cols"]{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)) !important}
[data-sty="tperson"]{min-width:0 !important;max-width:100% !important;box-sizing:border-box !important;overflow-wrap:anywhere !important}
[data-sty="w-full-fixed"]{width:100% !important;table-layout:fixed !important}
[data-sty="w34-ws"]{width:34% !important;white-space:normal !important}
[data-sty="wrap-any"]{overflow-wrap:anywhere !important}
[data-sty="block-mt8"]{display:block !important;margin-top:8px !important}
[data-sty="block"]{display:block !important}
[data-sty="c-ok"]{color:#2a7a3b !important}
[data-sty="qm-staff"],[data-sty="qm-client"]{margin:6px 0 !important;padding:6px 9px !important;border-radius:6px !important}[data-sty="qm-staff"]{background:#eef6f9 !important}[data-sty="qm-client"]{background:#f3f6f8 !important}
@media (max-width:760px){.teamgrid{display:block!important}.teamgrid>.tperson{width:auto;max-width:100%}}
/* end Questions 39 */

/* item 10 A preliminary estimate review */
details.pestimate{border-top:1px solid #e3e8ec;margin-top:10px;padding-top:8px}details.pestimate summary{cursor:pointer}
.pestimate .pe-list{list-style:none;margin:6px 0;padding:0}.pestimate .pe-row{border-top:1px solid #eef1f3;padding:8px 0;overflow-wrap:anywhere}
.pestimate .pe-h{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pestimate .pe-n{display:flex;gap:14px;flex-wrap:wrap;margin:6px 0}
.pestimate .pe-draft,.pestimate .pe-approved{background:#fff1d6;color:#8a5a00}.pestimate .pe-released{background:#e3f4ea;color:#127a3a}.pestimate .pe-rejected{background:#fde7e5;color:#b42318}
.pestimate .pe-f{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:8px 0}.pestimate .pe-f label{display:grid;gap:3px;font-size:13px}
.pestimate .pe-f .pe-wide{grid-column:1/-1}.pestimate .pe-f input,.pestimate .pe-f textarea{padding:6px 8px;border:1px solid #ccd;border-radius:6px;font:inherit;min-width:0}
.pestimate .pe-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.pestimate .pe-msg{color:#b42318}
@media (max-width: 760px) { /* Nov 29 2026: phone Job Cost card, the flags + Adjust cell wraps instead of pushing past the screen (retest N11) */
  table.jcrt td { flex-wrap: wrap; max-width: 100%; }
  table.jcrt td:last-child { justify-content: flex-start; gap: 6px; }
  table.jcrt td > * { max-width: 100%; min-width: 0; }
  .jcrt td.wrap { min-width: 0; max-width: none; }
  .jcr .jflag, .jcr .jdcode { white-space: normal; }
}
/* finding 140 (Nov 28 2026): suggested trade on a service item from the home's POs */
.svguess { margin-top: 6px; padding: 6px 8px; border: 1px dashed #c9b37a; border-radius: 6px; background: #fbf7ec; max-width: 360px; white-space: normal; }
.svguess .svai { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #e9dcb4; color: #5b4a17; margin-right: 4px; }
.svguess .svuse { margin: 4px 4px 0 0; }
/* finding 149 part 2 (Nov 28 2026): Budget tab, similar size homes */
.szcmp .szcomps .pill { display: inline-block; margin: 2px 4px 2px 0; }
.szcmp tr.szflag td { background: #fbf3e2; }
.szcmp #bszf { margin: 6px 0; }
/* finding 156 slice 1 (Nov 28 2026): drafting agreement draft form on the Clients page drafting files box */
.dfiles .dk-btn { margin: 6px 0 4px; }
.dk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 12px; margin: 6px 0; padding: 8px; border: 1px solid #d9e1e5; border-radius: 6px; background: #f7fafb; }
.dk-form label { display: flex; flex-direction: column; gap: 2px; }
.dk-form .dk-note, .dk-form .dk-stages, .dk-form textarea { grid-column: 1 / -1; }
.dk-form .dk-st { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.dk-form .dk-st input:first-child { flex: 1; min-width: 0; }
.dk-form .dk-st input[type=number] { width: 70px; }

/* deep pass Nov 27: declined by trade */
.tag.red { background: #fde7e5; color: #b42318; }

/* deep pass Nov 27: phone filters at 40 px and 16 px (no iPhone zoom on tap) */
@media (max-width: 640px) { #main .filters select, #main .filters input { min-height: 40px; font-size: 16px; } }
/* Nov 29 2026 rerun fix: the 16 px filters made the Action Log 417 px wide at 390 (long job names in #ajob, the new item form grid) */
@media (max-width: 640px) {
  #main .filters select, #main .filters input { max-width: calc(100vw - 40px); min-width: 0; box-sizing: border-box; }
  form.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  form.grid2 label, form.grid2 .span2 { min-width: 0; }
  form.grid2 input, form.grid2 select, form.grid2 textarea { max-width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
}

/* deep pass Nov 27: job Schedule and Service tabs as cards on phones (public/phone-cards.js labels the cells) */
@media (max-width: 640px) {
  table.pcards { border: 0; min-width: 0 !important; width: 100%; }
  table.pcards thead { display: none; }
  table.pcards, table.pcards tbody, table.pcards tr, table.pcards td { display: block; width: auto; }
  table.pcards tbody tr { border: 1px solid #e3e8ec; border-radius: 10px; margin: 0 0 10px; padding: 8px 12px; background: #fff; }
  table.pcards tbody tr.done { opacity: .75; }
  table.pcards td { border: 0; padding: 4px 0; white-space: normal; text-align: left; font-size: 15px; }
  table.pcards td[data-label]:not(:first-child)::before { content: attr(data-label); display: inline-block; min-width: 92px; color: #5b6b75; font-size: 13px; font-weight: 600; margin-right: 8px; }
  table.pcards td:empty { display: none; }
  table.pcards td.barcell { display: none; }
  table.pcards input, table.pcards select, table.pcards textarea { font-size: 16px; min-height: 40px; max-width: 100%; box-sizing: border-box; }
  table.pcards input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; }
  table.pcards button, table.pcards .btn, table.pcards .link { min-height: 40px; padding: 8px 12px; font-size: 15px; }
  table.pcards td.acts { display: flex; flex-wrap: wrap; gap: 6px; }
}
/* Nov 29 2026 rerun fix: long option text made selects 400 to 520 px wide on the Schedule tab (page 431 px at 390), and grid input rules
   beat the 16 px card rule on the Service tab. Controls never wider than their box on phones; 16 px on cards, edit forms and filters. */
@media (max-width: 640px) {
  select { max-width: calc(100vw - 150px) !important; min-width: 0; }
  input:not([type=checkbox]):not([type=radio]), textarea { max-width: calc(100vw - 40px); box-sizing: border-box; min-width: 0; }
  .head > .search { flex: 1 1 100%; max-width: 100%; min-width: 0; }
  .edmore label, .edmore .grow { max-width: 100%; min-width: 0; flex-wrap: wrap; }
  table.pcards input:not([type=checkbox]), table.pcards select, table.pcards textarea { font-size: 16px !important; }
  form.edf input:not([type=checkbox]), form.edf select, form.edf textarea, .search input, .search select, form.filters input, form.filters select, section.card textarea, label.small select, label.small input:not([type=checkbox]) { font-size: 16px; }
}

/* item 14 Help Centre (Nov 30 2026) */
.gc { max-width: 860px; } .gctabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; } .gctabs a { padding: 6px 10px; border: 1px solid #d5e6ec; border-radius: 16px; text-decoration: none; color: #22313a; } .gctabs a.on { background: #0d88a7; color: #fff; border-color: #0d88a7; }
.gctools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .gctools input { flex: 1; min-width: 180px; min-height: 40px; padding: 6px 10px; }
.gcs { border: 1px solid #e3edf1; border-radius: 8px; padding: 8px 12px; margin: 8px 0; } .gcs summary { font-weight: 600; cursor: pointer; min-height: 32px; } .gcintro { color: #4b5c66; }
@media print { header, #nav, .gctools, .gctabs { display: none !important; } .gcs { border: 0; } }
/* Iris, Nov 30 2026 'Job Cost Screen': POs and invoices side by side on the Job Cost drill down (jc-drill.js) */
.jdside[hidden], .jdcols[hidden] { display: none; }
.jdpaired td { vertical-align: top; }
.jdpaired .jdsep { border-right: 2px solid #c9d6dc; }
.jdpaired tr.jdloose td { background: #fbf7ee; }
.jdpaired .jdnone { font-style: italic; }
.jdbox .jdhead .jdlayout { margin-left: auto; }
/* finding 128: Committed / Actual / Pending amounts open the drill down */
.jcr .jdnum{color:var(--teal);text-decoration:underline dotted;font:inherit;padding:0;margin:0;white-space:nowrap}
.jcr .jdnum:hover{color:var(--gold)}
.jcr .jdflash{background:rgba(200,169,110,.22)}
