/* The app's look: colors and spacing up top (:root), then the parts of each screen. Some styles are for screens the
   original app had (work orders, vacancies...). They do nothing here and are safe to leave or delete. */
:root {
  --ink: #16181d; --ink-fg: #f4f1ea; --bg: #f4f2ed; --card: #ffffff; --fg: #1b1d22; --muted: #6b6f78; --border: #e2ded4;
  --gold: #e6b422; --gold-dark: #b98c0e; --gold-soft: #fbf3dc; --green: #1f7a3a; --blue: #0b436c; --danger: #c62f24; --ok: #1f7a43;
  --tile-top: #ffffff; --tile-bottom: #faf8f3; --tile-edge: #d3ccbc; --tile-lip: #c4bba7; --tile-shadow: rgba(22, 24, 29, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--font); }
a { color: var(--blue); }
h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.sec-head { background: var(--ink); color: var(--ink-fg); border-radius: 12px 12px 0 0; padding: 10px 16px; font-weight: 750; display: flex; justify-content: space-between; align-items: center; }
.sec-head + .card { border-radius: 0 0 14px 14px; border-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--gold); color: #1b1d22; box-shadow: 0 2px 0 var(--gold-dark); }
.btn-ink { background: var(--ink); color: var(--ink-fg); }
.btn-outline { background: #fff; border-color: var(--tile-edge); color: var(--fg); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--tile-edge); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 650; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.tabs button small { opacity: .7; font-weight: 600; }
.search { width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--tile-edge); border-radius: 10px; font: inherit; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: #fbfaf6; }
.terms td:first-child { width: 48%; }
.terms input[type=text] { width: 100%; padding: 7px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.terms input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold-dark); }
.terms .syn { color: var(--muted); font-size: .78rem; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.pill.ok { background: #e3f3e8; color: var(--ok); }
.pill.warn { background: var(--gold-soft); color: #7a5a00; }
.pill.info { background: #e6eef6; color: var(--blue); }
.pill.mute { background: #eeece6; color: var(--muted); }
.drop { border: 2px dashed var(--tile-edge); border-radius: 14px; padding: 26px; text-align: center; background: #fbfaf6; margin-bottom: 16px; }
.drop.over { border-color: var(--gold); background: var(--gold-soft); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.notice { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-fg); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--ink-2, #555); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.btn-link:hover { color: inherit; }
.doc-title { outline: none; border-radius: 4px; padding: 1px 3px; margin-left: -3px; cursor: text; }
.doc-title:hover { background: rgba(0,0,0,.05); }
.doc-title:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent, #e8b923); }

/* Desktop layout: logo across the top, the menu down the left, one wide working area. */
.app-head { position: relative; text-align: center; padding: 18px 24px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.app-logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; line-height: 1; }
.app-logo .ez { font-size: 2.3rem; font-weight: 900; color: #0b436c; letter-spacing: -.03em; }
.app-logo .ez sup { font-size: 1.1rem; }
.app-logo .lease { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 2rem; color: #1f7a3a; }
.app-tag { margin: 4px 0 0; font-weight: 800; color: #0b436c; }
.app-tag span { color: #1f7a3a; }
.help-btn { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.layout { display: flex; gap: 24px; align-items: flex-start; max-width: 1380px; margin: 0 auto; padding: 22px 24px 48px; }
.side-nav { flex: none; width: 150px; display: flex; flex-direction: column; border: 1px solid var(--tile-edge); border-radius: 14px; overflow: hidden; background: #fff; position: sticky; top: 16px;
  box-shadow: 0 3px 0 var(--tile-lip), 0 10px 18px -10px var(--tile-shadow); }
.side-nav a { padding: 15px 16px; text-decoration: none; color: var(--fg); font-weight: 650; font-size: 1.02rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { background: #faf8f3; }
.side-nav a.on { background: var(--ink); color: var(--ink-fg); font-weight: 800; }
.side-nav small { font-size: .7rem; background: var(--gold); color: #16181d; border-radius: 999px; padding: 1px 7px; font-weight: 800; }
.app { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.app > .card, .app > .notice { margin-bottom: 0; }
.page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title h1 { margin: 0; flex: 1; }
@media (max-width: 860px) { .layout { flex-direction: column; padding: 14px; } .side-nav { width: 100%; flex-direction: row; overflow-x: auto; position: static; }
  .side-nav a { border-bottom: 0; border-right: 1px solid var(--border); flex: 1; justify-content: center; } .help-btn { position: static; transform: none; margin-top: 8px; } }

/* Tables in the mock-up style: a dark title band, then rows. */
.tbl { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tbl-head { background: var(--ink); color: var(--ink-fg); padding: 11px 16px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tbl-head .btn { min-height: 34px; padding: 5px 12px; }
.tbl table th { background: #faf8f3; }
.tbl table td, .tbl table th { padding: 10px 14px; }
.tbl .grp td { background: #f4f2ed; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fffaea; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #a39e92; }
.empty-row td { color: var(--muted); text-align: center; padding: 22px; }
.scroll-x { overflow-x: auto; }

/* Form grids (Setup, Create, Tenant Information) */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.fgrid.one { grid-template-columns: 1fr; }
.fcell { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.fcell label { font-weight: 650; font-size: .92rem; }
.fcell input[type=text], .fcell select, .fcell textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; background: #fff; }
.fcell input:disabled { background: #f6f4ef; color: var(--muted); }
.fcell .hint { grid-column: 2; font-size: .76rem; color: var(--muted); margin-top: -6px; }
.fcell.wide { grid-column: 1 / -1; }
.fcell input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold-dark); }
.tenant-row { display: grid; grid-template-columns: 110px 1fr 70px 140px 64px; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px solid var(--border); }
.tenant-row input[type=text] { width: 100%; padding: 7px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.tenant-row .adult { font-size: .8rem; font-weight: 800; text-align: center; border-radius: 999px; padding: 3px 0; }
.adult.y { background: #e3f3e8; color: var(--ok); } .adult.n { background: #eeece6; color: var(--muted); }
details.block { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
details.block > summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; background: #faf8f3; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::after { content: '▸'; color: var(--muted); margin-left: 10px; }
details.block[open] > summary::after { content: '▾'; }
details.block > summary small { color: var(--muted); font-weight: 600; margin-left: auto; }
.save-note { color: var(--muted); font-size: .85rem; }

/* Unit page */
.unit-bar { background: var(--ink); color: var(--ink-fg); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.unit-bar .top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.unit-bar h1 { font-size: 1.5rem; margin: 0; }
.unit-bar .facts { display: flex; gap: 18px; flex-wrap: wrap; color: #c9c6be; font-size: .92rem; }
.unit-bar .facts b { color: #fff; }
.unit-bar select { margin-left: auto; background: #2a2d34; color: #fff; border-color: #3a3e47; }
.unit-bar .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-bar .btn-outline { background: transparent; color: #fff; border-color: #5a5e68; }
.unit-bar .btn-outline:hover { background: rgba(255,255,255,.08); }
.print-track { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.print-track .stamp { background: rgba(255,255,255,.08); border-radius: 8px; padding: 4px 10px; color: #c9c6be; }
.print-track .stamp b { color: #fff; }
.print-track label { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.08); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.print-track input { width: 17px; height: 17px; accent-color: var(--gold); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.panel h2 { background: var(--ink); color: var(--ink-fg); margin: 0; padding: 10px 16px; font-size: 1rem; }
.panel .body { padding: 6px 16px 12px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ck:last-child { border-bottom: 0; }
.ck > label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.ck input[type=checkbox], .ck input[type=radio] { width: 19px; height: 19px; accent-color: var(--gold-dark); flex: none; }
.ck .na { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.ck input[type=text] { width: 120px; padding: 5px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.ck.done > label span { color: var(--muted); }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 0 8px; }
.radio-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.vend th, .vend td { padding: 7px 6px; font-size: .92rem; }
.vend select { padding: 5px 4px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; font-size: .88rem; }
.vend th { font-size: .72rem; }
.vend td:first-child { font-weight: 650; }
.vend input[type=text] { width: 105px; padding: 5px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.vend input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--gold-dark); }
.vend tr.na td:not(:nth-child(2)) { opacity: .4; }
.vend tr.done td:first-child { color: var(--ok); }
.where { display: flex; gap: 4px; flex-wrap: wrap; }
.where button { border: 1px solid var(--tile-edge); background: #fff; border-radius: 999px; padding: 3px 9px; font: inherit; font-size: .8rem; cursor: pointer; }
.where button.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.notes { width: 100%; min-height: 90px; padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; resize: vertical; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }

/* Pop-up (Print Addendums, Add Form) */
.modal-back { position: fixed; inset: 0; background: rgba(16,18,22,.55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal h2 { margin: 0; padding: 14px 18px; background: var(--ink); color: var(--ink-fg); font-size: 1.05rem; }
.modal .body { padding: 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.modal .foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.disclaimer { background: #f6f4ef; border-radius: 10px; padding: 10px 12px; font-size: .84rem; color: #4a4e56; }
.attest { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; cursor: pointer; }
.attest input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold-dark); flex: none; }
.drop.big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; }
.drop.big svg { width: 38px; height: 38px; fill: none; stroke: #1f7a3a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop p { margin: 0; }
.drop.disabled { opacity: .45; pointer-events: none; }
.doc-title { outline: none; border-radius: 4px; padding: 1px 3px; margin-left: -3px; cursor: text; }
.doc-title:hover { background: rgba(0,0,0,.05); }
.doc-title:focus { background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--blue); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.pill.bad { background: #fde9e7; color: var(--danger); }
.prose h2 { margin-top: 8px; }
.prose li { margin-bottom: 6px; }
select { font: inherit; padding: 6px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; background: #fff; max-width: 100%; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
@media print {
  .app-head, .side-nav, .unit-bar .btns, .unit-bar select, .no-print { display: none !important; }
  body { background: #fff; } .layout { padding: 0; } .unit-bar { background: #fff; color: #000; border: 1px solid #000; }
  .panel, .tbl { break-inside: avoid; }
}
.tip { background: #e6eef6; border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: #1d3a55; }
.side-nav { overflow: visible; }
.side-nav a { position: relative; }
.side-nav a:first-child { border-radius: 14px 14px 0 0; } .side-nav a:last-child { border-radius: 0 0 14px 14px; }
.start-here { position: absolute; left: calc(100% - 26px); top: 50%; transform: translateY(-50%); background: var(--gold); color: #16181d; font-weight: 900; font-size: .85rem; padding: 7px 12px; border-radius: 8px; white-space: nowrap; box-shadow: 0 3px 0 var(--gold-dark), 0 6px 14px rgba(0,0,0,.2); z-index: 3; }
.help-sec.first { background: var(--gold-soft); border-radius: 10px; padding: 4px 14px; margin: 10px -14px; }
.pick-head { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 0; }

/* Forms list and the form View / Edit screen */
.forms-tbl td.right { text-align: right; }
.view-btn { min-height: 32px; padding: 4px 16px; }
tr.dim td { color: var(--muted); }
tr.dim .view-btn { background: #fff; border-color: var(--tile-edge); box-shadow: none; }
.pill { margin-left: 6px; }
.form-view { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.form-side { position: sticky; top: 16px; }
.fcell.one-col { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; border: 0; }
.sheet-wrap { background: #e9e6df; border-radius: 14px; padding: 24px; }
.sheet { background: #fff; max-width: 680px; margin: 0 auto; padding: 48px 56px; box-shadow: 0 6px 24px rgba(0,0,0,.12); font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; min-height: 600px; }
.sheet-prop { text-align: center; font-weight: 800; font-size: 19px; }
.sheet-title { text-align: center; font-weight: 800; font-size: 17px; margin: 4px 0 22px; }
.sheet h3 { font-size: 14.5px; margin: 14px 0 4px; }
.sheet p { margin: 0 0 8px; }
.sheet ul { margin: 0 0 8px; padding-left: 20px; }
.sheet .sec { border-radius: 8px; padding: 2px 8px; margin: 0 -8px 4px; }
.sheet .sec.editing { background: #fffaea; padding: 8px; margin: 0 -8px 10px; }
.sheet .sec.locked { }
.sec-tools { display: flex; gap: 10px; align-items: center; margin: 2px 0 4px; }
.lock { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #eeece6; color: #555; font-family: var(--font); }
.lock.open { background: var(--gold-soft); color: #7a5a00; }
.sec-edit { width: 100%; font: 14px/1.5 Helvetica, Arial, sans-serif; border: 1px solid var(--gold); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.ph { background: #e6eef6; color: var(--blue); border-radius: 4px; padding: 0 4px; font-weight: 700; font-size: .92em; }
.ph.set { background: #e3f3e8; color: var(--ok); }
.sheet-sign { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; font-size: 13px; color: #333; }
.pdf-frame { width: 100%; height: 820px; border: 0; border-radius: 8px; background: #fff; }
.disclaimer.attorney { background: var(--gold-soft); border: 1px solid var(--gold); color: #5a4300; }
@media (max-width: 1100px) { .form-view { grid-template-columns: 1fr; } .form-side { position: static; } }

/* Forms: the CAA section */
.caa-approve { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: var(--gold-soft); border-bottom: 1px solid var(--border); cursor: pointer; }
.caa-approve.on { background: #e3f3e8; }
.caa-approve input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold-dark); flex: none; }
.caa-approve span { display: flex; flex-direction: column; gap: 2px; }
td.acts { white-space: nowrap; }
td.acts .btn-link { margin-right: 10px; }
tr.dim td { color: var(--muted); }
.disclaimer.attorney { background: var(--gold-soft); border: 1px solid var(--gold); color: #5a4300; }

/* Form editor */
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ed-pages { background: #e9e6df; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; overflow-x: auto; }
.ed-page { position: relative; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.14); flex: none; }
.ed-page canvas { display: block; width: 100%; height: 100%; }
.ed-pnum { position: absolute; top: -18px; right: 0; font-size: .75rem; color: var(--muted); }
.ed-box { position: absolute; padding: 0; margin: 0; border: 1.5px solid; border-radius: 2px; cursor: pointer; font: 600 10px/1.1 var(--font); overflow: hidden; text-align: left; color: #1d3a55; }
.ed-box.auto { background: rgba(37, 99, 235, .14); border-color: rgba(37, 99, 235, .7); }
.ed-box.edited { background: rgba(232, 185, 35, .28); border-color: #c99a06; }
.ed-box.kept { background: rgba(120, 120, 120, .08); border-color: rgba(120, 120, 120, .45); }
.ed-box.blank { background: rgba(120, 120, 120, .04); border-color: rgba(120, 120, 120, .3); border-style: dashed; }
.ed-box.mine { background: rgba(31, 122, 58, .14); border-color: #1f7a3a; color: #0f4a22; padding: 2px 3px; }
.ed-box.mine.cover { background: rgba(255, 255, 255, .92); }
.ed-box.ghost { pointer-events: none; border-style: dashed; }
.ed-box.sel { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 2; }
.ed-pages.drawing .ed-page { cursor: crosshair; }
.ed-pages.drawing .ed-box { pointer-events: none; }
.ed-side { position: sticky; top: 16px; }
.ed-side .body { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.ed-side select, .ed-side input[type=text], .ed-side textarea { width: 100%; font: inherit; padding: 7px 9px; border: 1px solid var(--tile-edge); border-radius: 8px; }
.ed-lab { font-weight: 700; font-size: .9rem; margin-top: 4px; }
.legend { display: grid; grid-template-columns: 18px 1fr; gap: 6px 8px; align-items: center; font-size: .85rem; }
.ed-key { width: 16px; height: 12px; border: 1.5px solid; border-radius: 2px; display: inline-block; }
.ed-key.auto { background: rgba(37, 99, 235, .14); border-color: rgba(37, 99, 235, .7); }
.ed-key.edited { background: rgba(232, 185, 35, .28); border-color: #c99a06; }
.ed-key.kept { background: rgba(120, 120, 120, .08); border-color: rgba(120, 120, 120, .45); }
.ed-key.mine { background: rgba(31, 122, 58, .14); border-color: #1f7a3a; }
#addBtn.on, .btn.on { background: var(--ink); color: var(--ink-fg); }
@media (max-width: 1150px) { .ed-layout { grid-template-columns: 1fr; } .ed-side { position: static; } }

/* Calendar (Home) */
.cal-head .row { gap: 8px; }
.cal-create { background: transparent; color: #fff; border-color: #5a5e68; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 6px; }
.cal-title { margin: 0 0 0 6px; font-size: 1.15rem; }
.icon-btn { min-width: 38px; padding: 4px 10px; font-size: 1.2rem; line-height: 1; }
.seg { display: inline-flex; border: 1px solid var(--tile-edge); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-weight: 650; cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--ink-fg); }
.cal-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 2px 16px 10px; font-size: .85rem; }
.fchip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fchip input { width: 16px; height: 16px; accent-color: var(--ink); }
.fchip i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-body { padding: 0 16px 16px; }
:root { --c-mo: #c0392b; --c-mi: #1f7a3a; --c-vendor: #2563eb; --c-action: #b7791f; --c-print: #6b7280; }
.fchip.moveout i, .u-ev.moveout i { background: var(--c-mo); } .fchip.movein i, .u-ev.movein i { background: var(--c-mi); } .fchip.vendor i, .u-ev.vendor i { background: var(--c-vendor); }
.fchip.action i, .u-ev.action i { background: var(--c-action); } .fchip.print i, .u-ev.print i { background: var(--c-print); }
.ev { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid; border-radius: 4px; padding: 2px 5px; margin-top: 3px; font: 12px/1.3 var(--font); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.moveout { background: #fbe9e7; border-color: var(--c-mo); color: #7f1d16; }
.ev.movein { background: #e3f3e8; border-color: var(--c-mi); color: #134d26; }
.ev.vendor { background: #e6eefc; border-color: var(--c-vendor); color: #1e3a8a; }
.ev.vendor.done { text-decoration: line-through; opacity: .7; }
.ev.action { background: #fdf3d8; border-color: var(--c-action); color: #6b4a00; }
.ev.print { background: #eeece6; border-color: var(--c-print); color: #374151; }
.cal-day { min-height: 96px; padding: 4px 5px 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.cal-day:hover { border-color: var(--tile-edge); background: #fffdf6; }
.cal-day.out { background: #f7f5f0; color: var(--muted); }
.cal-day.today { border: 2px solid var(--gold); }
.cal-dnum { font-weight: 800; font-size: .85rem; }
.more { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 2px; }
.cal-dow.today { color: #8a6400; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week .cal-day { min-height: 260px; }
.wk-col { min-width: 0; }
.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ym-name { border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer; padding: 0 0 4px; }
.ym-name:hover { text-decoration: underline; }
.ym-dow, .ym-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .7rem; text-align: center; }
.ym-dow { color: var(--muted); font-weight: 700; }
.yd { position: relative; border: 0; border-radius: 4px; font: .72rem var(--font); padding: 3px 0; cursor: pointer; background: #f7f5f0; }
.yd.h1 { background: #fdf0c8; } .yd.h2 { background: #f7dc84; } .yd.h3 { background: #ecc243; } .yd.h4 { background: #c99a06; color: #fff; }
.yd.today { outline: 2px solid var(--ink); }
.yd .dot { position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; }
.yd .dot.mo { left: 3px; background: var(--c-mo); } .yd .dot.mi { right: 3px; background: var(--c-mi); }
.cal-dayview { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dv-unit { width: 100%; display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dv-name, .day-unit { border: 0; background: none; font: inherit; font-weight: 800; text-align: left; cursor: pointer; color: var(--blue); }
.day-units { display: flex; flex-direction: column; }
.day-unit { display: flex; flex-direction: column; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.day-unit span { font-weight: 500; color: var(--fg); font-size: .88rem; }
.u-evs { display: flex; flex-direction: column; gap: 4px; }
.u-ev { display: flex; align-items: center; gap: 8px; }
.u-ev i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.u-ev .na { margin-left: auto; font-size: .85rem; display: inline-flex; gap: 5px; align-items: center; }
.u-row { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; border-top: 1px solid var(--border); }
.u-row > label { font-weight: 700; font-size: .88rem; }
.u-row .row select { flex: 1; }
.notice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(232, 185, 35, .16); border: 1px solid rgba(232, 185, 35, .6); border-radius: 10px; padding: 8px 12px; color: #fff; }
.notice-bar .mo-date { display: inline-flex; gap: 6px; align-items: center; }
.notice-bar input[type=date] { background: #2a2d34; color: #fff; border: 1px solid #3a3e47; border-radius: 8px; padding: 4px 6px; color-scheme: dark; }
tr.subhead th { background: #faf8f3; font-size: .72rem; }
input[type=date] { font: inherit; padding: 5px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; background: #fff; }
.vend input[type=date] { width: 132px; }
.ck input[type=date] { width: 150px; }
.tenant-row input[type=date] { width: 100%; }
.modal .row { flex-wrap: wrap; }
@media (max-width: 1000px) { .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cal-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cal-week .ev, .cal-dayview .ev { white-space: normal; }
.cal-dayview .ev { display: inline-block; width: auto; margin-right: 6px; }

/* Look (Nov 11): green section headers and compact sizing for laptop screens. */
:root { --head: #1f6b3a; --head-fg: #ffffff; }
.tbl-head, .panel h2, .unit-bar, .modal h2, .side-nav a.on, .seg button.on, .tabs a.on, .tabs button.on, .sec-head { background: var(--head); color: var(--head-fg); }
.tabs a.on, .tabs button.on, .where button.on { border-color: var(--head); }
.where button.on { background: var(--head); color: var(--head-fg); }
.tbl-head .btn-outline, .cal-create, .unit-bar .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.unit-bar select, .notice-bar input[type=date] { background: #17542d; border-color: rgba(255,255,255,.3); color: #fff; }
.print-track .stamp, .print-track label { background: rgba(255,255,255,.12); }
.print-track .stamp { color: #dbe9df; }
.unit-bar .facts { color: #dbe9df; }
.app-head { padding: 8px 20px 6px; } .app-logo .ez { font-size: 1.7rem; } .app-logo .ez sup { font-size: .85rem; } .app-logo .lease { font-size: 1.5rem; } .app-tag { font-size: .82rem; margin-top: 1px; }
.help-btn { min-height: 34px; padding: 4px 12px; }
.layout { padding: 14px 20px 32px; gap: 18px; } .app { gap: 12px; }
.side-nav { width: 128px; } .side-nav a { padding: 10px 14px; font-size: .93rem; }
.tbl-head { padding: 7px 14px; font-size: .92rem; } .tbl-head .btn { min-height: 30px; padding: 3px 10px; font-size: .85rem; }
.tbl table td, .tbl table th { padding: 7px 12px; font-size: .9rem; }
.cal-bar { padding: 8px 14px 4px; } .cal-title { font-size: 1rem; } .cal-filters { padding: 0 14px 8px; font-size: .8rem; } .cal-body { padding: 0 14px 12px; }
.seg button { padding: 5px 11px; font-size: .88rem; } .cal-bar .btn { min-height: 32px; padding: 3px 10px; }
.cal-day { min-height: 74px; } .cal-week .cal-day { min-height: 190px; }
.panel h2 { padding: 7px 14px; font-size: .9rem; } .unit-bar { padding: 10px 14px; gap: 8px; } .unit-bar h1 { font-size: 1.2rem; }
.unit-bar .btn { min-height: 32px; padding: 4px 11px; font-size: .88rem; }
.modal h2 { padding: 11px 16px; font-size: 1rem; }
.fcell { padding: 6px 14px; } .page-title h1 { font-size: 1.4rem; }

/* Editor (Nov 11): menus pinned on screen, color key on top, paragraphs you can reword, zoom, form ID. */
.ed-bar { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0; margin: -8px 0 -4px; box-shadow: 0 6px 6px -6px rgba(0,0,0,.12); }
.ed-zoom { display: flex; gap: 3px; } .ed-zoom .btn { min-width: 38px; padding: 3px 8px; min-height: 32px; } .ed-zoom-fit { min-width: 58px !important; }
.ed-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.ed-side { position: sticky; top: 62px; max-height: calc(100vh - 74px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ed-side .panel { flex: none; }
.ed-side .body { padding: 10px 14px 14px; }
.ed-keyhead { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ed-menu .legend { grid-template-columns: 18px 1fr; gap: 5px 8px; font-size: .84rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ed-how { margin: 2px 0 0; padding-left: 18px; font-size: .84rem; display: flex; flex-direction: column; gap: 3px; }
.ed-add { width: 100%; } .ed-add.on { background: var(--head); color: #fff; box-shadow: none; }
.ed-idck { border-bottom: 0; font-size: .84rem; padding: 2px 0 0; }
.ed-key.text { background: rgba(250, 204, 21, .3); border-color: #d4a106; border-style: dashed; }
.ed-key.edited, .ed-box.edited { background: rgba(234, 108, 12, .2); border-color: #d9620b; }
.ed-text { position: absolute; z-index: 0; cursor: pointer; background: rgba(250, 204, 21, .16); outline: 1px dashed rgba(212, 161, 6, .75); outline-offset: 1px; border-radius: 2px;
  font-family: Helvetica, Arial, sans-serif; color: #000; white-space: nowrap; overflow: visible; }
.ed-text:hover { background: rgba(250, 204, 21, .3); }
.ed-text.changed { background: #fff; outline: 2px solid #d9620b; }
.ed-text.changed:hover { background: #fff8f1; }
.ed-text.sel { outline: 3px solid var(--head); z-index: 1; }
.ed-box { z-index: 2; }
.ed-box.sel { z-index: 3; }
.ed-formid { position: absolute; left: 0; right: 0; text-align: center; color: #444; font-family: Helvetica, Arial, sans-serif; pointer-events: none; }
.ed-fit { margin: 0; font-size: .82rem; font-weight: 650; padding: 5px 8px; border-radius: 6px; }
.ed-fit.ok { background: #e8f3ec; color: #1f6b3a; } .ed-fit.warn { background: #fdf3dc; color: #8a5a00; } .ed-fit.bad { background: #fbe5e3; color: #a3241b; }
.ed-wording { font: .9rem/1.4 var(--font) !important; resize: vertical; }
.ed-pages { padding: 24px 16px 20px; }
@media (max-width: 1150px) { .ed-layout { grid-template-columns: minmax(0, 1fr) 290px; } .ed-side { position: sticky; } }
@media (max-width: 980px) { .ed-layout { grid-template-columns: 1fr; } .ed-side { position: static; max-height: none; } }

.ed-keypanel { position: sticky; top: 0; z-index: 2; box-shadow: 0 6px 8px -6px rgba(0,0,0,.15); }
.ed-keypanel .legend { grid-template-columns: 16px 1fr; gap: 3px 8px; font-size: .82rem; border: 0; padding: 0; }
.ed-keypanel .body { padding: 8px 12px 10px; }
.ed-side .panel h2 { padding: 6px 12px; font-size: .86rem; }
.ed-side .ed-menu .body { padding: 8px 12px 10px; gap: 6px; }
.ed-how { font-size: .8rem; gap: 1px; }
.ed-add { min-height: 34px; }

/* Read First guide (Nov 11) */
.head-btns { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; align-items: center; }
.head-btns .help-btn { position: static; transform: none; }
.read-first { min-height: 34px; padding: 4px 14px; font-weight: 800; }
.read-first.fresh { animation: rf-pulse 1.6s ease-in-out infinite; }
@keyframes rf-pulse { 0%, 100% { box-shadow: 0 2px 0 var(--gold-dark), 0 0 0 0 rgba(230,180,34,.6); } 50% { box-shadow: 0 2px 0 var(--gold-dark), 0 0 0 8px rgba(230,180,34,0); } }
.guide { position: fixed; z-index: 60; width: 380px; max-width: calc(100vw - 8px); max-height: calc(100vh - 16px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tile-edge); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.28); overflow: hidden; }
.guide.dragging { opacity: .92; user-select: none; }
.g-bar { display: flex; align-items: center; gap: 8px; background: var(--head); color: #fff; padding: 7px 8px 7px 12px; cursor: move; touch-action: none; user-select: none; }
.g-bar b { flex: 1; font-size: .92rem; } .g-grip { opacity: .6; letter-spacing: -2px; } .g-count { font-size: .78rem; opacity: .85; }
.g-icon { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 7px; font-size: 1rem; cursor: pointer; line-height: 1; }
.g-icon:hover { background: rgba(255,255,255,.28); }
.g-body { padding: 10px 16px 6px; overflow-y: auto; font-size: .9rem; line-height: 1.45; }
.g-body h3 { margin: 10px 0 6px; font-size: 1.05rem; color: var(--head); }
.g-body p { margin: 0 0 8px; } .g-body ol, .g-body ul { margin: 0 0 8px; padding-left: 20px; } .g-body li { margin-bottom: 4px; }
.g-steps { width: 100%; font: inherit; font-weight: 650; padding: 6px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; background: #faf8f3; }
.g-note { background: #eef5f0; border-radius: 8px; padding: 6px 9px; font-size: .82rem; color: #1f6b3a; }
.g-foot { display: flex; gap: 8px; justify-content: space-between; padding: 10px 16px 12px; border-top: 1px solid var(--border); }
.g-foot .btn { min-height: 34px; padding: 4px 12px; }
.guide-spot { outline: 4px solid #e6b422 !important; outline-offset: 3px; animation: spot 1s ease-in-out 3; }
@keyframes spot { 50% { outline-color: rgba(230,180,34,.25); } }
@media (max-width: 860px) { .head-btns { position: static; transform: none; justify-content: center; margin-top: 8px; } }
.read-first[hidden] { display: none; }

/* Move-in date and time on the Unit page (Nov 11) */
.dates-bar .mi-dates { display: inline-flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.notice-bar input[type=time] { background: #17542d; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 4px 6px; color-scheme: dark; font: inherit; }

/* Instructions on every page (Nov 11) */
.help-btn[hidden] { display: none; }
.help-btn.fresh { animation: rf-pulse 1.6s ease-in-out infinite; border-color: var(--gold); }
.g-dock { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.14); padding: 4px 8px; border-radius: 7px; }
.g-dock input { margin: 0; accent-color: var(--gold); }

/* Unit page (Nov 11): a regular panel on top, and the Tenant Information box */
.unit-panel .unit-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.unit-panel .unit-title { font-size: 1.1rem; font-weight: 800; }
.unit-panel .unit-head select { margin-left: auto; background: #17542d; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 3px 8px; font: inherit; font-size: .88rem; }
.unit-panel .body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.unit-panel .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-panel .btns .btn { min-height: 32px; padding: 4px 11px; font-size: .88rem; }
.unit-panel .print-track .stamp { background: #f4f2ed; color: var(--muted); }
.unit-panel .print-track .stamp b { color: var(--fg); }
.unit-panel .print-track label { background: #f4f2ed; color: var(--fg); }
.unit-panel .print-track .btn { min-height: 30px; padding: 3px 10px; font-size: .85rem; }
.unit-info .body { padding: 4px 14px 8px; }
.irow { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.irow:last-child { border-bottom: 0; }
.ilab { color: var(--muted); font-weight: 650; }
.ival { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ival input[type=date], .ival input[type=time], .type-select { font: inherit; font-size: .9rem; padding: 4px 7px; border: 1px solid var(--tile-edge); border-radius: 8px; background: #fff; }
.itime { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 650; }
.btn-sm { min-height: 28px !important; padding: 2px 10px !important; font-size: .82rem !important; }
.fcell .type-select { width: 100%; }
@media print { .unit-panel .btns, .unit-panel select { display: none !important; } }

/* Home (Nov 11): black section headings with a divider; color checkboxes under the calendar */
.home-vac .grp td { color: var(--fg); font-size: .9rem; }
.home-vac .grp-split td { border-top: 3px solid var(--head); }
.cal .cal-filters { padding: 8px 14px 12px; border-top: 1px solid var(--border); }
.cal .cal-body { padding-bottom: 8px; }

.pill.bad { background: #fbe5e3; color: #a3241b; }

/* ---- (from the original app) ---- */
.signin { max-width: 420px; margin: 40px auto; }
.signin .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.signin input[type=email], .signin input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid var(--tile-edge); border-radius: 10px; font: inherit; font-size: 1.05rem; }
.signin input.code { letter-spacing: .35em; font-size: 1.4rem; text-align: center; }
.err { color: var(--danger); font-weight: 650; min-height: 1.2em; margin: 0; }
.modal label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .92rem; }
.modal label.f input[type=text], .modal label.f input[type=email], .modal label.f input[type=tel], .modal label.f input[type=number] { padding: 9px 11px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--tile-edge); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-weight: 650; }
.choices label:has(input:checked) { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.choices input { width: 17px; height: 17px; accent-color: var(--gold); margin: 0; }
.foot .left { margin-right: auto; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e9b4ae; }
.who { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); text-align: left; font-size: .85rem; color: var(--muted); }
.who b { color: var(--fg); display: block; }
.howto ol { margin: 0; padding-left: 22px; } .howto li { margin-bottom: 8px; }
@media (max-width: 860px) { .who { position: static; transform: none; margin-top: 8px; text-align: center; } }
[hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Tenant request page (phone first) */
body.tenant { background: var(--bg); }
.req { max-width: 520px; margin: 0 auto; padding: 14px; }
.req-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.req-card h1 { font-size: 1.4rem; margin: 0; text-align: center; }
.req-card .sub { margin: -10px 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.req-card input, .req-card textarea { width: 100%; padding: 12px; border: 1px solid var(--tile-edge); border-radius: 10px; font: inherit; font-size: 16px; }
.emerg-bar { display: block; background: var(--danger); color: #fff; text-decoration: none; text-align: center; padding: 12px; border-radius: 12px; font-size: 1.05rem; }
.n911 { margin: 0 0 10px; text-align: center; font-weight: 600; color: var(--danger); } .n911 a { color: inherit; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two input:first-child { min-width: 0; }
.q p { margin: 0 0 6px; font-weight: 750; }
.pick { display: flex; gap: 8px; }
.pick button { flex: 1; min-height: 46px; border: 1px solid var(--tile-edge); background: #fff; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.pick.grid { display: grid; grid-template-columns: 1fr 1fr; }
.pick button[aria-checked=true] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.photos { display: flex; flex-direction: column; gap: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; } .thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; display: block; }
.thumb button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 16px; cursor: pointer; }
.btn.big { min-height: 54px; font-size: 1.15rem; }
.req-card.done { text-align: center; align-items: center; padding: 32px 16px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.done .num { font-size: 1.3rem; font-weight: 800; margin: 0; }
.req-foot { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Office inbox */
.wo-split { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wo-line { display: flex; align-items: center; gap: 10px; } .wo-line .grow { flex: 1; } .wo-line + .wo-line { margin-top: 3px; }
.wo-list .tbl-head select { max-width: 170px; }
.wo-list table td { padding: 10px 12px; }
.wo-list tr.sel td { background: var(--gold-soft); }
.wo-list tr.emerg td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.wo-list .pill { margin: 0 4px 0 0; }
.wo-detail { position: sticky; top: 16px; }
.center { text-align: center; padding: 40px 20px; }
.wo-body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px !important; }
.wo-desc { margin: 0; font-size: 1.05rem; white-space: pre-wrap; }
.pick.pri button { min-height: 38px; }
.pick.pri button.emergency[aria-checked=true] { background: var(--danger); border-color: var(--danger); color: #fff; }
.pick.pri button.high[aria-checked=true] { background: var(--gold); border-color: var(--gold-dark); color: #16181d; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.fact { display: flex; flex-direction: column; } .fact span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.fact a { color: var(--blue); text-decoration: none; }
.wo-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.wo-photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; display: block; background: #eeece6; }
details.history summary { cursor: pointer; font-weight: 750; color: var(--muted); }
details.history ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.linkcell { display: flex; gap: 8px; align-items: center; } .linkcell code { font-size: .82rem; }
@media (max-width: 760px) { .wo-split { grid-template-columns: 1fr; } .wo-detail { position: static; } }
@media (max-width: 860px) { .side-nav { width: 100% !important; align-self: stretch; } .side-nav a { white-space: nowrap; border-radius: 0 !important; } }
@media (max-width: 760px) { .app { width: 100%; } }

/* Step 3: assign, schedule, note, close, print */
.wo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wo-body .f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .92rem; }
.wo-body select, .wo-body input[type=date] { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; background: #fff; min-width: 0; }
.wo-body .f .row { flex-wrap: nowrap; gap: 6px; } .wo-body .f .row > * { flex: 1; }
.wo-actions .grow, .row .grow { flex: 1; }
.wo-panel h2 { display: flex; align-items: center; gap: 8px; } .wo-panel h2 .pill { margin-left: auto; }
.wo-line .to { color: var(--blue); font-weight: 650; }
.modal select, .modal textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; }
.modal .grid2 { gap: 10px; }
@media print {
  .app-head, .side-nav, .wo-list, .no-print, .toast { display: none !important; }
  .wo-split { display: block; } .wo-detail { position: static; } .panel h2 { background: #fff; color: #000; border-bottom: 2px solid #000; }
  select, input, textarea { border: 0 !important; appearance: none; background: none !important; padding-left: 0 !important; }
}

/* Tenant: save to home screen */
.save-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.save-bar img { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border); }
.save-bar .grow { flex: 1; font-size: .92rem; }
button.x { width: 30px; height: 30px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }

/* Tech phone screens */
.tech { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tech-title { font-size: 1.3rem; margin: 6px 0 0; } .tech-title small { background: var(--ink); color: var(--ink-fg); border-radius: 999px; padding: 1px 9px; font-size: .85rem; vertical-align: middle; }
.btn.wide { width: 100%; }
.btn-ok { background: var(--ok); color: #fff; }
.day-bar { display: flex; align-items: center; gap: 10px; } .day-bar .btn-primary { width: 100%; }
.day-bar.on { background: #e3f3e8; border-radius: 12px; padding: 8px 8px 8px 14px; }
.day-bar .grow, .tip .grow, .tenant-row2 .grow { flex: 1; }
.job-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; }
.job-card.emerg, .job-head.emerg { box-shadow: inset 5px 0 0 var(--danger); }
.job-what { margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flag { background: var(--gold-soft); color: #7a5a00; border-radius: 6px; padding: 1px 7px; font-weight: 750; }
.flag.big { font-size: 1rem; padding: 6px 12px; }
.flags { display: flex; gap: 8px; flex-wrap: wrap; }
.back { font-weight: 750; text-decoration: none; color: var(--blue); }
.job-head { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.job-head h1 { margin: 0; font-size: 1.5rem; } .job-head .map { color: var(--blue); text-decoration: none; font-weight: 700; }
.tenant-row2 { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 8px 8px 14px; font-weight: 700; }
.job-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.job-actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.job-actions .btn-link { align-self: center; }
.worked { text-align: center; }
.center-text { text-align: center; margin: 0; }
.tech .f { display: flex; flex-direction: column; gap: 6px; font-weight: 750; }
.parts { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.part { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 12px; }
.part .grow { flex: 1; }
.part.add input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-size: 16px; }
.part.add input.qty { flex: 0 0 64px; }
.tech-report { background: #e3f3e8; border-radius: 12px; padding: 10px 14px; } .tech-report p { margin: 6px 0 0; white-space: pre-wrap; } .tech-report ul { margin: 6px 0 0; padding-left: 18px; }
.tip.row { display: flex; flex-wrap: wrap; }

.tip.warn { background: var(--gold-soft); color: #5a4300; align-items: center; gap: 8px; }
.loc-notice h2 { margin: 0 0 6px; } .loc-notice p { margin: 0 0 10px; }
.howto .pick-head { margin: 10px 0 4px; }

/* Fixes after the vendor walk-through */
.wo-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wo-body .f .row { flex-wrap: wrap; } .wo-body .f .row > input[type=date] { flex: 1 1 150px; } .wo-body .f .row > select { flex: 1 1 110px; }
.saved { color: var(--ok); font-weight: 750; font-size: .9rem; }
.tip.undo { background: #e3f3e8; align-items: center; gap: 8px; }
@media print { details.history > summary { list-style: none; } details.history > summary::-webkit-details-marker { display: none; } }

/* Units */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.unit-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 14px !important; display: grid; }
.panel h2 .small-btn { margin-left: auto; padding: 4px 12px; font-size: .85rem; background: #fff; color: var(--fg); }
.unit-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
input.find { padding: 7px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; width: 120px; }
.pill.ok { background: #e3f3e8; color: #1f7a43; }
@media (max-width: 760px) { .unit-grid { grid-template-columns: 1fr; } }

/* ============ The look for the whole app ============
   White cards with bold dark titles (no colored bands), raised tiles, green line icons, navy Instructions,
   gold for the main action, black for Close. Everything above stays; these rules win. */
:root { --head: #ffffff; --head-fg: #16181d; --navy: #0b436c; }
.tbl-head, .panel h2, .modal h2, .sec-head { background: #fff; color: var(--fg); border-bottom: 1px solid var(--border); font-size: 1.08rem; font-weight: 800; }
.tbl-head .btn-outline, .unit-bar .btn-outline { border-color: var(--tile-edge); color: var(--fg); background: #fff; }
.tbl, .panel, .card, .job-card, .job-head, .req-card { border-color: var(--border); border-radius: 14px; box-shadow: 0 1px 0 #fff inset, 0 2px 0 #e6e1d6; }
.tabs button.on, .tabs a.on { background: var(--ink); color: #fff; }
.seg button.on { background: var(--gold-soft); color: var(--fg); }
.help-btn, .btn.help-btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ink { background: var(--ink); color: #fff; }
/* Header: property picker left, logo center, + Add and Instructions right. */
.app-head { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 16px; padding: 10px 24px 8px; text-align: center; }
.app-head .head-left { grid-row: 1 / span 2; grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; }
.app-head .app-logo { grid-column: 2; grid-row: 1; justify-content: center; }
.app-head .app-tag { grid-column: 2; grid-row: 2; margin: 0; }
.app-head .head-btns { grid-row: 1 / span 2; grid-column: 3; position: static; transform: none; justify-self: end; }
.head-left select.scope { font: inherit; font-weight: 800; font-size: 1rem; border: 1px solid var(--tile-edge); border-radius: 10px; padding: 6px 10px; background: #fff; max-width: 260px; }
.head-left b { font-size: 1rem; }
.who { position: static; transform: none; }
/* Menu: white list, green icons, the open screen marked in gold. */
.side-nav { width: 180px; box-shadow: 0 1px 0 #fff inset, 0 3px 0 var(--tile-lip), 0 10px 18px -12px var(--tile-shadow); }
.side-nav a { gap: 10px; justify-content: flex-start; }
.side-nav a svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #1f7a3a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a .grow { flex: 1; }
.side-nav a.on { background: var(--gold-soft); color: var(--fg); box-shadow: inset 4px 0 0 var(--gold); }
.side-nav small { background: #e7f0f8; color: var(--navy); }
.side-nav small.hot { background: #fbe3e1; color: #a32a20; }
.modal .foot .add-opt { min-width: 140px; }
@media (max-width: 860px) {
  .app-head { grid-template-columns: 1fr auto; padding: 8px 14px; }
  .app-head .head-left { grid-column: 1 / span 2; grid-row: 3; flex-direction: row; align-items: center; gap: 10px; margin-top: 6px; }
  .app-head .app-logo, .app-head .app-tag { grid-column: 1; justify-content: flex-start; text-align: left; }
  .app-head .head-btns { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .side-nav { width: 100% !important; }
  .side-nav a { justify-content: center; } .side-nav a svg { display: none; }
}
/* ============ Home (Nov 14): Calendar center, small blocks under it, To Do on the right ============ */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-cal .hc-nav { gap: 6px; flex-wrap: nowrap; }
.home-cal .hc-nav .btn { min-height: 32px; padding: 3px 10px; }
.hc-month { min-width: 130px; text-align: center; }
.hc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hc-dow { padding: 6px 8px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf8f3; border-bottom: 1px solid var(--border); }
.hc-day { min-height: 92px; padding: 4px 5px 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-day:nth-child(7n) { border-right: 0; }
.hc-day.out { background: #faf9f6; } .hc-day.out .hc-num { color: #b7b2a7; }
.hc-num { font-size: .8rem; font-weight: 700; color: var(--muted); align-self: flex-end; min-width: 24px; text-align: center; border-radius: 999px; }
.hc-day.today { background: var(--gold-soft); } .hc-day.today .hc-num { background: var(--gold); color: #1b1d22; }
.hc-item { display: block; font-size: .76rem; line-height: 1.25; padding: 2px 6px; border-radius: 6px; background: #e7f0f8; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; font-weight: 650; }
.hc-item b { margin-right: 4px; font-weight: 800; }
.hc-item.hot { background: #fbe3e1; color: #a32a20; }
.hc-item.closed { background: #f0eee8; color: var(--muted); text-decoration: line-through; }
.hc-item:hover { filter: brightness(.95); }
.home-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-block { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--fg);
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 var(--tile-lip), 0 10px 18px -14px var(--tile-shadow); }
.home-block b { font-size: 1.6rem; line-height: 1.1; }
.home-block span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.home-block.hot b { color: var(--danger); }
.home-block:hover { background: var(--gold-soft); }
.home-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 16px; }
.todo-count { background: #e7f0f8; color: var(--navy); border-radius: 999px; padding: 1px 9px; font-size: .8rem; font-weight: 800; }
.todo-add { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.todo-add input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.todo-add .btn { min-height: 36px; padding: 4px 14px; }
.todo-list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow-y: auto; }
.todo-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); align-items: center; }
.todo-list li small { grid-column: 1; font-size: .76rem; }
.todo-auto { grid-template-columns: auto minmax(0, 1fr) !important; }
.todo-auto a { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-auto small { grid-column: 2 !important; }
.pill.hot { background: #fbe3e1; color: #a32a20; }
.todo-item label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; grid-column: 1; }
.todo-item input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.todo-item small { padding-left: 26px; }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--muted); }
.todo-x { grid-column: 2; grid-row: 1 / span 2; font-size: 1.2rem; text-decoration: none; color: var(--muted); padding: 0 4px; }
.todo-x:hover { color: var(--danger); }
.todo-empty { padding: 14px; margin: 0; }
.todo-foot { padding: 8px 12px; text-align: right; }
.done-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; }
.done-list h3:first-child { margin-top: 0; }
.done-list ul { list-style: none; margin: 0; padding: 0; }
.done-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 1100px) { .home { grid-template-columns: 1fr; } .home-side { position: static; order: -1; } .home-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hc-day { min-height: 56px; } .hc-item { font-size: 0; padding: 0; height: 6px; } .hc-item b { display: none; } }
.panel h2 .small-btn { margin-left: 12px; }
/* Calendar events (stage 3) */
.hc-day { cursor: pointer; }
button.hc-item { border: 0; font: inherit; font-size: .76rem; text-align: left; cursor: pointer; width: 100%; white-space: normal; overflow-wrap: anywhere; }
.modal label.f input[type=time], .modal label.f input[type=date] { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; }
.ev-when { flex-wrap: nowrap; }
.hc-item.hc-ev { background: #e3f3e8; color: #1f5f33; }
.hc-item i { font-style: normal; margin-right: 3px; }
.ev-when { align-items: flex-end; } .ev-when .f { flex: 1; min-width: 140px; }
.modal .f[hidden] { display: none !important; }
.hc-count { font-weight: 800; }
.visit-units { background: #e3f3e8; border-radius: 10px; padding: 10px 12px; }
.visit-units ul { margin: 6px 0 0; padding-left: 18px; }
.visit-units li { margin: 2px 0; }
.req-card select.bld { width: 100%; padding: 12px; border: 1px solid var(--tile-edge); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; margin-bottom: 10px; }
.bld-rows { display: flex; flex-direction: column; gap: 6px; }
.bld-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 30px; gap: 6px; align-items: center; }
.bld-row input { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; min-width: 0; }
.bld-row button { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.bld-row button:hover { color: var(--danger); }
.modal div.f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .92rem; }
#units input.find { width: 200px; }
/* Setup checklist */
.setup-check { margin-bottom: 16px; }
.setup-check ol { list-style: none; margin: 0; padding: 0; }
.setup-check li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.setup-check li:last-child { border-bottom: 0; }
.setup-check .ck { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--tile-edge); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex: none; }
.setup-check li.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
.setup-check li.done b { color: var(--muted); }
.setup-check li.next { background: var(--gold-soft); box-shadow: inset 4px 0 0 var(--gold); }
.setup-check li.next .ck { border-color: var(--gold-dark); }
.setup-check li .btn { min-height: 32px; padding: 3px 12px; }
.setup-check .grow { flex: 1; }
/* Floating guide (Nov 15): navy bar like the Instructions button; Show me / This screen tabs; walkthroughs. */
.guide .g-bar { background: var(--navy); color: #fff; }
.guide.folded { width: 240px; }
.g-tabs { display: flex; gap: 4px; margin: 2px 0 10px; border-bottom: 1px solid var(--border); }
.g-tabs button { border: 0; background: none; font: inherit; font-weight: 750; padding: 6px 10px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.g-tabs button.on { color: var(--fg); border-bottom-color: var(--gold); }
.g-search { width: 100%; padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; margin-bottom: 6px; }
.g-sub { margin: 8px 0 4px !important; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.g-tasks { list-style: none; padding: 0 !important; margin: 0 0 6px !important; }
.g-tasks li { margin: 0 0 4px !important; }
.g-taskbtn { width: 100%; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 9px; padding: 8px 10px; font: inherit; font-weight: 650; cursor: pointer; color: var(--navy); }
.g-taskbtn:hover { background: var(--gold-soft); border-color: var(--gold); }
.g-task { font-size: .82rem; color: var(--muted); }
.g-task b { color: var(--fg); font-size: .95rem; }
.g-walk { padding-left: 22px !important; }
.g-walk li { padding: 5px 6px; border-radius: 7px; margin-bottom: 3px !important; color: var(--muted); }
.g-walk li.past { text-decoration: line-through; opacity: .7; }
.g-walk li.now { background: var(--gold-soft); color: var(--fg); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
.g-count.dark { align-self: center; font-size: .8rem; color: var(--muted); }
.g-body { max-height: 60vh; }
.guide-spot { position: relative; z-index: 2; }
.guide { width: 340px; } .guide.folded { width: 220px; }
.wo-x { margin-left: auto; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 6px; }
.wo-x:hover { background: #f0eee8; color: var(--fg); }
.wo-panel h2 .pill + .wo-x { margin-left: 4px; }
/* Pinned blocks under the menu (Nov 15) */
.side-col { flex: none; width: 180px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.side-col .side-nav { position: static; width: 100% !important; }
@media (max-width: 860px) { .side-col { width: 100%; position: static; max-height: none; } }
/* (from the original app) */
.bad-text { color: var(--danger); font-weight: 700; }
.vac-table { width: 100%; }
.vac-table td, .vac-table th { padding: 7px 12px; text-align: left; font-size: .9rem; }
.home-vac .tbl-head .btn, #vacancies .tbl-head .btn { min-height: 32px; padding: 3px 12px; }
.vac-panel h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vac-panel h2 .grow { flex: 1; }
.vac-info { padding-top: 6px; }
.hc-item.hc-moveout { background: #fbe3e1; color: #a32a20; }
.hc-item.hc-movein { background: #d9f0df; color: #17602e; }
.hc-item.hc-turn { background: #ece7f7; color: #4a3a86; }
.vac-pill { text-decoration: none; margin-left: 10px; }
.panel h2 .vac-pill + .small-btn { margin-left: 10px; }
.where button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.vac-table td:last-child { white-space: nowrap; }
/* ============ EZ² Turn's green look for the whole suite (Nov 15, Mark): green title bands with white titles,
   the open menu item green, the guide's bar green. Layout, icons and the gold buttons stay. These rules win. ============ */
:root { --head: #1f6b3a; --head-fg: #ffffff; }
.tbl-head, .panel h2, .modal h2, .sec-head { background: var(--head); color: var(--head-fg); border-bottom: 0; }
.tbl, .panel { overflow: hidden; }
.tbl-head a, .panel h2 a, .panel h2 a.unit-link { color: #fff; }
.tbl-head .muted, .tbl-head small.muted, .panel h2 .muted { color: #d6e8dc; }
.tbl-head .btn-outline, .panel h2 .btn-outline { background: #fff; color: var(--fg); border-color: #fff; }
.tbl-head .btn-ink, .panel h2 .btn-ink { background: #16181d; color: #fff; border-color: #16181d; }
.tbl-head .btn-link, .panel h2 .btn-link { color: #fff; }
.hc-month { color: #fff; }
.wo-x { color: #d6e8dc; } .wo-x:hover { background: rgba(255,255,255,.18); color: #fff; }
.todo-count { background: #fff; color: var(--head); }
.side-nav a.on { background: var(--head); color: #fff; box-shadow: none; }
.side-nav a.on svg { stroke: #fff; }
.side-nav a.on small { background: #fff; color: var(--head); }
.tabs button.on, .tabs a.on { background: var(--head); color: #fff; border-color: var(--head); }
.where button.on { background: var(--head); color: #fff; border-color: var(--head); }
.guide .g-bar { background: var(--head); }
.g-tabs button.on { border-bottom-color: var(--head); }
.home-vac .grp-split td, #vacancies .grp-split td { border-top: 3px solid var(--head); }
.modal h2 { border-radius: 0; }
@media print { .tbl-head, .panel h2 { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; } .panel h2 a { color: #000 !important; } }
/* Tenant Info boxes */
#main .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; padding: 14px 16px; align-items: end; }
#main .fgrid label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .86rem; color: var(--muted); }
#main .fgrid label.f input[type=text], #main .fgrid label.f input[type=date], #main .fgrid label.f input[type=time] { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; color: var(--fg); background: #fff; min-width: 0; }
#main .fgrid label.fcheck { flex-direction: row; align-items: center; gap: 8px; color: var(--fg); }
#main .fgrid label.fcheck input { width: 18px; height: 18px; accent-color: var(--green); }
/* Lease packet on a vacancy */
.packet-panel .body { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.packet-panel .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.packet-panel .print-track .stamp { background: #f3f0e8; color: var(--muted); }
.packet-panel .print-track .stamp b { color: var(--fg); }
.packet-panel .print-track label { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; }
#form-info .tbl-head select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 0; }
#main .fgrid .fcell { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; min-width: 0; }
#main .fgrid .fcell label { font-weight: 650; font-size: .86rem; color: var(--muted); }
#main .fgrid .fcell input { width: 100%; padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; background: #fff; min-width: 0; box-sizing: border-box; }
#form-info .fgrid + .fgrid { border-top: 1px solid var(--border); }
/* Calendar views (Year, Month, Week, Day) and the kinds legend */
.hc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.hc-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.hc-legend label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.hc-legend input { accent-color: var(--head); }
.dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.k-moveout { background: #d9534a; } .k-movein { background: #2e8b4a; } .k-turn { background: #6b57b8; } .k-order { background: #2f6fb3; } .k-event { background: #57b06f; }
.hc-views { display: inline-flex; border: 1px solid var(--tile-edge); border-radius: 9px; overflow: hidden; }
.hc-views button { border: 0; background: #fff; font: inherit; font-weight: 700; font-size: .85rem; padding: 5px 12px; cursor: pointer; border-left: 1px solid var(--border); color: var(--fg); }
.hc-views button:first-child { border-left: 0; }
.hc-views button.on { background: var(--head); color: #fff; }
.hc-month { min-width: 150px; }
.hc-week .hc-day.tall { min-height: 260px; }
.hc-dayview { display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 160px; border: 0; cursor: default; }
.hc-dayview .hc-item, .hc-week .hc-item { font-size: .84rem; padding: 5px 8px; }
.hc-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 14px; }
.hc-mini-name { border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer; padding: 0 0 4px; color: var(--head); }
.hc-mini-name:hover { text-decoration: underline; }
.hc-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hc-mini-dow { font-size: .62rem; color: var(--muted); text-align: center; font-weight: 700; }
.hc-mini-day { border: 0; background: none; font: inherit; font-size: .72rem; padding: 2px 0; border-radius: 5px; cursor: pointer; color: var(--fg); }
.hc-mini-day:hover { background: var(--gold-soft); }
.hc-mini-day.today { outline: 2px solid var(--gold); }
.hc-mini-day.has { color: #fff; font-weight: 800; }
.hc-mini-day.has.k-moveout { background: #d9534a; } .hc-mini-day.has.k-movein { background: #2e8b4a; } .hc-mini-day.has.k-turn { background: #6b57b8; } .hc-mini-day.has.k-order { background: #2f6fb3; } .hc-mini-day.has.k-event { background: #57b06f; }
@media (max-width: 900px) { .hc-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* View buttons: on the right of the Calendar's bar, large enough to notice (as in EZ² Turn). */
.hc-bar { flex-wrap: wrap-reverse; }
.hc-views { margin-left: auto; order: 2; }
.hc-views button { font-size: 1rem; padding: 7px 16px; font-weight: 800; }
.hc-legend { order: 1; font-size: .88rem; }
/* Tenants */
.ten-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ten-row:last-child { border-bottom: 0; }
.ten-row.past .ten-name { color: var(--muted); }
.ten-name { font-weight: 750; text-decoration: none; }
.past-list summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 700; padding-top: 8px; }
#unit-people .body { padding: 10px 14px; }
#tenants .find { width: 220px; }
#tenants td a { text-decoration: none; }
.howto.tip ul { margin: 6px 0 0; padding-left: 20px; }
.howto.tip li { margin: 3px 0; }
/* Inspections */
.insp-panel h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insp-panel h2 .grow { flex: 1; }
.insp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 14px; }
.insp-photo { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.insp-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: #f0eee8; }
.insp-photo figcaption { padding: 8px 10px; font-size: .84rem; display: flex; flex-direction: column; gap: 3px; }
#inspections td { vertical-align: top; }
@media print { .insp-grid { grid-template-columns: repeat(2, 1fr); } }
/* The header: EZ² Lease (the suite) at the left above the property, the part you are in in the middle. */
.suite-logo { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; font-family: var(--serif, Georgia, serif); font-size: 1.05rem; line-height: 1; margin-bottom: 2px; }
.suite-logo .ez { color: var(--navy); font-weight: 800; }
.suite-logo .lease { color: var(--head); font-weight: 700; }
.head-left { display: flex; flex-direction: column; gap: 1px; }
@media (max-width: 700px) { .suite-logo { font-size: .95rem; } }
#who { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; }

/* ---- Reports: the weekly report (Nov 15) ---- */
.rep-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 4px 0 2px; }
.rep-head h2 { margin: 0; font-size: 1.35rem; }
.rep-head p { margin: 2px 0 0; }
.rep-nums { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.rep-nums.body { margin: 0; padding: 14px 16px; }
.rep-num { background: var(--tile); border: 1px solid var(--tile-edge); border-radius: 12px; padding: 8px 16px; text-align: center; min-width: 96px; }
.rep-num b { display: block; font-size: 1.5rem; line-height: 1.1; }
.rep-num span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rep-sec { margin-top: 14px; }
.rep-table th, .rep-table td { padding: 7px 10px; font-size: .92rem; white-space: nowrap; }
.rep-set summary { background: var(--ink); color: var(--ink-fg); padding: 10px 16px; font-weight: 800; cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.rep-set summary .muted { color: #c9cfd8; font-weight: 400; }
.rep-set .body { padding: 12px 16px 0; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.rep-set .body.muted { padding: 6px 16px 12px; }
.rep-set label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .9rem; }
.rep-set label.f input, .rep-set label.f select { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; }
.f.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; }
.f.inline input { padding: 7px 9px; border: 1px solid var(--tile-edge); border-radius: 9px; font: inherit; font-weight: 400; }
@media print { .rep-set, .rep-holder .no-print { display: none !important; } .rep-table td, .rep-table th { white-space: normal; } }

/* ---- Note pad (Nov 15): the sticky pad by the phone, under To Do on Home. Yours alone. ---- */
.note-pad { background: #fff7b8; border: 1px solid #ecd96a; border-radius: 4px 4px 14px 4px; box-shadow: 0 3px 8px rgba(80,60,0,.14); overflow: hidden; }
.note-head { padding: 9px 14px 4px; font-weight: 800; font-size: 1rem; color: #4b3d00; }
.note-add { display: flex; gap: 8px; padding: 6px 12px 10px; align-items: flex-end; }
.note-add textarea { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #e3cf58; border-radius: 8px; font: inherit; background: #fffdf0; resize: vertical; }
.note-add .btn { min-height: 36px; padding: 4px 12px; }
.note-list { list-style: none; margin: 0; padding: 0 0 4px; max-height: 40vh; overflow-y: auto; }
.note-list li { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border-top: 1px dashed #e3cf58; }
.note-text { font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; font-size: .95rem; color: #2d2600; overflow-wrap: anywhere; }
.note-btns { display: flex; justify-content: space-between; align-items: center; }
.note-todo { min-height: 30px; padding: 2px 10px; font-size: .85rem; background: #fffdf0; }
.note-x { font-size: 1.2rem; text-decoration: none; color: #8a7a20; padding: 0 4px; }
.note-x:hover { color: var(--danger); }

/* ---- Demo (Nov 15): the yellow bar across the top while a visitor tries Bayview Apartments. ---- */
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: #f5c518; color: #1b1d22; box-shadow: 0 2px 0 #c99b00; }
.demo-bar > b { background: #1b1d22; color: #f5c518; border-radius: 6px; padding: 2px 9px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.demo-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-bar .btn { min-height: 34px; padding: 4px 14px; font-size: .9rem; }
.demo-bar .btn-primary { background: #fff; box-shadow: 0 2px 0 #c99b00; }
.demo-bar .btn-outline { background: transparent; border-color: #1b1d22; color: #1b1d22; }
@media (max-width: 520px) { .demo-btns { margin-left: 0; } }
@media print { .demo-bar { display: none !important; } }

/* Tours in the floating guide (demo, Nov 15): one step at a time in bigger words, with dots for where you are. */
.g-tour h3 { margin: 4px 0 6px; font-size: 1.15rem; line-height: 1.25; }
.g-tour p { margin: 0 0 10px; font-size: 1rem; line-height: 1.45; }
.g-tour .btn { margin-top: 2px; }
.g-dots { display: flex; gap: 6px; margin: 4px 0 6px; }
.g-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.g-dots span.past { background: #a9c9b3; } .g-dots span.on { background: var(--head, #1f7a3a); }
.g-next-tours { margin-top: 8px; }

/* Take a Tour: three buttons in a row, nothing else. */
.tour-pick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tour-pick .btn { flex: 1 1 0; min-width: 9rem; font-weight: 800; }
.modal .foot:empty { display: none; }

/* A tour step with a checklist (the EZ²-Inspect stamp choices). */
.g-checks { list-style: none; margin: 2px 0 12px; padding: 0; }
.g-checks li { display: flex; gap: 9px; align-items: baseline; font-weight: 700; font-size: 1.02rem; line-height: 1.55; }
.g-checks li span[aria-hidden] { font-size: 1.15rem; width: 1.1em; }
.g-checks .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Nov 15 (Mark): cleaner headings, banners 25% shorter, week calendar only as tall as it needs ----
   Semibold with a touch of letter spacing instead of extra-bold; tighter padding and smaller buttons inside the banners
   (Calendar 46 → 34 px, To Do 39 → 29 px). */
.tbl-head, .panel h2, .modal h2, .sec-head { font-weight: 600; letter-spacing: .015em; font-size: 1rem; line-height: 1.3; padding-top: 4px; padding-bottom: 4px; }
.tbl-head .btn, .panel h2 .btn, .panel h2 .small-btn, .home-cal .hc-nav .btn, .home-vac .tbl-head .btn, #vacancies .tbl-head .btn { min-height: 26px; padding: 1px 10px; font-size: .82rem; font-weight: 600; }
.tbl-head select, .tbl-head input { padding-top: 2px; padding-bottom: 2px; }
.side-nav a.on, .seg button, .seg button.on { font-weight: 600; letter-spacing: .01em; }
/* Week view: the busiest day sets the height, plus room for one more item; never taller. */
.hc-week .hc-day.tall { min-height: 64px; padding-bottom: 30px; }
.home-cal .tbl-head .hc-nav, .home-cal .tbl-head .hc-nav * { font-weight: 600; }
.note-head { font-weight: 600; letter-spacing: .015em; }

/* ---- Scheduling on Home (Nov 15, Mark): one unit's Turn schedule and Appliances Replaced, picked by unit. ---- */
.sched-btn.on { background: #fff; color: var(--head); border-color: #fff; }
.home-sched .sched-pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.sched-pick button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 12px; border: 1px solid var(--tile-edge); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sched-pick button small { font-weight: 500; font-size: .74rem; color: var(--muted, #6b6b6b); }
.sched-pick button.on { background: var(--head); color: #fff; border-color: var(--head); }
.sched-pick button.on small { color: #d6e8dc; }
.sched-body { padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.sched-body .panel { margin: 0; }
.home-sched { scroll-margin-top: 64px; }

/* ---- Repairs (Nov 16): repair projects, moved here from the EZ²-Inspect phone ---- */
.repair-bar { align-items: center; gap: 10px; }
.rate-label { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.rate-in { width: 80px; padding: 6px 8px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; }
.repair-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--border); }
.repair-totals div { display: flex; flex-direction: column; } .repair-totals span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.repair-totals b { font-size: 1.15rem; } .repair-totals .tot b { color: var(--head); }
.visits .visit { border-top: 1px solid var(--border); }
.visit-head { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.visit-head > span:first-child { display: flex; flex-direction: column; } .visit-head small { color: var(--muted); }
.visit.open .visit-head { background: #f6f4ee; }
.visit-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.visit-body .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.visit-body input, .visit-body textarea { padding: 8px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; width: 100%; box-sizing: border-box; }
.visit-body input:disabled, .visit-body textarea:disabled { background: #f3f2ee; color: #444; }
.stage-pick { margin: 0; }
.mats { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mat { display: grid; grid-template-columns: 1fr 110px 24px; gap: 6px; width: 100%; max-width: 520px; align-items: center; }
.repair-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 6px 0; }
.repair-photo { margin: 0; position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f0eee8; }
.repair-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; cursor: pointer; }
.repair-foot { margin: 14px 0; align-items: center; gap: 10px; }
.btn-link.danger { color: var(--danger); }
.print-only { display: none; }
@media print {
  .print-only { display: block; padding: 0 14px; }
  .print-visit { break-inside: avoid; border-top: 1px solid #000; padding: 6px 0; }
  .print-visit h3 { margin: 4px 0; font-size: 1rem; }
  .print-only .repair-photos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) { .visit-body .grid3 { grid-template-columns: 1fr 1fr; } .repair-totals b { font-size: 1rem; } }
.repair-panel h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .repair-panel h2 .grow { flex: 1; }

/* ---- Vendors (Nov 16): Name, Phone, Cell, Email under a heading per trade; Preferred section on top ---- */
.vendor-scroll { max-height: 70vh; overflow: auto; }
#vendors .vendor-table th { position: sticky; top: 0; background: #fff; z-index: 1; }
#vendors .vendor-table td.pref, #vendors .vendor-table th:first-child { width: 84px; text-align: center; }
#vendors .vendor-table td.pref input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--head); }
#vendors .vendor-table td:nth-child(3), #vendors .vendor-table td:nth-child(4) { white-space: nowrap; }
#vendors .vendor-table tr.trade-row td { background: #eef3ec; color: var(--head); font-weight: 700; padding-top: 10px; }
#vendors .vendor-table tr.pref-row td { background: #fdf3d3; color: #6b4e00; }
#vendors .find { width: 180px; }
#vendors .vendor-table td:nth-child(2) { min-width: 240px; } #vendors .vendor-table th:nth-child(3), #vendors .vendor-table th:nth-child(4) { width: 130px; } #vendors .vendor-table td:nth-child(5) { overflow-wrap: anywhere; }
#vendors .vendor-table { table-layout: fixed; min-width: 760px; }
#vendors .vendor-table th:nth-child(1) { width: 112px; } #vendors .vendor-table th:nth-child(3), #vendors .vendor-table th:nth-child(4) { width: 130px; }
#vendors .vendor-table th:nth-child(5) { width: 32%; } #vendors .vendor-table td:nth-child(2) { min-width: 0; }
/* Tenant fields (Nov 16) */
#tenant-fields td.pref { width: 60px; text-align: center; } #tenant-fields td.pref input { width: 18px; height: 18px; accent-color: var(--head); }
#tenant-fields td input[type=text] { padding: 7px 10px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; width: 100%; max-width: 260px; }

/* Unit page, Nov 17 (Mark): Work orders and Appliances & Finishes are buttons that open below. */
.unit-grid .col { display: flex; flex-direction: column; gap: 16px; }
.unit-sec { display: flex; flex-direction: column; gap: 8px; }
.unit-sec > .tbl, .unit-sec > .card { margin: 0; }
.unit-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1.02rem; text-align: left; background: #fff; color: var(--head, #1f6b3a); border: 1px solid var(--tile-edge);
  box-shadow: 0 2px 0 var(--tile-lip); }
.unit-btn:hover { border-color: var(--head, #1f6b3a); }
.unit-btn.on { background: var(--head, #1f6b3a); color: var(--head-fg, #fff); border-color: var(--head, #1f6b3a); }
.unit-btn small { font-size: .78rem; background: #e7f0f8; color: var(--navy); border-radius: 999px; padding: 1px 8px; font-weight: 800; }
.unit-btn .chev { font-size: .9rem; }
.appl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--tile-edge); border-radius: 12px; overflow: hidden; }
.appl { width: 100%; border-collapse: collapse; }
.appl + .appl { border-left: 1px solid var(--tile-edge); }
.appl th { text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.appl td { padding: 5px 10px; border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap; }
.appl tr:last-child td { border-bottom: 0; }
.appl input[type=date] { padding: 5px 6px; border: 1px solid var(--tile-edge); border-radius: 8px; font: inherit; font-weight: 500; width: 100%; min-width: 128px; }
@media (max-width: 560px) { .appl-grid { grid-template-columns: 1fr; } .appl + .appl { border-left: 0; border-top: 1px solid var(--tile-edge); } }
/* Setup → Units: a long list scrolls inside its box. */
.setup-units { max-height: 420px; overflow-y: auto; }
.setup-units thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
/* Management looks, doesn't change (Nov 17): hidden buttons stay hidden even if a style sets display. */
body.look-only [hidden] { display: none !important; }
#items { margin-top: 16px; }

/* =====================================================================================================================
   THE CRISP LOOK (Nov 17, Mark: "It looks much better… Build", after the Yardi-style mock-up). These rules come last
   and win. A deep navy bar across the top, a plain text menu down the left, slim navy strips over each section, flat
   white panels with thin grey lines, ~14px text. Green stays for done things, gold for + Add, the serif EZ² wordmark.
   The tech's phone keeps its big buttons.
   ===================================================================================================================== */
:root {
  --navy: #0b436c; --head: #0b436c; --head-fg: #ffffff;
  --bg: #f5f6f8; --border: #e3e6ea; --line: #eef0f3; --muted: #5f6672;
  --tile-edge: #d4d9e0; --tile-lip: transparent; --tile-shadow: transparent; --tile-bottom: #ffffff;
}
body { font-size: 14px; background: var(--bg); }
h1 { font-size: 1.3rem; font-weight: 650; }
h2 { font-size: 1rem; }

/* The top bar */
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 9px 22px; background: var(--navy); color: #fff; border-bottom: 0; text-align: left; }
.app-head .head-left { display: contents; }
.app-head .suite-logo { order: 1; font-size: 1.32rem; margin: 0; }
.app-head .suite-logo .ez, .app-head .suite-logo .lease { color: #fff; }
.app-head .app-logo { order: 2; gap: 0; margin-left: -10px; }
.app-head .app-logo .ez { display: none; }
.app-head .app-logo .lease { font-family: var(--font); font-size: .95rem; font-weight: 500; color: #bcd0e2; }
.app-head .app-tag { display: none; }
.app-head #who { order: 3; flex-direction: row; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); font-size: .92rem; color: #dbe6f0; }
.app-head #who b { font-size: .95rem; color: #fff; font-weight: 600; }
.app-head #who .muted, .app-head #who small { color: #bcd0e2; }
.app-head .head-left select.scope { font-size: .92rem; font-weight: 600; padding: 4px 8px; border: 0; border-radius: 4px; max-width: 240px; }
.app-head .head-btns { order: 5; position: static; transform: none; margin-left: auto; display: flex; gap: 10px; align-items: center; }
.app-head .head-btns .btn { min-height: 32px; padding: 4px 14px; font-size: .9rem; border-radius: 4px; }
.app-head .help-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.app-head .help-btn:hover { background: rgba(255,255,255,.1); }
.app-head .btn-primary { box-shadow: none; }

/* The menu: plain text in a white column down the left */
.layout { max-width: none; margin: 0; padding: 0; gap: 0; align-items: stretch; min-height: calc(100vh - 52px); }
.side-col { flex: none; width: 200px; background: #fff; border-right: 1px solid var(--border); padding: 12px 8px; position: static; max-height: none; }
.side-col .side-nav { position: sticky; top: 10px; border: 0; border-radius: 0; box-shadow: none; background: transparent; gap: 1px; overflow: visible; }
.side-nav a, .side-nav a:first-child, .side-nav a:last-child { padding: 7px 12px; font-size: .96rem; font-weight: 500; border: 0; border-radius: 4px; color: #2b3038; }
.side-nav a svg { display: none; }
.side-nav a:hover { background: #eef2f6; color: var(--navy); }
.side-nav a.on { background: #e6edf4; color: var(--navy); font-weight: 650; box-shadow: none; }
.side-nav small, .side-nav a.on small { background: #e6edf4; color: var(--navy); font-size: .72rem; font-weight: 700; padding: 0 7px; }
.side-nav a.on small { background: #fff; }
.side-nav small.hot { background: #fbe3e1; color: #a32a20; }
.app { padding: 18px 24px 40px; gap: 16px; max-width: 1500px; }

/* Panels and slim navy strips */
.tbl, .panel, .card, .job-card, .job-head, .req-card, .note-pad, .home-todo, .guide, .insp-photo { border-radius: 4px; box-shadow: none; border-color: var(--border); }
.tbl-head, .panel h2, .sec-head, .modal h2 { background: var(--head); color: #fff; padding: 6px 12px; min-height: 32px; font-size: .9rem; font-weight: 600; letter-spacing: .01em; border-radius: 0; border-bottom: 0; }
.tbl-head .muted, .tbl-head small.muted, .panel h2 .muted, .hc-month { color: #d5e2ee; }
.tbl-head .btn, .panel h2 .btn, .panel h2 .small-btn { min-height: 26px; padding: 2px 10px; font-size: .82rem; border-radius: 3px; box-shadow: none; }
.tbl-head input.find, .tbl-head select, .panel h2 select { padding: 3px 8px; font-size: .85rem; border: 0; border-radius: 3px; }
.todo-count { background: #fff; color: var(--navy); }
.page-title h1 { font-size: 1.3rem; }

/* Tables: thin lines, quiet headers */
th { font-size: .72rem; font-weight: 650; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid #d9dde3; background: #fafbfc; }
.tbl table th { background: #fafbfc; }
td { border-bottom: 1px solid var(--line); }
.tbl table td, .tbl table th { padding: 7px 12px; font-size: .93rem; }
tr:hover td { background: #f4f7fa; }
.tbl .grp td { background: #f3f5f8; font-size: .74rem; color: var(--muted); }

/* Buttons and boxes: square corners, no lips */
.btn { border-radius: 4px; min-height: 34px; padding: 6px 14px; font-weight: 600; }
.btn-primary { box-shadow: none; }
.btn-outline { border-color: #d4d9e0; }
.tabs button, .tabs a { border-radius: 4px; }
.seg, .hc-views { border-radius: 4px; border-color: #d4d9e0; }
.hc-views button { font-size: .9rem; font-weight: 600; padding: 5px 14px; }
.pill { border-radius: 3px; font-weight: 650; }
#main input[type=text], #main input[type=search], #main input[type=email], #main input[type=tel], #main input[type=number], #main input[type=date], #main input[type=time],
#main select, #main textarea, .modal input[type=text], .modal input[type=email], .modal input[type=tel], .modal input[type=number], .modal input[type=date],
.modal input[type=time], .modal select, .modal textarea { border-radius: 4px; border-color: #d4d9e0; }
.modal { border-radius: 6px; }
.toast { border-radius: 4px; background: #1b1d22; }

/* Unit page buttons look like the strips */
.unit-btn { background: var(--head); color: #fff; border: 0; border-radius: 4px; min-height: 38px; padding: 7px 12px; font-size: .95rem; font-weight: 600; box-shadow: none; }
.unit-btn:hover { background: #0d4f7f; }
.unit-btn.on { background: var(--head); }
.unit-btn small { background: #fff; color: var(--navy); }
.appl-grid { border-radius: 4px; }
.appl input[type=date] { border-radius: 4px; }

/* The calendar */
.hc-item { border-radius: 3px; }

/* Phone: the menu runs across the top, the bar wraps. Big targets stay for the tech. */
@media (max-width: 860px) {
  .app-head { padding: 8px 12px; gap: 6px 12px; }
  .app-head #who { order: 6; flex-basis: 100%; padding-left: 0; border-left: 0; }
  .layout { flex-direction: column; min-height: 0; }
  .side-col { width: 100%; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-col .side-nav { flex-direction: row; overflow-x: auto; }
  .side-nav a, .side-nav a:first-child, .side-nav a:last-child { padding: 12px 14px; border-radius: 0; white-space: nowrap; }
  .side-nav a.on { box-shadow: inset 0 -2px 0 var(--navy); background: #fff; }
  .app { padding: 12px; }
}
@media print { .app-head { background: #fff !important; color: #000; } }
.btn-done { background: var(--green); color: #fff; }
.btn-done:hover { background: #18652f; }
.vac-table th { font-size: .72rem; }
.vac-table td { font-size: .93rem; }
.tbl table th, .unit-sec table th { font-size: .72rem; }
.appl input[type=date] { max-width: 170px; }
/* Unit page Status */
.unit-status b.ok { color: var(--green); } .unit-status b.warn { color: #8a6508; } .unit-status b.vac { color: var(--navy); }
/* My Jobs: Call tenant under a job card */
.job-item { display: flex; flex-direction: column; }
.job-item.has-call .job-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.job-call { min-height: 46px; border-radius: 0 0 4px 4px; border-top: 0; justify-content: center; font-size: 1rem; background: #fff; color: var(--navy); }
.app-head .app-logo { margin-left: -4px; }
@media (max-width: 860px) {
  .tbl-head { flex-wrap: wrap; row-gap: 6px; }
  .home-cal .hc-nav { flex-wrap: wrap; row-gap: 6px; }
}
/* Setup → Street rents (Nov 17): click the types the property has, type each street rent. */
.sr-body { padding: 10px 12px 4px; }
.sr-types { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-type { font: inherit; font-size: .9rem; font-weight: 600; min-width: 58px; padding: 6px 10px; border: 1px solid #d4d9e0; border-radius: 4px; background: #fff; color: #2b3038; cursor: pointer; }
.sr-type:hover { border-color: var(--navy); }
.sr-type.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sr-table { width: auto; min-width: 420px; margin: 8px 12px 6px; }
.sr-table td { padding: 5px 12px; }
.sr-money { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sr-money input { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.sr-note { margin: 4px 12px 10px; }
#street-rents .tbl-head { gap: 10px; }
#street-rents .tbl-head > span { margin-right: auto; }

/* The profile button (Nov 18): initials in a circle; its menu has the name, Status (roles) and Sign Out. */
.profile { position: relative; }
.me-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: #fff; color: var(--navy); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; }
.me-btn:hover, .me-btn[aria-expanded="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 230px; background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 12px 0 6px; text-align: left; }
.me-name { font-weight: 650; padding: 0 14px; }
.me-email { font-size: .84rem; color: var(--muted); padding: 0 14px; }
.me-status { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; }
.me-status span { color: var(--muted); }
.me-out { display: block; padding: 8px 14px; color: var(--fg); text-decoration: none; font-weight: 600; }
.me-out:hover, .me-out:focus { background: #eef2f6; outline: none; }

/* The vacancy page, compact (Nov 18, Mark: "Too much space… I have to scroll"). Everything on it is one row high. */
.vac-page { gap: 12px; }
.vac-page .col { gap: 12px; }
.vac-page .panel h2 { min-height: 28px; padding: 4px 12px; font-size: .86rem; }
.vac-page .panel .body { padding: 4px 12px 6px; }
.vac-page .irow { padding: 3px 0; min-height: 30px; gap: 10px; }
.vac-page .ilab { font-size: .88rem; }
.vac-page .ck { padding: 2px 0; min-height: 28px; font-size: .9rem; }
.vac-page .ck label { gap: 8px; }
.vac-page .app-grid { row-gap: 0; column-gap: 18px; }
.vac-page .radio-row { gap: 4px 14px; padding: 2px 0 4px; font-size: .88rem; }
.vac-page input[type=date], .vac-page input[type=time], .vac-page select, .vac-page input[type=text] { height: 28px; min-height: 28px; padding: 2px 6px; font-size: .86rem; }
.vac-page input[type=date] { width: 132px; }
.vac-page .btn-sm { min-height: 26px; padding: 2px 10px; font-size: .8rem; }
.vac-page table.vend th { padding: 4px 6px; }
.vac-page table.vend td { padding: 2px 6px; height: 32px; font-size: .88rem; }
.vac-page table.vend .where { display: flex; flex-wrap: wrap; gap: 3px; }
.vac-page table.vend .where button, .vac-page table.vend .where label, .vac-page .chip { padding: 0 7px; min-height: 20px; font-size: .74rem; border-radius: 3px; }
.vac-page table.vend select { width: 92px; }
.vac-page textarea.notes { min-height: 52px; }
.packet-panel .body { padding: 8px 12px; }
.packet-panel .btns .btn { min-height: 30px; padding: 3px 12px; font-size: .88rem; }
.packet-panel .body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.packet-panel .btns { display: flex; gap: 6px; margin: 0; }
.packet-panel .print-track { margin: 0; gap: 6px 12px; font-size: .84rem; }
.packet-panel .print-track .stamp { padding: 2px 8px; }
.vac-page table.vend td:first-child { white-space: nowrap; }
.vac-page table.vend select { width: 76px; }
.vac-page table.vend input[type=date] { width: 120px; }
.vac-page .ival .btn-sm { margin: 0; }
.vac-page .ival { flex-wrap: wrap; row-gap: 4px; }
.packet-panel .body { justify-content: flex-start; padding: 6px 12px; }
.packet-panel .btns .btn { min-height: 28px; padding: 2px 10px; font-size: .84rem; }
.packet-panel .print-track label { font-size: .86rem; }
.vac-page .irow { min-height: 28px; padding: 2px 0; }
.vac-page .ck { min-height: 26px; padding: 1px 0; font-size: .86rem; }
.vac-page .ck input[type=checkbox], .vac-page table.vend input[type=checkbox] { width: 16px; height: 16px; }
.vac-page input[type=date], .vac-page input[type=time], .vac-page select, .vac-page input[type=text] { height: 26px; min-height: 26px; font-size: .84rem; }
.vac-page table.vend td { height: 28px; padding: 1px 6px; font-size: .86rem; }
.vac-page table.vend th { padding: 3px 6px; font-size: .68rem; }
.vac-page .panel h2 { min-height: 26px; padding: 3px 12px; }
.vac-page .app-grid .ck { border-bottom: 0; }
.vac-page .muted.small { margin-top: 2px !important; font-size: .8rem; }
.packet-panel .body { flex-direction: row; }
/* Quick Forms on Home (Nov 18): top right, above To Do. Greyed = not uploaded/ticked yet. */
.quick-forms .qf-body { padding: 4px 0 8px; }
.qf-sec { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 2px; }
.qf-list { list-style: none; margin: 0; padding: 0; }
.qf-item { display: block; width: 100%; text-align: left; font: inherit; font-size: .93rem; color: var(--navy); background: none; border: 0; padding: 4px 14px; cursor: pointer; }
.qf-item:hover, .qf-item:focus-visible { background: #eef2f6; text-decoration: underline; outline: none; }
.qf-item.off { color: #8a929c; }
.qf-item.off:hover { text-decoration: none; }
.qf-none { margin: 2px 14px 4px; }
.qf-pick { list-style: none; margin: 8px 0 0; padding: 0; max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; }
.qf-pick li { border-bottom: 1px solid var(--line); }
.qf-pick li:last-child { border-bottom: 0; }
.qf-pick li.muted { padding: 8px 12px; }
.qf-pick button { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 8px 12px; cursor: pointer; }
.qf-pick button:hover, .qf-pick button:focus { background: #eef2f6; outline: none; }
/* Forms → Your Forms: the Quick column */
.qf-cell { white-space: nowrap; }
.qf-tick { display: flex; align-items: center; gap: 6px; font-size: .86rem; padding: 1px 0; cursor: pointer; }
/* Quick Forms tenant pick: On Notice first (CA-243 early inspection, Nov 18) */
.qf-pick .qf-sec { list-style: none; padding: 8px 12px 3px; background: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7280); }
.qf-pick .qf-out { margin-left: 8px; font-size: 11px; }

/* =====================================================================================================================
   COMPACT SPACING (Nov 18 evening; Mark on a 19" laptop in Firefox: "too much space in between lines… It appears double
   spaced and the Menu bar looks that way as well… Use 1.25 or less spacing for menus", whole app where appropriate).
   Same text size; only the gaps shrink. Help text and long notes keep their easier reading spacing (their own rules).
   ===================================================================================================================== */
body { line-height: 1.3; }
/* menu */
.side-col { padding: 8px 8px; gap: 10px; }
.side-col .side-nav { gap: 0; }
.side-nav a, .side-nav a:first-child, .side-nav a:last-child { padding: 3px 12px; line-height: 1.25; }
/* Vacancies / On Notice under the menu (Home) */
.side-vac { display: flex; flex-direction: column; gap: 8px; }
.side-vac-box { border: 1px solid var(--border); border-radius: 4px; background: #fff; overflow: hidden; }
.side-vac-head { background: var(--head); color: #fff; font-size: .82rem; font-weight: 600; padding: 3px 10px; line-height: 1.25; }
.side-vac ul { list-style: none; margin: 0; padding: 0; max-height: 34vh; overflow-y: auto; }
.side-vac li { border-top: 1px solid var(--line); }
.side-vac li:first-child { border-top: 0; }
.side-vac li a { display: block; padding: 2px 10px; font-size: .86rem; font-weight: 600; line-height: 1.25; color: var(--fg); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-vac li a:hover { background: #eef2f6; color: var(--navy); }
.side-vac-none { margin: 0; padding: 2px 10px; font-size: .84rem; color: var(--muted); }
/* panel and table heads, tables */
.tbl-head, .panel h2, .sec-head, .modal h2 { min-height: 28px; padding: 3px 12px; line-height: 1.25; }
.tbl-head .btn, .panel h2 .btn, .panel h2 .small-btn { min-height: 22px; padding: 1px 9px; }
.tbl table td, .tbl table th { padding: 4px 12px; line-height: 1.25; }
td, th { line-height: 1.25; }
@media (min-width: 861px) { .btn { min-height: 30px; padding: 4px 12px; } }   /* phones keep the bigger buttons */
.job-call { min-height: 46px; }
.app { padding: 12px 20px 30px; gap: 12px; }
/* Home */
.home { gap: 12px; }
.home-main, .home-side { gap: 12px; }
.home-cal .hc-nav .btn { min-height: 26px; padding: 1px 9px; }
.hc-bar { padding-top: 4px; padding-bottom: 4px; }
.hc-views button { padding: 3px 12px; }
.hc-dow { padding-top: 3px; padding-bottom: 3px; }
.hc-day { min-height: 62px; padding: 2px 4px 3px; gap: 2px; }
.hc-item { padding: 1px 5px; line-height: 1.2; }
.hc-more { font: inherit; font-size: .74rem; font-weight: 650; color: var(--navy); background: none; border: 0; padding: 0 5px; text-align: left; cursor: pointer; }
.hc-more:hover { text-decoration: underline; }
.todo-add { padding: 6px 10px; }
.todo-add input { padding: 4px 8px; }
.todo-add .btn { min-height: 28px; }
.todo-list li { padding: 4px 10px; row-gap: 0; }
.todo-empty { padding: 8px 12px; }
.todo-foot { padding: 4px 10px; }
.note-head { padding: 5px 12px 2px; }
.note-add { padding: 4px 10px 6px; }
.note-add .btn { min-height: 28px; }
.note-list li { padding: 4px 10px; gap: 2px; }
.quick-forms .qf-body { padding: 2px 0 4px; }
.qf-sec { padding: 4px 12px 1px; }
.qf-item { padding: 1px 12px; line-height: 1.25; }
.qf-pick button { padding: 5px 12px; }
/* lists and rows elsewhere */
.irow { min-height: 28px; }
.me-out { padding: 5px 14px; }
/* help and long notes keep easier reading */
.g-body, .g-tour p, .guide p, .sheet { line-height: 1.45; }

/* ---- To Do: + Add in the head, a drop-down panel (Title, Message, Save / Done), click an item to open it (Nov 18) ---- */
.home-todo .tbl-head { justify-content: space-between; }
.home-todo .todo-add-btn { min-height: 22px; padding: 1px 10px; font-size: .82rem; }
.todo-panel { display: flex; flex-direction: column; gap: 0; padding: 8px 10px; border-bottom: 1px solid var(--border); background: #f7f9fb; }
.todo-panel input.todo-title, .todo-panel textarea.todo-message { font: inherit; border: 1px solid #c9d0d8; background: #fff; padding: 5px 8px; width: 100%; box-sizing: border-box; }
.todo-panel input.todo-title { font-weight: 600; border-radius: 3px 3px 0 0; }
.todo-panel input.todo-title[readonly] { background: #f1f3f6; color: var(--muted); }
.todo-panel textarea.todo-message { border-top: 0; border-radius: 0 0 3px 3px; resize: vertical; min-height: 84px; line-height: 1.35; }
.todo-panel input:focus, .todo-panel textarea:focus { outline: 2px solid #9cc0e0; outline-offset: -1px; }
.todo-panel .err:empty { display: none; }
.todo-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.todo-panel-btns { display: flex; gap: 6px; margin-left: auto; }
.todo-panel-btns .btn { min-height: 26px; padding: 2px 12px; font-size: .84rem; }
.todo-edited { font-size: .74rem; }
.todo-item { display: block !important; }
.todo-line { display: flex; align-items: flex-start; gap: 8px; }
.todo-line input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.todo-text { font: inherit; text-align: left; background: none; border: 0; padding: 0; color: var(--fg); cursor: pointer; flex: 1; min-width: 0; }
.todo-text:hover { color: var(--navy); text-decoration: underline; }
.todo-item small { display: block; padding-left: 24px; }
.todo-msg { color: #4a525c; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-item { position: relative; padding-right: 26px !important; }
.todo-item .todo-x { position: absolute; right: 6px; top: 4px; }
.done-list li { flex-wrap: wrap; }
.done-msg { flex-basis: 100%; order: 2; color: #4a525c; white-space: pre-wrap; font-size: .82rem; }
/* a little room between the menu and the Vacancies lists (Mark: "Insert a space below Setup") */
.side-vac { margin-top: 14px; }
/* To Do → Add to Calendar (Nov 18) */
.todo-panel .todo-cal-btn { min-height: 26px; padding: 2px 10px; font-size: .82rem; }
.todo-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #d4d9e0; font-size: .84rem; }
.todo-cal input { font: inherit; font-size: .84rem; padding: 2px 4px; height: 26px; }
.todo-cal .btn { min-height: 26px; padding: 2px 10px; font-size: .82rem; margin-left: auto; }
/* Lists scroll inside their box (Nov 18): column names stay pinned while the rows scroll */
.fit-scroll { overflow: auto; }
.fit-scroll thead th { position: sticky; top: 0; z-index: 2; background: #fafbfc; box-shadow: inset 0 -1px 0 #d9dde3; }
.vendor-scroll.fit-scroll { max-height: none; }

/* ---- Rent Increases (Nov 18 night: Mark's workbook in the app) ---- */
.hc-item.hc-rent { background: #fff1c9; color: #6b4e00; border-left: 3px solid var(--gold); }
.k-rent { background: var(--gold); }
.rent-year .tbl-head .btn, .rent-month .tbl-head .btn { min-height: 24px; padding: 1px 10px; font-size: .82rem; }
.rent-prop { font: inherit; font-size: .82rem; border: 0; border-radius: 3px; padding: 2px 6px; }
.rent-rules { margin: 8px 12px 0; }
.notice-line { margin: 8px 12px 0; padding: 6px 10px; border-radius: 4px; background: var(--gold-soft); color: #5a4300; font-size: .86rem; }
.rent-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 8px 12px 10px; }
@media (max-width: 1100px) { .rent-months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rent-mo { font: inherit; text-align: left; background: #f7f9fb; border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; cursor: pointer; color: var(--fg); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rent-mo b { font-size: .86rem; }
.rent-mo span { font-size: .78rem; color: #4d5562; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rent-mo span.od { color: var(--danger); font-weight: 650; }
.rent-mo span.ok { color: var(--ok); font-weight: 650; }
.rent-mo.past { background: #fff; }
.rent-mo.on { background: var(--gold-soft); border-color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.rent-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px 0; }
.rent-step { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: #f1f3f6; }
.rent-step i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: #c9d0d8; color: #fff; }
.rent-step.now { background: #e6edf4; color: var(--navy); font-weight: 650; }
.rent-step.now i { background: var(--navy); }
.rent-step.done { color: var(--ok); }
.rent-step.done i { background: var(--ok); }
.rent-tip { margin: 6px 12px 0; }
.rent-norent { background: #fff4d6; border: 1px solid #e8c766; border-radius: 6px; padding: 6px 10px; font-weight: 600; }
.ok-line { margin: 6px 12px 0; padding: 6px 10px; border-radius: 4px; background: #e8f3ec; color: #1f5a33; font-size: .86rem; }
.rent-table { width: 100%; min-width: 980px; }
.rent-table td, .rent-table th { white-space: nowrap; }
.rent-table td.num, .rent-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rent-table .pill { margin-left: 6px; font-size: .72rem; }
.rent-table tr.rent-skip td { color: var(--muted); background: #fafbfc; }
.rent-table tr.rent-skip td b { text-decoration: line-through; }
.rent-table tr.rent-off td { color: var(--muted); }
.rent-why { color: #7a5a00; }
.rent-acts .btn-link { margin-right: 8px; font-size: .84rem; }
.rent-served { width: 16px; height: 16px; accent-color: var(--green); }
.rent-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #fafbfc; border-top: 1px solid var(--border); font-size: .9rem; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.rent-warn summary { cursor: pointer; list-style: none; }
.rent-warn ul { margin: 0; padding: 8px 12px 10px 30px; font-size: .86rem; line-height: 1.5; max-height: 220px; overflow: auto; }
.rent-h { margin: 6px 0 0; font-size: 1rem; color: var(--navy); }
.rent-rules-table { width: 100%; border-collapse: collapse; }
.rent-rules-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rent-rules-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); }
.rent-rules-table input { width: 70px; font: inherit; padding: 3px 6px; border: 1px solid #c9d0d8; border-radius: 3px; text-align: center; background: #fffbe6; }
.rent-check { color: var(--danger); font-size: .8rem; font-weight: 650; }
.rent-status { margin: 0; padding: 5px 10px; border-radius: 4px; font-weight: 650; }
.rent-status.ok { background: #e8f3ec; color: #1f5a33; }
.rent-status.bad { background: #fbe3e1; color: #a32a20; }
.rent-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; }
.rent-day { width: 56px; font: inherit; padding: 3px 6px; border: 1px solid #c9d0d8; border-radius: 3px; text-align: center; }
.rent-forms { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; }
.rent-form { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.rent-order { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .7rem; margin-right: 6px; }
.rent-fields { border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.rent-fields legend { font-size: .82rem; font-weight: 650; color: var(--navy); padding: 0 4px; }
.rent-setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rent-setup-list li { display: flex; align-items: center; gap: 10px; }
#tenants td.num, #tenants th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* The rent increase settings window is wider, so the rules table reads like the workbook. */
.modal:has(.rent-rules-table) { width: min(860px, 100%); }
.rent-rules-table th { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.rent-rules-table td:nth-child(6) { white-space: nowrap; min-width: 130px; }
.rent-rules-table td:nth-child(7) { min-width: 150px; }
/* Nov 18 (Mark's screenshot): on a short screen a window's parts shrank to fit (the rules table showed one row and no
   headings). They keep their size now; the window scrolls instead. */
.modal .body > * { flex-shrink: 0; }
/* Nov 19: the calendar key under the calendar */
.hc-legend-bar { padding: 6px 12px; border-top: 1px solid var(--border); background: #fafbfc; }
.hc-bar { justify-content: flex-end; }
.rent-up-note { display: block; margin-top: 4px; color: #5a4300; }
.rent-checks { margin-top: 6px; }
.rent-checks summary { cursor: pointer; color: var(--danger); font-weight: 650; }
.rent-checks ul { margin: 4px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; font-size: .86rem; }

/* Nov 21: month-calendar items are rounded pills, one line high (full text on hover), so a busy day fits more. */
@media (min-width: 601px) {
  .hc-day .hc-item, .hc-day button.hc-item { border-radius: 999px; padding: 0 8px; line-height: 1.45; font-size: .72rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 0; }
  .hc-day { gap: 2px; }
}
@media (min-width: 601px) { .hc-day .hc-more { line-height: 1.3; font-size: .72rem; padding: 0 8px; } .hc-day .hc-num { line-height: 1.2; } }

/* Nov 21: Rent Increases, simpler (Mark): month pills, five columns with details on click, the Status box under the menu. */
.rent-page .tbl-head .btn { min-height: 24px; padding: 1px 10px; font-size: .82rem; }
.rent-top { padding: 8px 12px 4px; border-bottom: 1px solid var(--line); }
.rent-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.rent-pill, .rent-yr { font: inherit; font-size: .8rem; border-radius: 999px; padding: 1px 10px; line-height: 1.5; cursor: pointer; border: 1px solid var(--border); background: #f7f9fb; color: #4d5562; white-space: nowrap; }
.rent-yr { background: none; border-color: transparent; color: var(--navy); font-weight: 650; }
.rent-pill.past { color: #9aa1ab; background: #fff; }
.rent-pill.has { color: var(--fg); font-weight: 650; }
.rent-pill.on { background: var(--gold-soft); border-color: var(--gold); color: #5c4300; font-weight: 750; }
.rent-page .rent-rules { margin: 6px 0 2px; }
.rent-mhead { padding: 8px 12px; font-size: .95rem; }
.rent-page .rent-table { width: 100%; }
.rent-row { cursor: pointer; }
.rent-row:hover td, .rent-row.open td { background: #f4f7fa; }
.rent-more td { background: #f4f7fa; color: #4d5562; font-size: .84rem; padding: 3px 12px 8px 24px; border-top: 0; }
.rent-page .rent-foot .btn-link { font-size: .9rem; }
.side-status ul { max-height: none; }
.side-rent-sec { font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; padding: 6px 10px 2px; }
.side-rent-sec.up { color: #8a5a00; }
.side-rent-sec.er { color: var(--danger); border-top: 1px solid var(--line); }
.side-rent-item { display: block; width: 100%; text-align: left; font: inherit; font-size: .84rem; font-weight: 650; background: none; border: 0; padding: 3px 10px; cursor: pointer; color: var(--navy); line-height: 1.25; }
.side-rent-item .sub { display: block; font-weight: 400; font-size: .76rem; color: #5b6370; }
.side-rent-item.err { color: var(--fg); }
.side-rent-item.err .sub { color: var(--danger); }
.side-rent-item:hover { background: #eef2f6; }
.side-rent-ok { margin: 0; padding: 4px 10px; font-size: .84rem; color: var(--ok); font-weight: 650; }
.rent-fixlist { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.rent-fixlist li { padding: 3px 0; border-top: 1px solid var(--line); }
.rent-od-done { margin-top: 10px; padding: 8px 10px; background: #f7f9fb; border: 1px solid var(--border); border-radius: 6px; display: grid; gap: 6px; }
/* Nov 21: Help is one view for the screen you're on; Search all help sits at the bottom. */
.guide .g-searchbox { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.guide .g-searchbox .g-search { width: 100%; }
.guide a.g-taskbtn { display: block; text-decoration: none; }

/* ---- Home dashboard (Nov 2026): counts, recently changed, Suggested for you, Shared To Do in sections ---- */
.home-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.home-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-counts .home-block { justify-content: center; min-height: 96px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { padding: 7px 14px; border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list li:last-child { border-bottom: 0; }
.recent-list a { font-weight: 700; text-decoration: none; }
.recent-list small { font-size: .8rem; }
.task-sec-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: #f4f2ed; font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); }
.task-sec-head small { background: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.task-secs .todo-list { max-height: none; }
.home-shared .task-secs, .home-todo .task-secs { max-height: 62vh; overflow-y: auto; }
.todo-line { display: flex; gap: 8px; align-items: flex-start; grid-column: 1; }
.todo-text { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: var(--fg); overflow-wrap: anywhere; }
.todo-text:hover { text-decoration: underline; }
.todo-item input:disabled { cursor: not-allowed; opacity: .45; }
.todo-item.taken small { color: var(--blue); }
.home-suggested .tbl-head { background: var(--gold); color: #1b1d22; }
.home-suggested .todo-count { background: #fff; color: #1b1d22; }
.sugg-item { grid-template-columns: minmax(0, 1fr) auto !important; }
.sugg-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sugg-btns { display: flex; gap: 6px; }
.sugg-btns .btn { min-height: 32px; padding: 3px 12px; }
.task-which button { min-width: 110px; }
@media (max-width: 1300px) { .home-dash { grid-template-columns: 1fr; } }
