/* SISO Pest Edition face (DESIGN-COLOR-LOCK-2026-11-19): Deep Pine Teal
   #0A5F5B primary, Darker Teal #094E4B depth, Leaf Green #4FC15F for good
   states only, Warm Amber #F2A33B for attention states, Clean Off White
   #F6F5FA surfaces. The pest tree does not carry the contractor stem's
   black and copper dress. Self-contained: system fonts, no webfonts, no
   network anything, so the round works fully offline. */

:root{
  --pine:#0A5F5B;
  --pine-dark:#094E4B;
  --leaf:#4FC15F;
  --amber:#F2A33B;
  --paper:#F6F5FA;
  --ink:#17302e;
  --muted:#5c6f6c;
  --line:#d8d5e2;
  --radius:16px;
  --shadow:0 -12px 34px rgba(9,46,43,.28);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{
  background:var(--pine-dark);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  font-size:15.5px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:var(--ink)}
h1,h2,h3{margin:0 0 .35em;line-height:1.15}
p{margin:0 0 .6em}
.small{font-size:.85rem}
.muted{color:var(--muted)}

/* ---- Round layout: header, gate bar, map stage, sliding panel ---- */
.roundapp{display:flex;flex-direction:column;height:100dvh;max-width:1100px;margin:0 auto;background:var(--paper)}
.roundhead{background:linear-gradient(180deg,var(--pine),var(--pine-dark));color:#fff;padding:12px 16px 10px}
.roundhead .brand{font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;opacity:.85}
.roundhead h1{font-size:1.35rem;margin:2px 0 6px}
.roundhead a{color:#cfe8e2}
.headrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.headrow .spacer{flex:1}
.headrow label{font-size:.8rem;font-weight:600;color:#dcefe9}
.headrow select,.headrow input[type=text]{
  border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;
  border-radius:10px;padding:7px 10px;max-width:100%;
}
.headrow select option{color:#111;background:#fff}
.headrow input[type=text]::placeholder{color:rgba(255,255,255,.65)}
.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 11px;font-size:.8rem;font-weight:700;border:1px solid var(--line);background:#fff;color:var(--ink)}
.chip.on{background:var(--pine);border-color:var(--pine);color:#fff}
.chip.warn{background:#fdf0da;border-color:var(--amber);color:#7a4d08}
.chip.good{background:#e4f6e8;border-color:var(--leaf);color:#14541f}

/* Gate bar: the close gate, stated honestly at all times */
.gatebar{background:#fff;border-bottom:1px solid var(--line);padding:9px 16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gatebar .bar{flex:1 1 140px;height:8px;border-radius:99px;background:#e7e4ef;overflow:hidden;min-width:110px}
.gatebar .bar i{display:block;height:100%;background:var(--pine);border-radius:99px}
.gatebar .bar.full i{background:var(--leaf)}
.btn{border:1px solid var(--pine);background:#fff;color:var(--pine);border-radius:12px;padding:9px 16px;font-weight:700}
.btn.solid{background:var(--pine);color:#fff}
.btn.good{background:var(--leaf);border-color:var(--leaf);color:#0d3313}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.small{padding:6px 12px;border-radius:10px;font-size:.88rem}
.btn.ghost{border-color:var(--line);color:var(--ink)}

/* Identity strip: search, scan, NFC */
.idstrip{background:#fff;border-bottom:1px solid var(--line);padding:8px 16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.idstrip input[type=search]{flex:1 1 180px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--paper)}
.idstrip .toggle{display:inline-flex;gap:6px;align-items:center;font-size:.85rem;font-weight:600;color:var(--muted)}
.searchhits{flex-basis:100%;display:none;flex-wrap:wrap;gap:6px}
.searchhits.open{display:flex}
.hit{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:5px 12px;font-size:.86rem;font-weight:600}
.hit:hover{border-color:var(--pine);color:var(--pine)}

/* Map stage */
.mapstage{position:relative;flex:1;min-height:300px;overflow:hidden;background:#20351f}
.mapstage svg.scene{position:absolute;inset:0;width:100%;height:100%}
.mapbadge{position:absolute;top:10px;left:12px;background:rgba(9,46,43,.82);color:#eaf4f0;border-radius:10px;padding:5px 11px;font-size:.78rem;font-weight:600;letter-spacing:.02em}
.maplegend{position:absolute;top:10px;right:12px;background:rgba(246,245,250,.94);border-radius:10px;padding:7px 11px;font-size:.76rem;display:flex;flex-direction:column;gap:3px}
.maplegend span{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--ink)}
.dotkey{width:13px;height:13px;border-radius:50%;display:inline-block;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.pin{
  position:absolute;transform:translate(-50%,-100%);z-index:3;
  width:34px;height:34px;border:none;background:none;padding:0;
}
.pin .head{
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;margin:0 auto;border-radius:50% 50% 50% 4px;
  transform:rotate(-45deg);border:2px solid #fff;box-shadow:0 2px 7px rgba(0,0,0,.45);
  background:var(--pine);color:#fff;
}
.pin .num{transform:rotate(45deg);font-weight:800;font-size:.86rem;line-height:1}
.pin.good .head{background:var(--leaf);color:#0d3313}
.pin.attn .head{background:var(--amber);color:#4d2f02}
.pin.retired{opacity:.45}
.pin.retired .head{background:#6d7a76}
.pin.sel .head{outline:3px solid var(--paper);outline-offset:1px}

/* Seen acknowledgement banner */
.ackbar{display:none;background:#fdf0da;border-bottom:1px solid var(--amber);padding:10px 16px}
.ackbar.open{display:block}
.ackbar .noteitem{background:#fff;border:1px solid var(--line);border-radius:10px;padding:7px 11px;margin:6px 0;font-size:.92rem}

/* Station panel: slides up over the map */
.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  max-width:1100px;margin:0 auto;max-height:88dvh;overflow-y:auto;
  background:var(--paper);border-radius:22px 22px 0 0;box-shadow:var(--shadow);
  transform:translateY(105%);transition:transform .28s ease;
  padding:6px 18px 26px;
}
.sheet.open{transform:translateY(0)}
.sheet .grip{width:44px;height:5px;border-radius:99px;background:#c9c5d6;margin:8px auto 10px}
.sheet .close{float:right}
.sheet h2{font-size:1.25rem;color:var(--pine-dark)}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px 16px;margin:8px 0}
.kv div{font-size:.92rem}
.kv .k{display:block;font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.standingnote{background:#eef7f4;border:1px solid #bcd8cf;border-radius:12px;padding:9px 12px;margin:8px 0;font-size:.94rem}
.standingnote .k{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--pine)}
.notehist{margin-top:6px;border-top:1px dashed var(--line);padding-top:5px}
.notehist summary{cursor:pointer;font-size:.82rem;font-weight:700;color:var(--pine-dark)}
.notehist .v{font-size:.88rem;color:var(--ink);margin:4px 0}
.hist{margin:10px 0}
.hist .entry{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:7px 0}
.hist .entry .top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hist .entry .date{font-weight:700}
.tag{display:inline-block;border-radius:999px;padding:1px 9px;font-size:.74rem;font-weight:700;background:#e7e4ef;color:var(--ink)}
.tag.good{background:#e4f6e8;color:#14541f}
.tag.warn{background:#fdf0da;color:#7a4d08}
.tag.pine{background:#dcefe9;color:var(--pine-dark)}
.shots{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.shotimg{width:76px;height:76px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.heroshot{width:100%;max-height:230px;object-fit:cover;border-radius:12px;border:1px solid var(--line);margin:6px 0}

/* Check-in form */
.checkin{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin-top:12px}
.checkin h3{color:var(--pine-dark)}
.field{margin:9px 0}
.field label{display:block;font-size:.8rem;font-weight:700;letter-spacing:.04em;color:var(--muted);margin-bottom:4px}
.field input[type=text],.field textarea,.field select,.field input[type=date],.field input[type=number]{
  width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:var(--paper);
}
.field textarea{min-height:58px;resize:vertical}
.seg{display:flex;flex-wrap:wrap;gap:7px}
.seg .opt{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:7px 14px;font-weight:600}
.seg .opt.sel{background:var(--pine);border-color:var(--pine);color:#fff}
.seg .opt.sel.warnsel{background:var(--amber);border-color:var(--amber);color:#4d2f02}
.checks{display:flex;flex-wrap:wrap;gap:7px 16px}
.checks label{display:inline-flex;gap:6px;align-items:center;font-weight:600;font-size:.93rem}
.formerr{color:#a12622;font-size:.92rem;font-weight:600}
.locked{background:#eef0f4;border:1px dashed var(--line);border-radius:12px;padding:11px 13px;color:var(--muted);margin-top:12px}

.empty{padding:22px 18px;color:var(--muted)}
.empty strong{color:var(--ink);display:block;font-size:1.02rem;margin-bottom:4px}
.footbar{padding:10px 16px;background:#fff;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* Agreements room (build step 6): a scrolling office page in the
   same face as the round screen. */
.page{display:flex;flex-direction:column;min-height:100dvh;max-width:1100px;margin:0 auto;background:var(--paper)}
.section{padding:12px 16px 4px}
.section h2{color:var(--pine-dark);font-size:1.08rem}
.agrcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin:10px 0}
.agrcard h3{color:var(--pine-dark);margin-bottom:2px}
.agrrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:9px}
.agrrow input[type=date]{border:1px solid var(--line);border-radius:10px;padding:7px 10px;background:var(--paper)}
.agrrow .small{flex-basis:100%}
.visitrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:6px 0;font-size:.93rem}
.visitrow .vdate{font-weight:700;min-width:96px}

/* Chemical applications room (build step 7): the label warning in
   the entry form and the flag history block on a record. Warm Amber
   is the attention color; the warning informs, it never blocks. */
.labelwarn{display:none;background:#fdf0da;border:1px solid var(--amber);border-radius:12px;padding:9px 12px;margin:10px 0;font-size:.94rem;color:#7a4d08}
.labelwarn.open{display:block}
.flaghist{background:#fdf6ec;border:1px solid var(--amber);border-radius:12px;padding:9px 12px;margin:9px 0;font-size:.93rem}
.flaghist div{margin:3px 0}

/* WDO inspections room (build step 8): the refusal list that names
   what a record is missing, and the CL-100 ready file's on screen
   face. The form itself is a printed form: white paper, black ink,
   its own typography, inside the pest face. */
.missinglist{background:#fdf0da;border:1px solid var(--amber);border-radius:12px;padding:11px 13px;margin:10px 0;font-size:.94rem;color:#7a4d08}
.clform{background:#fff;color:#111;border:1px solid #9a97a8;border-radius:6px;margin:12px 0;
  font-family:Georgia,"Times New Roman",serif;font-size:13.5px;line-height:1.45}
.clform .clpage{padding:22px 24px;border-bottom:2px dashed #c9c5d6}
.clform .clpage:last-child{border-bottom:none}
.clform h1{font-size:16.5px;text-align:center;letter-spacing:.05em;margin:0 0 4px;color:#111}
.clform .headrow{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px;color:#111}
.clform .banner{font-weight:700;text-align:justify;margin:10px 0}
.clform .fine{text-align:justify;margin:7px 0;font-size:12.8px}
.clform .loc{margin:12px 0 4px}
.clform .loc .val{font-weight:700}
.clform .instr{font-style:italic;margin:8px 0}
.clform .box{display:inline-block;width:12px;height:12px;border:1.5px solid #111;text-align:center;line-height:11px;font-size:10.5px;font-weight:700;margin-right:5px;vertical-align:-1px;font-family:Arial,sans-serif}
.clform .yn{white-space:nowrap;font-family:Arial,sans-serif;font-size:12.5px}
.clform .sect{font-weight:700;margin:12px 0 4px}
.clform .irow{display:flex;gap:10px;align-items:baseline;margin:3px 0 3px 18px}
.clform .irow .lab{flex:1}
.clform .irow.head{font-weight:700;margin-left:0}
.clform .trow{display:flex;gap:4px;align-items:baseline;margin:5px 0 5px 18px}
.clform .moist{margin:10px 0 2px 18px}
.clform .foot{margin-top:16px;font-size:12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.clform .cond h2,.clform .remarks h2{font-size:14.5px;text-align:center;letter-spacing:.06em;margin:0 0 2px;color:#111}
.clform .cond .sub{text-align:center;font-style:italic;margin:0 0 8px}
.clform .remarks{margin-top:18px}
.clform .remark{margin:5px 0;text-align:justify}
.clform .attest{text-align:justify;margin:16px 0}
.clform .siggrid{display:grid;grid-template-columns:1fr 1fr;gap:14px 30px;margin-top:16px}
.clform .siggrid .lab{font-size:11px;letter-spacing:.05em;color:#333}
.clform .sigval{font-weight:700;font-size:14px;min-height:20px}
.clform .sigline{border-bottom:1px solid #111;min-height:20px}
.clform .ack{margin-top:18px}
.clform .closing{text-align:center;margin-top:18px;font-size:12.5px}

/* Migration room (build step 12): the mapping tables, the staging
   rows, and the reconciliation count cards, in the same face. */
.migtable{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:8px 0;font-size:.92rem}
.migtable th,.migtable td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.migtable th{background:#eef7f4;color:var(--pine-dark);font-size:.76rem;letter-spacing:.07em;text-transform:uppercase}
.migtable tr:last-child td{border-bottom:none}
.countsrow{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.countcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 14px;min-width:104px}
.countcard .n{font-size:1.3rem;font-weight:800;color:var(--pine-dark);line-height:1.1}
.countcard .k{font-size:.74rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.migrow{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:7px 0}
.migrow .top{display:flex;flex-wrap:wrap;gap:7px;align-items:center}

/* Pest home (the front door): the room cards that lead the
   edition, in the same face as the rooms they open. */
.roomgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:10px 0}
.roomcard{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;text-decoration:none;color:var(--ink)}
a.roomcard:hover{border-color:var(--pine)}
.roomcard h3{color:var(--pine-dark);font-size:1.02rem}
.roomcard p{font-size:.9rem;color:var(--muted);margin:0}
.roomcard .go{display:inline-block;margin-top:7px;font-size:.85rem;font-weight:700;color:var(--pine)}
.roomcard .go + .go{margin-left:14px}

/* Print: the form file alone goes to paper. Only the WDO room
   carries a printsection, so these rules bite nowhere else. */
/* ---------------------------------------------------------------
   The office desk (desktop build): the wide layout. The desk page
   runs wider than the field pages and lays its home panels side by
   side; the office map is a plain latitude and longitude plot drawn
   locally, no tiles, no network. */
.deskpage { max-width: 1560px; }
.deskgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.deskgrid .section { margin: 0; }
.mapplot {
  width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}

@media print{
  body{background:#fff}
  .roundhead,.footbar,.section{display:none}
  .section.printsection{display:block;padding:0}
  .section.printsection .no-print{display:none}
  .clform{border:none;margin:0}
  .clform .clpage{border-bottom:none;page-break-after:always;padding:10px 6px}
  .clform .clpage:last-child{page-break-after:auto}
}
