/* flats-b1.css — DASH FLATS OVERHAUL batch 1 (David Dresdner, 9 Nov 2026), preview only.
   Everything here is new; jm.css / mobile.css are untouched by this batch (another worker is mid-edit on them for
   the jobs/flats action-column fix, so new styles live in this own file, not layered into theirs).
   HARD RULE (David): nothing floating. Every rule below is normal in-flow layout at rest; the two menus
   (.fl-menu row ⋯ / Contact ▾) only ever use position:absolute/fixed while actually OPEN as a transient dropdown
   or phone bottom sheet — never pinned over the table/card at rest. */

/* On Hold chip, same shape/sizing as the existing .fchip classes in jm.css */
.fc-hold{background:#ede7f6;color:#6a3fb0}

/* Stage dropdown: sized and placed like the chip it replaces, so the Status column never changes width/row height */
select.fl-stagesel,select.jb-stagesel{height:26px;padding:0 24px 0 10px;border-radius:999px;font-size:12.5px;font-weight:700;border:1px solid #d8dde5;background:#eef1f5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%234a5562" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 6px center/14px 14px;color:#4a5562;appearance:none;-webkit-appearance:none;max-width:100%;cursor:pointer}
select.fl-stagesel:focus,select.jb-stagesel:focus{outline:2px solid #1565c0;outline-offset:1px}
/* f4 item4: same look for the jobs-list stage dropdown (pronto_site jobs we arrange access for) */

/* ⋯ row-more button: same size/shape as the existing chevron "open" button beside it, normal flow, no overlap */
.fl-more{padding:0 8px;min-width:30px;display:inline-flex;align-items:center;justify-content:center}
.fl-more svg{fill:currentColor}

/* Contact ▾ button in the flat record, sits in the normal button row with Book/Mark no access/etc */
.fl-cwrap{display:inline-block}
.fl-contact-btn{display:inline-flex;align-items:center;gap:6px}
.fl-contact-btn .fl-car{font-size:10px;opacity:.7}
.fl-contact-btn[disabled]{opacity:.45;cursor:not-allowed}

/* The ⋯ / Contact ▾ dropdown itself (.fl-menu is .jm-menu + this class): the existing jm.css .jm-menu rule already
   gives it position:absolute, a card look and a shadow; this just keeps its own items touch-friendly in both menus. */
.jm-menu.fl-menu button[disabled]{opacity:.4;cursor:not-allowed}
.jm-menu.fl-menu button[disabled]:hover{background:none}

/* Phone (<=760px, matching the app's existing mobile breakpoint): both menus become a bottom sheet instead of a
   small anchored dropdown — easier to tap, never clipped by the card edge. Still only position:fixed while OPEN. */
@media (max-width:760px){
  .jm-menu.fl-menu{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;min-width:0!important;max-width:none!important;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(16,24,40,.18);padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px));animation:flSheetUp .16s ease-out}
  .jm-menu.fl-menu::before{content:"";display:block;width:40px;height:4px;margin:2px auto 10px;border-radius:4px;background:#d0d5dd}
  .jm-menu.fl-menu button{padding:13px 14px;font-size:15px}
  @keyframes flSheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  select.fl-stagesel{font-size:13px}
}

/* 0.16.36 (David 10 Nov 22:21 "bottom scroll on flats page needs pinning"): the flats table's sideways scroll bar, pinned to the bottom of the screen while the table is on screen (sticky in the page flow, so at the end of the list it sits under the last row and covers nothing); shown only when the table is wider than its card */
.fl-sb-wrap{display:none;position:sticky;bottom:0;z-index:12;overflow-x:auto;overflow-y:hidden;height:16px;margin-top:-1px;background:#eef0f3;border:1px solid var(--line);border-radius:0 0 8px 8px;scrollbar-width:auto;scrollbar-color:#9aa3b1 #eef0f3}
.fl-sb-wrap.on{display:block}
.fl-sb-wrap-inner{height:1px}
.fl-sb-wrap::-webkit-scrollbar{height:14px}
.fl-sb-wrap::-webkit-scrollbar-track{background:#eef0f3}
.fl-sb-wrap::-webkit-scrollbar-thumb{background:#9aa3b1;border-radius:7px;border:3px solid #eef0f3}

/* tenant booking (0.16.48-tb1): toggle in Access, visit days bar + panel, stage chips */
.bt-accrow.tb3{grid-template-columns:minmax(260px,420px) auto}
.bt-accrow.tb3 .bt-acchelp{display:none}
.tb-tog{display:flex;align-items:center;gap:12px;height:42px;padding:0 14px;border:1px solid #d9dee6;border-radius:10px;background:#fff;font-weight:600}
.tb-tog[hidden]{display:none}
.tb-sw{position:relative;display:inline-block;width:44px;height:24px;margin:0}
.tb-sw input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.tb-sw i{position:absolute;inset:0;border-radius:12px;background:#cfd5de;transition:background .15s}
.tb-sw i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.tb-sw input:checked+i{background:#1565c0}
.tb-sw input:checked+i:after{left:23px}
.tb-sw input:focus-visible+i{outline:2px solid #1565c0;outline-offset:2px}
.tb-i{width:24px;height:24px;border-radius:50%;border:0;background:transparent;color:#4a5562;font:italic 700 15px Georgia,serif;cursor:pointer;padding:0}
.tb-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 4px}
.tb-send{background:#1f2933;color:#fff;border-color:#1f2933;display:inline-flex;align-items:center;gap:6px}
.tb-send:disabled{opacity:.6;cursor:default}
.tb-sum{color:#6b7684;font-size:13px}
.tb-panel{border:1px solid #e1e5ec;border-radius:10px;background:#fff;padding:14px 16px;margin:6px 0 10px}
.tb-panel[hidden]{display:none}
.tb-panel h3{margin:0 0 4px;font-size:16px}
.tb-help,.tb-none{margin:0 0 10px;color:#4a5562;font-size:13px}
.tb-list{list-style:none;margin:0 0 12px;padding:0}
.tb-list li{display:flex;align-items:center;gap:14px;padding:6px 0;border-bottom:1px solid #eef0f3}
.tb-list li span{color:#4a5562}.tb-list li em{color:#9aa3b1;font-size:12px}
.tb-list .tb-ed{margin-left:auto}
.tb-list .tb-rm{margin-left:0;color:#c62828}
.tb-add{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.tb-add label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#4a5562}
.tb-add input{height:38px;padding:0 10px;border:1px solid #d9dee6;border-radius:8px;font:inherit;color:#1f2933}
.fc-lk{background:#e8eefc;color:#3b4fb8}.fc-lk2{background:#fdf0e0;color:#a15c07}.fc-tcl{background:#fdecea;color:#c62828}
@media (max-width:760px){.bt-accrow.tb3{grid-template-columns:1fr}}

#jm-new #nj-flist{display:none} /* 0.16.48tb6: David 16 Nov: no per-flat name list on the new-job form (flats are auto-named, renamable on the job) */

.tb-fld{position:relative;display:flex;align-items:center}
.tb-fld input{padding-right:38px!important;width:100%}
.tb-pk{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:8px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#4a5562}
.tb-pk:hover{background:#eef1f5}
.tb-pk svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pk-pop{position:absolute;z-index:99999;background:#fff;border:1px solid #d9dee6;border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:12px;font:14px system-ui,sans-serif;color:#1f2933}
.pk-cal{width:280px}
.pk-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.pk-hd button{width:32px;height:32px;border:0;border-radius:8px;background:#f2f4f7;font-size:20px;cursor:pointer}
.pk-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.pk-g i{font-style:normal;font-size:11px;color:#7a8594;padding:4px 0}
.pk-d{height:34px;border:0;border-radius:8px;background:transparent;cursor:pointer;font:inherit}
.pk-d:hover:not(:disabled){background:#eef1f5}
.pk-d.td{box-shadow:inset 0 0 0 1px #9aa5b4}
.pk-d.on{background:#2563eb;color:#fff}
.pk-d:disabled{color:#c3cad4;cursor:default}
.pk-clk{width:244px;text-align:center}
.pk-ct{font-size:26px;font-weight:700;margin-bottom:4px}
.pk-t{border:0;background:transparent;font:inherit;padding:2px 8px;border-radius:8px;cursor:pointer}
.pk-t.on{background:#e8f0fe;color:#2563eb}
.pk-face{fill:#f2f4f7}
.pk-hub{fill:#2563eb}
.pk-hand{stroke:#2563eb;stroke-width:2}
.pk-n{cursor:pointer}
.pk-n circle{fill:transparent}
.pk-n text{text-anchor:middle;font-size:13px;fill:#1f2933;pointer-events:none}
.pk-n.in text{font-size:11px;fill:#5b6675}
.pk-n:hover circle{fill:#dbe6fb}
.pk-n.on circle{fill:#2563eb}
.pk-n.on text{fill:#fff}
.pk-hint{font-size:12px;color:#7a8594;margin-top:2px}


/* Shared calendar/clock adapters keep native storage/constraints out of view. */
.pk-shared-field{min-width:0;max-width:100%;flex:1}
.pk-shared-field>.pk-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important;bottom:0;left:0}
.pk-shared-field input:not(.pk-source){min-width:0}
/* The survey filter bar and the tiny job progress bar used the same old class.
   Scope the survey bar explicitly so date filters stay reachable on phones. */
#fbar.fbar{width:auto;height:auto;min-width:0;padding:12px 14px;margin:0 0 14px;border-radius:var(--r);overflow:visible;background:#fff;flex-direction:column!important;gap:10px!important;flex-wrap:nowrap!important}
#fbar .fdate{flex-shrink:0;min-width:292px}
#fbar .fdate .tb-fld{flex:1 1 116px;min-width:110px}
#fbar .fdate .fdi{width:100%;height:30px;text-align:left;padding-left:6px}
@media(max-width:860px){#fbar.fbar{padding:10px}#fbar .fdate{flex-basis:100%;min-width:0;width:100%;height:40px}#fbar .fdate .tb-fld{min-width:0}}
