/* fixora — app layer on the Ownware UI kit (assets/ui/ownware-ui.css). Accent + app-specific rules only; generic rules come from the kit. */
:root{--accent:#0d9488;--accent-dark:#0f766e;--accent-soft:#e6f7f5;--on-accent:#ffffff;--accent-ink:var(--on-accent)}
html[data-theme="dark"]{--accent:#2dd4bf;--accent-dark:#5eead4;--accent-soft:#0f312e;--on-accent:#0b0d10;--accent-ink:var(--on-accent)}
*{box-sizing:border-box}
.pill.operational      {background:var(--okbg);color:var(--ok)}
.pill.needs-attention  {background:var(--warnbg);color:var(--warn)}
.pill.down             {background:var(--badbg);color:var(--bad)}
.pill.retired          {background:#eef1f6;color:#475569}
.pill.ok               {background:var(--okbg);color:var(--ok)}
.pill.due-soon         {background:var(--warnbg);color:var(--warn)}
.pill.overdue          {background:var(--badbg);color:var(--bad)}
.pill.open             {background:var(--infobg);color:var(--info)}
.pill.in-progress      {background:var(--warnbg);color:var(--warn)}
.pill.done             {background:var(--okbg);color:var(--ok)}
.pill.cancelled        {background:#eef1f6;color:#475569}
.pill.low              {background:#eef1f6;color:#475569}
.pill.medium           {background:var(--infobg);color:var(--info)}
.pill.high             {background:var(--warnbg);color:var(--warn)}
.pill.urgent           {background:var(--badbg);color:var(--bad)}
.pill.preventive       {background:var(--accent-soft);color:var(--accent-dark)}
.pill.corrective       {background:#f1e8ff;color:#6d28d9}
.tag{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;color:var(--sub)}
.due-late{color:var(--bad);font-weight:700}
.meta-list{list-style:none;margin:0;padding:0}
.meta-list li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.meta-list li:last-child{border-bottom:none}
.meta-list .k{color:var(--sub)}
.photo{max-width:100%;border-radius:10px;border:1px solid var(--line)}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.filters a{padding:6px 12px;border:1px solid var(--line);border-radius:20px;background:var(--field-bg);color:var(--ink);font-size:.85rem;font-weight:600}
.filters a.on{background:var(--accent);border-color:var(--accent);color:#fff}
.filters a:hover{text-decoration:none;border-color:var(--accent)}
pre.notes{white-space:pre-wrap;font:inherit;margin:0;color:var(--ink)}
.cal-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:10px}
.cal-title{font-size:1.15rem;font-weight:800;display:flex;align-items:center;gap:10px}
.cal{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
.cal-head,.cal-week{display:grid;grid-template-columns:repeat(7,1fr)}
.cal-dow{padding:8px 10px;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--sub);
  font-weight:700;border-bottom:1px solid var(--line);background:var(--head-bg)}
.cal-day{min-height:96px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:6px;overflow:hidden}
.cal-week .cal-day:last-child{border-right:none}
.cal-week:last-child .cal-day{border-bottom:none}
.cal-day.out{background:var(--out-bg)}
.cal-day.out .cal-num{color:#c2c8cf}
.cal-day.today{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.cal-num{font-size:.8rem;font-weight:700;color:var(--sub);margin-bottom:4px}
.cal-today-tag{background:var(--accent);color:#fff;font-size:.64rem;font-weight:700;border-radius:8px;padding:1px 6px;text-transform:uppercase;letter-spacing:.03em}
.cal-item{display:block;font-size:.74rem;font-weight:600;line-height:1.3;padding:2px 6px;border-radius:6px;
  margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-item:hover{text-decoration:none;filter:brightness(.96)}
.cal-item.pm{background:var(--accent-soft);color:var(--accent-dark)}
.cal-item.pm.late{background:var(--badbg);color:var(--bad)}
.cal-item.wo{background:var(--infobg);color:var(--info)}
.cal-item.wo.p-urgent{background:var(--badbg);color:var(--bad)}
.cal-item.wo.p-high{background:var(--warnbg);color:var(--warn)}
.cal-item .muted{color:inherit;opacity:.65}
.cal-dot-bad{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--bad);margin-right:4px;vertical-align:1px}
.cal-more{font-size:.7rem;color:var(--sub);padding:0 6px}
.cal-key{font-size:.76rem;font-weight:600;padding:2px 8px;border-radius:6px}
.cal-key.pm{background:var(--accent-soft);color:var(--accent-dark)}
.cal-key.pm.late{background:var(--badbg);color:var(--bad)}
.cal-key.wo{background:var(--infobg);color:var(--info)}
@media(max-width:860px){.cal-day{min-height:64px}.cal-item{font-size:.66rem}}
.wv-writein{min-width:130px;border-left:1px dashed var(--line)}
.printonly{display:none}
@media print{
  /* Paper is always light: force the light tokens so a dark-theme user still prints a
     readable worksheet instead of pale grey ink on white. */
  html[data-theme="dark"]{
    --ink:#0f172a; --sub:#5b6470; --line:#e5e7eb; --bg:#fff; --card:#fff;
    --field-bg:#fff; --hover-bg:#fff; --label:#374151; --chip:#eef1f6;
    --surface:#fff; --surface-alt:#fff; --head-bg:#fff; --out-bg:#fff;
    --accent:#0d9488; --accent-dark:#0f766e;
  }
  .printonly{display:table-cell}
  .cal-day{min-height:80px}
  .cal-day.today{box-shadow:inset 0 0 0 2px #333}
  .wv-group{break-inside:avoid}}
.techwrap{max-width:640px;margin:0 auto;padding:14px 12px 40px}
.techhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.techhead h1{font-size:1.35rem;margin:0}
.techhead select{min-height:44px;font-size:1rem}
.techempty{color:var(--muted);padding:24px 4px}
.techcard{display:block;background:var(--card);border:1px solid var(--line);border-left-width:6px;
  border-radius:12px;padding:13px 14px;margin-bottom:11px;color:inherit;text-decoration:none}
.techcard:hover{text-decoration:none;border-color:var(--accent)}
.techcard.prio-critical{border-left-color:#dc2626}
.techcard.prio-high{border-left-color:#ea580c}
.techcard.prio-medium{border-left-color:var(--accent)}
.techcard.prio-low{border-left-color:var(--line)}
.techtop{display:flex;gap:8px;align-items:center;margin-bottom:5px}
.techprio,.techstatus{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;
  padding:3px 8px;border-radius:999px;background:var(--line)}
.techtitle{font-weight:700;font-size:1.02rem;margin-bottom:3px}
.techdesc{color:var(--muted);font-size:.93rem;line-height:1.45}
.techmeta{color:var(--muted);font-size:.78rem;margin-top:7px}
.techsection{margin-top:22px}
.techsection h2{font-size:1rem;margin:0 0 8px}
.techrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.techrow input,.techrow select{min-height:44px;font-size:1rem;flex:1 1 140px;min-width:0}
.techlabel{flex:1 1 100%;font-weight:600}
.techphotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-bottom:10px}
.techphotos figure{margin:0}
.techphotos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.techphotos figcaption{font-size:.72rem;color:var(--muted);margin-top:3px}
@media (max-width:420px){
  .techwrap{padding:10px 9px 36px}
  .techrow input,.techrow select{flex:1 1 100%}}
@media (max-width:560px){          /* only "My jobs" stays visible */
  body.page-tech .side .brand{margin:0 0 8px;font-size:1rem}}

/* ── work-order board (hero) ──────────────────────────────────────────────── */
.woboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.lane{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);min-width:0;display:flex;flex-direction:column;max-height:calc(100vh - 250px)}
html[data-theme="dark"] .lane{background:var(--bg)}
.lane-h{display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center;padding:11px 13px;border-bottom:1px solid var(--line)}
.lane-h .lt{font-weight:700;font-family:var(--display);font-size:.95rem}
.lane-h .ln{background:var(--chip);color:var(--sub);border-radius:999px;padding:1px 8px;font-size:.76rem;font-weight:700;font-variant-numeric:tabular-nums}
.lane-h .lh{grid-column:1/-1;font-size:.74rem;color:var(--faint)}
.lane-open .lane-h{border-bottom-color:var(--info)} .lane-in-progress .lane-h{border-bottom-color:var(--warn)}
.lane-done .lane-h{border-bottom-color:var(--ok)} .lane-cancelled .lane-h{border-bottom-color:var(--line)}
.lane-b{padding:10px;display:flex;flex-direction:column;gap:9px;overflow-y:auto;min-height:120px;flex:1}
.lane-b.over{background:var(--accent-soft);outline:2px dashed var(--accent);outline-offset:-4px;border-radius:0 0 var(--radius) var(--radius)}
.lane-empty{color:var(--faint);font-size:.84rem;text-align:center;padding:22px 8px}
.lane-more{font-size:.82rem;text-align:center;padding:6px}

.wocard{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--line);border-radius:var(--radius-sm);padding:10px 11px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;transition:box-shadow .12s,transform .12s}
.woboard.movable .wocard{cursor:grab}
.wocard:hover{box-shadow:var(--shadow-md)}
.wocard:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wocard.dragging{opacity:.6;transform:rotate(1deg);cursor:grabbing}
.wocard.saving{opacity:.5;pointer-events:none}
.wocard.p-urgent{border-left-color:var(--bad)} .wocard.p-high{border-left-color:var(--warn)}
.wocard.p-medium{border-left-color:var(--info)} .wocard.p-low{border-left-color:var(--line)}
.wc-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.wc-no{font-size:.78rem;font-weight:700}
.wc-desc{margin:0;font-size:.88rem;line-height:1.4;color:var(--ink)}
.wc-asset{font-size:.8rem;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wc-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.76rem;color:var(--sub);flex-wrap:wrap}
.wc-foot .who{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52%}
.wc-foot .meta{display:flex;gap:6px;align-items:center}
.wc-foot .age{background:var(--chip);border-radius:999px;padding:1px 7px;font-variant-numeric:tabular-nums}
.wc-foot .age.old{background:var(--warnbg);color:var(--warn);font-weight:700}

@media(max-width:1100px){
  .woboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lane{max-height:none}
}
@media(max-width:640px){
  .woboard{grid-template-columns:minmax(0,1fr)}
  .lane-b{max-height:320px}
}

/* ── work-order attachments (v3.1 P3) ───────────────────────────────── */
.wofiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.wofile{margin:0;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:var(--card)}
.wofile a{display:block;aspect-ratio:4/3;background:var(--chip);overflow:hidden}
.wofile img{width:100%;height:100%;object-fit:cover;display:block}
.wofile .doc{display:grid;place-items:center;height:100%;font-family:var(--display);font-weight:800;color:var(--sub);letter-spacing:.08em}
.wofile figcaption{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 9px;font-size:.8rem}
.wofile figcaption .cap{color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.wofile figcaption form{margin-left:auto}
.pill.before{background:var(--infobg);color:var(--info)} .pill.after{background:var(--okbg);color:var(--ok)}
.pill.doc{background:var(--chip);color:var(--sub)}
.filepick{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px dashed var(--line);border-radius:var(--radius-sm);padding:8px 12px;font-size:.86rem;color:var(--sub);cursor:pointer;margin:0;background:var(--field-bg)}
.filepick:hover{border-color:var(--accent);color:var(--accent)}
.filepick input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
@media(max-width:560px){.wofiles{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}

/* audit-2 final: report cards + calendar day numbers shrink instead of clipping */
.report-grid,.rep-cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important}
.cal-num{min-width:0;font-variant-numeric:tabular-nums}
@media(max-width:1280px){.report-grid>.card,.card .chart{min-width:0}}

/* fix wave 2026-09-24: the sidebar is a flex column that scrolls; with a long nav the brand (overflow:hidden,
   so its min-height is 0) was shrunk to 0px and the business name vanished from the top of every page. */
.side .brand{flex-shrink:0} /* fix wave */
