/* HAZA Absolute Flooring — Estimating Workspace
   Design language carried over from hazaabsoluteflooring.com */

:root {
  --ink: #12100e;
  --ink-70: rgba(18, 16, 14, 0.7);
  --ink-50: rgba(18, 16, 14, 0.52);
  --bone: #f5f2eb;
  --paper: #fffdf9;
  --oak: #cf8f43;
  --oak-dark: #a86f2c;
  --line: rgba(18, 16, 14, 0.13);
  --line-strong: rgba(18, 16, 14, 0.26);
  --good: #2f6b4a;
  --warn: #a8501c;
  --bad: #93331f;
  --f-display: 'Bespoke Slab', 'Times New Roman', serif;
  --f-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 3px;
  --shadow: 0 1px 2px rgba(18, 16, 14, 0.06), 0 8px 24px -16px rgba(18, 16, 14, 0.25);
  --sidebar: 232px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.side {
  background: var(--ink);
  color: var(--bone);
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark svg { flex: none; }
.brandimg { flex: none; width: 30px; height: 30px; border-radius: 3px; object-fit: cover; background: var(--bone); }
.wordmark b { font-family: var(--f-display); font-size: 15.5px; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; display: block; }
.wordmark span { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 242, 235, 0.55); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: var(--r);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: rgba(245, 242, 235, 0.72);
}
.nav a:hover { background: rgba(245, 242, 235, 0.07); color: var(--bone); }
.nav a[aria-current='page'] { background: rgba(207, 143, 67, 0.16); color: var(--bone); box-shadow: inset 2px 0 0 var(--oak); }
.nav svg { width: 17px; height: 17px; flex: none; }

.side-foot { margin-top: auto; font-size: 11.5px; color: rgba(245, 242, 235, 0.45); display: flex; flex-direction: column; gap: 8px; }
.side-foot button { background: none; border: 0; padding: 0; color: rgba(245, 242, 235, 0.55); text-align: left; cursor: pointer; font-size: 11.5px; }
.side-foot button:hover { color: var(--bone); }

.main { min-width: 0; padding: 30px 34px 80px; }

.tabbar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: sticky; top: 0; height: auto; z-index: 30;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 11px 15px;
  }
  .side .nav, .side .side-foot { display: none; }
  .main { padding: 16px 15px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--ink); border-top: 1px solid rgba(245, 242, 235, 0.12);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px; text-decoration: none;
    font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(245, 242, 235, 0.6);
  }
  .tabbar a[aria-current='page'] { color: var(--oak); }
  .tabbar svg { width: 20px; height: 20px; }
}

/* ---------- headings ---------- */

.eyebrow {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-50); margin: 0 0 7px;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(24px, 4vw, 33px); line-height: 1.08; }
.page-head p { margin: 5px 0 0; color: var(--ink-70); font-size: 14px; }

/* ---------- surfaces ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card > h2 { font-size: 17px; margin-bottom: 3px; }
.card > h2 + p.hint { margin-top: 0; }
.hint { color: var(--ink-50); font-size: 12.5px; margin: 4px 0 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.grow { flex: 1 1 160px; min-width: 0; }

/* ---------- fields ---------- */

label.f { display: block; }
label.f > span {
  display: block; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-50); margin-bottom: 5px; font-weight: 600;
}
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 10px 11px; font-size: 15.5px;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2312100e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 11px;
  padding-right: 32px;
}
textarea { min-height: 82px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--oak); outline-offset: 0; border-color: var(--oak); }
input[type='checkbox'] { width: 19px; height: 19px; accent-color: var(--oak); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.check input { flex: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bone);
  padding: 11px 16px; border-radius: var(--r); cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #241f1a; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.oak { background: var(--oak); border-color: var(--oak); color: #1a1206; }
.btn.oak:hover { background: var(--oak-dark); border-color: var(--oak-dark); }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(18, 16, 14, 0.05); }
.btn.danger { background: none; color: var(--bad); border-color: rgba(147, 51, 31, 0.4); }
.btn.danger:hover { background: rgba(147, 51, 31, 0.07); }
.btn.sm { padding: 7px 11px; font-size: 10.5px; }
.btn svg { width: 15px; height: 15px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-70); text-decoration: underline; cursor: pointer; font-size: 13px; }
.linkbtn:hover { color: var(--ink); }
.iconbtn {
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-70); flex: none;
}
.iconbtn:hover { color: var(--bad); border-color: rgba(147, 51, 31, 0.4); }
.iconbtn svg { width: 15px; height: 15px; }

/* ---------- pills ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 3px 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
}
.pill.quoted { border-color: var(--line-strong); color: var(--ink-70); }
.pill.sold { border-color: var(--oak); background: rgba(207, 143, 67, 0.14); color: var(--oak-dark); }
.pill.scheduled { border-color: rgba(47, 107, 74, 0.4); background: rgba(47, 107, 74, 0.1); color: var(--good); }
.pill.progress { border-color: rgba(168, 80, 28, 0.4); background: rgba(168, 80, 28, 0.1); color: var(--warn); }
.pill.completed { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.pill.declined, .pill.cancelled { border-color: rgba(147, 51, 31, 0.35); color: var(--bad); }
.pill.paid { border-color: rgba(47, 107, 74, 0.4); background: rgba(47, 107, 74, 0.1); color: var(--good); }
.pill.due { border-color: rgba(168, 80, 28, 0.45); color: var(--warn); }

/* ---------- tab strip ---------- */

.tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 13px; cursor: pointer; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-50);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--oak); }

/* ---------- job list ---------- */

.joblist { display: flex; flex-direction: column; gap: 9px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow); cursor: pointer;
  text-align: left; width: 100%; font: inherit;
}
.job:hover { border-color: var(--line-strong); }
.job h3 { font-size: 17px; }
.job .meta { color: var(--ink-50); font-size: 12.5px; grid-column: 1; }
.job .amt { font-family: var(--f-display); font-size: 19px; text-align: right; white-space: nowrap; }
.job .pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; grid-column: 2; }
@media (max-width: 560px) {
  /* Name and price stay on one line; pills and meta get the full width so the
     address doesn't wrap into a narrow ribbon. */
  .job h3 { grid-column: 1; }
  .job .amt { grid-column: 2; }
  .job .pills { grid-column: 1 / -1; justify-content: flex-start; margin-top: 2px; }
  .job .meta { grid-column: 1 / -1; }
}

/* ---------- figures ---------- */

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fig { background: var(--paper); padding: 12px 13px; }
.fig dt { font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; }
.fig dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 21px; line-height: 1.1; }
.fig.dark { background: var(--ink); color: var(--bone); }
.fig.dark dt { color: rgba(245, 242, 235, 0.6); }
.fig small { display: block; font-family: var(--f-body); font-size: 11.5px; color: var(--ink-50); margin-top: 3px; }

/* ---------- tables ---------- */

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 600; padding: 0 8px 7px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }

.line-row { display: grid; grid-template-columns: 1fr 96px 96px 92px 34px; gap: 8px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-row:last-of-type { border-bottom: 0; }
@media (max-width: 700px) { .line-row { grid-template-columns: 1fr 1fr; } .line-row .wide { grid-column: 1 / -1; } }

.room-row { display: grid; grid-template-columns: 1fr 88px 88px 88px 78px 34px; gap: 8px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.room-row:last-of-type { border-bottom: 0; }
@media (max-width: 700px) { .room-row { grid-template-columns: 1fr 1fr 1fr; } .room-row .wide { grid-column: 1 / -1; } }

/* ---------- photos ---------- */

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bone); }
.photo .pmeta { padding: 8px 9px; display: flex; flex-direction: column; gap: 6px; }
.photo input { padding: 6px 8px; font-size: 13px; }

/* ---------- calendar ---------- */

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal .dow { background: var(--bone); padding: 7px 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-50); text-align: center; font-weight: 600; }
.cal .day { background: var(--paper); min-height: 82px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal .day.out { background: rgba(18, 16, 14, 0.03); color: var(--ink-50); }
.cal .day.today .dnum { background: var(--oak); color: #1a1206; border-radius: 100px; padding: 0 6px; }
.cal .dnum { font-size: 11.5px; font-weight: 700; align-self: flex-start; font-variant-numeric: tabular-nums; }
.cal .ev { font-size: 11px; line-height: 1.25; padding: 3px 5px; border-radius: 2px; background: rgba(207, 143, 67, 0.18); border-left: 2px solid var(--oak); cursor: pointer; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; font-family: inherit; }
.cal .ev.job { background: rgba(47, 107, 74, 0.14); border-left-color: var(--good); }
@media (max-width: 700px) { .cal .day { min-height: 62px; } .cal .ev { font-size: 9.5px; padding: 2px 3px; } }

/* ---------- lock screen ---------- */

.lock { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: var(--bone); padding: 24px; }
.lockbox { width: 100%; max-width: 320px; text-align: center; }
.lockbox h1 { font-size: 21px; margin: 18px 0 4px; }
.lockbox p { color: rgba(245, 242, 235, 0.6); font-size: 13px; margin: 0 0 22px; }
.dots { display: flex; gap: 11px; justify-content: center; margin-bottom: 24px; }
.dots i { width: 12px; height: 12px; border-radius: 100px; border: 1px solid rgba(245, 242, 235, 0.4); }
.dots i.on { background: var(--oak); border-color: var(--oak); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keys button {
  background: rgba(245, 242, 235, 0.07); border: 1px solid rgba(245, 242, 235, 0.16);
  color: var(--bone); border-radius: var(--r); padding: 16px 0; font-size: 21px;
  font-family: var(--f-display); cursor: pointer;
}
.keys button:hover { background: rgba(245, 242, 235, 0.14); }
.keys button.blank { background: none; border: 0; cursor: default; }
.lockerr { color: #e8a48c; font-size: 13px; min-height: 20px; margin: 16px 0 0; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  background: var(--ink); color: var(--bone); padding: 11px 18px; border-radius: var(--r);
  font-size: 14px; box-shadow: 0 10px 30px -10px rgba(18, 16, 14, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--bad); }
@media (max-width: 860px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- sheet / modal ---------- */

.sheet-bg { position: fixed; inset: 0; background: rgba(18, 16, 14, 0.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet {
  background: var(--bone); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 8px 8px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.sheet h2 { font-size: 19px; margin-bottom: 3px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: var(--r); } }

/* ---------- misc ---------- */

.empty { text-align: center; padding: 40px 20px; color: var(--ink-50); }
.empty h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.warnbox { border: 1px solid rgba(168, 80, 28, 0.4); background: rgba(168, 80, 28, 0.07); border-radius: var(--r); padding: 11px 13px; font-size: 13.5px; color: var(--warn); }
.goodbox { border: 1px solid rgba(47, 107, 74, 0.35); background: rgba(47, 107, 74, 0.07); border-radius: var(--r); padding: 11px 13px; font-size: 13.5px; color: var(--good); }
.internal { border-left: 2px solid var(--oak); padding-left: 12px; }
.internal-tag { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--oak-dark); font-weight: 700; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; }
.hist time { color: var(--ink-50); font-size: 12px; white-space: nowrap; }
.saving { position: fixed; top: 0; left: 0; height: 2px; background: var(--oak); z-index: 100; transition: width 0.2s; width: 0; }
.saving.on { width: 100%; }
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--line-strong); border-top-color: var(--oak); border-radius: 100px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 60vh; gap: 12px; color: var(--ink-50); font-size: 14px; }

/* ---------- documents ---------- */

.docview {
  position: fixed; inset: 0; z-index: 80; background: rgba(18, 16, 14, 0.55);
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 40px;
}
.docbar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--ink); color: var(--bone);
  padding: 10px 14px calc(10px + env(safe-area-inset-top));
  padding-top: calc(10px + env(safe-area-inset-top));
}
.docbar .hint { color: rgba(245, 242, 235, 0.6); }
.docbar .btn.ghost { color: var(--bone); border-color: rgba(245, 242, 235, 0.3); }
.docbar .btn.ghost:hover { background: rgba(245, 242, 235, 0.1); }
.docbar .btn:not(.ghost) { background: var(--oak); border-color: var(--oak); color: #1a1206; }
.docpage { padding: 18px 12px 0; display: flex; justify-content: center; }

.doc {
  background: #fff; color: #12100e; width: 100%; max-width: 8.5in;
  padding: 0.6in 0.6in 0.5in; font-size: 10.5pt; line-height: 1.5;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.doc h1 { font-family: var(--f-display); font-size: 17pt; margin: 0 0 3px; }
.doc h2 {
  font-family: var(--f-body); font-size: 8pt; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(18, 16, 14, 0.55); font-weight: 700; margin: 0 0 6px;
  padding-bottom: 4px; border-bottom: 1px solid rgba(18, 16, 14, 0.18);
}
.doc p { margin: 0 0 8px; }
.doc section { margin-bottom: 18px; }
.doclogo { max-height: 46px; max-width: 190px; margin-bottom: 8px; display: block; }

.dochead { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 2px solid #12100e; padding-bottom: 12px; margin-bottom: 18px; }
.dochead > div:first-child p { font-size: 9pt; color: rgba(18, 16, 14, 0.7); margin: 0; }
.docmeta { text-align: right; flex: none; }
.doctype { font-family: var(--f-display); font-size: 13pt; margin: 0 0 6px !important; letter-spacing: 0.02em; }
.docmeta table { font-size: 9pt; border-collapse: collapse; margin-left: auto; }
.docmeta td { padding: 1px 0 1px 12px; }
.docmeta td:first-child { color: rgba(18, 16, 14, 0.55); padding-left: 0; text-align: left; }
.docmeta td:last-child { text-align: right; font-weight: 600; }

.docgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.docbox { border: 1px solid rgba(18, 16, 14, 0.2); padding: 12px 14px; }

.doctbl { width: 100%; border-collapse: collapse; font-size: 10pt; }
.doctbl th { text-align: left; font-size: 7.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(18, 16, 14, 0.55); font-weight: 700; padding: 0 6px 5px; border-bottom: 1px solid rgba(18, 16, 14, 0.25); }
.doctbl td { padding: 5px 6px; border-bottom: 1px solid rgba(18, 16, 14, 0.1); }
.doctbl td.num, .doctbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.doctbl tr.sub td, .doctbl tr.grand td { font-weight: 700; border-bottom: 0; }
.doctbl tr.grand td { border-top: 1.5px solid #12100e; font-size: 11.5pt; font-family: var(--f-display); padding-top: 7px; }
.doctotals { max-width: 3.5in; margin-left: auto; }
.docnote { font-size: 8.5pt; color: rgba(18, 16, 14, 0.62); }
.docterms p { font-size: 8.5pt; line-height: 1.45; }
.docphotos > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.docphotos img { width: 100%; height: 2.1in; object-fit: cover; display: block; }
.docphotos figure { margin: 0; }
.docphotos figcaption { font-size: 8pt; color: rgba(18, 16, 14, 0.6); padding-top: 3px; }
.docsign { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 28px; }
.docsign span { display: block; border-bottom: 1px solid #12100e; height: 30px; }
.docsign p { font-size: 8pt; color: rgba(18, 16, 14, 0.6); margin: 4px 0 0; }
.docfoot { border-top: 1px solid rgba(18, 16, 14, 0.18); padding-top: 8px; margin-top: 22px; }
.docfoot p { font-size: 8pt; color: rgba(18, 16, 14, 0.55); text-align: center; margin: 0; }

@media (max-width: 620px) {
  .doc { padding: 20px 16px; font-size: 11.5px; }
  .dochead, .docgrid, .docsign, .docphotos > div { grid-template-columns: 1fr; display: block; }
  .docmeta { text-align: left; margin-top: 12px; }
  .docmeta table { margin-left: 0; }
  .doctotals { max-width: none; }
}

@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; }
  body.printing > #root, body.printing > .toast, body.printing .sheet-bg { display: none !important; }
  .docview { position: static; inset: auto; background: none; overflow: visible; padding: 0; }
  .docbar { display: none !important; }
  .docpage { padding: 0; display: block; }
  .doc { max-width: none; width: auto; box-shadow: none; padding: 0; }
  .doc section, .docphotos figure, .doctotals, .docsign { break-inside: avoid; }
  .doctbl tr { break-inside: avoid; }
}

@media (max-width: 560px) {
  /* The internal job id is noise on a phone; it stays available on desktop. */
  .jobid { display: none; }
}
