:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #15202b;
  --muted: #667486;
  --line: #d8e0e8;
  --brand: #c9252d;
  --brand-dark: #941a20;
  --navy: #17212d;
  --teal: #1f6f8b;
  --blue: #1f6f8b;
  --blue-soft: #e3f1f5;
  --green: #1f7a4d;
  --green-soft: #e2f3ea;
  --gold: #b8962e;
  --gold-soft: #fdf6e3;
  --gold-line: #e6d48a;
  --shadow: 0 18px 48px rgba(22, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}

body.auth-pending .app-shell,
body.signed-out .app-shell {
  visibility: hidden;
}

body.signed-in .login-overlay {
  display: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)),
    url("123-exteriors-window-quote-mockup.png") center / cover no-repeat;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card p {
  color: var(--muted);
  font-size: 14px;
}

.login-logo {
  width: 240px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1540px, calc(100vw - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  background: var(--surface-2);
  border: 1px solid #cbd5df;
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark,
.proposal-logo {
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.brand-mark {
  width: 50px;
  height: 50px;
}

.brand-logo {
  width: 300px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  background: white;
  border-radius: 6px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
  line-height: 1.1;
}

h2 {
  margin-top: 3px;
  font-size: 18px;
}

.topbar p,
.live-card p,
.manager-note p,
.proposal-price-box p {
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workflow {
  display: grid;
  grid-template-columns: 82px minmax(620px, 1fr) 360px;
  align-items: start;
}

.workflow.pricing-hidden {
  grid-template-columns: 82px minmax(620px, 1fr);
}

.workflow.pricing-hidden .summary-panel {
  display: none;
}

.workflow.pricing-hidden .internal-cost-col {
  display: none;
}

.workflow.pricing-hidden .line-unit-override,
.workflow.pricing-hidden .line-actions {
  display: none;
}

.workflow.customer-facing-section .summary-panel .rep-only-summary {
  display: none;
}

.workflow.customer-facing-section .summary-panel .live-card p {
  display: none;
}

.price-panel-reopen {
  position: fixed;
  right: 16px;
  top: 96px;
  z-index: 50;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(22, 32, 42, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.price-panel-reopen:hover {
  color: white;
  background: var(--navy);
}

.mode-button {
  padding: 7px 10px;
  color: var(--muted);
  background: #f4f7fa;
  border-color: #dce5ed;
  font-size: 12px;
}

.rail {
  position: sticky;
  top: 0;
  min-height: calc(100vh - 100px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 10px;
  background: var(--navy);
}

.rail-item {
  min-height: 62px;
  color: #cdd7e3;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.rail-item.active,
.rail-item:hover {
  color: white;
  background: var(--brand);
}

.work-area {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.page-panel {
  display: none;
}

.page-panel.active-page {
  display: block;
}

.panel,
.summary-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-panel {
  position: sticky;
  top: 0;
  min-height: calc(100vh - 100px);
  padding: 14px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.section-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #145264;
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.muted {
  color: var(--muted);
  background: #eef2f6;
}

.form-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
  align-items: start;
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-field {
  grid-column: span 2;
}

.address-field {
  position: relative;
  z-index: 30;
  grid-template-rows: auto auto auto;
}

.address-field .lookup-status {
  display: block;
}

.address-field .field-help {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.form-helper {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.exterior-material-results {
  display: grid;
  gap: 8px;
  align-self: stretch;
}

.exterior-material-count,
.exterior-material-empty,
.exterior-material-selected {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.exterior-material-selected {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.exterior-material-selected span {
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.exterior-material-selected strong {
  color: var(--ink);
  font-size: 13px;
}

.exterior-material-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.exterior-material-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.exterior-material-row:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.exterior-material-row strong,
.exterior-material-row small {
  display: block;
}

.exterior-material-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.exterior-material-row b {
  white-space: nowrap;
  color: var(--brand-dark);
  text-align: right;
}

.exterior-material-row b small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.exterior-pricing-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8d8e4;
  border-left: 4px solid var(--brand-dark);
  border-radius: 8px;
  background: #f7fafc;
}

.exterior-pricing-guide div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dde8ef;
  border-radius: 6px;
  background: #fff;
}

.exterior-pricing-guide span,
.quick-price {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.exterior-pricing-guide strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.quick-price {
  margin: 3px 0 6px;
  color: var(--brand-dark);
  text-transform: none;
}

.quick-price.warning {
  color: var(--danger);
}

.siding-visual-guide {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #cddde7;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f9fbfc;
}

.siding-guide-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.siding-guide-swatch {
  width: 54px;
  height: 54px;
  border: 1px solid #9facb8;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), rgba(0,0,0,0.12)),
    var(--swatch);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.25);
}

.siding-guide-main strong,
.siding-guide-main span,
.siding-visual-guide p {
  display: block;
}

.siding-guide-main strong {
  color: var(--ink);
  font-size: 13px;
}

.siding-guide-main span,
.siding-visual-guide p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.siding-guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.siding-guide-pills span,
.siding-guide-presets button {
  padding: 5px 7px;
  color: #143847;
  background: #e8f3f7;
  border: 1px solid #c8dfe8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.siding-guide-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.siding-guide-presets button {
  color: var(--brand-dark);
  background: #fff;
  cursor: pointer;
}

.siding-guide-presets button:hover {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.roof-measure-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.roof-measure-card strong,
.roof-measure-card span {
  display: block;
}

.roof-measure-card strong {
  color: var(--ink);
  font-size: 14px;
}

.roof-measure-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.roof-measure-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.roof-measure-card textarea {
  min-height: 74px;
  resize: vertical;
}

.roof-measure-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.roof-measure-status[data-tone="success"] {
  color: var(--green);
}

.roof-measure-status[data-tone="warning"] {
  color: var(--brand-dark);
}

.roof-measure-status[data-tone="working"] {
  color: var(--blue);
}

.roof-measure-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roof-measure-summary span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(31, 111, 139, 0.22);
  border-color: var(--blue);
}

.lookup-status {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.lookup-status[data-tone="working"] {
  color: var(--blue);
}

.lookup-status[data-tone="success"] {
  color: var(--green);
}

.lookup-status[data-tone="warning"] {
  color: var(--brand-dark);
}

.address-suggestions {
  position: absolute;
  z-index: 80;
  top: 66px;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(20, 32, 46, 0.18);
}

.address-suggestions.hidden {
  display: none;
}

.address-suggestion {
  width: 100%;
  min-height: 38px;
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.address-suggestion span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.address-suggestion:hover,
.address-suggestion.active {
  color: var(--navy);
  background: #eef6f9;
}

.field-button {
  align-self: end;
}

.builder-layout {
  display: grid;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 0 16px 14px;
}

.option-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 14px;
}

.option-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
}

.option-card label {
  color: var(--muted);
}

.option-card .option-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.roofing-quick-extras,
.exterior-quick-pricing {
  margin: 0 16px 14px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
}

.quick-extras-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.quick-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-extras-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.quick-extras-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.quick-extras-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}

.quick-extras-grid input {
  min-height: 36px;
}

.field-package-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.field-package-strip {
  padding: 10px 12px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #f7fafc;
}

.field-package-strip > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.field-package-strip .field-package-presets {
  margin-bottom: 0;
}

.field-package-presets button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid #c8d8e2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.field-package-presets button:hover {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.exterior-adder-summary {
  margin: 0 16px 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
}

.adder-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.adder-summary-head strong,
.training-step strong,
.training-checklist strong {
  color: var(--ink);
}

.adder-summary-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adder-summary-head .adder-rule {
  margin-top: 0;
  padding: 4px 8px;
  background: #eef5f8;
  color: var(--brand-dark);
  border-radius: 999px;
  white-space: nowrap;
}

.adder-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adder-chip {
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 8px 10px;
  background: #f7f9fb;
  border: 1px solid #dde6ee;
  border-radius: 8px;
}

.adder-chip.ready {
  border-color: #b9d7c9;
  background: #f3faf6;
}

.adder-chip small {
  color: var(--muted);
  font-weight: 800;
}

.option-check input {
  width: 18px;
  min-height: 18px;
}

.option-price input {
  font-weight: 900;
}

.grid-option-card {
  grid-column: 1 / -1;
  grid-template-columns: 180px repeat(4, minmax(0, 1fr));
  align-items: end;
}

.grid-option-card:not(.active) label:not(.option-check),
.grid-option-card:not(.active) .grid-preview {
  display: none;
}

.grid-preview {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 104px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grid-preview-window {
  width: 78px;
  height: 94px;
  fill: #d8edf4;
  stroke: #4c4d4f;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.grid-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.option-grid label,
.job-toggles label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--ink);
  background: #f5f7fa;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  padding: 0 10px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.step-actions button {
  min-width: 120px;
}

.step-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.option-grid input,
.job-toggles input {
  width: 16px;
  min-height: 16px;
}

.builder-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.primary,
.secondary,
.tool-button,
.row-remove,
.saved-job-action {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
}

.primary {
  color: white;
  background: var(--brand);
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary,
.tool-button {
  color: #263342;
  background: #e7edf3;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

.job-documents-panel {
  margin: 0 16px 12px 84px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-documents-panel.hidden {
  display: none;
}

.job-documents-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.job-documents-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.job-documents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.job-document-link,
.saved-job-doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #21364f;
  background: #e9f4fb;
  border: 1px solid #c9dfef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf2;
  text-align: left;
  vertical-align: top;
}

th {
  color: #cdd8e4;
  background: var(--navy);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td span,
td em,
.proposal-table small,
.proposal-table span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.window-icon {
  display: block;
  width: 74px;
  height: 74px;
  margin: 10px 0 8px;
  fill: #f8fbfd;
  stroke: #1d2c3b;
  stroke-width: 3;
  stroke-linejoin: round;
}

.window-icon.exterior-icon {
  fill: none;
  stroke: #111827;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provia-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin: 14px 0;
}

.provia-preview img,
.line-product-image,
.proposal-line-image,
.contract-line-image {
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.provia-preview img {
  width: 110px;
  height: 110px;
}

.line-product-image {
  width: 74px;
  height: 74px;
  display: block;
  margin: 10px 0 8px;
}

.proposal-line-image,
.contract-line-image {
  width: 72px;
  height: 72px;
  display: block;
  margin: 6px 0;
}

.contract-line-options {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.contract-line-options .contract-line-image,
.contract-line-options .window-icon {
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contract-line-options .window-icon {
  fill: #f8fbfd;
  stroke: #1d2c3b;
  stroke-width: 3;
  stroke-linejoin: round;
}

.contract-line-options .window-icon.exterior-icon {
  fill: none;
  stroke: #111827;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contract-line-options strong,
.contract-line-options span {
  display: block;
  overflow-wrap: anywhere;
}

.contract-line-options strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.contract-line-options span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7),
th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6),
th:nth-child(7) {
  text-align: right;
  white-space: nowrap;
}

.money-cell {
  text-align: right;
  white-space: nowrap;
}

.row-remove {
  width: 32px;
  min-height: 32px;
  color: #7d1c22;
  background: #f5dfe1;
}

.line-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.line-edit {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--navy);
  background: #e8eef7;
}

.line-quantity-input {
  width: 70px;
  min-height: 36px;
  padding: 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

.line-unit-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.line-unit-input {
  width: 94px;
  min-height: 36px;
  padding: 6px 8px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

.line-unit-override {
  min-height: 32px;
  padding: 6px 10px;
  color: #4c2a7a;
  background: #efe4ff;
}

.line-cost-note,
.line-override-badge {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
}

.line-cost-note {
  max-width: 180px;
  margin-left: auto;
}

.line-override-badge {
  color: #14532d;
  font-weight: 800;
}

.live-card {
  padding: 18px;
  color: white;
  background: #17212d;
  border-radius: 8px;
}

.live-card .eyebrow,
.live-card p {
  color: #d7e0eb;
}

.live-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  letter-spacing: -1px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.stat-grid div {
  padding: 12px;
  background: var(--green-soft);
  border-radius: 8px;
}

.stat-grid span,
.totals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 20px;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.totals strong {
  white-space: nowrap;
}

.totals strong.danger {
  color: var(--brand-dark);
}

.payment-calculator {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-calculator > strong {
  color: var(--ink);
  font-size: 14px;
}

.payment-example-result {
  padding: 12px;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

.payment-example-result span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-example-result strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 24px;
}

.pricing-controls {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
}

.pricing-controls input {
  padding: 0;
}

.pricing-controls label span {
  color: var(--ink);
  font-size: 15px;
}

.job-toggles {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.manager-note {
  margin-top: 12px;
  padding: 12px;
  background: #fff7e1;
  border: 1px solid #eadba8;
  border-radius: 8px;
}

.manual-total-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
}

.manager-note strong {
  display: block;
  margin-bottom: 4px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 39, 0.62);
}

.modal-card {
  width: min(420px, 100%);
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.saved-jobs-card {
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
}

.training-card {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
}

.training-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.activity-card {
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.activity-summary div,
.activity-row,
.activity-event {
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.activity-summary span,
.activity-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.activity-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.activity-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.activity-row strong,
.activity-event strong {
  color: var(--ink);
  font-size: 13px;
}

.activity-row small,
.activity-event small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activity-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #0f6b3d;
  border-radius: 999px;
}

.activity-status-dot.offline {
  background: #9aa6b2;
}

.activity-policy,
.login-policy {
  margin: 10px 0 0;
  padding: 9px;
  background: #fff4d7;
  border: 1px solid #f3d78d;
  border-radius: 8px;
  color: #6e4a00;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.training-step {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 12px;
  text-align: left;
  background: #f7f9fb;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  cursor: pointer;
}

.training-step span,
.training-checklist span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.training-step:hover {
  border-color: var(--brand);
  background: #fff;
}

.training-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background: #f5f7fa;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.training-checklist span {
  padding: 5px 8px;
  background: white;
  border: 1px solid #dbe4ec;
  border-radius: 999px;
}

.modal-card h2 {
  margin-bottom: 6px;
}

.modal-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.modal-error {
  min-height: 22px;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.save-status-banner {
  margin: 10px clamp(12px, 2vw, 24px) 0;
  padding: 10px 14px;
  color: #0f5132;
  background: #e7f6ed;
  border: 1px solid #acd8be;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.save-status-banner.warn {
  color: #8a1f2d;
  background: #fde8e8;
  border-color: #f2b8b8;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.saved-jobs-head,
.saved-jobs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-jobs-actions {
  justify-content: flex-start;
  margin: 8px 0 2px;
}

.saved-jobs-actions button.active {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.saved-jobs-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.saved-jobs-dashboard div {
  padding: 9px 10px;
  background: #f7f9fb;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.saved-jobs-dashboard span,
.saved-jobs-filters label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.saved-jobs-dashboard strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
}

.field-readiness-panel {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.field-readiness-panel.hidden {
  display: none;
}

.follow-up-command-panel {
  margin-top: 10px;
  padding: 10px;
  background: #f9faf7;
  border: 1px solid #dfe7d2;
  border-radius: 8px;
}

.follow-up-command-panel.hidden {
  display: none;
}

.morning-report-panel {
  margin-top: 10px;
  padding: 10px;
  background: #fbfaf7;
  border: 1px solid #e4dccd;
  border-radius: 8px;
}

.morning-report-panel.hidden {
  display: none;
}

.field-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.field-readiness-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.field-readiness-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-readiness-filter {
  display: inline-flex;
  gap: 4px;
  margin-top: 7px;
  padding: 3px;
  background: #e7edf3;
  border: 1px solid #d2dde8;
  border-radius: 8px;
}

.field-readiness-filter button {
  min-height: 26px;
  padding: 0 9px;
  color: #4a5a6b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.field-readiness-filter button.active {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.field-readiness-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.field-readiness-metrics span {
  padding: 5px 7px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.field-readiness-metrics strong {
  color: var(--ink);
}

.follow-up-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.follow-up-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.follow-up-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.follow-up-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.follow-up-metrics span {
  padding: 5px 7px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dfe7d2;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.follow-up-metrics strong {
  color: var(--ink);
}

.morning-report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.morning-report-head h3,
.morning-report-grid h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.morning-report-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.morning-report-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.morning-report-metrics span {
  padding: 5px 7px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #e0d8c9;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.morning-report-metrics strong {
  color: var(--ink);
}

.morning-report-metrics .bad {
  color: #9d1d2b;
  background: #fde6e9;
  border-color: #f3b2ba;
}

.morning-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
}

.morning-report-grid section {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.morning-report-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.morning-report-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #e6dfd1;
  border-radius: 8px;
}

.morning-report-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.morning-report-main > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.morning-report-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.morning-report-main span,
.morning-report-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.morning-report-main small.muted {
  color: #8d98a5;
}

.morning-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.morning-reason {
  padding: 3px 6px;
  color: #7a4a00;
  background: #fff3d8;
  border: 1px solid #f1d391;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.morning-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.morning-report-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #eef5f8;
  border: 1px solid #c9dae5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.morning-report-actions button.good {
  color: #14623a;
  background: #e5f6ec;
  border-color: #b9dfc7;
}

.morning-report-actions button.bad {
  color: #8a2d2d;
  background: #fde8e8;
  border-color: #f2b8b8;
}

.follow-up-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
}

.follow-up-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(190px, 0.75fr) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e8d9;
  border-radius: 8px;
}

.follow-up-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.follow-up-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-up-title .status-chip {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.follow-up-bucket {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #4a5a6b;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.follow-up-bucket.overdue {
  color: #8a2d2d;
  background: #fde8e8;
}

.follow-up-bucket.today {
  color: #7a4a00;
  background: #fff3d8;
}

.follow-up-bucket.upcoming {
  color: #14623a;
  background: #e5f6ec;
}

.follow-up-meta,
.follow-up-details {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.follow-up-details {
  display: grid;
  gap: 3px;
}

.follow-up-note-preview {
  max-width: 360px;
  color: #26384c;
}

.follow-up-note-preview.muted {
  color: var(--muted);
}

.follow-up-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.follow-up-editor {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(140px, 0.8fr);
  gap: 6px;
  align-items: stretch;
}

.follow-up-editor input,
.follow-up-editor select,
.follow-up-editor textarea {
  min-height: 32px;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #ccd7e2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.follow-up-editor textarea {
  grid-column: 1 / -1;
  min-height: 58px;
  resize: vertical;
}

.follow-up-editor button {
  grid-column: 1 / -1;
  min-height: 30px;
  color: #174466;
  background: #e7f2fb;
  border: 1px solid #b9d6ea;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.follow-up-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #eef5f8;
  border: 1px solid #c9dae5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.follow-up-actions button.good {
  color: #14623a;
  background: #e5f6ec;
  border-color: #b9dfc7;
}

.follow-up-actions button.bad {
  color: #8a2d2d;
  background: #fde8e8;
  border-color: #f2b8b8;
}

.rep-performance-panel {
  margin-top: 10px;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
}

.rep-performance-panel.hidden {
  display: none;
}

.siding-margin-panel {
  margin-top: 10px;
  padding: 10px;
  background: #f8fbfa;
  border: 1px solid #d6e5df;
  border-radius: 8px;
}

.siding-pricebook-panel {
  margin-top: 10px;
  padding: 10px;
  background: #fbfaf7;
  border: 1px solid #e6dcc4;
  border-radius: 8px;
}

.siding-margin-panel.hidden {
  display: none;
}

.siding-pricebook-panel.hidden {
  display: none;
}

.rep-performance-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rep-performance-head h3,
.siding-margin-head h3,
.siding-pricebook-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.rep-performance-head p,
.siding-margin-head p,
.siding-pricebook-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rep-performance-metrics,
.rep-performance-stats,
.siding-margin-metrics,
.siding-margin-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rep-performance-metrics span,
.rep-performance-stats span,
.siding-margin-metrics span,
.siding-margin-numbers span {
  padding: 5px 7px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.rep-performance-metrics strong,
.rep-performance-stats strong,
.siding-margin-metrics strong,
.siding-margin-numbers strong {
  color: var(--ink);
}

.rep-performance-stats .bad,
.siding-margin-metrics .bad {
  color: #9d1d2b;
  background: #fde6e9;
  border-color: #f3b2ba;
}

.rep-performance-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.siding-margin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.siding-pricebook-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.siding-pricebook-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.siding-pricebook-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d6c896;
  border-radius: 6px;
  background: #fff8df;
  color: #5c4710;
  font-size: 11px;
  font-weight: 900;
}

.siding-pricebook-actions button.primary {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.siding-pricebook-note {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  padding: 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #eadfc8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.siding-pricebook-note strong {
  color: var(--ink);
}

.siding-pricebook-note .bad {
  color: #9d1d2b;
}

.siding-pricebook-grid {
  display: grid;
  gap: 5px;
  max-height: 430px;
  overflow: auto;
}

.siding-pricebook-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(90px, 0.7fr) minmax(100px, 0.7fr) minmax(96px, 0.7fr) 54px 78px 120px minmax(160px, 1.2fr);
  gap: 7px;
  align-items: center;
  padding: 8px;
  background: white;
  border: 1px solid #e5ddcb;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.siding-pricebook-row-head {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: #f4efe4;
  text-transform: uppercase;
}

.siding-pricebook-row label {
  display: grid;
  gap: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.siding-pricebook-row .toggle-label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  color: var(--ink);
  text-transform: none;
}

.siding-pricebook-row input[type="number"] {
  min-height: 30px;
  padding: 4px 6px;
}

.siding-pricebook-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siding-pricebook-history {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eadfc8;
  border-radius: 6px;
}

.siding-pricebook-history > strong {
  color: var(--ink);
  font-size: 12px;
}

.siding-pricebook-history p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.siding-pricebook-history-row {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid #eee4cf;
  border-radius: 6px;
  background: #fbfaf7;
}

.siding-pricebook-history-row strong,
.siding-pricebook-history-row span,
.siding-pricebook-history-row small {
  display: block;
}

.siding-pricebook-history-row strong {
  color: #5c4710;
  font-size: 12px;
}

.siding-pricebook-history-row span,
.siding-pricebook-history-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.siding-margin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.siding-margin-filters label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.siding-margin-filters input,
.siding-margin-filters select {
  margin-top: 4px;
  min-height: 34px;
}

.siding-margin-filters button,
.siding-margin-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: #113d2d;
  background: #e8f5ef;
  border: 1px solid #bcdccd;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.siding-margin-list {
  display: grid;
  gap: 6px;
  max-height: 380px;
  overflow: auto;
}

.siding-margin-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #dce8e3;
  border-radius: 8px;
}

.siding-margin-main {
  min-width: 0;
}

.siding-margin-main strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.siding-margin-main span,
.siding-margin-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-performance-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(360px, 1.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
}

.rep-performance-main {
  min-width: 0;
}

.rep-performance-main strong,
.rep-performance-main span {
  display: block;
}

.rep-performance-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-performance-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.rep-performance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rep-performance-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #eef5f8;
  border: 1px solid #c9dae5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.rep-drilldown {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #cddde9;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rep-drilldown-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rep-drilldown-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.rep-drilldown-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rep-drilldown-head button,
.rep-drilldown-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #eef5f8;
  border: 1px solid #c9dae5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.rep-drilldown-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rep-drilldown-metrics span {
  padding: 5px 7px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.rep-drilldown-metrics strong {
  color: var(--ink);
}

.rep-drilldown-metrics .bad {
  color: #9d1d2b;
  background: #fde6e9;
  border-color: #f3b2ba;
}

.rep-drilldown-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.rep-drilldown-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #f8fafc;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
}

.rep-drilldown-row.rep-drilldown-overdue {
  border-color: #f2b8b8;
  box-shadow: inset 3px 0 0 #d63f4f;
}

.rep-drilldown-main,
.rep-drilldown-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rep-drilldown-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.rep-drilldown-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-drilldown-main span,
.rep-drilldown-detail span,
.rep-drilldown-detail small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.rep-drilldown-detail strong {
  color: var(--ink);
}

.rep-drilldown-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rep-drilldown-actions button.good {
  color: #14623a;
  background: #e5f6ec;
  border-color: #b9dfc7;
}

.rep-drilldown-actions button.bad {
  color: #8a2d2d;
  background: #fde8e8;
  border-color: #f2b8b8;
}

.field-readiness-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
}

.field-readiness-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
}

.field-readiness-row.archived {
  background: #f5f1ea;
  border-style: dashed;
}

.field-readiness-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.field-readiness-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-readiness-title span,
.field-readiness-title em {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--brand-dark);
  background: #eef5f8;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.field-readiness-title em {
  color: #8a2d2d;
  background: #fde8e8;
}

.field-readiness-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-readiness-next {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.field-readiness-next button {
  padding: 3px 6px;
  color: #263342;
  background: #eef5f8;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.field-readiness-next button.good {
  color: #0f6b3d;
  background: #e6f6ed;
  border-color: #bce6cb;
}

.field-readiness-next button.warn {
  color: #8a5b00;
  background: #fff4d7;
  border-color: #f3d78d;
}

.field-readiness-next button.bad {
  color: #9d1d2b;
  background: #fde6e9;
  border-color: #f3b2ba;
}

.field-readiness-next button.archive {
  color: #73511a;
  background: #f5f1ea;
  border-color: #dfd0b9;
}

.field-readiness-status,
.field-readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.field-readiness-status {
  max-width: 320px;
}

.field-readiness-live {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.readiness-chip {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.readiness-chip.good {
  color: #0f6b3d;
  background: #e6f6ed;
}

.readiness-chip.warn {
  color: #8a5b00;
  background: #fff4d7;
}

.readiness-chip.bad {
  color: #9d1d2b;
  background: #fde6e9;
}

.field-readiness-actions button {
  min-height: 28px;
  padding: 0 9px;
  color: #263342;
  background: #e7edf3;
  border: 1px solid #d2dde8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.field-readiness-actions button.danger {
  color: #8a1f2d;
  background: #fde8e8;
  border-color: #f2b8b8;
}

.saved-jobs-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.saved-jobs-filters input,
.saved-jobs-filters select {
  margin-top: 4px;
  min-height: 36px;
}

.saved-jobs-list {
  display: grid;
  gap: 8px;
  min-height: 140px;
  max-height: 520px;
  overflow: auto;
  padding-top: 8px;
}

.saved-job-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.saved-job-row:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.saved-job-row.archived {
  background: #f4f1eb;
  border-style: dashed;
}

.saved-job-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 900;
}

.saved-job-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-job-title small {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: var(--brand-dark);
  background: #eef5f8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.saved-job-title .archived-chip {
  color: #8a2d2d;
  background: #fde8e8;
}

.status-chip {
  color: #203044;
  background: #eef2f7;
}

.status-chip.status-sent {
  color: #174466;
  background: #e7f2fb;
}

.status-chip.status-follow_up {
  color: #7a4a00;
  background: #fff3d8;
}

.status-chip.status-closed_won {
  color: #14623a;
  background: #e5f6ec;
}

.status-chip.status-closed_lost,
.status-chip.status-archived {
  color: #8a2d2d;
  background: #fde8e8;
}

.saved-job-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.saved-job-total {
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.saved-job-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.saved-job-action {
  min-height: 30px;
  padding: 0 10px;
  color: #263342;
  background: #e7edf3;
  font-size: 12px;
}

.saved-job-action.danger {
  color: white;
  background: var(--danger);
}

.packet-preview-panel {
  margin-top: 12px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid #cddbe6;
  border-radius: 8px;
}

.packet-preview-panel.hidden {
  display: none;
}

.packet-preview-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.packet-preview-head h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 16px;
}

.packet-preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.packet-preview-actions,
.packet-preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.packet-preview-actions a,
.packet-preview-actions button,
.packet-preview-tabs button {
  min-height: 30px;
  padding: 0 10px;
  color: #263342;
  background: #e7edf3;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.packet-preview-tabs {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.packet-preview-tabs button.active {
  color: white;
  background: var(--navy);
}

.packet-preview-frame {
  display: block;
  width: 100%;
  min-height: 620px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.packet-preview-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-weight: 900;
  text-align: center;
}

.signnow-command-panel {
  background: #fbfcfe;
}

.signnow-command-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signnow-command-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.signnow-command-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signnow-document-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.signnow-document-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signnow-document-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.signnow-document-card small,
.signnow-invite-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.signnow-invite-list {
  display: grid;
  gap: 6px;
}

.signnow-invite-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(80px, 1fr);
  gap: 4px 8px;
  padding-top: 6px;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
}

.signnow-invite-row small {
  grid-column: 1 / -1;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
  background: #f7f9fb;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.proposal-panel {
  margin-bottom: 12px;
}

.proposal-preview {
  padding: 28px 32px;
  background: white;
}

.proposal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--navy);
}

.proposal-company-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 200px;
}

.proposal-rep-block {
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.proposal-rep-block strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.proposal-logo {
  width: 140px;
  min-height: 34px;
  margin-bottom: 12px;
  font-size: 15px;
}

.proposal-logo-img {
  display: block;
  width: min(520px, 100%);
  height: 92px;
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
}

.proposal-head h3 {
  font-size: 24px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.proposal-total {
  min-width: 200px;
  padding: 16px 18px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  text-align: right;
  border-bottom: 4px solid var(--gold);
}

.proposal-total span,
.proposal-meta span,
.proposal-price-box span,
.signature-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-total span {
  color: #ccd8e5;
}

.proposal-total strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.proposal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
}

.proposal-meta div,
.proposal-price-box {
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  border-top: 3px solid var(--teal);
}

.proposal-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.proposal-table th,
.proposal-table td {
  white-space: normal;
}

.proposal-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.proposal-table td:last-child,
.proposal-table th:last-child,
.proposal-table td:nth-child(3),
.proposal-table th:nth-child(3) {
  text-align: right;
}

.proposal-summary {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  margin-top: 18px;
}

.proposal-summary-single {
  grid-template-columns: 1fr;
}

.proposal-summary h4 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.proposal-summary ul {
  margin: 0;
  padding-left: 18px;
}

.proposal-summary li {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #3a4a58;
}

.proposal-warranty-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.proposal-warranty-block h4 {
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
}

.proposal-warranty-block p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.proposal-exterior-details {
  margin-top: 18px;
}

.proposal-exterior-details h4 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
}

.proposal-exterior-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proposal-exterior-grid article {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.proposal-exterior-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.proposal-exterior-grid ul {
  margin: 0;
  padding-left: 16px;
}

.proposal-exterior-grid li {
  margin: 5px 0;
  color: #3a4a58;
  font-size: 12px;
  line-height: 1.35;
}

.proposal-acknowledgment {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid var(--gold-line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.proposal-acknowledgment h4 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.proposal-acknowledgment p {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.42;
}

.photo-upload {
  padding: 16px;
}

.photo-gallery,
.proposal-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo-card,
.proposal-photo-grid figure {
  position: relative;
  margin: 0;
  padding: 8px;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
}

.photo-card img,
.proposal-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.photo-card figcaption,
.proposal-photo-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.photo-remove {
  position: absolute;
  top: 10px;
  right: 10px;
}

.proposal-photos {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ── Product Spec Section ── */
.product-specs-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
}

.product-specs-section h4 {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.spec-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.spec-card {
  border: 1px solid #dde4ec;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.spec-card-header {
  padding: 12px 14px 10px;
  background: #0e2a5a;
  color: #fff;
}

.spec-card-luxe .spec-card-header {
  background: linear-gradient(135deg, #1a1a3e 0%, #0e2a5a 60%, #8a7340 100%);
}

.spec-card-header h5 {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.spec-energy-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-tax-badge {
  margin-top: 5px;
  display: inline-block;
  background: #c8a84b;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-glass {
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
  background: #f7f9fb;
}

.spec-glass strong {
  display: block;
  font-size: 12px;
  color: #0e2a5a;
  font-weight: 900;
  margin-bottom: 2px;
}

.spec-glass span {
  font-size: 10.5px;
  color: #666;
  line-height: 1.35;
}

.spec-nfrc {
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
}

.spec-nfrc-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.spec-nfrc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.spec-nfrc-grid > div {
  background: #f0f4f8;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.spec-nfrc-grid span {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1px;
}

.spec-nfrc-grid strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #0e2a5a;
  line-height: 1.1;
}

.spec-nfrc-grid em {
  display: block;
  font-size: 9.5px;
  color: #999;
  font-style: normal;
  margin-top: 1px;
}

.spec-features {
  padding: 10px 14px 10px 28px;
  flex: 1;
  border-bottom: 1px solid #edf0f4;
}

.spec-features li {
  font-size: 11px;
  color: #2a2a3e;
  line-height: 1.45;
  margin-bottom: 3px;
}

.spec-footer {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fb;
}

.spec-rating {
  font-size: 11px;
  font-weight: 900;
  color: #0e2a5a;
  background: #e1e8f5;
  padding: 2px 8px;
  border-radius: 4px;
}

.spec-warranty {
  font-size: 11px;
  font-weight: 900;
  color: #8a7340;
}

.contract-preview {
  padding: 20px;
  background: white;
}

.contract-payment-setup {
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.contract-payment-setup .form-grid {
  padding-top: 14px;
  padding-bottom: 14px;
}

.contract-payment-setup input[readonly] {
  color: var(--green);
  background: #eef8f2;
  border-color: #c8e5d4;
  font-weight: 900;
}

.contract-document {
  display: grid;
  gap: 16px;
}

.contract-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #0e2a5a, #17212d);
  border: 1px solid #0b2146;
  border-radius: 8px;
}

.contract-head img {
  width: min(360px, 52%);
  height: 70px;
  object-fit: contain;
  object-position: left center;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
}

.contract-head h3 {
  font-size: 24px;
  text-align: right;
}

.contract-head-copy {
  min-width: 280px;
  max-width: 420px;
}

.contract-head p {
  color: #dbe5f1;
  text-align: right;
  font-weight: 800;
}

.contract-rep-block {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  color: #dbe5f1;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.contract-rep-block span {
  display: block;
  overflow-wrap: anywhere;
}

.contract-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 10px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid #d8e5ef;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.contract-hero div {
  min-width: 0;
}

.contract-hero span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-hero strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contract-hero p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

.contract-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contract-fields div,
.payment-detail div {
  padding: 8px 10px;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
}

.contract-fields span,
.payment-detail span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-fields strong,
.payment-detail strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.exterior-template-document {
  display: grid;
  gap: 0;
  background: #fff;
}

.contract-template-page {
  position: relative;
  width: 100%;
  aspect-ratio: 612 / 792;
  background: #fff;
  break-inside: avoid;
  page-break-inside: avoid;
  overflow: hidden;
}

.contract-template-page img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #fff;
}

.template-field,
.template-check,
.template-signnow {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  line-height: 1.05;
  font-weight: 800;
  overflow: hidden;
}

.template-field {
  display: flex;
  align-items: center;
  padding: 0 2px;
  background: rgba(255, 255, 255, 0.76);
}

.template-small {
  font-size: 7.5px;
  line-height: 1.05;
}

.template-center {
  justify-content: center;
  text-align: center;
}

.template-right {
  justify-content: flex-end;
  text-align: right;
}

.template-check {
  width: 12px;
  height: 12px;
  color: #111;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  background: transparent;
}

.template-signnow {
  overflow: visible;
  background: transparent;
  font-size: 5px;
  line-height: 1;
}

.template-readable-text {
  position: absolute;
  left: 2%;
  top: 1%;
  z-index: 1;
  width: 96%;
  height: auto;
  overflow: hidden;
  color: #fff;
  background: transparent;
  font-size: 6px;
  line-height: 1;
  opacity: 0.01;
}

.exterior-clean-document {
  display: grid;
  gap: 14px;
  color: #111827;
  background: #fff;
}

.exterior-clean-page {
  padding: 22px;
  background: #fff;
  border: 1px solid #d8e0e8;
  break-inside: avoid;
  page-break-inside: avoid;
}

.exterior-clean-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #111827;
}

.exterior-clean-head.centered {
  grid-template-columns: 150px minmax(0, 1fr);
}

.exterior-clean-head img {
  width: 136px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.exterior-clean-head p {
  color: #991b1b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.exterior-clean-head h3 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.05;
}

.exterior-clean-head span,
.exterior-clean-head strong {
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
}

.exterior-clean-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.exterior-clean-fields.compact {
  grid-template-columns: 1.1fr 2fr 0.8fr;
}

.exterior-clean-fields .span-2 {
  grid-column: span 2;
}

.exterior-clean-fields div,
.exterior-clean-payment div,
.exterior-clean-signatures > div {
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #cbd5df;
  background: #f8fafc;
}

.exterior-clean-fields span,
.exterior-clean-payment span,
.exterior-clean-signatures span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.exterior-clean-fields strong,
.exterior-clean-payment strong,
.exterior-clean-signatures strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.exterior-clean-scope {
  margin-top: 10px;
}

.exterior-clean-scope h4 {
  margin-bottom: 7px;
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
}

.exterior-scope-card {
  display: grid;
  grid-template-columns: 0.75fr 0.8fr 2.55fr 0.9fr 2.15fr 0.8fr;
  gap: 0;
  border: 1px solid #cbd5df;
  background: #fff;
}

.exterior-scope-card + .exterior-scope-card {
  margin-top: 8px;
}

.exterior-scope-card > div {
  min-width: 0;
  padding: 6px;
  border-right: 1px solid #d8e0e8;
}

.exterior-scope-card > div:last-child {
  border-right: 0;
}

.exterior-scope-card span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.exterior-scope-card strong,
.exterior-scope-card p {
  margin-top: 3px;
  color: #111827;
  font-size: 9.5px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.exterior-scope-card strong {
  display: block;
}

.exterior-scope-card .scope-price {
  color: #fff;
  background: #17212d;
  text-align: right;
}

.exterior-scope-card .scope-price span,
.exterior-scope-card .scope-price strong {
  color: #fff;
}

.exterior-scope-card .scope-price strong {
  font-size: 14px;
}

.exterior-clean-notices {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border-left: 4px solid #991b1b;
  background: #f8fafc;
}

.exterior-clean-notices p,
.exterior-clean-legal-grid p,
.exterior-clean-arbitration p,
.checklist-intro p,
.warranty-copy li,
.warranty-copy p {
  font-size: 11px;
  line-height: 1.35;
}

.exterior-clean-payment {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.exterior-clean-payment .total {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.exterior-clean-payment .total span,
.exterior-clean-payment .total strong {
  color: #fff;
}

.exterior-clean-payment .total strong {
  font-size: 18px;
}

.exterior-clean-signatures {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.8fr;
  gap: 8px;
  margin-top: 12px;
}

.signature-line {
  position: relative;
  min-height: 52px;
  padding: 7px 9px !important;
  border-bottom: 2px solid #111827 !important;
  background: #fff !important;
}

.signature-line .signature-label {
  position: relative;
  z-index: 2;
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.exterior-signature-line {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exterior-signature-slot {
  display: block;
  width: 100%;
  min-height: 22px;
  margin-top: 4px;
}

.signature-line .exterior-inline-signature-tag {
  position: static !important;
  display: inline-block !important;
  width: 100%;
  min-height: 18px;
  color: #fff !important;
  background: #fff !important;
  font-size: 2px !important;
  line-height: 1 !important;
  overflow: hidden;
  white-space: nowrap;
}

.sig-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 7px;
  margin-top: 8px;
}

.exterior-date-box {
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid #cbd5df;
  background: #f8fafc;
}

.exterior-date-box span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.exterior-date-box strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 12px;
  line-height: 1.1;
}

.exterior-clean-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.exterior-clean-legal-grid section,
.exterior-clean-arbitration,
.checklist-intro,
.project-notes-box {
  padding: 10px;
  border: 1px solid #cbd5df;
  background: #fff;
}

.exterior-clean-legal-grid h4,
.exterior-clean-arbitration h4,
.exterior-checklist-clean h4 {
  margin-bottom: 6px;
  color: #111827;
  font-size: 13px;
  text-transform: uppercase;
}

.exterior-clean-arbitration {
  margin-top: 12px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
}

.choice-row label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.choice-row b {
  display: inline-block;
  position: relative;
  z-index: 2;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #111827;
  background: #fff;
}

.choice-row .arbitration-choice .exterior-choice-tag,
.choice-row .opt-out-choice .signnow-choice-tag {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 76px;
  height: 16px;
  z-index: 1;
  color: #fff !important;
  background: transparent !important;
  font-size: 1px !important;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.homeowner-final {
  width: auto;
  margin-top: 10px;
}

.exterior-checklist-clean h4 {
  margin-top: 12px;
}

.checklist-intro {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.exterior-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.exterior-check-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #d8e0e8;
  background: #f8fafc;
}

.exterior-initial-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  height: 24px;
  border-bottom: 1.5px solid #cbd5df;
  background: #fff;
}

.exterior-check-item .exterior-inline-initial-tag {
  display: block !important;
  width: 96px;
  min-height: 18px;
  color: #fff !important;
  background: #fff !important;
  font-size: 2px !important;
  line-height: 1 !important;
  overflow: hidden;
  white-space: nowrap;
}

.exterior-check-item p {
  font-size: 10px;
  line-height: 1.25;
}

.exterior-check-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
}

.project-notes-box {
  margin-top: 12px;
}

.project-notes-box div {
  min-height: 42px;
  margin-top: 6px;
  border-bottom: 1px solid #111827;
}

.checklist-cert {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
}

.warranty-copy {
  max-width: 760px;
  margin: 18px auto 0;
}

.warranty-copy ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0 22px;
  padding: 0;
}

.warranty-copy p,
.warranty-copy li {
  font-size: 12px;
}

.contract-table th,
.contract-table td {
  white-space: normal;
}

.contract-table {
  table-layout: fixed;
  width: 100%;
}

.contract-table th,
.contract-table td {
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contract-table th {
  font-size: 10.5px;
  letter-spacing: 0;
}

.contract-col-index {
  width: 5%;
}

.contract-col-location {
  width: 27%;
}

.contract-col-size {
  width: 12%;
}

.contract-col-scope {
  width: 20%;
}

.contract-col-details {
  width: 27%;
}

.contract-col-price {
  width: 9%;
}

.contract-line-index,
.contract-line-size,
.contract-line-price {
  text-align: right;
  overflow-wrap: normal;
}

.contract-line-size strong,
.contract-line-size span,
.contract-line-scope strong,
.contract-line-options strong {
  display: block;
}

.contract-line-size span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.contract-line-scope strong,
.contract-line-options strong {
  font-size: 12px;
  line-height: 1.28;
}

.contract-table .contract-line-options {
  display: block;
  min-width: 0;
}

.contract-notices {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fffaf0;
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.contract-notices p,
.contract-legal p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.payment-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-detail h4 {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.contract-packet {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-break-before {
  break-before: page;
  page-break-before: always;
}

.packet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

.packet-head h3 {
  font-size: 24px;
  text-transform: uppercase;
}

.packet-head h4 {
  font-size: 17px;
  color: var(--muted);
  text-transform: uppercase;
}

.packet-head span {
  display: block;
  text-align: right;
  font-weight: 900;
}

.packet-fields,
.consumer-ack-grid,
.checklist-grid,
.checkbox-grid,
.hotline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.packet-line {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f7f9fb;
}

.packet-line span,
.signature-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.packet-subsection {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  break-inside: avoid;
  page-break-inside: avoid;
}

.packet-subsection h5 {
  font-size: 16px;
  text-transform: uppercase;
}

.exterior-retail-contract {
  gap: 12px;
}

.retail-contract-title,
.retail-trade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.retail-contract-title h4,
.retail-trade-head h4 {
  font-size: 18px;
  text-transform: uppercase;
}

.retail-contract-title span,
.retail-trade-head strong {
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.retail-trade-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  break-inside: avoid;
  page-break-inside: avoid;
}

.retail-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-payment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exterior-project-checklist .packet-head {
  align-items: flex-start;
}

.exterior-checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exterior-checklist-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.exterior-condition-notes .packet-line {
  min-height: 72px;
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-checks .fillable-check {
  margin: 0;
}

.labor-warranty-packet {
  max-width: 820px;
}

.packet-note,
.packet-subsection p,
.contract-packet li,
.notice-cancel p {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.35;
}

.checklist-item {
  padding: 9px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
}

.checklist-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.initial-box {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 25px;
  padding: 2px 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
}

.initial-input {
  width: 58px;
  min-height: 28px;
  padding: 2px 6px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: 4px 4px 0 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-initial-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-right: 5px;
  white-space: nowrap;
}

.owner-initial-input {
  width: 52px;
  min-height: 18px;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  outline: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-initial-wrap {
  width: 58px;
}

.owner-initial-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 58px;
}

.owner-initial-input {
  position: relative;
  z-index: 1;
}

.fillable-blank {
  display: inline-block;
  min-width: 160px;
  min-height: 18px;
  border-bottom: 2px solid var(--ink);
  vertical-align: -2px;
}

.fillable-blank.small {
  min-width: 62px;
}

.fillable-blank.medium {
  min-width: 220px;
}

.contract-inline-value {
  display: inline-block;
  min-width: 64px;
  padding: 0 4px 1px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
  text-align: center;
  vertical-align: baseline;
}

.contract-inline-value.medium {
  min-width: 160px;
}

.contract-inline-input {
  display: inline-block;
  width: 72px;
  min-height: 20px;
  padding: 0 4px 1px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  outline: 0;
  font: inherit;
  font-weight: 900;
  text-align: center;
  vertical-align: baseline;
}

.contract-inline-input.medium {
  width: 170px;
}

.contract-inline-input:focus {
  background: #fff8d8;
  box-shadow: 0 2px 0 var(--gold);
}

.print-checkbox {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  vertical-align: -2px;
  margin-right: 6px;
}

.fillable-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.fillable-check input {
  width: 18px;
  min-height: 18px;
}

.delivery-note-row {
  display: grid;
  grid-template-columns: minmax(128px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.checklist-note {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.checklist-wide-note {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.checklist-wide-note > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-section {
  break-inside: avoid;
  page-break-inside: avoid;
}

.delivery-section .checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.consumer-ack-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.packet-list {
  padding-left: 20px;
}

.hotline-grid div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
}

.packet-cert {
  font-weight: 900;
}

.cancel-check {
  font-weight: 900;
  text-transform: uppercase;
}

.contract-section h4,
.contract-legal h4 {
  margin-bottom: 8px;
}

.contract-legal {
  display: grid;
  gap: 18px;
}

.contract-legal img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.typed-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid #dce5ee;
  border-radius: 8px;
}

.terms-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 7px;
  break-inside: avoid;
}

.terms-item h5 {
  margin: 0;
  color: var(--navy);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terms-item p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.38;
}

.terms-item-notice,
.terms-item-choice,
.terms-item-important {
  border-left: 4px solid var(--gold);
}

.terms-item-notice h5,
.terms-item-choice h5,
.terms-item-important h5 {
  font-size: 12.5px;
}

.terms-item-notice p,
.terms-item-choice p,
.terms-item-important p {
  font-size: 12px;
  line-height: 1.4;
}

.statutory-notice,
.arbitration-choice-block {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fff8dd;
  border: 1px solid #d8bd65;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.statutory-notice p {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 900;
}

.insurance-notice {
  background: #fff;
}

.arbitration-choice-block {
  background: #f7f9fb;
  border-color: #dce5ee;
  border-left-color: var(--navy);
}

.arbitration-choice-block h5 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
}

.arbitration-choice-block p {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
}

.owner-acceptance-block {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-top: 10px;
}

.owner-acceptance-block p {
  margin: 0 0 10px;
}

.terms-intro {
  padding: 10px 12px;
  background: #f7f9fb;
  border: 1px solid #dce5ee;
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.4;
}

.consumer-rights-packet {
  font-size: 16px;
}

.consumer-rights-packet .packet-note,
.consumer-rights-packet .packet-subsection p,
.consumer-rights-packet li,
.consumer-rights-packet .packet-line strong {
  font-size: 16px;
  line-height: 1.35;
}

.consumer-rights-packet .packet-line span,
.consumer-rights-packet .signature-grid span {
  font-size: 12px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 160px;
  gap: 14px;
  margin: 14px 0;
}

.signature-grid.compact-signature {
  grid-template-columns: 1fr 260px;
}

.signature-grid div {
  min-height: 48px;
  border-bottom: 2px solid var(--ink);
}

.signature-grid span {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.accept-reject {
  display: flex;
  align-items: end;
  gap: 12px;
  padding-bottom: 4px;
}

.accept-reject label,
.opt-out-box {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.accept-reject input,
.opt-out-box input {
  width: 18px;
  min-height: 18px;
}

.contract-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contract-choice-mark {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.opt-out-box .contract-choice-mark {
  border-radius: 3px;
}

.contract-choice-mark.checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: var(--ink);
}

.opt-out-box {
  width: max-content;
  margin-top: 10px;
  font-weight: 900;
}

.proposal-price-box strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: var(--navy);
}

.proposal-price-box p {
  font-size: 11px;
  line-height: 1.35;
}

.proposal-price-box p strong {
  display: inline;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.proposal-price-box {
  border-top: 3px solid var(--gold) !important;
}

.signature-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  margin-top: 30px;
  padding: 20px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.signature-row div {
  min-height: 58px;
  border-bottom: 2px solid var(--navy);
}

.fillable-signature {
  display: grid;
  align-content: end;
  gap: 5px;
  min-height: 58px;
  padding-top: 6px;
  border-bottom: 2px solid var(--navy);
}

.fillable-signature span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fillable-signature input {
  width: 100%;
  min-height: 34px;
  padding: 4px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.fillable-signature.signature-script input {
  font-size: 18px;
  font-family: "Segoe Script", "Brush Script MT", "Segoe UI", cursive;
  font-weight: 700;
}

.fillable-signature.signature-plain input,
.fillable-signature input[type="date"] {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.signnow-tag,
.fillable-signature .signnow-tag,
.signature-grid .signnow-tag {
  display: inline-block !important;
  margin-top: 0 !important;
  color: #fff !important;
  background: #fff !important;
  font-size: 2px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  line-height: 1;
  white-space: nowrap;
  text-transform: none !important;
  text-shadow: none !important;
}

.initial-signnow-wrap {
  position: relative;
  display: inline-grid;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow.pricing-hidden {
    grid-template-columns: 1fr;
  }

  .rail,
  .summary-panel {
    position: static;
    min-height: auto;
  }

  .rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .summary-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 12px 12px;
  }

  .exterior-pricing-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .saved-jobs-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .saved-jobs-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .follow-up-row {
    grid-template-columns: minmax(220px, 1fr);
    align-items: stretch;
  }

  .morning-report-grid,
  .morning-report-row {
    grid-template-columns: minmax(220px, 1fr);
    align-items: stretch;
  }

  .rep-performance-row {
    grid-template-columns: minmax(220px, 1fr);
    align-items: stretch;
  }

  .siding-margin-filters,
  .siding-margin-row {
    grid-template-columns: minmax(220px, 1fr);
    align-items: stretch;
  }

  .siding-pricebook-head {
    align-items: stretch;
    flex-direction: column;
  }

  .siding-pricebook-actions {
    justify-content: flex-start;
  }

  .siding-pricebook-row {
    grid-template-columns: minmax(220px, 1.2fr) repeat(6, minmax(84px, auto));
  }

  .siding-pricebook-row small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .rep-drilldown-row {
    grid-template-columns: minmax(220px, 1fr);
    align-items: stretch;
  }

  .follow-up-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .follow-up-actions,
  .morning-report-actions,
  .rep-performance-actions,
  .rep-performance-stats,
  .siding-margin-metrics,
  .siding-margin-numbers,
  .siding-margin-actions,
  .rep-drilldown-actions {
    justify-content: flex-start;
  }

  .price-panel-reopen {
    top: auto;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
  }

  .topbar,
  .proposal-head,
  .builder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid.four,
  .form-grid.three,
  .option-grid,
  .option-builder,
  .grid-option-card,
  .proposal-meta,
  .proposal-summary,
  .proposal-exterior-grid,
  .signature-row,
  .contract-fields,
  .payment-detail,
  .typed-terms,
  .signature-grid,
  .signature-grid.compact-signature {
    grid-template-columns: 1fr;
  }

  .exterior-pricing-guide,
  .siding-guide-main,
  .quick-extras-grid {
    grid-template-columns: 1fr;
  }

  .training-flow {
    grid-template-columns: 1fr;
  }

  .saved-jobs-dashboard,
  .saved-jobs-filters,
  .field-readiness-row,
  .follow-up-row,
  .morning-report-grid,
  .morning-report-row,
  .rep-performance-row,
  .siding-margin-filters,
  .siding-margin-row,
  .siding-pricebook-row,
  .rep-drilldown-row {
    grid-template-columns: 1fr;
  }

  .siding-pricebook-row-head {
    display: none;
  }

  .field-readiness-head,
  .follow-up-head,
  .morning-report-head,
  .rep-performance-head,
  .siding-margin-head,
  .siding-pricebook-head,
  .rep-drilldown-head,
  .field-readiness-status,
  .field-readiness-actions,
  .field-readiness-metrics,
  .follow-up-metrics,
  .follow-up-actions,
  .morning-report-metrics,
  .morning-report-actions,
  .rep-performance-metrics,
  .rep-performance-stats,
  .rep-performance-actions,
  .siding-margin-metrics,
  .siding-margin-numbers,
  .siding-margin-actions,
  .siding-pricebook-actions,
  .rep-drilldown-metrics,
  .rep-drilldown-actions {
    justify-content: flex-start;
  }

  .field-readiness-head,
  .follow-up-head,
  .morning-report-head,
  .rep-performance-head,
  .siding-margin-head,
  .rep-drilldown-head {
    flex-direction: column;
  }

  .follow-up-editor {
    grid-template-columns: 1fr;
  }

  .adder-summary-head {
    flex-direction: column;
  }

  .wide-field {
    grid-column: auto;
  }

  .proposal-total {
    text-align: left;
  }

  .brand-logo {
    width: 100%;
    max-width: 320px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.35in;
  }

  body {
    background: white;
  }

  body * {
    visibility: hidden !important;
  }

  body.print-proposal #proposalPreview,
  body.print-proposal #proposalPreview *,
  body.print-proposal #proposal,
  body.print-proposal #proposal *,
  body.print-contract #contractPreview,
  body.print-contract #contractPreview *,
  body.print-contract #contract,
  body.print-contract #contract * {
    visibility: visible !important;
  }

  body.print-proposal #proposal,
  body.print-contract #contract {
    display: block !important;
  }

  body.print-proposal #proposalPreview,
  body.print-contract #contractPreview {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: white;
  }

  .app-shell,
  .workflow,
  .work-area,
  .proposal-panel,
  .proposal-preview,
  .contract-preview {
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .proposal-head,
  .contract-head,
  .contract-hero,
  .contract-packet,
  .proposal-summary,
  .contract-table,
  .contract-notices,
  .payment-detail,
  .contract-legal {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .packet-subsection,
  .delivery-section,
  .signature-row,
  .signature-grid,
  .proposal-table tr,
  .proposal-table td,
  .checklist-item,
  .fillable-check,
  .delivery-note-row,
  .checklist-wide-note {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .proposal-table {
    break-inside: auto;
    page-break-inside: auto;
  }

  .proposal-table thead {
    display: table-header-group;
  }

  .contract-document {
    gap: 12px;
  }

  body.print-proposal .proposal-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
  }

  body.print-proposal .proposal-meta div {
    padding: 9px 10px;
    border-radius: 6px;
  }

  body.print-proposal .proposal-meta div:nth-child(2) {
    grid-column: span 2;
  }

  .contract-head {
    padding: 12px 14px;
  }

  .contract-head img {
    height: 58px;
  }

  .contract-hero {
    padding: 10px;
  }

  .contract-fields div,
  .payment-detail div,
  .packet-line,
  .checklist-item,
  .fillable-check {
    padding: 7px 8px;
  }

  .contract-line-options {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 7px;
  }

  .contract-line-options .contract-line-image,
  .contract-line-options .window-icon {
    width: 50px;
    height: 50px;
    padding: 4px;
  }

  .checklist-grid,
  .checkbox-grid {
    gap: 8px;
  }

  .checklist-note {
    min-height: 32px;
  }

  .page-break-before {
    break-before: page;
    page-break-before: always;
  }

  button,
  .step-actions,
  .section-heading,
  .contract-payment-setup {
    display: none !important;
  }
}
