:root {
  --navy: #08345a;
  --navy-deep: #062947;
  --blue: #087ee8;
  --blue-soft: #e8f4ff;
  --ink: #10243e;
  --muted: #586b82;
  --line: #d4e0ea;
  --surface: #ffffff;
  --canvas: #eef6fb;
  --green: #248a45;
  --green-soft: #e9f6ef;
  --amber: #a35a00;
  --amber-soft: #fff3dc;
  --red: #af2f37;
  --red-soft: #fdecee;
  --shadow: 0 2px 5px rgba(7, 45, 76, .06), 0 13px 32px rgba(7, 45, 76, .07);
}

/* Owner to-dos: compact rows, clear group labels, and one-step capture. */
.todo-heading { align-items: center; margin-bottom: 15px; }
.todo-count { padding: 9px 13px; border-radius: 999px; color: var(--navy); background: var(--blue-soft); font-weight: 800; white-space: nowrap; }
.todo-capture, .customer-todo-section { border: 1px solid #b7cfdf; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.todo-capture { padding: 16px 20px; margin-bottom: 17px; border-left: 5px solid var(--blue); }
.todo-capture-heading, .todo-context-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.todo-capture h2, .todo-context-heading h2, .todo-context-heading h4 { margin: 0; font-size: 18px; }
.todo-capture-heading span, .todo-context-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.todo-quick-line { display: flex; gap: 9px; align-items: stretch; }
.todo-quick-line input[type=text] { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid #b7c9d8; border-radius: 7px; background: #fff; font-size: 15px; }
.todo-errors { padding: 8px 11px; margin-bottom: 10px; border: 1px solid #d29093; border-radius: 6px; background: var(--red-soft); color: var(--red); }
.todo-note-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding: 8px 10px; border: 1px solid #bdd8e8; border-radius: 8px; background: #f2f9fd; }
.todo-note-suggestions > strong { color: #345a73; font-size: 12px; }
.todo-suggestion-choice { min-height: 44px; padding: 7px 11px; border: 1px solid #83b2ce; border-radius: 7px; background: white; color: #075385; font-size: 13px; font-weight: 750; text-align: left; cursor: pointer; }
.todo-suggestion-choice:hover { border-color: var(--blue); background: #e8f4ff; }
.todo-suggestion-applied { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; padding-left: 11px; border: 1px solid #a6d3b5; border-radius: 7px; background: #eaf7ef; color: #195d38; font-size: 13px; font-weight: 750; }
.todo-suggestion-applied button { width: 44px; height: 44px; border: 0; border-left: 1px solid #a6d3b5; border-radius: 0 7px 7px 0; background: transparent; color: #195d38; font-size: 22px; cursor: pointer; }
.todo-linked { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.todo-linked button, .todo-context-picker > button { padding: 0; border: 0; background: none; cursor: pointer; }
.todo-options { margin-top: 8px; color: var(--muted); font-size: 12px; }
.todo-options summary { display: inline-block; cursor: pointer; color: var(--blue); font-weight: 750; }
.todo-options summary::before { content: "+ "; }
.todo-option-grid { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(2, minmax(130px, 1fr)); gap: 11px; margin-top: 13px; }
.todo-option-grid label { display: grid; gap: 5px; color: var(--ink); font-weight: 700; }
.todo-option-grid input, .todo-option-grid select, .todo-option-grid textarea { min-width: 0; width: 100%; padding: 9px; border: 1px solid #b7c9d8; border-radius: 6px; background: #fff; color: var(--ink); }
.todo-notes-label { grid-column: 1 / -1; }
.todo-context-picker { position: relative; }
.todo-context-picker > button { margin-top: 5px; }
.todo-context-results { position: absolute; z-index: 12; top: 59px; left: 0; right: 0; max-height: 230px; overflow-y: auto; padding: 4px; border: 1px solid #aac3d6; border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.todo-context-results button, .todo-context-results span { display: block; width: 100%; padding: 8px; border: 0; border-radius: 4px; text-align: left; background: #fff; color: var(--ink); cursor: pointer; }
.todo-context-results button:hover, .todo-context-results button:focus { background: var(--blue-soft); }
.todo-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.todo-filter { display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid #b7c9d8; border-radius: 7px; background: #fff; color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 750; }
.todo-filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.todo-list-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.todo-list-tools input { width: min(420px, 100%); padding: 9px 11px; border: 1px solid #b7c9d8; border-radius: 7px; background: #fff; }
.todo-list-tools span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.todo-sections { display: grid; gap: 14px; }
.todo-empty-state { display: grid; gap: 4px; padding: 27px; border: 1px dashed #aec6d7; border-radius: 9px; background: #f7fbfd; color: var(--muted); text-align: center; }
.todo-empty-state strong { color: var(--ink); }
.todo-section { overflow: visible; border: 1px solid #bdcfdb; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(7,45,76,.05); }
.todo-section > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #c9d9e4; border-left: 4px solid #527e9b; border-radius: 8px 8px 0 0; background: #e9f3f8; }
.todo-section > header h2 { margin: 0; font-size: 15px; }
.todo-section > header span { min-width: 26px; padding: 4px; border-radius: 99px; background: #fff; text-align: center; font-size: 11px; font-weight: 800; }
.todo-section-body { padding: 0 13px; }
.todo-section-empty { color: var(--muted); padding: 12px 1px; margin: 0; font-size: 13px; }
.todo-row { display: flex; justify-content: space-between; gap: 13px; padding: 10px 1px; border-bottom: 1px solid #e0e8ef; }
.todo-row:last-child { border-bottom: 0; }
.todo-row-main { min-width: 0; flex: 1; }
.todo-row-title { display: flex; align-items: center; gap: 8px; }
.todo-row-title strong { overflow-wrap: anywhere; font-size: 14px; }
.todo-row-done .todo-row-title strong { color: var(--muted); text-decoration: line-through; }
.todo-row-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.todo-date.is-overdue { color: var(--red); font-weight: 800; }
.todo-row-notes { white-space: pre-wrap; color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.todo-state { padding: 3px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.todo-state.waiting { color: #7d5200; background: var(--amber-soft); }
.todo-state.done { color: var(--green); background: var(--green-soft); }
.todo-row-actions { display: flex; align-items: flex-start; gap: 6px; }
.todo-row-actions .button { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.todo-edit { position: relative; }
.todo-edit summary { padding: 8px; color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 800; }
.todo-row:has(.todo-edit[open]) { flex-wrap: wrap; }
.todo-row:has(.todo-edit[open]) .todo-row-main { flex-basis: 100%; }
.todo-row:has(.todo-edit[open]) .todo-row-actions { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.todo-edit[open] { width: 100%; }
.todo-edit[open] > summary { width: max-content; }
.todo-edit .todo-form { width: 100%; padding: 12px; border: 1px solid #b7c9d8; border-radius: 8px; background: #f8fbfd; }
.dashboard-todo-strip { display: flex; align-items: center; gap: 15px; padding: 11px 14px; margin: 0 0 14px; border: 1px solid #b7cfdf; border-left: 5px solid var(--blue); border-radius: 8px; background: #fff; }
.dashboard-todo-strip h2 { margin: 0; font-size: 16px; white-space: nowrap; }
.dashboard-todo-strip p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-todo-quick { display: flex; flex: 1; flex-wrap: wrap; min-width: 0; gap: 7px; }
.dashboard-todo-quick input[type=text] { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid #b7c9d8; border-radius: 7px; }
.dashboard-todo-quick .todo-note-suggestions { flex: 1 0 100%; margin-top: 0; }
.dashboard-todo-strip > a { white-space: nowrap; font-size: 12px; }
.customer-todo-section { padding: 12px 15px; margin-bottom: 14px; border-left: 5px solid var(--blue); }
.customer-todo-section .todo-context-heading { margin-bottom: 8px; }
.customer-todo-section .todo-row { padding: 7px 0; }
.customer-todo-form { display: grid; min-width: 0; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); align-items: center; gap: 8px 12px; }
.customer-todo-form .todo-quick-line, .customer-todo-form .todo-note-suggestions { min-width: 0; grid-column: 1 / -1; }
.customer-todo-form .todo-quick-line input[type=text] { width: 0; }
.customer-todo-context { display: flex; min-width: 0; align-items: center; gap: 9px; }
.customer-todo-context label { color: var(--muted); font-size: 12px; font-weight: 800; }
.customer-todo-context select { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #b7c9d8; border-radius: 7px; background: #fff; color: var(--ink); }
.customer-todo-form .todo-options { margin-top: 0; }
.customer-todo-form .todo-options[open] { grid-column: 1 / -1; }
.customer-todo-form .todo-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .dashboard-todo-strip { flex-wrap: wrap; }
  .dashboard-todo-strip > div { width: 100%; }
  .dashboard-todo-quick { flex-basis: 70%; }
  .todo-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-context-picker, .todo-notes-label { grid-column: 1 / -1; }
  .customer-todo-form { grid-template-columns: minmax(0, 1fr); }
  .customer-todo-form .todo-options { grid-column: 1; }
}
@media (max-width: 540px) {
  .todo-heading { align-items: flex-start; }
  .todo-capture { padding: 13px; }
  .todo-quick-line input[type=text] { font-size: 16px; }
  .todo-quick-line .button { padding: 7px 10px; white-space: nowrap; }
  .todo-option-grid { grid-template-columns: 1fr; }
  .todo-context-picker, .todo-notes-label { grid-column: auto; }
  .customer-todo-form .todo-option-grid { grid-template-columns: 1fr; }
  .todo-row { flex-wrap: wrap; }
  .todo-row-actions { width: 100%; justify-content: flex-end; }
  .todo-row:has(.todo-edit[open]) .todo-row-actions { grid-template-columns: 1fr; }
  .dashboard-todo-strip > a { margin-left: auto; }
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
turbo-frame { display: block; }
.print-only { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-header { position: relative; z-index: 30; background: linear-gradient(110deg, var(--navy-deep), #0b416d); color: white; box-shadow: 0 3px 15px rgba(4, 30, 53, .24); }
.header-bar { min-height: 62px; width: 100%; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.demo-pill, .review-mode { display: inline-block; padding: 5px 8px; border-radius: 4px; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .09em; }
.demo-pill { color: #2868b1; background: #dcecff; margin-bottom: 5px; }
.global-search { position: relative; margin-left: auto; width: min(300px, 25vw); }
.global-search input, .customer-search input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; color: var(--ink); background: white; }
.global-search input { height: 29px; padding: 5px 11px 5px 30px; border-color: #b9c5d2; border-radius: 4px; background: white; color: var(--ink); font-size: 12px; }
.global-search input::placeholder { color: #647083; }
.global-search-results { position: absolute; z-index: 50; top: calc(100% + 5px); right: 0; width: min(430px, 86vw); overflow: hidden; border: 1px solid #bdc8d4; border-radius: 6px; background: white; box-shadow: 0 12px 28px rgba(18, 36, 58, .2); }
.global-search-results a { display: block; padding: 9px 11px; border-bottom: 1px solid #e4e8ed; color: var(--ink); text-decoration: none; }
.global-search-results a:last-child { border-bottom: 0; }
.global-search-results a:hover, .global-search-results a:focus { background: #edf5fb; outline: 0; }
.global-search-results strong, .global-search-results span { display: block; }
.global-search-results strong { font-size: 11px; }
.global-search-results span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.global-search-empty { padding: 11px; }
.settings-link { color: #fff; font-size: 12px; cursor: default; white-space: nowrap; }
.app-wordmark { padding: 11px 0; font-size: 16px; letter-spacing: -.02em; }
.header-bar > form.button_to { margin-left: 0; }
.header-action { appearance: none; border: 0; padding: 8px 0; background: transparent; color: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.header-action:hover { text-decoration: underline; }
.period-picker { display: flex; align-items: center; gap: 4px; }
.period-picker select { max-width: 145px; height: 29px; padding: 4px 7px; border: 1px solid #8fa1b4; border-radius: 4px; color: #162231; background: white; font-size: 11px; }
.period-submit { height: 29px; padding: 4px 8px; border: 1px solid #7690aa; border-radius: 4px; color: white; background: #244865; font-size: 10px; font-weight: 750; cursor: pointer; }
.archive-banner { min-height: 38px; padding: 8px 25px; display: flex; align-items: center; justify-content: center; gap: 11px; border-top: 1px solid #e0b758; background: #fff1c9; color: #664812; font-size: 12px; }
.archive-banner strong { padding: 3px 6px; border-radius: 3px; color: white; background: #9b6810; font-size: 9px; letter-spacing: .08em; }
.archive-banner a { margin-left: 8px; color: #714b08; font-weight: 750; }
.primary-nav { display: flex; align-self: stretch; gap: 1px; overflow-x: auto; }
.primary-nav a { color: #dfeaf3; text-decoration: none; padding: 10px 11px 8px; border-bottom: 4px solid transparent; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 680; white-space: nowrap; }
.primary-nav a:hover { color: white; }
.primary-nav a.active { color: white; background: rgba(18, 132, 232, .16); border-bottom-color: #2aa0ff; }

.brand-mark { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; color: white; text-decoration: none; }
.brand-mark svg { width: 46px; height: 46px; overflow: visible; }
.brand-mark > span { color: white; font-size: 28px; font-weight: 830; letter-spacing: -.045em; }
.brand-mark b { color: #2a9dff; }
.brand-mark-roof, .brand-mark-door { fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-leaf { fill: #60bd38; stroke: #83db58; stroke-width: 1.2; }
.brand-mark-vein { fill: none; stroke: #0b4467; stroke-width: 1.7; stroke-linecap: round; }
.brand-mark.is-compact { margin-right: 6px; }
.brand-mark.is-compact svg { width: 35px; height: 35px; }
.brand-mark.is-compact > span { font-size: 20px; }
.guest-custom-label { margin-left: auto; color: #d5e5f0; font-size: 11px; letter-spacing: .04em; }
.guest-custom-label strong { color: white; font-size: 13px; }
.nav-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { width: min(1500px, calc(100% - 50px)); margin: 0 auto; padding: 22px 0 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.08; margin: 3px 0 7px; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.subdued, .panel-heading p { color: var(--muted); margin: 0; }
.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 41px; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 760; font-size: 13px; cursor: pointer; }
.button-primary { color: white; background: linear-gradient(135deg, #158ff2, #0875df); box-shadow: 0 5px 12px rgba(8, 126, 232, .2); }
.button-primary:hover { background: linear-gradient(135deg, #087ee8, #0668c8); }
.button-muted { background: #eef1f5; border-color: var(--line); color: #445268; }
.button-block { width: 100%; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.text-link, .record-link, .back-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.record-link:hover, .text-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 15px; font-size: 13px; }

.dashboard-summary { display: grid; grid-template-columns: 285px minmax(0, 1fr) 150px; align-items: center; gap: 16px; margin-bottom: 14px; }
.welcome-block h1 { margin: 0 0 2px; color: #12223d; font-size: 23px; letter-spacing: -.03em; }
.welcome-block p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-summary > time { align-self: start; padding-top: 3px; color: var(--muted); text-align: right; font-size: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 85px; padding: 10px 12px; background: var(--surface); border: 1px solid #d6dde5; border-radius: 5px; box-shadow: 0 1px 3px rgba(20, 40, 70, .05); display: flex; align-items: center; gap: 12px; }
.metric-card > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.metric-card small { color: #263750; font-size: 11px; font-weight: 750; white-space: nowrap; }
.metric-card strong { margin: 4px 0 1px; color: #101c31; font-size: 22px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.metric-card.metric-warn strong, .metric-card.metric-warn small { color: #e3242b; }
.metric-card em { color: var(--muted); font-size: 11px; font-style: normal; }
.metric-link { position: relative; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.metric-link:hover, .metric-link:focus-visible { border-color: #9dbbd5; box-shadow: 0 4px 13px rgba(20, 61, 99, .12); transform: translateY(-1px); outline: none; }
.metric-arrow { color: #748297; font-size: 25px; line-height: 1; }
.schedule-heading { align-items: center; }
.schedule-heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.filter-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #e9edf2; }
.filter-tab { padding: 8px 13px; border-radius: 5px; color: #445268; font-size: 12px; font-weight: 750; text-decoration: none; }
.filter-tab:hover { color: var(--blue); }
.filter-tab.active { color: white; background: var(--blue); box-shadow: 0 1px 3px rgba(20, 55, 85, .15); }
.schedule-table td:first-child { white-space: nowrap; font-weight: 650; }
.schedule-editor { margin-bottom: 16px; }
.schedule-editor-row td { padding: 0 !important; background: #f8fafc; }
.schedule-editor-row .schedule-editor { margin: 0; border: 0; border-radius: 0; box-shadow: inset 0 1px #d9e1e8, inset 0 -1px #d9e1e8; }
.schedule-record-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.metric-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.icon-blue { background: #e8f2ff; color: #2375dc; }
.icon-red { background: #fff0f0; color: #ef4444; }
.icon-green { background: #e9f8ed; color: #13954f; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(380px, .98fr); gap: 13px; align-items: start; }
.dashboard-day-nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 11px; }
.dashboard-day-nav > strong { margin-right: 4px; white-space: nowrap; }
.dashboard-day-nav > .dashboard-day-arrow { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ccd5de; border-radius: 5px; background: #f3f5f7; color: #334155; text-decoration: none; font-size: 18px; }
.dashboard-day-nav > .dashboard-day-today { display: inline-flex; align-items: center; min-height: 30px; padding: 0 5px; white-space: nowrap; }
.dashboard-day-nav > .dashboard-day-routes { display: inline-flex; align-items: center; min-height: 30px; margin-left: 5px; padding-left: 13px; border-left: 1px solid #c7d5e0; white-space: nowrap; }

.panel { background: var(--surface); border: 1px solid #d2dfeb; border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel-heading { min-height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-heading h2, .group-heading h2, .context-panel h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.015em; }
.panel-heading p { font-size: 13px; }
.owner-workspace .panel:not(.inline-editor) {
  --section-accent: #607d96;
  --section-heading: #edf3f7;
  border-color: #c8d2dc;
  border-top: 4px solid var(--section-accent);
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(28, 52, 76, .07);
}
.owner-workspace .panel:not(.inline-editor) > .panel-heading {
  background: var(--section-heading);
  border-radius: 3px 3px 0 0;
}
.owner-workspace .work-panel,
.owner-workspace .money-pipeline-panel,
.owner-workspace .closeout-panel,
.owner-workspace .import-intro {
  --section-accent: #398c5d;
  --section-heading: #edf7f1;
}
.owner-workspace .attention-panel,
.owner-workspace .rollover-panel,
.owner-workspace .import-default-setup {
  --section-accent: #b47a24;
  --section-heading: #fff7e8;
}
.owner-workspace .account-customer-list,
.owner-workspace .money-monthly-panel,
.owner-workspace .period-list,
.owner-workspace .truck-sheet-picker,
.owner-workspace .import-guidance {
  --section-accent: #347eb1;
  --section-heading: #eef5fb;
}
.owner-workspace .account-detail,
.owner-workspace .money-ledger-panel,
.owner-workspace .recovery-readiness {
  --section-accent: #7665a7;
  --section-heading: #f3f1fa;
}
.owner-workspace .money-filter-panel { background: #f3f6f9; }
.owner-workspace .attention-panel,
.owner-workspace .closeout-panel,
.owner-workspace .period-list { background: #f3f6f9; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 8px 10px; background: #f4f6f8; color: #334155; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; white-space: nowrap; }
.data-table td { padding: 9px 10px; border-bottom: 1px solid #e2e7ed; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); }
.notes-cell { color: #556174; max-width: 300px; }
.actions-heading { text-align: right !important; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }
.action-button { min-width: 73px; border: 1px solid #d1d8df; border-radius: 3px; padding: 7px 9px; background: #f1f4f6; color: #324155; font-size: 11px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.action-done { color: white; border-color: #16a050; background: linear-gradient(#2abc68, #149849); }
.action-move { color: white; border-color: #236fd2; background: linear-gradient(#3889ed, #1d6ed6); }
.action-button:hover { filter: brightness(.97); }
.service-tag { display: inline-block; padding: 4px 7px; border-radius: 3px; background: #d8f0df; color: #14753b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.service-pool-service { background: #e9f5f8; color: #19708a; }
.service-house-check-in { background: #f0edfb; color: #6852a3; }
.service-gutter-care { background: #fff2e4; color: #9b5a10; }
.panel-footer-link { display: block; padding: 12px 13px; color: #0969da; font-size: 12px; text-decoration: none; }
.attention-panel > .panel-heading { min-height: 45px; }
.attention-section { margin: 10px 12px 14px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.attention-title { padding: 9px 11px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.attention-title a { color: #0969da; text-decoration: none; font-size: 11px; }
.attention-overdue .attention-title { background: #fdebed; color: #9d2228; }
.attention-field-issues .attention-title { background: #fff0e4; color: #a24116; }
.attention-accounts .attention-title { background: #fff2d8; color: #936000; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mini-table th, .mini-table td { padding: 7px 8px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mini-table th:last-child, .mini-table td:last-child { border-right: 0; }
.mini-table th { color: #4c5b70; background: #f6f8fa; font-weight: 650; }
.mini-table a { color: inherit; text-decoration: none; }
.danger-text { color: #dc2626; }
.success-text { color: #079447; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack-list { display: flex; flex-direction: column; }
.stack-row { min-height: 64px; padding: 12px 17px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #e8ebef; text-decoration: none; }
.stack-row:last-child { border-bottom: 0; }
a.stack-row:hover { background: #f8fafc; }
.stack-row strong, .stack-row small { display: block; }
.stack-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.status-dot.danger { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.status-dot.success { background: var(--green); }
.status-dot.pending { background: #d7861d; }
.service-chip { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; color: #135985; background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.row-arrow { color: #8b96a5; font-size: 24px; }
.row-value { text-align: right; }
.count-badge { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 12px; }
.count-badge.danger { color: var(--red); background: var(--red-soft); }
.empty-state { min-height: 160px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.customer-owner-notes { width: min(720px, 100%); margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid #d59b38; border-radius: 0 4px 4px 0; background: #fff8e9; color: #5f4a24; font-size: 12px; }
.customer-owner-notes span, .customer-owner-notes p { display: inline; margin: 0; }
.editable-owner-notes { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.editable-owner-notes strong, .editable-owner-notes div > span { display: block; }
.editable-owner-notes div > span { margin-top: 3px; }
.editable-owner-notes > .text-link { flex: 0 0 auto; }

.import-upload-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.import-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.import-guidance-grid > div { min-height: 96px; padding: 16px; border-right: 1px solid var(--line); }
.import-guidance-grid > div:last-child { border-right: 0; }
.import-guidance-grid strong, .import-guidance-grid span { display: block; }
.import-guidance-grid span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.import-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.import-summary-card { padding: 13px 15px; border: 1px solid var(--line); border-radius: 5px; background: white; box-shadow: var(--shadow); }
.import-summary-card span, .import-summary-card strong { display: block; }
.import-summary-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.import-summary-card strong { margin-top: 4px; font-size: 25px; }
.import-summary-card.ready strong { color: var(--green); }
.import-summary-card.review strong { color: var(--amber); }
.import-safety-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #bdd9c9; border-radius: 5px; background: var(--green-soft); color: #165b3f; font-size: 12px; }
.import-safety-banner strong { white-space: nowrap; }
.import-row-list { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #f3f6f9; }
.import-row { overflow: hidden; border: 1px solid #cbd5df; border-left: 4px solid #398c5d; border-radius: 6px; background: white; box-shadow: 0 2px 6px rgba(28, 52, 76, .05); }
.import-row.review { border-left-color: #c28a32; }
.import-row:last-child { border-bottom: 1px solid #cbd5df; }
.import-row > summary { display: grid; grid-template-columns: 22px 70px minmax(180px, 1.25fr) minmax(180px, 1fr) 72px; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; cursor: pointer; list-style: none; }
.import-row > summary::-webkit-details-marker { display: none; }
.import-row > summary:hover { background: #f8fafc; }
.import-row.review > summary { background: #fffaf0; }
.import-row-main strong, .import-row-main small, .import-row-contact small { display: block; }
.import-row-main small, .import-row-contact, .import-row-number { color: var(--muted); font-size: 11px; }
.import-row-contact { overflow-wrap: anywhere; }
.import-status { justify-self: end; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.import-status.ready { color: var(--green); background: var(--green-soft); }
.import-status.review { color: var(--amber); background: var(--amber-soft); }
.import-row-editor { display: grid; grid-template-columns: 2fr 2fr 1.4fr .55fr 1fr; gap: 12px; padding: 14px 46px 17px 104px; border-top: 1px solid #e7ebef; background: #f8fafc; }
.import-row-editor .field-group:nth-child(6) { grid-column: span 3; }
.import-row-editor .field-group:nth-child(7) { grid-column: span 2; }
.import-match-option label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; cursor: pointer; }
.import-match-option input { margin-top: 3px; }
.import-match-option span, .import-match-option small { display: block; }
.import-match-option small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.import-default-setup { margin-top: 14px; }
.import-messages { padding: 9px 11px; border-radius: 4px; font-size: 11px; line-height: 1.4; }
.import-messages strong { display: block; margin-bottom: 2px; }
.import-messages.errors { color: #81361a; background: #fff0e4; }
.import-messages.warnings { color: #6d521c; background: #fff6dc; }
.import-submit-bar { position: sticky; z-index: 20; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 15px; border: 1px solid #b8c7d6; border-radius: 6px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 28px rgba(15, 34, 54, .18); backdrop-filter: blur(6px); }
.import-submit-bar strong, .import-submit-bar span { display: block; }
.import-submit-bar span { margin-top: 3px; color: var(--muted); font-size: 11px; }

@media (max-width: 850px) {
  .import-upload-form, .import-guidance-grid, .import-summary-grid { grid-template-columns: 1fr; }
  .import-guidance-grid > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .import-row > summary { grid-template-columns: 22px 55px minmax(120px, 1fr) 64px; }
  .import-row-contact { display: none; }
  .import-row-editor { grid-template-columns: 1fr; padding: 13px; }
  .import-row-editor .field-group:nth-child(6), .import-row-editor .field-group:nth-child(7) { grid-column: auto; }
  .import-submit-bar { position: static; align-items: stretch; flex-direction: column; }
}
.empty-compact { padding: 22px; color: var(--muted); text-align: center; }

.customer-tools { align-items: center; }
.customer-search { display: flex; align-items: center; gap: 8px; width: min(620px, 80%); }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chevron { text-align: right; white-space: nowrap; }
.customer-book-row { cursor: pointer; }
.customer-book-row.is-expanded { background: #edf5fb; box-shadow: inset 4px 0 var(--blue); }
.customer-book-row.is-expanded td { border-bottom: 0; }
.customer-service-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.customer-service-icon { display: inline-grid; width: 26px; height: 26px; place-items: center; border: 1px solid #c9dbd0; border-radius: 50%; background: #e8f4ec; font-size: 14px; line-height: 1; cursor: help; }
.customer-service-icon.service-pool-service { border-color: #c5dde4; background: #e8f4f7; }
.customer-service-icon.service-house-check-in { border-color: #d8d0ed; background: #f0edfa; }
.customer-service-icon[class*="service-handyman"], .customer-service-icon[class*="service-construction"] { border-color: #ead0ad; background: #fff1df; }
.customer-service-icon.service-gutter-care { border-color: #ead6bc; background: #fff4e7; }
.customer-services-empty { color: #9aa5b4; }
.customer-expand-control { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px 6px 8px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.customer-expand-control:focus-visible { border-radius: 4px; outline: 3px solid rgba(25, 118, 223, .22); }
.customer-expand-arrow { font-size: 21px; line-height: .7; transition: transform .15s ease; }
.customer-book-row.is-expanded .customer-expand-arrow { transform: rotate(90deg); }
.customer-properties-row > td { padding: 0; border-bottom: 5px solid #d7e0e8; background: #eef3f7; }
.customer-properties-row:hover { background: transparent !important; }
.customer-property-list { display: grid; gap: 9px; padding: 11px 14px 14px 22px; border-left: 4px solid var(--blue); }
.customer-property-summary { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.1fr) minmax(190px, .8fr); gap: 18px; padding: 14px 16px; border: 1px solid #ccd7e1; border-radius: 6px; background: white; box-shadow: 0 2px 6px rgba(28, 52, 76, .05); }
.customer-property-name { display: flex; align-items: center; gap: 9px; }
.customer-property-name > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.property-summary-icon { display: inline-grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #e5f1fb; color: var(--blue); font-size: 19px; font-weight: 800; }
.customer-property-identity address { margin: 7px 0 0 40px; color: #48566a; font-style: normal; line-height: 1.4; }
.property-summary-note { margin: 8px 0 0 40px; color: #725119; font-size: 11px; }
.property-summary-label { display: block; margin-bottom: 7px; color: #607087; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.property-summary-service { display: flex; align-items: flex-start; gap: 7px; margin-top: 6px; }
.property-summary-service-icon { line-height: 1.35; }
.property-summary-service strong, .property-summary-contact strong { display: block; color: #23344b; font-size: 12px; }
.property-summary-service small, .property-summary-contact small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.property-summary-contact + .property-summary-contact { margin-top: 7px; }
.property-summary-empty { color: var(--muted); font-size: 12px; }
.property-summary-open { display: inline-block; margin-top: 10px; font-size: 12px; }
.customer-property-list-empty { padding: 14px; border: 1px dashed #b8c7d5; border-radius: 5px; color: var(--muted); text-align: center; background: white; }
.customer-heading { display: block; overflow: hidden; margin-bottom: 14px; border: 1px solid #c8d2dc; border-top: 4px solid var(--blue); border-radius: 7px; background: white; box-shadow: 0 3px 10px rgba(28, 52, 76, .07); }
.customer-heading-main { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(330px, 1.35fr) minmax(155px, .4fr); align-items: center; gap: 16px; padding: 13px 15px; }
.customer-identity { min-width: 0; }
.customer-heading .customer-identity h1 { margin: 2px 0 4px; font-size: 27px; }
.customer-heading .customer-identity .subdued { overflow-wrap: anywhere; font-size: 12px; }
.customer-heading .customer-owner-notes { width: auto; margin: 0; }
.customer-heading .balance-block { min-width: 0; box-shadow: none; background: var(--blue-soft); }
.customer-balance-link { color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.customer-balance-link small { display: block; margin-top: 7px; color: var(--blue); font-size: 10px; font-weight: 750; }
.customer-balance-link:hover, .customer-balance-link:focus-visible { border-left-color: #0c4f82; box-shadow: 0 3px 10px rgba(28, 82, 124, .14); transform: translateY(-1px); outline: none; }
.customer-heading-actions { justify-content: flex-start; padding: 9px 12px; border-top: 1px solid #d6dee7; background: #f3f6f9; }
.customer-heading-actions .button { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.balance-block { min-width: 190px; padding: 13px 16px; border-left: 3px solid var(--blue); background: white; border-radius: 4px; box-shadow: var(--shadow); }
.balance-block span, .balance-block strong { display: block; }
.balance-block span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 750; }
.balance-block strong { margin-top: 4px; font-size: 22px; }
.detail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); }
#customer-properties { padding-bottom: 16px; background: #e7eff5; }
#customer-properties > turbo-frame { margin: 16px 16px 0; }
.property-card { overflow: hidden; padding: 0 14px 14px; border: 1px solid #b3c9d9; border-left: 6px solid #287bab; background: #f7fafc; box-shadow: 0 4px 12px rgba(20, 55, 82, .1); }
.property-title { margin: 0 -14px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 2px solid #bdd3e2; background: #e8f3fa; }
.property-position { display: block; margin-bottom: 4px; color: #165c87; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.property-title h3 { margin: 0 0 3px; font-size: 19px; }
.record-status { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 3px; background: #eef1f5; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; vertical-align: 2px; }
.property-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.property-title p span + span::before { content: " · "; }
.property-title .compact-actions { flex-wrap: wrap; justify-content: flex-end; }
.compact-actions { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.access-note { margin: 14px 0 0; padding: 9px 11px; background: var(--amber-soft); color: #72430a; border-radius: 5px; font-size: 12px; }
.property-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; margin-top: 10px; }
.property-detail-grid > turbo-frame { min-width: 0; height: 100%; }
.property-detail-grid > turbo-frame > .property-detail-section { height: 100%; }
.property-detail-grid > .property-detail-section, .property-detail-grid > turbo-frame > .property-detail-section { margin-top: 0; }
.property-detail-grid.has-recorded-visits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-detail-grid.has-recorded-visits .property-visit-history { grid-column: 1 / -1; }
.property-detail-grid:not(.has-recorded-visits) .contact-row { grid-template-columns: minmax(90px, .7fr) minmax(0, 1.4fr) auto; gap: 8px; }
.property-detail-section { margin-top: 10px; overflow: hidden; border: 1px solid #cbd5df; border-top-width: 4px; border-radius: 7px; background: white; box-shadow: 0 2px 7px rgba(28, 52, 76, .05); }
.service-list { border-top-color: #398c5d; }
.property-section-heading { min-height: 43px; padding: 7px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d8e0e8; }
.property-section-heading h4, .property-section-heading span { display: block; }
.property-section-heading h4 { margin: 0; color: var(--ink); font-size: 13px; }
.property-section-heading span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.property-services-heading { background: #edf7f1; }
.property-contacts-heading { background: #eef5fb; }
.property-history-section-heading { background: #f3f1fa; }
.property-section-action { padding: 6px 9px; border: 1px solid rgba(31, 105, 160, .25); border-radius: 4px; background: rgba(255, 255, 255, .8); white-space: nowrap; }
.property-section-empty { display: block; padding: 13px 12px; color: var(--muted); font-size: 11px; }
.service-list > turbo-frame:last-of-type .service-row { border-bottom: 0; }
.service-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr auto; gap: 12px; align-items: center; padding: 10px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.service-row strong { color: var(--ink); }
.service-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.service-value { display: flex; align-items: center; gap: 12px; }
.service-inline-editor { margin: 6px; border: 2px solid var(--blue); background: #f4f9fd; box-shadow: 0 0 0 3px rgba(31, 105, 160, .08); }
.service-inline-editor .inline-editor-heading { border-bottom: 1px solid #bfd7e9; }
.service-inline-editor .inline-editor-heading strong { display: block; margin-top: 3px; color: var(--blue); font-size: 15px; }
.editing-indicator { display: inline-block; padding: 2px 6px; border-radius: 999px; color: white; background: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.add-row-link { display: block; padding: 10px 11px; color: var(--blue); background: #f8fafc; font-size: 12px; font-weight: 700; text-decoration: none; }
.property-contacts { border-top-color: #347eb1; }
.contact-list > turbo-frame { border-top: 1px solid var(--line); }
.contact-row { padding: 10px 11px; display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.5fr) auto; align-items: center; gap: 15px; font-size: 12px; }
.contact-identity strong, .contact-identity span { display: block; }
.contact-identity span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.contact-identity em { display: inline-block; margin-top: 5px; padding: 2px 5px; border-radius: 3px; color: #8a5507; background: var(--amber-soft); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #344154; }
.contact-methods span { white-space: nowrap; }
.contact-methods small { margin-right: 4px; color: var(--muted); text-transform: capitalize; }
.contact-methods a { color: var(--blue); text-decoration: none; }
.no-contacts { display: block; padding: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.property-visit-history { border-top-color: #7665a7; }
.property-history-heading strong, .property-history-heading span { display: block; }
.property-history-heading strong { font-size: 12px; }
.property-history-heading span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.property-history-heading > span { margin: 0; white-space: nowrap; }
.property-history-row { min-height: 62px; padding: 9px 11px; display: grid; grid-template-columns: minmax(170px, 1fr) auto 90px; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.property-history-row strong, .property-history-row span, .property-history-row small { display: block; }
.property-history-row > div:first-child > strong { font-size: 11px; }
.property-history-row > div:first-child > span { margin-top: 3px; color: #344154; font-size: 10px; }
.property-history-row > div:first-child > small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.property-history-times { display: grid; grid-template-columns: repeat(2, auto); gap: 12px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.property-history-times b { margin-top: 3px; display: block; color: var(--ink); font-size: 10px; text-transform: none; }
.property-history-duration { text-align: right; }
.property-history-duration strong { color: var(--green); font-size: 13px; }
.property-history-duration span { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.property-person-times { grid-column: 1 / -1; padding-top: 7px; display: flex; flex-wrap: wrap; gap: 6px 14px; border-top: 1px dashed #d9e0e7; color: var(--muted); font-size: 9px; }
.property-person-times span { display: inline; }
.property-person-times b { color: var(--ink); }
.no-visit-history { padding: 12px 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.heading-actions { display: flex; gap: 8px; margin-top: 14px; }
.account-value { text-align: right; }
.customer-workspace-section { margin-bottom: 14px; }
.customer-charge-plans { overflow: hidden; }
.customer-charge-property + .customer-charge-property { border-top: 4px solid #edf1f5; }
.customer-charge-property-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-top: 1px solid var(--line); background: #f7f9fb; }
.customer-charge-property-heading strong, .customer-charge-property-heading small { display: block; }
.customer-charge-property-heading strong { font-size: 13px; }
.customer-charge-property-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.property-charge-list { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.property-subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.property-subheading strong, .property-subheading small { display: block; }
.property-subheading strong { color: var(--ink); font-size: 12px; }
.property-subheading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.charge-definition-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 8px 10px; border-top: 1px solid var(--line); background: #fbfcfd; }
.charge-definition-row > span strong, .charge-definition-row > span small { display: block; }
.charge-definition-row > span strong { font-size: 11px; }
.charge-definition-row > span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.charge-definition-amount strong { color: var(--green); font-size: 15px !important; }
.text-button { border: 0; padding: 0; color: var(--blue); background: transparent; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.charge-definition-row form.button_to { display: inline; }
.service-choice-fieldset { margin: 0; padding: 14px; border: 1px solid #d9dee5; border-radius: 5px; }
.service-choice-fieldset legend { padding: 0 5px; color: #344154; font-size: 11px; font-weight: 750; }
.service-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-choice-grid label { display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; }
.service-choice-grid input { width: auto; min-height: auto; }
.service-choice-fieldset > small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.closeout-charge-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 9px 11px; border: 1px solid #b9ddc7; border-radius: 5px; background: #eef9f2; }
.closeout-charge-note strong { color: var(--green); font-size: 12px; }
.closeout-charge-note span { color: var(--muted); font-size: 9px; text-align: right; }
.closeout-charge-note.needs-review { border-color: #ead39b; background: #fff9ea; }
.closeout-charge-note.needs-review strong { color: var(--amber); }
.charge-record-panel { max-width: 840px; overflow: hidden; }
.charge-record-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #f8fafc; }
.charge-record-summary > div { padding: 15px 18px; border-right: 1px solid var(--line); }
.charge-record-summary > div:last-child { border-right: 0; }
.charge-record-summary small, .charge-record-summary strong { display: block; }
.charge-record-summary small { margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.charge-record-summary strong { font-size: 15px; }
.charge-decision-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 0 15px 15px; }
.charge-locked-note { margin: 18px; padding: 13px 15px; border: 1px solid #d9dee5; border-radius: 5px; background: #f8fafc; }
.charge-locked-note strong, .charge-locked-note span { display: block; }
.charge-locked-note span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.guest-body { min-height: 100svh; background: radial-gradient(circle at 50% 0, #d9edfa 0, var(--canvas) 52%); }
.guest-shell { width: 100%; min-height: calc(100svh - 62px); padding: 36px 20px 54px; display: grid; place-items: center; }
.access-card { overflow: hidden; border: 1px solid #afc5d6; border-radius: 18px; background: white; box-shadow: 0 24px 65px rgba(6, 41, 71, .18); }
.login-panel, .worker-login-card { width: min(1050px, 100%); margin: 0; padding: 0; }
.access-experience { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(410px, 1.05fr); }
.access-brand-panel { position: relative; min-height: 580px; overflow: hidden; padding: 45px 46px; display: flex; flex-direction: column; color: white; background: linear-gradient(145deg, #062946, #083a62 70%, #07567a); }
.access-brand-panel::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(30deg, transparent 46%, rgba(49, 159, 240, .28) 47%, transparent 48%), linear-gradient(150deg, transparent 62%, rgba(99, 188, 62, .2) 63%, transparent 64%); background-size: 150px 130px, 190px 160px; }
.access-brand-panel > * { position: relative; z-index: 2; }
.access-brand-panel .brand-mark { padding-bottom: 26px; border-bottom: 1px solid rgba(163, 211, 239, .28); }
.gilles-lockup { display: grid; justify-items: start; }
.gilles-lockup > span { color: #c5deee; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.gilles-lockup > strong { position: relative; color: white; font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 68px; font-weight: 600; line-height: 1.08; letter-spacing: -.04em; transform: rotate(-2deg); }
.gilles-lockup > strong::after { content: ""; position: absolute; left: 8px; right: -30px; bottom: -1px; height: 5px; border-radius: 99px; background: #62bf39; transform: rotate(-3deg); }
.access-brand-panel .gilles-lockup { margin-top: 28px; }
.access-brand-message { margin-top: 40px; max-width: 340px; display: grid; gap: 7px; }
.access-brand-message > span { color: #d1e5f2; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.access-brand-message > strong { font-size: 25px; letter-spacing: -.025em; }
.access-brand-message p { margin: 0; color: #d5e7f2; font-size: 14px; line-height: 1.5; }
.access-form-panel { padding: 64px 68px 0; display: flex; flex-direction: column; background: white; }
.access-form-heading > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.access-form-heading h1 { margin: 8px 0 8px; font-size: 37px; line-height: 1.05; letter-spacing: -.04em; }
.access-form-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.login-form, .worker-login-form { display: grid; gap: 18px; margin-top: 32px; }
.access-card .field-group label { margin-bottom: 8px; font-size: 12px; }
.access-card .field-group input { min-height: 54px; padding: 11px 14px; border-radius: 9px; font-size: 17px; }
.access-card .button { min-height: 54px; font-size: 15px; }
.access-switch { margin: auto -68px 0; padding: 20px 68px; border-top: 1px solid #dce5ed; background: #f4f8fb; text-align: center; }
.access-switch span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.access-switch .worker-owner-link { margin: 0; font-size: 13px; }
.offline-access-note { margin-top: 18px; padding: 13px 15px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #cce8d4; border-radius: 10px; color: #23663d; background: #eff9f2; }
.offline-access-note > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 20px; }
.offline-access-note strong { font-size: 12px; }
.offline-access-note p { margin: 2px 0 0; color: #526e5b; font-size: 11px; }
.access-landscape { position: absolute !important; z-index: 1 !important; right: -75px; bottom: -6px; width: 680px; height: 245px; opacity: .92; }
.editor-heading { max-width: 760px; margin-bottom: 17px; }
.editor-heading h1 { margin: 4px 0 5px; font-size: 28px; letter-spacing: -.03em; }
.editor-heading > p:last-child { margin: 0; color: var(--muted); }
.editor-panel { max-width: 840px; }
.record-form { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-span-2 { grid-column: 1 / -1; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 6px; color: #344154; font-size: 11px; font-weight: 750; }
.field-group input, .field-group select, .field-group textarea { width: 100%; min-height: 40px; border: 1px solid #cbd4de; border-radius: 5px; padding: 8px 10px; color: var(--ink); background: #fff; }
.field-group textarea { resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: 2px solid #b9d8f2; border-color: var(--blue); }
.readonly-field { min-height: 46px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fb; }
.readonly-field strong, .readonly-field span { display: block; }
.readonly-field span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.input-prefix, .input-suffix { display: flex; align-items: stretch; }
.input-prefix span, .input-suffix span { display: grid; place-items: center; padding: 0 11px; border: 1px solid #cbd4de; background: #f1f4f7; color: var(--muted); font-size: 12px; }
.input-prefix span { border-right: 0; border-radius: 5px 0 0 5px; }
.input-suffix span { border-left: 0; border-radius: 0 5px 5px 0; }
.input-prefix input { border-radius: 0 5px 5px 0; }
.input-suffix input { border-radius: 5px 0 0 5px; }
.billing-fields, .schedule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 15px; border: 1px solid #d5e4f1; border-radius: 5px; background: #f4f9fd; }
.schedule-fields { border-color: #d9dee5; background: #f8fafc; }
.cadence-input { display: grid; grid-template-columns: auto 88px minmax(105px, 1fr); align-items: stretch; }
.cadence-input > span { display: grid; place-items: center; padding: 0 11px; border: 1px solid #cbd4de; border-right: 0; border-radius: 5px 0 0 5px; background: #eef1f5; color: var(--muted); font-size: 12px; }
.cadence-input input { border-radius: 0; }
.cadence-input select { border-left: 0; border-radius: 0 5px 5px 0; }
.calculated-date { min-height: 40px; padding: 10px; border: 1px solid #c8dce9; border-radius: 5px; color: #184f7a; background: white; font-size: 13px; font-weight: 750; }
.inline-editor { overflow: hidden; border: 1px solid #9dc6e6; border-radius: 6px; background: #f8fbfe; box-shadow: 0 6px 20px rgba(29, 80, 122, .08); }
.inline-editor-heading { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; border-bottom: 1px solid #cfe1ef; background: #eaf4fb; }
.inline-editor-heading strong { color: #184f7a; font-size: 13px; }
.inline-editor-heading span { color: var(--muted); font-size: 11px; }
.inline-record-form { padding: 15px; }
.property-transfer { margin: 0 15px 15px; padding: 14px; border: 1px solid #cbddec; border-left: 4px solid #477ea7; border-radius: 5px; background: #f1f7fc; }
.property-transfer h2 { margin: 0 0 4px; font-size: 14px; }
.property-transfer p { margin: 0 0 12px; color: #526479; font-size: 11px; line-height: 1.5; }
.property-transfer form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.property-transfer .field-group { flex: 1 1 240px; }
.property-transfer select { width: 100%; }
.contact-editor { margin: 10px; }
.phone-fields { display: grid; gap: 8px; }
.phone-field-row { display: grid; grid-template-columns: 120px minmax(180px, 1fr) auto; align-items: center; gap: 8px; }
.phone-field-row .remove-phone { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
.phone-field-row .remove-phone input { width: auto; min-height: auto; }
.add-phone-button { margin-top: 8px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.issue-contact-field > label { display: flex; align-items: center; gap: 8px; }
.issue-contact-field input { width: auto; min-height: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-errors { margin-bottom: 17px; padding: 12px 14px; border: 1px solid #efc4c8; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }

.review-mode { background: var(--amber-soft); color: var(--amber); }
.approval-heading { margin-bottom: 10px; align-items: center; }
.approval-heading h1 { margin: 0 0 2px; font-size: 22px; }
.queue-summary { padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 12px; white-space: nowrap; }
.queue-summary strong { color: var(--ink); }
.pending-filter { color: #344154; font-size: 12px; }
.pending-filter select { min-width: 130px; margin-left: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #27364d; }
.approval-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(390px, .95fr); gap: 14px; align-items: start; }
.owner-workspace .approval-empty-panel { --section-accent: #398c5d; max-width: 980px; margin-inline: auto; }
.approval-empty-panel .empty-state { min-height: 210px; }
.approval-group { overflow: hidden; }
.group-heading { min-height: 46px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #dff5e8; border-bottom: 1px solid #c6e8d4; }
.approval-group:nth-child(even) .group-heading { background: #e2f0ff; border-bottom-color: #c9dff7; }
.group-heading h2 { margin: 0; font-size: 15px; }
.approval-actions { display: flex; gap: 8px; }
.approval-actions .button { min-height: 30px; padding: 5px 12px; border-radius: 3px; font-size: 11px; opacity: 1; }
.approval-actions .button:disabled { cursor: not-allowed; opacity: .48; }
.approve-button { color: white; background: #139b4d; }
.remove-button { color: white; background: #dc3545; }
.approval-table th:first-child, .approval-table td:first-child { width: 34px; text-align: center; }
.approval-table .approval-row.selected { background: #edf5ff; box-shadow: inset 3px 0 #2879d7; }
.approval-table a { color: #1e3757; text-decoration: none; }
.pending-status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #ffe8b7; color: #956100; font-size: 10px; font-weight: 800; }
.approval-editor { margin-bottom: 14px; }
.approval-table th:last-child, .approval-table td:last-child { width: 54px; text-align: right; }
.context-panel { position: sticky; top: 12px; padding: 12px; }
.context-heading { display: flex; justify-content: space-between; align-items: center; margin: -12px -12px 12px; padding: 12px; border-bottom: 1px solid var(--line); border-radius: 3px 3px 0 0; background: var(--section-heading); }
.context-heading h2 { margin: 0; font-size: 17px; }
.context-heading a { color: #0969da; text-decoration: none; font-size: 11px; }
.context-panel h3 { margin: 8px 0 2px; font-size: 16px; }
.contact-line { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.account-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.account-totals div { padding: 9px 10px; border: 1px solid #d9e5f1; border-radius: 4px; background: #eef7ff; }
.account-totals div:nth-child(2) { background: #fff7e6; border-color: #f2dfb9; }
.account-totals div:nth-child(3) { background: #f4f6f8; border-color: var(--line); }
.account-totals small, .account-totals strong { display: block; }
.account-totals small { color: #44536a; font-size: 10px; }
.account-totals strong { margin-top: 2px; font-size: 19px; }
.context-panel h4 { margin: 13px 0 5px; font-size: 12px; }
.context-record { padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; }
.context-record strong, .context-record small { display: block; }
.context-record small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.context-panel .review-mode { width: 100%; margin-top: 11px; text-align: center; }
.detail-list { margin: 22px 0; }
.detail-list div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.detail-list dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.detail-list dd { margin: 0; font-weight: 650; }
.detail-list dd small { display: block; color: var(--muted); margin-top: 4px; font-weight: 400; }
.detail-list .large-money { font-size: 22px; }
.context-note { background: #f6f8fa; padding: 13px; border-radius: 6px; margin-bottom: 18px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.context-note strong { color: var(--ink); }
.context-note p { margin: 5px 0 0; }

.account-heading { margin-bottom: 12px; }
.account-heading h1 { margin: 2px 0 4px; }
.account-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.money-view-tabs { display: flex; flex-wrap: wrap; width: fit-content; gap: 3px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #e9edf2; }
.money-view-tab { display: inline-flex; align-items: center; min-height: 41px; padding: 8px 13px; border-radius: 4px; color: #415168; font-size: 13px; font-weight: 800; text-decoration: none; }
.money-view-tab.active { color: white; background: var(--blue); }
.recent-money-panel { margin-bottom: 14px; }
.recent-money-heading { align-items: center; }
.recent-money-list { display: grid; }
.recent-money-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 130px 72px; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.recent-money-row:nth-child(even) { background: #f7fafc; }
.recent-money-when strong, .recent-money-when span, .recent-money-result strong, .recent-money-result span { display: block; }
.recent-money-when strong { font-size: 13px; }
.recent-money-when span, .recent-money-main small { color: var(--muted); font-size: 11px; }
.recent-money-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recent-money-title strong { font-size: 15px; }
.recent-money-kind { display: inline-flex; padding: 4px 8px; border-radius: 5px; background: #eaf2fa; color: #295a7e; font-size: 11px; font-weight: 800; }
.recent-money-main { min-width: 0; }
.recent-money-main p { overflow: hidden; margin: 4px 0 2px; color: #334359; text-overflow: ellipsis; white-space: nowrap; }
.recent-money-result { text-align: right; }
.recent-money-result strong { margin-bottom: 4px; font-size: 16px; }
.recent-money-result .account-status { display: inline-flex; width: fit-content; }
.recent-money-open { min-height: 44px; padding-inline: 12px; border-color: #b9d2e5; background: #edf6fc; color: #075989; }
.recent-money-row.is-void .recent-money-result strong { color: var(--muted); text-decoration: line-through; }
.recent-money-footer { padding: 14px 18px; border-top: 1px solid var(--line); }
.account-activity-table tr:target { background: #fff4cc; outline: 2px solid #e7b63c; outline-offset: -2px; scroll-margin-top: 85px; }
@media (max-width: 700px) {
  .recent-money-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .recent-money-heading > strong { white-space: nowrap; }
  .recent-money-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px; }
  .recent-money-when { grid-column: 1 / -1; }
  .recent-money-when strong, .recent-money-when span { display: inline; margin-right: 5px; }
  .recent-money-main { grid-column: 1 / -1; }
  .recent-money-main p { white-space: normal; }
  .recent-money-result { text-align: left; }
  .recent-money-open { align-self: end; }
}
.money-filter-panel { margin-bottom: 14px; padding: 16px 18px; }
.money-filter-form { display: grid; gap: 14px; }
.money-filter-fields { display: grid; grid-template-columns: minmax(160px, 200px) minmax(160px, 200px) minmax(240px, 420px); gap: 12px; align-items: end; }
.money-filter-form .field-group label, .money-service-filter legend { display: block; margin-bottom: 6px; color: #405169; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.money-filter-form input[type=date], .money-filter-form select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c8d2dc; border-radius: 6px; background: white; font-size: 13px; }
.money-service-filter { min-width: 0; margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
.money-service-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.money-service-choices label { flex: 0 0 auto; position: relative; cursor: pointer; }
.money-service-choices input { position: absolute; opacity: 0; pointer-events: none; }
.money-service-choices span { display: grid; min-height: 38px; place-items: center; padding: 7px 12px; border: 1px solid #cbd5df; border-radius: 999px; background: white; color: #43536a; font-size: 11px; font-weight: 750; }
.money-service-choices input:checked + span { border-color: var(--blue); color: white; background: var(--blue); }
.money-service-choices input:focus-visible + span { outline: 3px solid #8abbe2; outline-offset: 2px; }
.money-filter-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.money-filter-actions { display: flex; gap: 10px; margin-left: auto; }
.money-filter-actions .button { min-height: 44px; }
.money-filter-actions .button-primary { min-width: 150px; }
.money-filter-actions .button-muted { min-width: 90px; }
.money-period-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; }
.money-period-shortcuts span { margin-right: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.money-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.money-summary-grid > div, .money-summary-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: white; box-shadow: var(--shadow); }
.money-summary-card { color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.money-summary-card:hover, .money-summary-card:focus-visible { border-color: #9dbbd5; box-shadow: 0 4px 13px rgba(20, 61, 99, .12); transform: translateY(-1px); outline: none; }
.money-summary-grid small, .money-summary-grid strong, .money-summary-grid span { display: block; }
.money-summary-grid small { color: #45566d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.money-summary-grid strong { margin: 5px 0 2px; font-size: 24px; }
.money-summary-grid span { color: var(--muted); font-size: 9px; }
.money-summary-grid .money-in { border-top: 3px solid #4c9b64; }
.money-summary-grid .money-out { border-top: 3px solid #c06c59; }
.money-summary-grid .money-difference { border-top: 3px solid var(--blue); }
.money-summary-grid .money-difference.negative strong, .negative-money, .money-out-text { color: #a64d3d; }
.money-in-text { color: #287342; }
.money-pipeline-panel { margin-bottom: 14px; }
.money-pipeline-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); background: #f7fafc; }
.money-pipeline-summary > div { padding: 11px 16px; border-right: 1px solid var(--line); }
.money-pipeline-summary > div:last-child { border-right: 0; }
.money-pipeline-summary small, .money-pipeline-summary strong, .money-pipeline-summary span { display: block; }
.money-pipeline-summary small { color: #4b5c72; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.money-pipeline-summary strong { margin-top: 3px; font-size: 20px; }
.money-pipeline-summary span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.money-pipeline-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px 14px; background: #f3f6f9; }
.money-pipeline-list article { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 11px; border: 1px solid #cbd5df; border-radius: 5px; background: white; box-shadow: 0 2px 6px rgba(28, 52, 76, .05); }
.money-pipeline-list article span, .money-pipeline-list article small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.money-pipeline-list article b { text-align: right; }
.money-pipeline-list article small { grid-column: 1 / -1; }
.money-pipeline-detail-link { grid-column: 1 / -1; margin-top: 5px; font-size: 9px; }
.money-pipeline-note { margin: 0; padding: 0 14px 12px; color: #536174; font-size: 9px; }
.money-service-panel { margin-bottom: 14px; overflow: hidden; }
.money-service-table { min-width: 760px; }
.money-service-table td:nth-child(n+2):nth-child(-n+6), .money-service-table th:nth-child(n+2):nth-child(-n+6) { text-align: right; white-space: nowrap; }
.money-monthly-panel { margin-bottom: 14px; }
.money-monthly-table { min-width: 680px; }
.money-monthly-table td:nth-child(n+2):nth-child(-n+5), .money-monthly-table th:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.money-ledger-table { min-width: 1050px; }
.money-ledger-table td:nth-child(n+5):nth-child(-n+8), .money-ledger-table th:nth-child(n+5):nth-child(-n+8) { text-align: right; white-space: nowrap; }
.money-ledger-table td small { display: block; max-width: 270px; margin-top: 3px; color: var(--muted); font-size: 9px; }
.money-ledger-table tfoot { background: #eef3f7; }
.money-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.money-row-actions form { display: inline; margin: 0; }
.ledger-action { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 7px; border: 1px solid #cbd5df; border-radius: 4px; color: var(--blue); background: #f7f9fb; font: inherit; font-size: 9px; font-weight: 800; text-decoration: none; cursor: pointer; }
.ledger-action:hover, .ledger-action:focus-visible { background: #edf5fb; outline: none; }
.ledger-approve { border-color: #aad2ba; color: #176043; background: #eaf6ef; }
.ledger-reject { border-color: #e4bcc0; color: #97333b; background: #fbedef; }
.money-filter-note, .money-scope-note { margin: 0; padding: 9px 14px; color: #536174; font-size: 10px; }
.money-filter-note { border-top: 1px solid var(--line); background: #f8fafc; }
.service-review-needed { color: #995714; font-weight: 700; }
.entry-service-picker { margin-top: 5px; max-width: 280px; font-size: 12px; }
.entry-service-picker summary { color: #176bac; cursor: pointer; font-weight: 700; }
.entry-service-picker form { display: grid; gap: 9px; margin-top: 8px; padding: 12px; border: 1px solid #c8d9e5; border-radius: 8px; background: #f5f9fc; white-space: normal; }
.entry-service-picker fieldset { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; }
.entry-service-picker legend { margin-bottom: 5px; font-weight: 700; }
.entry-service-picker label { display: block; }
.entry-service-picker input[type="text"] { box-sizing: border-box; width: 100%; margin-top: 3px; }
.entry-service-picker small { display: block; color: #56677a; line-height: 1.4; }
.entry-service-picker .button { justify-self: start; }
.money-scope-note { padding-inline: 2px; }
.account-summary-grid > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 5px; background: white; box-shadow: 0 1px 3px rgba(20, 40, 70, .04); }
.account-summary-grid small, .account-summary-grid strong, .account-summary-grid span { display: block; }
.account-summary-grid small { color: #42526a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.account-summary-grid strong { margin: 4px 0 2px; font-size: 22px; letter-spacing: -.03em; }
.account-summary-grid span { color: var(--muted); font-size: 10px; }
.accounts-layout { display: grid; grid-template-columns: minmax(430px, .92fr) minmax(620px, 1.45fr); gap: 14px; align-items: start; }
.account-customer-list { overflow: hidden; }
.account-customer-heading { align-items: center; }
.account-customer-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.account-customer-search { padding: 10px 13px; border-bottom: 1px solid var(--line); background: #f7f9fb; }
.account-customer-search input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #cbd5df; border-radius: 4px; background: white; font: inherit; }
.account-table td:first-child a { color: #183a5e; font-weight: 750; text-decoration: none; }
.account-table td:first-child small, .account-activity-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.account-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.account-table tr.selected { background: #edf5ff; box-shadow: inset 3px 0 #2879d7; }
.account-balance { color: var(--red); font-weight: 800; }
.account-balance.credit-balance { color: var(--green); }
.account-balance.settled-balance { color: var(--green); }
.account-detail { overflow: hidden; }
.account-detail-heading { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--section-heading); }
.account-detail-heading h2 { margin: 2px 0 3px; font-size: 21px; }
.account-detail-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.account-detail-balance { min-width: 150px; padding: 10px 12px; border: 1px solid #d3dfeb; border-radius: 5px; background: #f2f7fc; text-align: right; }
.account-detail-balance small, .account-detail-balance strong { display: block; }
.account-detail-balance small { color: var(--muted); font-size: 10px; }
.account-detail-balance strong { margin-top: 2px; font-size: 23px; }
.account-entry-actions { padding: 10px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: #f7f9fb; }
.account-entry-actions .text-link { margin-left: auto; font-size: 11px; }
.account-entry-editor { margin-bottom: 14px; }
.account-activity-toolbar { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #fff; }
.account-activity-toolbar label { color: #42526a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.account-activity-toolbar select { min-width: 260px; min-height: 34px; padding: 6px 8px; border: 1px solid #cbd5df; border-radius: 4px; background: white; font: inherit; }
.account-activity-toolbar span { margin-left: auto; color: var(--muted); font-size: 10px; }
.account-filter-empty { border-top: 1px solid var(--line); }
.allocation-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 5px; color: #31536e; background: #eaf4fb; font-size: 11px; }
.account-activity-table { min-width: 980px; font-size: 12px; }
.account-property-cell { min-width: 145px; }
.account-notes-cell { min-width: 180px; max-width: 320px; color: #536174; }
.account-money-cell { text-align: right; white-space: nowrap; }
.account-activity-table th.account-money-cell { text-align: right; }
.account-activity-table td:nth-child(5) { white-space: nowrap; }
.account-activity-table td:last-child { white-space: nowrap; }
.account-activity-table td form { display: inline; }
.account-status { display: inline-block; padding: 3px 6px; border-radius: 4px; background: #e8edf2; color: #526071; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-status.approved { color: #176043; background: #e3f4eb; }
.account-status.paid, .account-status.posted { color: #175b89; background: #e5f2fb; }
.account-status.void { color: #7c5357; background: #f4e8e9; }
.debit-impact { color: var(--red); font-weight: 750; }
.credit-impact { color: var(--green); font-weight: 750; }
.void-entry { color: #788492; background: #f7f8fa; }
.void-entry strong { text-decoration: line-through; }
.void-amount { color: #788492; text-decoration: line-through; text-decoration-thickness: 2px; }
.void-link { display: inline; margin-left: 6px; padding: 0; border: 0; color: var(--red); background: transparent; font-size: 9px; font-weight: 750; text-decoration: underline; cursor: pointer; }

.export-heading { margin-bottom: 14px; }
.export-heading h1 { margin: 2px 0 4px; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.export-card { min-height: 240px; padding: 20px; display: flex; align-items: flex-start; flex-direction: column; }
.export-card:nth-child(1) { --section-accent: #347eb1; }
.export-card:nth-child(2) { --section-accent: #7665a7; }
.export-card:nth-child(3) { --section-accent: #398c5d; }
.export-card h2 { margin: 13px 0 7px; font-size: 19px; }
.export-card p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.export-icon { display: inline-grid; min-width: 48px; height: 30px; padding: 0 8px; place-items: center; border: 1px solid #c8ddf2; border-radius: 4px; color: #1c5f98; background: #e9f4ff; font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.backup-card { border-color: #bedaca; }
.backup-card .export-icon { color: #176043; border-color: #bcdcca; background: #e5f5ec; }
.backup-download-form { width: 100%; }
.backup-download-form label { display: block; margin: 8px 0 4px; color: #445268; font-size: 10px; font-weight: 750; }
.backup-download-form input[type="password"] { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.backup-download-form small { display: block; margin: 7px 0 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.export-status { margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.export-status h2 { margin: 0 0 4px; font-size: 17px; }
.export-status p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.export-status dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.export-status dl div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: #f7f9fb; }
.export-status dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.export-status dd { margin: 2px 0 0; color: var(--ink); font-size: 18px; font-weight: 800; }
.backup-boundary { margin-top: 14px; padding: 14px 17px; border: 1px solid #efd8a3; border-radius: 6px; color: #6f5213; background: #fff8e8; font-size: 12px; }
.backup-boundary strong { display: block; margin-bottom: 3px; }
.backup-boundary p { margin: 0; line-height: 1.5; }
.recovery-readiness { margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 28px; }
.recovery-readiness h2, .recovery-readiness h3 { margin: 0 0 5px; }
.recovery-readiness h2 { font-size: 18px; }
.recovery-readiness h3 { font-size: 14px; }
.recovery-copy > p:not(.eyebrow), .recovery-history .empty-state { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.recovery-verification-form { margin-top: 13px; }
.recovery-verification-form label { display: block; margin-bottom: 4px; color: #445268; font-size: 10px; font-weight: 750; }
.recovery-verification-form > div { display: flex; gap: 8px; }
.recovery-verification-form input[type="text"] { min-width: 0; flex: 1; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; font: inherit; text-transform: uppercase; }
.recovery-history ul { margin: 7px 0 0; padding: 0; list-style: none; }
.recovery-history li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.recovery-history li small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.period-heading { margin-bottom: 14px; }
.period-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 14px; align-items: start; }
.period-list { overflow: hidden; }
.period-row { min-height: 74px; margin: 10px 12px 0; padding: 12px 14px; display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #cbd5df; border-radius: 5px; background: white; }
.period-row:last-child { margin-bottom: 12px; border-bottom: 1px solid #cbd5df; }
.period-row strong, .period-row small { display: block; }
.period-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.period-state { padding: 5px 7px; border-radius: 4px; text-align: center; color: #176043; background: #e3f4eb; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.period-state.archived { color: #77541a; background: #fff0cc; }
.rollover-panel { padding: 18px; }
.rollover-panel h2 { margin: 4px 0 8px; font-size: 20px; }
.rollover-panel > p:not(.eyebrow) { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rollover-blocked { padding: 12px 14px; border: 1px solid #efc4c8; border-radius: 5px; color: #8e2730; background: var(--red-soft); font-size: 12px; }
.rollover-blocked ul { margin: 7px 0 0; padding-left: 18px; line-height: 1.5; }
.rollover-blocked p { margin: 6px 0 0; }
.rollover-form label { display: block; margin-bottom: 6px; color: #445268; font-size: 11px; font-weight: 750; }
.rollover-form input[type="text"] { width: 100%; margin-bottom: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; }
.button-danger { color: white; background: var(--red); }
.schedule-remove-row { margin-top: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #efc4c8; border-radius: 5px; background: var(--red-soft); }
.schedule-remove-row strong, .schedule-remove-row small { display: block; }
.schedule-remove-row strong { color: #8e2730; font-size: 11px; }
.schedule-remove-row small { margin-top: 2px; color: #85535a; font-size: 10px; }
.schedule-remove-row form { margin: 0; }
.rollover-policy { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rollover-policy strong, .rollover-policy span { display: block; }
.rollover-policy strong { font-size: 11px; }
.rollover-policy span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.archive-pill { display: inline-block; margin-bottom: 5px; padding: 5px 8px; border-radius: 4px; color: #77541a; background: #fff0cc; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.archive-summary { grid-template-columns: 285px minmax(0, 1fr); }
.archive-overview { overflow: hidden; }
.archive-counts { margin: 0; padding: 13px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.archive-counts div { padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #f7f9fb; }
.archive-counts dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.archive-counts dd { margin: 3px 0 0; font-size: 19px; font-weight: 800; }
.archive-export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-detail-row { margin: 10px 12px 0; padding: 12px 14px; border: 1px solid #cbd5df; border-left: 4px solid #607d96; border-radius: 5px; background: white; }
.archive-detail-row:last-child { margin-bottom: 12px; border-bottom: 1px solid #cbd5df; }
.archive-detail-row strong, .archive-detail-row span, .archive-detail-row small { display: block; }
.archive-detail-row span { margin-top: 3px; color: #445268; font-size: 12px; }
.archive-detail-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.detail-span { grid-column: 1 / -1; }

.coming-next { max-width: 610px; margin: 40px auto; text-align: center; }
.coming-next h1 { margin: 5px 0 10px; font-size: 38px; }
.coming-next > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.5; }
.coming-icon { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 28px; }
.scope-card { margin: 25px 0; padding: 20px 24px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; text-align: left; }
.scope-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.flash { width: min(800px, calc(100% - 40px)); margin: 16px auto -14px; padding: 11px 14px; border-radius: 6px; font-size: 13px; font-weight: 650; }
.flash.notice { color: var(--green); background: var(--green-soft); border: 1px solid #bfe2cf; }
.flash.alert { color: var(--red); background: var(--red-soft); border: 1px solid #efc4c8; }

.schedule-view-tabs { display: flex; gap: 4px; margin: -8px 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #e9edf2; width: fit-content; }
.schedule-view-tab { padding: 9px 15px; border-radius: 5px; color: #445268; font-size: 12px; font-weight: 750; text-decoration: none; }
.schedule-view-tab:hover { color: var(--blue); }
.schedule-view-tab.active { color: white; background: var(--blue); box-shadow: 0 1px 3px rgba(20, 55, 85, .15); }
.schedule-toolbar, .truck-print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.schedule-date-nav, .schedule-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.schedule-day-command-center, .schedule-month-command-center { margin-bottom: 18px; overflow: hidden; border: 1px solid #a9c7dc; border-top: 5px solid #236f9f; border-radius: 9px; background: #eaf1f6; box-shadow: 0 6px 18px rgba(22, 58, 87, .10); }
.schedule-day-toolbar, .schedule-month-toolbar { min-height: 82px; margin: 0; padding: 12px 15px; border-bottom: 1px solid #bfd1df; background: #f7fbfe; }
.schedule-day-heading > span, .schedule-month-heading > span { display: block; margin-bottom: 7px; color: #236f9f; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.schedule-day-command-center > .route-board-filter { margin: 12px 14px; border-color: #bfd1df; background: white; box-shadow: 0 2px 7px rgba(22, 58, 87, .05); }
.schedule-month-command-center > .month-service-picker { margin: 12px 14px; border-top: 4px solid #398c5d; border-color: #398c5d #c8d8ce #c8d8ce; box-shadow: 0 3px 10px rgba(28, 75, 50, .07); }
.schedule-month-command-center > .month-route-filter { margin: 0 14px 14px; border-color: #bfd1df; background: white; box-shadow: 0 2px 7px rgba(22, 58, 87, .05); }
.schedule-control-title { display: flex; align-items: center; gap: 9px; }
.route-board-filter > .schedule-control-title { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid #e0e7ed; }
.schedule-control-title strong, .schedule-control-title small { display: block; }
.schedule-control-title strong { color: #173751; font-size: 12px; }
.schedule-control-title small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.schedule-control-kicker { display: block; margin-bottom: 3px; color: #2f7b50; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.schedule-tool-action.is-active { border-color: var(--blue); color: white; background: var(--blue); box-shadow: 0 0 0 2px rgba(31, 105, 160, .14); }
.schedule-day-toolbar:has(.schedule-tool-action.is-active) .schedule-tool-action:not(.is-active) { border-color: var(--line); color: #445268; background: #eef1f5; box-shadow: none; }
.schedule-primary-panel { margin: -4px 0 16px; border: 2px solid var(--blue); background: white; box-shadow: 0 10px 28px rgba(15, 58, 91, .16); }
.schedule-day-command-center > .schedule-primary-panel { margin: 12px 14px 0; }
.schedule-primary-panel .schedule-primary-heading { min-height: 68px; align-items: center; border-bottom-color: #a9cde5; background: #e2f2fc; box-shadow: inset 5px 0 0 var(--blue); }
.schedule-primary-heading > div { display: flex; flex-direction: column; gap: 3px; }
.schedule-primary-heading > div > strong { font-size: 16px; }
.schedule-primary-heading .schedule-active-label { color: #116294; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.schedule-date-nav strong { min-width: 160px; text-align: center; }
.schedule-date-nav .button { min-width: 38px; padding-inline: 10px; font-size: 21px; }
.month-service-picker { margin-bottom: 12px; overflow: hidden; border: 1px solid #b9cee0; border-radius: 7px; background: white; box-shadow: 0 2px 8px rgba(15, 58, 91, .05); }
.month-service-picker-heading { padding: 11px 13px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f2f8f4; }
.month-service-picker-heading > div { display: block; }
.month-service-picker-heading strong, .month-service-picker-heading small { display: block; }
.month-service-picker-heading strong { color: #214c35; font-size: 14px; }
.month-service-picker-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.schedule-step { grid-row: 1 / 3; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 11px; font-weight: 850; }
.month-service-options { padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.month-service-option { min-height: 48px; padding: 6px 10px 6px 7px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ccd7e1; border-radius: 6px; color: #30435a; background: #f8fafc; text-align: left; cursor: pointer; }
.month-service-option:hover, .month-service-option:focus-visible { border-color: #67a5ce; background: #edf7fd; outline: none; }
.month-service-option.active { border-color: #1976b6; color: #105c8e; background: #e3f2fb; box-shadow: inset 0 0 0 1px #1976b6; }
.month-service-option > span:last-child, .month-service-option strong, .month-service-option small { display: block; }
.month-service-option strong { font-size: 11px; }
.month-service-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.month-service-icon { width: 33px; height: 33px; border-radius: 5px; display: grid; place-items: center; background: white; font-size: 19px; box-shadow: inset 0 0 0 1px #dce4eb; }
.month-service-option.active .month-service-icon { box-shadow: inset 0 0 0 1px #8bc2e3; }
.month-service-guidance { padding: 8px 13px; border-top: 1px solid #dce5ec; color: #46566a; background: #f5f9fc; font-size: 11px; }
.month-service-guidance strong { color: #163e5d; }
.month-paint-toolbar { padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #b9d8c5; background: #edf7f1; }
.month-paint-toolbar > div:nth-of-type(2) strong, .month-paint-toolbar > div:nth-of-type(2) small { display: block; }
.month-paint-toolbar > div:nth-of-type(2) strong { color: #176b43; font-size: 13px; }
.month-paint-toolbar > div:nth-of-type(2) small { margin-top: 2px; color: #53675b; font-size: 9px; }
.month-paint-actions { display: flex; gap: 8px; }
.planning-editor { border-color: #b9d4e8; box-shadow: 0 8px 24px rgba(15, 58, 91, .08); }
.visit-planner-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.service-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.service-choice-grid label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #cfd8e2; border-radius: 5px; background: white; color: #263750; font-size: 12px; font-weight: 700; cursor: pointer; }
.service-choice-grid label:has(input:checked) { border-color: #4896cc; background: #eaf5fc; color: #145f91; }
.month-planner-sheet { overflow: hidden; }
.month-print-heading { min-height: 50px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.month-print-heading strong, .month-print-heading span { display: block; }
.month-print-heading strong { font-size: 14px; }
.month-print-heading span, .month-print-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.month-grid-wrap { overflow-x: auto; }
.month-grid { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
.month-grid th, .month-grid td { height: 43px; padding: 0; border-right: 1px solid #dce2e9; border-bottom: 1px solid #dce2e9; text-align: center; vertical-align: top; }
.month-grid td { position: relative; }
.month-grid thead th { height: 38px; background: #f4f6f8; color: #34445a; font-size: 10px; }
.month-grid thead th span, .month-grid thead th small { display: block; }
.month-grid thead th small { margin-top: 2px; color: #778397; font-size: 8px; }
.month-grid .month-property-column { width: 210px; padding-left: 10px; text-align: left; }
.month-grid tbody th { width: 210px; padding: 5px 10px; background: white; text-align: left; }
.month-grid tbody th strong, .month-grid tbody th small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-grid tbody th strong { font-size: 11px; }
.month-grid tbody th small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.month-grid .weekend { background: #f8fafc; }
.month-grid td.has-visit { background: #e8f5fb; box-shadow: inset 0 0 0 1px #87bfdc; }
.month-grid td.due-unplaced { background: #fff5d8; box-shadow: inset 0 0 0 1px #d8a53c; }
.month-grid td.has-visit.due-unplaced { background: #e8f5fb; box-shadow: inset 0 0 0 1px #87bfdc; }
.month-cell-button { width: 100%; height: 100%; padding: 2px; border: 0; background: transparent; color: #11628f; cursor: pointer; }
.month-cell-button:hover, .month-cell-button:focus-visible { outline: 2px solid #1976b6; outline-offset: -2px; background: #edf7fd; }
.month-visit-button[draggable=true] { cursor: grab; }
.month-visit-button.is-dragging { opacity: .35; cursor: grabbing; }
.month-visit-button.missed-visit { color: #9b2c34; background: #fff0f1; }
.month-cell-button .missed-visit-label { padding: 1px 2px; color: white; background: #b63b46; font-size: 6px; letter-spacing: .03em; text-transform: uppercase; }
.month-grid td.is-drop-target { background: #dff2e7 !important; box-shadow: inset 0 0 0 3px #2b8a57 !important; }
.month-grid td.is-being-edited { background: #d9effc !important; box-shadow: inset 0 0 0 3px var(--blue) !important; }
.month-grid tr.is-being-edited > th { color: #105c8e; background: #d9effc; box-shadow: inset 4px 0 0 var(--blue); }
.month-grid tr.has-selected-service > th { color: #163e5d; }
.month-grid.is-service-paint-mode td.service-target:not(.has-visit) { cursor: crosshair; user-select: none; }
.month-grid td.service-target:not(.has-visit):hover { background: #eaf6fd; box-shadow: inset 0 0 0 2px #67a5ce; }
.month-grid td.is-paint-selected { background: #dff2e7 !important; box-shadow: inset 0 0 0 3px #2b8a57 !important; }
.month-grid td.is-paint-selected::after { content: "✓"; position: absolute; right: 3px; top: 2px; z-index: 2; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: #2b8a57; font-size: 9px; font-weight: 900; pointer-events: none; }
.month-grid td.is-paint-selected .month-cell-button { color: #176b43; }
.month-grid td.is-scheduling { background: #dff2e7 !important; box-shadow: inset 0 0 0 3px #2b8a57 !important; }
.month-cell-button span { display: block; font-size: 7px; font-weight: 850; line-height: 1.2; }
.month-empty-button { color: transparent; }
.month-empty-button:hover, .month-empty-button:focus-visible { color: #1976b6; }
.month-grid td.due-unplaced .month-empty-button { height: 43px; color: #875700; background: #fff5d8; }
.month-grid td.due-unplaced .month-empty-button:hover, .month-grid td.due-unplaced .month-empty-button:focus-visible { color: #875700; background: #ffedb9; }
.month-cell-visit-stack { width: 100%; height: 100%; display: flex; flex-direction: column; }
.month-cell-visit-stack .month-cell-button { min-height: 0; flex: 1; }
.month-cell-visit-stack .month-cell-button + .month-cell-button { border-top: 1px solid #87bfdc; }
.month-add-visit-button { position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; opacity: 0; color: white; background: #1976b6; font-size: 11px; line-height: 14px; cursor: pointer; }
.month-grid td:hover .month-add-visit-button, .month-add-visit-button:focus-visible { opacity: 1; }
.month-due-marker { display: flex !important; flex-direction: column; align-items: center; justify-content: center; color: #875700; font-size: 7px !important; font-weight: 900; line-height: 1.15; }
.month-due-marker b { display: block; font-size: inherit; line-height: inherit; }
.month-cell-visit-stack > .month-due-marker { min-height: 11px; flex-direction: row; gap: 2px; border-top: 1px solid #d8a53c; background: #fff5d8; }
.month-grid .month-planner-editor-row > td { height: auto; padding: 10px; border-bottom: 2px solid #8eb9d5; background: #eef6fb; text-align: left; }
.month-planner-editor-row .planning-editor { padding: 13px; border: 1px solid #a8cde4; border-radius: 6px; background: white; }
.plan-remove-form { margin-top: 14px; }
.month-print-key { display: flex; gap: 18px; padding: 8px 12px; color: var(--muted); font-size: 9px; }
.month-print-key span { display: inline-flex; align-items: center; gap: 5px; }
.month-print-key i { width: 10px; height: 10px; border: 1px solid #87bfdc; background: #e8f5fb; }
.month-print-key i.key-due { border-color: #d8a53c; background: #fff5d8; }
.route-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 12px; align-items: start; }
.route-board-filter { margin-bottom: 12px; padding: 10px 12px; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(180px, .35fr) auto auto; align-items: end; gap: 10px; border: 1px solid #b9cee0; border-radius: 6px; background: #f5f9fc; }
.month-route-filter { grid-template-columns: minmax(280px, 1fr) minmax(170px, .35fr) auto auto; }
.route-board-filter .field-group label { margin-bottom: 4px; }
.route-board-filter input, .route-board-filter select { min-height: 38px; }
.route-board-filter .button { min-height: 38px; }
.route-board-filter > span { align-self: center; min-width: 78px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; }
.route-filter-empty { margin: -3px 0 12px; min-height: 54px; border: 1px dashed var(--line); border-radius: 5px; background: white; }
.schedule-day-command-center > .route-filter-empty { margin: 0 14px 12px; }
[data-route-board-item][hidden] { display: none; }
[data-route-board-group][hidden], [data-route-board-lane][hidden] { display: none; }
[data-month-route-item][hidden] { display: none; }
.route-work-planner { margin-bottom: 14px; }
.route-work-planner-form { padding: 15px; }
.route-work-planner-form .button:disabled { opacity: .45; cursor: not-allowed; }
.route-work-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.route-property-guidance { margin: 10px 0 0; color: #40556a; font-size: 10px; font-weight: 700; }
.route-property-actions { min-height: 38px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.route-property-actions .text-button:disabled { opacity: .4; cursor: not-allowed; }
.route-property-actions span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.route-property-picker { max-height: 350px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.route-property-choice { display: grid; grid-template-columns: 28px minmax(190px, 1fr) minmax(180px, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: white; }
.route-property-choice.is-browse-only { background: #f8fafc; }
.route-property-choice:last-of-type { border-bottom: 0; }
.route-property-choice[hidden] { display: none; }
.route-property-choice > label { display: grid; place-items: center; }
.route-property-choice input { width: 17px; height: 17px; accent-color: var(--blue); }
.route-property-choice strong, .route-property-choice small { display: block; }
.route-property-choice small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.route-property-services { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.route-property-services span { padding: 3px 6px; border-radius: 999px; color: #40556a; background: #edf2f6; font-size: 8px; font-weight: 750; }
.missed-work-list { margin: 9px; overflow: hidden; border: 1px solid #e4b3b7; border-radius: 5px; background: #fff4f4; }
.due-work-list { margin: 9px; overflow: hidden; border: 1px solid #d9bd78; border-radius: 5px; background: #fff9e9; }
.due-work-list > strong, .due-work-list > small { display: block; padding-inline: 10px; }
.due-work-list > strong { padding-top: 9px; color: #795511; font-size: 11px; }
.due-work-list > small { padding-top: 2px; padding-bottom: 8px; color: #75613c; font-size: 9px; }
.due-work-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border-top: 1px solid #eadbb7; background: white; }
.due-work-item strong, .due-work-item small { display: block; }
.due-work-item small { margin-top: 3px; color: #75613c; font-size: 9px; }
.due-work-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #795511; background: #fff0be; font-size: 11px; font-weight: 900; }
.missed-work-list > strong, .missed-work-list > small { display: block; padding-inline: 10px; }
.missed-work-list > strong { padding-top: 9px; color: #9b2c34; font-size: 11px; }
.missed-work-list > small { padding-top: 2px; padding-bottom: 8px; color: #85535a; font-size: 9px; }
.missed-work-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border-top: 1px solid #ebc9cc; background: white; }
.missed-work-item strong, .missed-work-item small { display: block; }
.missed-work-item small { margin-top: 3px; color: #85535a; font-size: 9px; }
.missed-work-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: #b63b46; font-size: 11px; font-weight: 900; }
.bulk-route-assignment { min-height: 54px; margin-bottom: 12px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; border: 1px solid #b9cee0; border-radius: 6px; background: #f5f9fc; }
.schedule-day-command-center > .bulk-route-assignment { margin: 0 14px 14px; padding: 11px 12px; background: white; box-shadow: 0 2px 7px rgba(22, 58, 87, .05); }
.bulk-route-assignment > .schedule-control-title { flex: 1 0 100%; padding-bottom: 9px; border-bottom: 1px solid #e0e7ed; }
.bulk-route-assignment select { min-width: 145px; min-height: 36px; padding: 6px 8px; border: 1px solid #c5d0db; border-radius: 4px; background: white; }
.bulk-route-assignment input[type="date"] { min-height: 36px; padding: 6px 8px; border: 1px solid #c5d0db; border-radius: 4px; background: white; }
.bulk-route-assignment .button { min-height: 36px; padding: 7px 11px; }
.bulk-route-assignment .button:disabled { opacity: .45; cursor: not-allowed; }
.bulk-select-all { display: inline-flex; align-items: center; gap: 6px; color: #2e4258; font-size: 11px; font-weight: 750; }
.bulk-route-assignment > span { color: var(--muted); font-size: 10px; }
.bulk-schedule-action { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.bulk-schedule-action + .bulk-schedule-action { margin-left: 4px; }
.bulk-schedule-action label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.route-lane { min-height: 190px; border: 1px solid #cfd8e2; border-radius: 6px; background: #eef2f6; overflow: hidden; }
.unassigned-lane { background: #f8f3e8; border-color: #dfd0ad; }
.route-lane-heading { min-height: 57px; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-bottom: 1px solid #cfd8e2; background: white; }
.route-lane-heading strong, .route-lane-heading small { display: block; }
.route-lane-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.route-lane-heading .route-endpoint-summary { max-width: 340px; color: #53687e; font-size: 8px; line-height: 1.35; }
.route-lane-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; }
.route-suggestion-note { grid-column: 1 / -1; margin: 0 0 7px; color: var(--muted); font-size: 9px; }
.route-match-warning { display: block; max-width: 330px; margin-top: 5px; color: #9a4b00; font-size: 10px; font-weight: 700; }
.route-lane-actions form { margin: 0; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.route-stop-list { padding: 9px; }
.route-stop { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; padding: 10px; border: 1px solid #d7dee7; border-radius: 5px; background: white; box-shadow: 0 1px 2px rgba(20, 40, 70, .04); }
.route-stop.is-being-edited { border-color: var(--blue); background: #edf7fd; box-shadow: 0 0 0 2px rgba(31, 105, 160, .12); }
.route-stop-marker { display: grid; place-items: center; gap: 6px; cursor: pointer; }
.route-stop-selector { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.route-stop-selector:disabled { opacity: .4; cursor: not-allowed; }
.route-stop-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 10px; font-weight: 800; }
.route-stop strong, .route-stop small, .route-stop em { display: block; }
.route-stop small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.route-stop .route-stop-people { color: #385d79; font-weight: 700; }
.route-stop-checklist-status { width: fit-content; margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: #eaf4fa; color: #17577e; font-size: 13px; font-weight: 800; line-height: 1.3; }
.route-stop em { margin-top: 4px; color: #8b5a12; font-size: 9px; font-style: normal; font-weight: 750; }
.work-progress { display: inline-block; padding: 3px 6px; border-radius: 999px; background: #e8edf2; color: #415268; font-size: 8px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.work-progress-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.progress-on_site, .progress-reporting { background: #e5f1fb; color: #175a8b; }
.progress-completed { background: #e2f3e8; color: #27633d; }
.progress-follow_up, .progress-left { background: #fff0dc; color: #8b5210; }
.route-stop strong .work-progress { margin-left: 5px; vertical-align: 1px; }
.route-stop-actions select { max-width: 105px; padding: 5px; border: 1px solid #cbd5df; border-radius: 4px; font-size: 9px; }
.route-stop-actions > div { display: flex; justify-content: flex-end; gap: 3px; margin-top: 5px; }
.route-stop-actions > .route-stop-order { margin: 0 0 6px; }
.route-stop-actions form { margin: 0; }
.route-stop-actions > .text-button { display: block; margin: 6px 0 0 auto; font-size: 9px; }
.route-stop-actions > .route-stop-action-buttons { margin-top: 8px; display: grid; grid-template-columns: 1fr; gap: 5px; }
.route-stop-action-button { min-height: 29px; padding: 5px 9px; border: 1px solid #9fb8cc; border-radius: 4px; color: #185c8d; background: #edf6fc; font-size: 9px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.route-stop-action-button:hover, .route-stop-action-button:focus-visible { border-color: var(--blue); background: #dceefa; }
.route-stop-editor { margin: -1px 0 9px; border: 1px solid #b9d4e8; border-radius: 5px; background: white; }
.route-stop-editor .record-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.visit-people-form { padding: 12px; }
.visit-people-form .form-actions { margin-top: 11px; padding-top: 10px; }
.tiny-button { width: 27px; height: 24px; padding: 0; border: 1px solid #ccd5de; border-radius: 3px; background: #f3f5f7; color: #3c4b60; cursor: pointer; }
.truck-print-toolbar { max-width: 1100px; margin-inline: auto; }
.truck-sheet-picker { max-width: 1100px; margin-inline: auto; }
.truck-sheet-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 16px; background: #f3f6f9; }
.truck-sheet-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #f9fbfc; }
.truck-sheet-choice strong, .truck-sheet-choice span, .truck-sheet-choice small { display: block; }
.truck-sheet-choice span { margin-top: 4px; color: #42526a; font-size: 10px; }
.truck-sheet-choice small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.truck-sheet { max-width: 1100px; min-height: 650px; margin: 0 auto; padding: 26px; border: 1px solid #ccd4dc; background: white; box-shadow: 0 8px 28px rgba(22, 42, 64, .10); }
.truck-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 13px; border-bottom: 2px solid #26384c; }
.truck-sheet h1 { margin: 0; font-size: 22px; }
.truck-sheet header p { margin: 4px 0 0; color: #4f5e70; font-size: 11px; }
.truck-sheet header > div:last-child { text-align: right; }
.truck-sheet header span, .truck-sheet td span, .truck-sheet td strong, .truck-sheet td b { display: block; }
.truck-sheet header span { margin-bottom: 3px; font-size: 9px; }
.truck-sheet table { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; }
.truck-sheet th, .truck-sheet td { padding: 8px; border: 1px solid #aeb8c2; text-align: left; vertical-align: top; font-size: 9px; }
.truck-sheet th { background: #eef1f4; color: #34445a; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.truck-sheet th:first-child { width: 34px; }
.truck-sheet th:nth-child(2) { width: 25%; }
.truck-sheet th:nth-child(3) { width: 20%; }
.truck-sheet th:nth-child(4) { width: 25%; }
.truck-sheet td strong { margin-bottom: 4px; }
.truck-sheet td b { margin-top: 6px; color: #8c4d00; }
.truck-sheet td span { margin-bottom: 5px; }
.write-lines { height: 27px; margin-top: 5px; border-top: 1px solid #d6dce2; border-bottom: 1px solid #d6dce2; }
.truck-sheet footer { display: flex; justify-content: space-between; margin-top: 10px; color: #536174; font-size: 8px; }
.closeout-row { display: grid; grid-template-columns: minmax(175px, .8fr) minmax(260px, 1.5fr) 170px auto; gap: 15px; align-items: end; margin: 10px 12px 0; padding: 13px; border: 1px solid #cbd5df; border-radius: 5px; background: white; box-shadow: 0 2px 6px rgba(28, 52, 76, .05); }
.closeout-row:last-of-type { margin-bottom: 12px; }
.closeout-property strong, .closeout-property span { display: block; }
.closeout-property span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.closeout-services { display: flex; flex-wrap: wrap; gap: 8px; }
.closeout-services label { min-width: 135px; }
.closeout-services label span, .closeout-return label { display: block; margin-bottom: 4px; color: #42526a; font-size: 9px; font-weight: 750; }
.closeout-services select, .closeout-return input { width: 100%; padding: 7px; border: 1px solid #cbd5df; border-radius: 4px; background: white; font-size: 10px; }

.pay-heading { align-items: center; }
.pay-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pay-summary-card { padding: 14px 16px; border: 1px solid #d5dee7; border-radius: 6px; background: white; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
.pay-summary-card:hover, .pay-summary-card:focus-visible, .pay-summary-card.selected { border-color: #77a8cc; box-shadow: 0 6px 16px rgba(31, 78, 111, 0.14); transform: translateY(-1px); outline: none; }
.pay-summary-card span, .pay-summary-card strong, .pay-summary-card small { display: block; }
.pay-summary-card span { color: #4d5c70; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pay-summary-card strong { margin: 5px 0 3px; color: #17263d; font-size: 24px; }
.pay-summary-card small { color: var(--muted); font-size: 10px; }
.pay-summary-card.pending { border-color: #e7c98f; background: #fffaf0; }
.pay-detail-panel { margin-bottom: 14px; scroll-margin-top: 12px; }
.pay-detail-table td { vertical-align: top; }
.pay-detail-table td small { display: block; margin-top: 3px; color: var(--muted); }
.pay-detail-actions { display: flex; align-items: flex-start; gap: 6px; }
.pay-detail-actions form { margin: 0; }
.pay-detail-recorder { position: relative; }
.pay-detail-recorder > summary { cursor: pointer; color: var(--blue); font-weight: 800; white-space: nowrap; }
.pay-detail-recorder[open] .compact-action-form { min-width: 230px; }
.compact-action-form { display: grid; gap: 6px; min-width: 180px; margin-top: 7px; padding: 9px; border: 1px solid #cbd5df; border-radius: 5px; background: #f8fafc; }
.compact-action-form label { color: #4d5c70; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.compact-action-form input { min-width: 0; }
.pay-detail-actions .mini-void summary.ledger-action, .pay-detail-table .mini-void summary.ledger-action { margin-top: 0; }
.pay-detail-panel .mini-void .compact-action-form { display: grid; gap: 6px; min-width: 180px; }
.pay-form-grid, .rate-form-grid, .payment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(340px, .8fr); gap: 14px; align-items: start; }
.people-pay-list { display: grid; gap: 12px; padding: 12px; background: #f3f6f9; }
.person-pay-card { overflow: hidden; border: 1px solid #cbd5df; border-top: 3px solid #557c98; border-radius: 6px; background: white; box-shadow: 0 2px 6px rgba(28, 52, 76, .05); }
.person-pay-card:last-child { border-bottom: 1px solid #cbd5df; }
.person-pay-heading { min-height: 65px; padding: 12px 14px; display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; align-items: center; gap: 16px; border-bottom: 1px solid #e0e6ec; background: #f8fafc; }
.person-pay-heading strong, .person-pay-heading span { display: block; }
.person-pay-heading span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.person-pay-totals { display: flex; gap: 14px; }
.person-pay-totals span { color: #56657a; font-size: 9px; text-transform: uppercase; }
.person-pay-totals b { margin-top: 2px; color: #17263d; font-size: 13px; }
.rate-strip { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 13px; }
.rate-chip, .add-rate-button { padding: 6px 9px; border: 1px solid #c9d6e1; border-radius: 5px; background: #f3f8fc; color: #24445f; cursor: pointer; font-size: 10px; }
.rate-chip span, .rate-chip b { display: block; text-align: left; }
.rate-chip b { margin-top: 3px; font-size: 12px; }
.rate-chip.inactive { opacity: .55; }
.add-rate-button { border-style: dashed; color: var(--blue); background: white; font-weight: 750; }
.compact-pay-editor { margin: 0 14px 13px; }
.person-money-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 14px 13px; }
.payment-recorder { border: 1px solid #d5dde6; border-radius: 5px; background: #fafbfd; }
.payment-recorder[open] { grid-column: 1 / -1; }
.payment-recorder summary { padding: 10px 12px; color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; }
.payment-recorder[open] summary { border-bottom: 1px solid var(--line); }
.earning-choice-list { max-height: 170px; overflow-y: auto; border: 1px solid var(--line); border-radius: 5px; background: white; }
.earning-choice-list p { margin: 0; padding: 8px 10px; color: var(--muted); background: #f4f6f8; font-size: 9px; }
.earning-choice-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; border-top: 1px solid var(--line); }
.earning-choice-list input { width: auto; min-height: auto; }
.earning-choice-list span { font-size: 10px; }
.pay-review-list, .recent-payment-list { display: grid; gap: 8px; padding: 10px; background: #f3f6f9; }
.pay-review-list article, .recent-payment-list article { padding: 11px 12px; border: 1px solid #cbd5df; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: white; }
.pay-review-list article:last-child, .recent-payment-list article:last-child { border-bottom: 1px solid #cbd5df; }
.pay-review-list strong, .pay-review-list span, .recent-payment-list strong, .recent-payment-list span, .recent-payment-list b, .recent-payment-list small { display: block; }
.pay-review-list span, .recent-payment-list span, .recent-payment-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.pay-review-list article > div:last-child { display: flex; gap: 5px; }
.recent-payment-list article > div:last-child { text-align: right; }
.route-crew-editor { margin: 8px; padding: 10px; }
.route-crew-editor .form-actions { margin-top: 10px; padding-top: 10px; }
.route-details-editor { margin: 8px; }
.route-details-editor .record-form { padding: 12px; }
.route-default-form { padding: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-default-address { min-width: 0; margin: 0; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 76px 90px; gap: 10px; border: 1px solid #cad9e5; border-radius: 5px; background: white; }
.route-default-address legend { padding: 0 5px; color: #244968; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.route-default-address .route-street { grid-column: 1 / -1; }
.route-endpoint-group { padding: 10px; display: grid; grid-template-columns: minmax(175px, .55fr) minmax(0, 1.45fr); gap: 10px; border: 1px solid #d4dde5; border-radius: 5px; background: rgba(255, 255, 255, .7); }
.route-location-search { margin-bottom: 6px; }
.route-location-adder { margin: 12px 15px 0; border: 1px solid #c5d6e3; border-radius: 5px; background: #f7fafc; }
.route-location-adder summary { padding: 10px 12px; color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; }
.route-location-adder[open] summary { border-bottom: 1px solid #d7e1e9; }
.route-location-form { padding: 12px; display: grid; grid-template-columns: minmax(135px, .7fr) minmax(220px, 1.4fr) minmax(130px, .8fr) 65px minmax(90px, .6fr); align-items: end; gap: 9px; }
.route-location-save { grid-column: 1 / -1; min-height: 34px; display: flex; align-items: center; gap: 10px; }
.route-location-save span { color: #37607e; font-size: 10px; font-weight: 700; }
.route-custom-address { display: grid; grid-template-columns: minmax(0, 1fr) 70px 85px; gap: 9px; }
.route-custom-address[hidden] { display: none; }
.route-custom-address .route-street { grid-column: 1 / -1; }
.service-worker-assignments { padding: 0 12px 12px; }
.service-worker-assignments > strong, .service-worker-assignments > small { display: block; }
.service-worker-assignments > strong { font-size: 11px; }
.service-worker-assignments > small { margin: 2px 0 8px; color: var(--muted); font-size: 9px; }
.service-worker-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.service-worker-row > div:first-child b, .service-worker-row > div:first-child span { display: block; font-size: 9px; }
.service-worker-row > div:first-child span { margin-top: 2px; color: var(--muted); }
.service-assignment-form { display: contents; }
.service-worker-row .service-choice-grid label { padding: 5px 7px; font-size: 9px; }
.service-instruction-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.service-instruction-field label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.service-instruction-field textarea { width: 100%; padding: 7px 8px; border: 1px solid #cbd5df; border-radius: 4px; font-size: 10px; resize: vertical; }
.service-instruction-form .button { min-height: 34px; padding: 6px 9px; font-size: 9px; }
.service-worker-actions { display: flex; align-items: center; gap: 7px; }
.service-worker-actions .button { min-height: 30px; padding: 5px 8px; font-size: 9px; }
.visit-time-tracking { margin: 0 12px 12px; padding: 10px; border: 1px solid #d5dee7; border-radius: 5px; background: #f7f9fb; }
.visit-time-tracking > div:first-child strong, .visit-time-tracking > div:first-child small { display: block; }
.visit-time-tracking > div:first-child strong { font-size: 11px; }
.visit-time-tracking small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.timer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.timer-actions form { padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.timer-people { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.timer-people label { display: flex; align-items: center; gap: 5px; color: #3d4d62; font-size: 9px; }
.timer-actions .button { min-height: 30px; padding: 5px 9px; font-size: 9px; }
.actual-time-editor { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.actual-time-editor summary { cursor: pointer; color: var(--link); font-size: 10px; font-weight: 800; }
.actual-time-list { display: grid; gap: 7px; margin-top: 7px; }
.actual-time-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; align-items: end; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.actual-time-form strong { grid-column: 1 / -1; font-size: 10px; }
.actual-time-form label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.actual-time-form input { width: 100%; min-width: 0; min-height: 32px; }
.actual-time-form .button { grid-column: 1 / -1; justify-self: start; }
.mini-void summary { margin-top: 5px; color: #9b3139; font-size: 9px; cursor: pointer; }
.mini-void form { display: flex; gap: 5px; margin-top: 5px; }
.mini-void input { width: 130px; padding: 5px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; }
.worker-access-toggle > label { display: flex; align-items: center; gap: 8px; margin: 0; }
.worker-access-toggle input { width: auto; min-height: auto; }
.worker-access-toggle small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.worker-body { min-height: 100vh; background: #edf2f6; }
.worker-header { min-height: 58px; padding: 0 max(16px, calc((100% - 680px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: white; background: var(--navy); }
.worker-header > div { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.worker-wordmark { color: white; font-size: 18px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.worker-signout { padding: 6px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; color: white; background: transparent; font-size: 10px; cursor: pointer; }
.worker-shell { width: min(100% - 24px, 660px); margin: 0 auto; padding: 22px 0 60px; }
.worker-login-shell { width: 100%; max-width: none; min-height: calc(100svh - 58px); padding: 38px 18px 58px; display: grid; place-items: center; }
.worker-login-card { width: min(440px, 100%); margin: 0; padding: 32px; }
.worker-owner-link { display: block; margin-top: 18px; color: var(--blue); text-align: center; font-size: 11px; font-weight: 700; text-decoration: none; }
.worker-day-heading { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.worker-day-heading h1 { margin: 3px 0 1px; font-size: 28px; letter-spacing: -.03em; }
.worker-day-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.worker-day-heading nav { display: flex; align-items: center; gap: 6px; }
.worker-day-heading nav a { min-width: 38px; min-height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid #cbd5df; border-radius: 5px; color: #31445b; background: white; font-weight: 750; text-decoration: none; }
.worker-day-summary { margin-bottom: 13px; overflow: hidden; border: 1px solid #b9cddd; border-radius: 7px; background: white; box-shadow: 0 1px 3px rgba(20,40,70,.05); }
.worker-day-counts { padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid #dce5ec; background: #eef6fb; }
.worker-day-counts strong { color: #173651; font-size: 14px; }
.worker-day-counts span { color: #506175; font-size: 10px; font-weight: 750; }
.worker-day-steps { margin: 0; padding: 10px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; list-style: none; }
.worker-day-steps li { min-width: 0; display: flex; align-items: center; gap: 5px; color: #526174; font-size: 9px; font-weight: 750; }
.worker-day-steps b { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 9px; }
.worker-day-clear { padding: 10px 14px; display: block; color: var(--muted); font-size: 11px; }
.worker-issue-confirmation { margin-bottom: 13px; padding: 12px 14px; border: 1px solid #83bea2; border-radius: 7px; color: #174d38; background: #eaf8f1; font-size: 12px; font-weight: 800; }
.worker-issue-confirmation[hidden] { display: none; }
.worker-general-issue { margin-bottom: 13px; overflow: hidden; border: 2px solid #d39b62; border-radius: 8px; background: #fffaf4; box-shadow: 0 2px 7px rgba(58, 41, 25, .09); }
.worker-general-issue > summary { min-height: 58px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.worker-general-issue > summary::-webkit-details-marker { display: none; }
.worker-general-issue > summary strong, .worker-general-issue > summary small { display: block; }
.worker-general-issue > summary strong { color: #673b1c; font-size: 15px; }
.worker-general-issue > summary small { margin-top: 2px; color: #725843; font-size: 11px; }
.worker-general-issue-action { min-height: 40px; padding: 9px 13px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; color: white; background: #a95d2d; font-size: 11px; font-weight: 850; }
.worker-general-issue-form { margin: 0; border: 0; border-top: 1px solid #ead2b9; border-radius: 0; background: #fffaf4; }
.worker-general-issue-form select { width: 100%; min-height: 43px; padding: 8px 30px 8px 10px; border: 1px solid #c7d0db; border-radius: 5px; background: white; font-size: 13px; }
.worker-device-queue { margin-bottom: 13px; padding: 11px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #83bea2; border-radius: 7px; color: #174d38; background: #eaf8f1; box-shadow: 0 1px 3px rgba(20,40,70,.05); }
.worker-device-queue[hidden] { display: none; }
.worker-device-queue.has-error { border-color: #e1a675; color: #823b1d; background: #fff4ea; }
.worker-device-queue-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 13px; font-weight: 900; }
.worker-device-queue.has-error .worker-device-queue-icon { background: #b55b2f; }
.worker-device-queue strong, .worker-device-queue div > span { display: block; }
.worker-device-queue strong { font-size: 11px; }
.worker-device-queue div > span { margin-top: 2px; font-size: 9px; line-height: 1.35; }
.worker-device-queue button { min-height: 34px; padding: 7px 9px; border: 1px solid currentColor; border-radius: 5px; color: inherit; background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.worker-active-timer { margin-bottom: 13px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #95d3b5; border-radius: 7px; background: #ecfaf3; }
.worker-hours-card { margin-bottom: 13px; overflow: hidden; border: 1px solid #cbd8e4; border-radius: 7px; background: white; }
.worker-hours-card summary { padding: 13px 15px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style-position: inside; }
.worker-hours-card summary span { color: var(--blue); font-size: 13px; font-weight: 850; }
.worker-hours-card summary small { color: var(--muted); font-size: 10px; }
.worker-hours-form { padding: 14px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; border-top: 1px solid var(--line); background: #f7fafc; }
.worker-hours-form label { display: block; margin-bottom: 5px; color: #3f4e61; font-size: 10px; font-weight: 750; }
.worker-hours-form input:not([type="submit"]), .worker-hours-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #c7d0db; border-radius: 5px; background: white; font-size: 13px; }
.worker-hours-form .worker-hours-span { grid-column: 1 / -1; }
.worker-hours-history { padding: 11px 15px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.worker-hours-history strong { margin-bottom: 2px; font-size: 10px; text-transform: uppercase; }
.worker-hours-history span { color: var(--muted); font-size: 10px; }
.worker-active-timer span, .worker-active-timer strong, .worker-active-timer small { display: block; }
.worker-active-timer span { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.worker-active-timer strong { margin: 3px 0; }
.worker-active-timer small { color: var(--muted); }
.worker-finish-link { min-height: 38px; padding: 9px 12px; display: inline-flex; align-items: center; border-radius: 5px; color: white; background: var(--green); font-size: 11px; font-weight: 800; text-decoration: none; }
.worker-visit-list { display: grid; gap: 13px; }
.worker-visit-card { overflow: hidden; border: 1px solid #d3dbe4; border-radius: 7px; background: white; box-shadow: 0 1px 3px rgba(20,40,70,.05); }
.worker-visit-card > header { padding: 15px; border-bottom: 1px solid var(--line); }
.worker-visit-card > header strong { display: block; }
.worker-stop-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.worker-stop-kicker span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.worker-stop-kicker span:last-child { overflow: hidden; color: #64748a; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.worker-visit-card > header strong { margin: 4px 0; font-size: 18px; }
.worker-visit-card address { color: #445268; font-size: 13px; font-style: normal; line-height: 1.4; }
.worker-directions-link { min-height: 34px; margin-top: 9px; padding: 7px 10px; display: inline-flex; align-items: center; border: 1px solid #b9c9d8; border-radius: 5px; color: var(--blue); background: #f7fafc; font-size: 11px; font-weight: 800; text-decoration: none; }
.worker-crew-label { margin-top: 9px; display: block; color: var(--muted); font-size: 10px; }
.worker-service-list { padding: 4px 15px; }
.worker-service-report { padding: 7px 0; border-bottom: 1px solid #e9edf1; }
.worker-service-report:last-child { border-bottom: 0; }
.worker-service-report.has-issue { margin-inline: -15px; padding-inline: 15px; background: #fff8f2; }
.worker-service-summary { min-height: 36px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.worker-service-list strong { font-size: 13px; }
.worker-service-list small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.worker-report-recap { margin: 2px 0 7px 17px; color: var(--muted); font-size: 10px; }
.worker-report-recap > span { display: block; }
.worker-report-recap p { margin: 5px 0; color: #344154; font-size: 12px; }
.worker-service-instruction { margin: 1px 0 7px 17px; padding: 7px 9px; border-left: 3px solid #8fb6d3; color: #344154; background: #f4f8fb; font-size: 11px; }
.worker-service-instruction strong { display: block; margin-bottom: 2px; color: var(--blue); font-size: 8px; text-transform: uppercase; }
.worker-service-instruction p { margin: 0; line-height: 1.4; }
.issue-flag { display: block; margin-top: 6px; color: #a13d18; font-size: 11px !important; text-transform: none !important; }
.worker-report-editor { margin: 3px 0 4px 17px; }
.worker-report-editor > summary { color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; }
.worker-report-form { margin-top: 9px; padding: 12px; border: 1px solid #cbd9e5; border-radius: 6px; background: #f7fafc; }
.worker-report-form > label { display: block; margin: 11px 0 5px; color: #3f4e61; font-size: 10px; font-weight: 750; }
.worker-report-form textarea { width: 100%; padding: 9px; border: 1px solid #c7d0db; border-radius: 5px; background: white; font-size: 13px; }
.worker-outcome-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.worker-outcome-options label { min-height: 40px; padding: 8px; display: flex; align-items: center; gap: 7px; border: 1px solid #cbd5df; border-radius: 5px; background: white; font-size: 11px; font-weight: 700; }
.worker-outcome-options input { flex: 0 0 auto; }
.worker-issue-box { margin-top: 11px; padding: 10px; border: 1px solid #efc49e; border-radius: 5px; background: #fff7ee; }
.worker-issue-box > label { display: flex; align-items: center; gap: 7px; color: #923f18; font-size: 11px; font-weight: 800; }
.worker-issue-box textarea { margin-top: 8px; }
.worker-media-upload { margin-top: 12px; }
.worker-media-heading { display: block; margin-bottom: 6px; color: #3f4e61; font-size: 10px; font-weight: 750; }
.worker-media-heading small { color: var(--muted); font-size: 9px; font-weight: 600; }
.worker-media-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.worker-camera-intro { min-height: 62px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #a9bfd0; border-radius: 6px; color: #174e77; background: white; }
.worker-media-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 22px; font-weight: 500; }
.worker-camera-intro strong, .worker-camera-intro small { display: block; }
.worker-camera-intro strong { font-size: 12px; }
.worker-camera-intro small { margin-top: 2px; color: #607186; font-size: 9px; font-weight: 600; text-transform: none; }
.worker-camera-open, .worker-camera-photo, .worker-camera-record, .worker-camera-stop, .worker-camera-close { min-height: 38px; padding: 8px 10px; border: 1px solid #8eb1ca; border-radius: 5px; color: #154d76; background: #eef7fd; font-size: 10px; font-weight: 800; cursor: pointer; }
.worker-camera-message { margin-top: 6px; padding: 7px 9px; display: block; border-radius: 4px; color: #245b44; background: #edf8f2; font-size: 10px; }
.worker-camera-message.has-error { color: #923f18; background: #fff3eb; }
.worker-camera-stage { overflow: hidden; border: 1px solid #9eb5c8; border-radius: 6px; background: #172635; }
.worker-camera-stage > video { width: 100%; max-height: 360px; display: block; object-fit: cover; background: #0f1720; }
.worker-camera-controls { padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; background: white; }
.worker-camera-photo { color: white; border-color: var(--green); background: var(--green); }
.worker-camera-record { color: white; border-color: var(--red); background: var(--red); }
.worker-camera-stop { grid-column: 1 / -1; color: white; border-color: var(--red); background: var(--red); }
.worker-camera-close { grid-column: 1 / -1; color: #45566a; border-color: #c4ced7; background: #f4f6f8; }
.worker-camera-status { padding: 7px 9px; display: block; color: white; font-size: 10px; text-align: center; }
.worker-media-heading small { text-transform: none; }
.worker-media-selection { margin-top: 7px; padding: 8px; border: 1px solid #a8cbb9; border-radius: 5px; background: #f0faf5; }
.worker-media-selection > strong { display: block; margin-bottom: 7px; font-size: 10px; }
.worker-media-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.worker-media-preview-item { width: 92px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #cbd5df; border-radius: 4px; background: white; }
.worker-media-preview-item img, .worker-media-preview-item video { width: 100%; height: 68px; display: block; object-fit: cover; background: #27384b; }
.worker-media-preview-item figcaption { padding: 4px; display: grid; gap: 3px; color: #526174; font-size: 8px; }
.worker-media-preview-item button { min-height: 28px; padding: 4px; border: 1px solid #d3a69a; border-radius: 3px; color: #8d3424; background: #fff4f0; font-size: 8px; font-weight: 800; cursor: pointer; }
.upload-help { margin: 5px 0 11px; display: block; color: var(--muted); font-size: 9px; line-height: 1.35; text-transform: none !important; }
.worker-report-send-status { margin: 8px 0; padding: 8px 9px; display: block; border: 1px solid #9bc8af; border-radius: 5px; color: #1d5a40; background: #ecf8f2; font-size: 10px; font-weight: 750; line-height: 1.35; text-align: center; }
.worker-report-send-status[hidden] { display: none; }
.worker-report-send-status.has-error { border-color: #e3b18b; color: #8d3e1e; background: #fff4eb; }
.worker-leave-warning { display: block; margin-bottom: 8px; color: #a13d18; font-size: 11px; text-align: center; }
.worker-leave-anyway { min-height: 40px; padding: 8px; border: 1px solid #c87955; border-radius: 5px; color: #8f3d1c; background: #fff5ee; font-weight: 800; cursor: pointer; }
.worker-note { margin: 0 15px 10px; padding: 10px; border-radius: 5px; color: #594213; background: var(--amber-soft); font-size: 12px; }
.worker-note strong { display: block; margin-bottom: 3px; font-size: 9px; text-transform: uppercase; }
.worker-note p { margin: 0; line-height: 1.4; }
.worker-contact-card { margin: 0 15px 10px; padding: 10px; border: 1px solid #cdd9e3; border-radius: 5px; background: #f7fafc; }
.worker-contact-card > strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.worker-contact-card div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: 11px; }
.worker-contact-card div + div { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.worker-contact-card span { width: 100%; color: var(--ink); font-weight: 750; }
.worker-contact-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.worker-visit-card > footer { padding: 12px 15px; border-top: 1px solid var(--line); background: #f8fafc; }
.worker-timing-form { display: grid; gap: 8px; }
.worker-timing-help { margin: 0; text-align: center; }
.worker-timing-help strong, .worker-timing-help span { display: block; }
.worker-timing-help strong { color: #344154; font-size: 11px; }
.worker-timing-help span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.worker-team-option { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #cbd7e1; border-radius: 5px; color: #344154; background: white; font-size: 11px; font-weight: 750; }
.worker-team-option input { flex: 0 0 auto; }
.worker-start-button, .worker-stop-button, .worker-disabled-button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 5px; color: white; font-weight: 800; cursor: pointer; }
.worker-start-button { background: var(--green); }
.worker-stop-button { background: var(--red); }
.worker-disabled-button { color: #7b8795; background: #e2e7ec; cursor: not-allowed; }
.worker-finished-label { display: block; padding: 9px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.worker-empty { min-height: 180px; padding: 20px; display: grid; place-content: center; gap: 4px; border: 1px dashed #bdc8d3; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.6); text-align: center; }
.worker-empty strong { color: var(--ink); }
.field-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-top: 12px; }
.field-media-grid.compact { grid-template-columns: repeat(auto-fill, minmax(95px, 135px)); gap: 6px; }
.field-media-item { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d6dee7; border-radius: 5px; background: #f4f6f8; }
.field-media-item img, .field-media-item video { width: 100%; height: 120px; display: block; object-fit: cover; background: #182331; }
.field-media-grid.compact .field-media-item img, .field-media-grid.compact .field-media-item video { height: 82px; }
.field-media-item figcaption { padding: 5px 7px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.issue-list { max-width: 1050px; }
.issue-card { overflow: hidden; }
.issue-card { --section-accent: #bc6e30; --section-heading: #fff5eb; }
.issue-card.acknowledged { --section-accent: #347eb1; --section-heading: #eef5fb; }
.issue-card.resolved { --section-accent: #398c5d; --section-heading: #edf7f1; }
.issue-card > header { padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: var(--section-heading); }
.issue-card h2 { margin: 4px 0; font-size: 18px; }
.issue-card header p { margin: 0; color: var(--muted); font-size: 11px; }
.issue-state { color: #a13d18; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.issue-card.acknowledged .issue-state { color: var(--blue); }
.issue-card.resolved .issue-state { color: var(--green); }
.issue-body { padding: 15px 16px; }
.issue-report > strong { font-size: 14px; }
.issue-report p { margin: 7px 0; color: #39485b; }
.issue-report small { color: var(--muted); }
.issue-contact { margin-top: 11px; padding: 9px 11px; border-left: 3px solid #e2a36b; color: #5e492f; background: #fff8ef; font-size: 10px; }
.issue-contact span, .issue-contact strong { display: block; }
.issue-contact span { margin-bottom: 2px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.issue-contact a { color: var(--blue); }
.property-open-issues { margin: 0 16px 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; border: 1px solid #ecc9a7; border-radius: 6px; color: #743d17; background: #fff8ee; font-size: 11px; }
.property-open-issues strong { margin-right: 5px; }
.property-open-issues a { color: #155788; font-weight: 750; }
.issue-actions { padding: 12px 16px; display: grid; grid-template-columns: 170px minmax(260px, 1fr) auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); background: #f8fafc; }
.issue-actions label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.issue-actions select, .issue-actions input { width: 100%; min-height: 39px; padding: 8px; border: 1px solid #cbd5df; border-radius: 5px; background: white; }
.property-field-reports { grid-column: 1 / -1; padding-top: 8px; display: grid; gap: 7px; border-top: 1px dashed #d9e0e7; }
.property-field-reports section > strong { font-size: 10px; }
.property-field-reports p { margin: 4px 0; color: #455366; font-size: 10px; }
.closeout-field-note { margin-top: 5px; display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.closeout-media-link { margin-top: 4px; display: inline-block; font-size: 9px; }
.pay-run-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, .7fr); gap: 14px; align-items: start; }
.pay-run-builder { position: sticky; top: 16px; }
.pay-run-builder .field-group { margin-bottom: 14px; }
.compact-form-grid { gap: 10px; }
.pay-run-list { display: grid; gap: 8px; padding: 10px; background: #f3f6f9; }
.pay-run-row { min-height: 70px; padding: 12px 14px; display: grid; grid-template-columns: minmax(180px, 1fr) auto 90px 90px 15px; align-items: center; gap: 12px; border: 1px solid #cbd5df; border-radius: 5px; color: inherit; background: white; text-decoration: none; }
.pay-run-row:last-child { border-bottom: 1px solid #cbd5df; }
.pay-run-row:hover { background: #f8fafc; }
.pay-run-row strong, .pay-run-row span, .pay-run-row small, .pay-run-row b { display: block; }
.pay-run-row span, .pay-run-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.pay-run-sheet { max-width: 1100px; margin: 0 auto; padding: 22px; border: 1px solid #ccd4dc; background: white; box-shadow: var(--shadow); }
.pay-run-sheet > header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 2px solid #26384c; }
.pay-run-sheet > header strong, .pay-run-sheet > header span { display: block; }
.pay-run-sheet > header h1 { margin: 3px 0; font-size: 24px; }
.pay-run-sheet > header span { color: var(--muted); font-size: 11px; }
.pay-run-sheet dl { display: flex; gap: 10px; margin: 0; }
.pay-run-sheet dl div { min-width: 100px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; }
.pay-run-sheet dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.pay-run-sheet dd { margin: 3px 0 0; font-size: 17px; font-weight: 800; }
.pay-run-person { margin-top: 16px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.pay-run-person-heading { padding: 9px 11px; display: grid; grid-template-columns: 1fr 110px 110px; gap: 12px; align-items: center; background: #edf5fb; }
.pay-run-person-heading h2 { margin: 0; font-size: 16px; }
.pay-run-person-heading span, .pay-run-person-heading small, .pay-run-person-heading b { display: block; }
.pay-run-person-heading span, .pay-run-person-heading small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.pay-run-person table { width: 100%; border-collapse: collapse; }
.pay-run-person th, .pay-run-person td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; font-size: 10px; }
.pay-run-person th { color: #4b596c; background: #f8f9fb; font-size: 8px; text-transform: uppercase; }
.run-payment { border-top: 1px solid var(--line); background: #fbfcfd; }
.run-payment summary { padding: 9px 11px; color: var(--blue); font-size: 10px; font-weight: 750; cursor: pointer; }
.pay-run-sheet > footer { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 8px; }

.brand-landscape { pointer-events: none; }
.brand-map-line { fill: none; stroke: rgba(89, 177, 235, .17); stroke-width: 3; }
.brand-route-line { fill: none; stroke: #229cff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 10; }
.brand-pin { fill: #0f7fd1; stroke: #62beff; stroke-width: 2; }
.brand-pin path + path { fill: white; stroke: none; }
.pin-one { transform: translate(225px, 105px); }
.pin-two { transform: translate(614px, 90px); }
.brand-trees { fill: #17694d; stroke: #2a9165; stroke-width: 3; }
.brand-house { fill: #164f70; stroke: #3486ae; stroke-width: 4; stroke-linejoin: round; }
.brand-house path:nth-child(n+3) { fill: #f6c95e; stroke: #c99d3d; stroke-width: 2; }
.brand-lawn { fill: #1c704d; opacity: .9; }
.brand-pool { fill: #0e7da9; stroke: #32a4ce; stroke-width: 4; opacity: .88; }

.dashboard-summary { grid-template-columns: 1fr; gap: 16px; }
.dashboard-brand-hero { position: relative; min-height: 185px; overflow: hidden; padding: 27px 34px; display: grid; grid-template-columns: 280px minmax(300px, 1fr) 125px; align-items: center; border: 1px solid #0e4b75; border-radius: 13px; color: white; background: linear-gradient(118deg, #062d4d 0%, #083b64 58%, #075779 100%); box-shadow: 0 14px 33px rgba(7, 45, 76, .17); }
.dashboard-brand-hero .gilles-lockup { position: relative; z-index: 2; }
.dashboard-brand-hero .gilles-lockup > strong { font-size: 60px; }
.dashboard-brand-hero .welcome-block { position: relative; z-index: 2; align-self: center; padding-left: 16px; }
.dashboard-brand-hero .welcome-block h1 { color: white; font-size: clamp(32px, 3.5vw, 48px); }
.dashboard-brand-hero .welcome-block p { color: #d9eaf4; font-size: 16px; }
.dashboard-brand-hero > time { position: relative; z-index: 2; align-self: start; color: #c6dce9; text-align: right; font-size: 11px; }
.dashboard-landscape { position: absolute; right: 0; bottom: -22px; width: 59%; height: 210px; opacity: .72; }
.dashboard-brand-hero .welcome-block, .dashboard-brand-hero > time { text-shadow: 0 1px 7px #062947; }
.dashboard-summary .metrics-grid { position: relative; z-index: 3; margin: -2px 3px 0; }
.metric-card { min-height: 106px; padding: 15px 17px; border-radius: 11px; box-shadow: var(--shadow); }
.metric-card small { font-size: 12px; }
.metric-card strong { font-size: 26px; }
.metric-icon { width: 49px; height: 49px; flex-basis: 49px; border-radius: 50%; }

.branded-page-hero { position: relative; min-height: 164px; overflow: hidden; margin-bottom: 0; padding: 27px 32px; align-items: center; border: 1px solid #0d4f79; border-radius: 13px 13px 0 0; color: white; background: linear-gradient(118deg, #062d4d, #083e68 65%, #075979); box-shadow: 0 12px 28px rgba(7, 45, 76, .15); }
.branded-page-hero > div { position: relative; z-index: 2; }
.branded-page-hero .eyebrow { color: #8ed0ff; }
.branded-page-hero h1 { color: white; font-size: clamp(31px, 4vw, 47px); }
.branded-page-hero p:not(.eyebrow) { margin: 0; color: #d6e8f3; font-size: 15px; }
.schedule-landscape { position: absolute; right: -25px; bottom: -32px; width: 58%; height: 200px; opacity: .68; }
.branded-page-hero + .schedule-view-tabs { position: relative; z-index: 4; margin: -1px 0 20px; border-color: #bacbd8; border-radius: 0 0 9px 9px; box-shadow: 0 6px 14px rgba(7, 45, 76, .08); }
.schedule-view-tabs { background: white; }
.schedule-view-tab { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; }

.branded-customer-hero { position: relative; overflow: hidden; padding: 22px 26px; border: 1px solid #0d4f79; border-radius: 13px; color: white; background: linear-gradient(118deg, #062d4d, #083e68 66%, #075979); box-shadow: 0 12px 28px rgba(7, 45, 76, .15); }
.branded-customer-hero > *:not(.customer-landscape) { position: relative; z-index: 2; }
.customer-landscape { position: absolute; z-index: 1; right: -30px; bottom: -65px; width: 55%; height: 230px; opacity: .5; }
.branded-customer-hero .customer-heading-main { flex: 1; }
.branded-customer-hero .customer-identity .eyebrow { color: #8ed0ff; }
.branded-customer-hero .customer-identity h1 { color: white; font-size: 38px; }
.customer-name-line { display: flex; align-items: center; gap: 8px; }
.branded-customer-hero .customer-identity .subdued { color: #d7e8f2; }
.branded-customer-hero .customer-identity a { color: white; }
.customer-active-badge { display: inline-flex; padding: 5px 9px; border: 1px solid #67ce73; border-radius: 999px; color: #80e28b; font-family: Inter, ui-sans-serif, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.branded-customer-hero .customer-owner-notes { border-left: 0; background: rgba(255, 255, 255, .12); color: #e8f3f8; backdrop-filter: blur(4px); }
.branded-customer-hero .customer-owner-notes .text-link { color: #9fd8ff; }
.branded-customer-hero .balance-block { border-color: rgba(117, 211, 150, .45); color: white; background: rgba(17, 111, 74, .76); }
.branded-customer-hero .balance-block span, .branded-customer-hero .balance-block small { color: #d8f3e1; }
.branded-customer-hero .heading-actions .button-muted { border-color: rgba(255,255,255,.36); color: white; background: rgba(255,255,255,.12); }
.branded-customer-hero .heading-actions .button-primary { box-shadow: none; }
.branded-customer-hero .customer-heading-actions { border-top-color: rgba(255,255,255,.18); background: rgba(3, 35, 60, .28); }
.customer-workspace-section > .panel-heading { min-height: 68px; }
.property-card { border-radius: 9px; }

.owner-workspace > .page-heading:not(.branded-page-hero):not(.branded-customer-hero) { padding: 18px 21px; border-left: 6px solid var(--blue); border-radius: 9px; background: white; box-shadow: var(--shadow); }

.invoice-review-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr); gap: 16px; align-items: start; }
.invoice-review-form, .invoice-ledger-guide, .invoice-preview-panel, .invoice-history-panel { min-width: 0; overflow: hidden; }
.invoice-form { padding: 18px 20px 20px; }
.invoice-form .form-grid { margin: 0; }
.invoice-form-alert { margin: 15px 20px 0; padding: 11px 14px; border: 1px solid #e7a391; border-radius: 7px; background: #fff4ef; color: #8c321e; font-weight: 700; }
.invoice-exclusion-warning { display: grid; gap: 4px; margin: 14px 18px 0; padding: 12px 14px; border: 1px solid #e2c377; border-radius: 6px; background: #fff9ec; color: #68440d; font-size: 13px; }
.invoice-exclusion-confirm { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding: 8px 0; color: #68440d; font-size: 13px; font-weight: 700; }
.invoice-review-actions { justify-content: flex-end; }
.invoice-guide-body { padding: 17px 20px 20px; }
.invoice-guide-body p { margin: 0 0 15px; color: var(--muted); line-height: 1.5; }
.invoice-guide-body .button { display: inline-flex; }
.invoice-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.invoice-guide-actions .text-link { padding: 8px 0; }
.invoice-guide-body .invoice-revision-note { margin: 16px 0 0; color: #8a5c17; font-weight: 700; }
.invoice-preview-panel { margin-top: 18px; }
.invoice-preview-count { align-self: center; padding: 5px 9px; border-radius: 20px; background: #e6eef5; color: #274762; font-size: 12px; font-weight: 800; }
.invoice-preview-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 15px 18px; background: #f4f8fa; border-bottom: 1px solid var(--line); }
.invoice-preview-summary > div { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #d9e3eb; border-radius: 7px; background: white; }
.invoice-preview-summary small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.invoice-preview-summary strong { font-size: 23px; color: #142d42; }
.invoice-preview-summary .invoice-preview-due { border-color: #a3ccae; background: #f1faf3; }
.invoice-preview-summary .invoice-preview-due strong { color: #12643b; }
.invoice-lines-table { margin: 0; }
.invoice-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.invoice-toolbar > div { display: flex; gap: 8px; }
.invoice-sheet { max-width: 820px; margin: 0 auto 35px; padding: 42px 48px 32px; border: 1px solid #cbd8df; border-radius: 7px; background: white; box-shadow: var(--shadow); color: #162e40; }
.invoice-sheet-header { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 22px; border-bottom: 3px solid #2c6e8e; }
.invoice-wordmark { font-size: 11px; font-weight: 900; color: #237094; letter-spacing: .13em; }
.invoice-sheet-header h1 { margin: 8px 0 4px; font-size: 39px; line-height: 1; }
.invoice-sheet-header p { margin: 0; color: #557084; font-weight: 700; }
.invoice-sheet-meta { display: grid; gap: 9px; text-align: right; }
.invoice-sheet-meta div { display: grid; gap: 2px; }
.invoice-sheet-meta span, .invoice-parties small { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #657d8c; text-transform: uppercase; }
.invoice-sheet-meta strong { font-size: 13px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 25px 0; }
.invoice-parties > div { display: grid; align-content: start; gap: 5px; }
.invoice-parties strong { font-size: 18px; }
.invoice-parties span { white-space: pre-line; color: #405b6d; line-height: 1.45; }
.invoice-period-label { padding: 11px 14px; border: 1px solid #d9e5eb; border-radius: 5px 5px 0 0; background: #f1f6f8; font-size: 12px; font-weight: 800; }
.invoice-print-table { width: 100%; border-collapse: collapse; }
.invoice-print-table th { padding: 10px 9px; text-align: left; color: #516d7e; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #cddce3; }
.invoice-print-table td { padding: 11px 9px; vertical-align: top; font-size: 12px; border-bottom: 1px solid #e1e8ec; }
.invoice-print-table th:last-child, .invoice-print-table td:last-child { text-align: right; white-space: nowrap; }
.invoice-opening-row { background: #fafcfd; font-weight: 800; }
.invoice-total { display: flex; justify-content: flex-end; align-items: center; gap: 28px; padding: 21px 8px 15px; }
.invoice-total span { font-size: 13px; font-weight: 800; color: #3e5b6c; }
.invoice-total strong { font-size: 27px; color: #125f3c; }
.invoice-memo { margin-top: 20px; padding: 14px 16px; border-left: 3px solid #2c6e8e; background: #f3f7f9; }
.invoice-memo strong { display: block; margin-bottom: 5px; }
.invoice-memo p { margin: 0; }
.invoice-footer { margin-top: 35px; padding-top: 11px; border-top: 1px solid #dae4e9; color: #687d88; font-size: 10px; }

@page invoice { size: letter portrait; margin: .55in; }

@media print {
  @page { size: letter landscape; margin: .35in; }
  html, body { background: white; }
  .brand-landscape { display: none !important; }
  .app-header, .archive-banner, .flash, .no-print { display: none !important; }
  .print-only { display: inline; }
  .all-truck-sheets.print-only { display: block; }
  .all-truck-sheets .truck-sheet { break-after: page; }
  .all-truck-sheets .truck-sheet:last-child { break-after: auto; }
  .page-shell { width: 100%; margin: 0; padding: 0; }
  .panel, .truck-sheet, .owner-workspace .panel:not(.inline-editor) { border: 0; box-shadow: none; }
  .month-planner-sheet { margin: 0; overflow: visible; }
  .pay-run-sheet { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .pay-run-person { break-inside: avoid; }
  .month-print-heading { height: .36in; min-height: 0; padding: 0 0 .08in; }
  .month-print-heading strong { font-size: 10pt; }
  .month-print-heading span, .month-print-heading small { font-size: 7pt; }
  .month-grid-wrap { overflow: visible; }
  .month-grid { min-width: 0; table-layout: fixed; }
  .month-grid thead { display: table-header-group; }
  .month-grid tr { break-inside: avoid; }
  .month-grid th, .month-grid td { height: .28in; border-color: #89939e; }
  .month-grid td.due-unplaced .month-empty-button { height: .28in; }
  .month-grid thead th { height: .25in; font-size: 6.5pt; }
  .month-grid thead th small { font-size: 5pt; }
  .month-grid .month-property-column, .month-grid tbody th { width: 1.9in; }
  .month-grid tbody th { padding: .03in .05in; }
  .month-grid tbody th strong { font-size: 6.5pt; }
  .month-grid tbody th small { margin-top: 1px; font-size: 5.5pt; }
  .month-cell-button span { font-size: 4.5pt; }
  .month-due-marker { font-size: 4.5pt !important; }
  .month-print-key { padding: .06in 0 0; font-size: 5.5pt; }
  .truck-sheet { max-width: none; min-height: 0; margin: 0; padding: 0; }
  .truck-sheet header { padding-bottom: .1in; }
  .truck-sheet h1 { font-size: 16pt; }
  .truck-sheet table { margin-top: .08in; }
  .truck-sheet th, .truck-sheet td { padding: .07in; font-size: 7pt; }
  .truck-sheet th { font-size: 6pt; }
  .truck-sheet tr { break-inside: avoid; }
  .invoice-sheet { page: invoice; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .invoice-sheet-header, .invoice-parties, .invoice-total { break-inside: avoid; }
  .invoice-print-table thead { display: table-header-group; }
  .invoice-print-table tr { break-inside: avoid; }
}

@media (max-width: 1280px) {
  .dashboard-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .dashboard-summary > .dashboard-brand-hero { grid-column: 1 / -1; }
  .dashboard-summary > .welcome-block { grid-column: 1; grid-row: 1; }
  .dashboard-summary > .metrics-grid { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-summary > time { grid-column: 2; grid-row: 1; }
}

@media (max-width: 1200px) {
  .header-bar { flex-wrap: wrap; padding-top: 7px; }
  .header-bar > .brand-mark { margin-right: auto; }
  .primary-nav { order: 5; width: 100%; min-height: 46px; }
  .global-search { margin-left: 0; width: min(360px, 36vw); }
  .dashboard-brand-hero { grid-template-columns: 235px minmax(260px, 1fr) auto; }
  .dashboard-landscape { width: 64%; }
}

@media (max-width: 1100px) {
  .property-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-detail-grid .property-visit-history { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .work-panel > .panel-heading { flex-wrap: wrap; }
  .dashboard-day-nav { margin-left: auto; }
  .invoice-review-layout { grid-template-columns: 1fr; }
  .invoice-preview-summary { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary > time { display: none; }
  .customer-property-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-property-contacts { grid-column: 1 / -1; }
  .customer-heading-main { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-heading .customer-owner-notes { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-layout, .two-column, .approval-layout, .detail-grid, .accounts-layout, .export-grid, .period-layout, .pay-layout, .pay-run-layout { grid-template-columns: 1fr; }
  .pay-run-builder { position: static; }
  .pay-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closeout-row { grid-template-columns: 1fr 1fr; }
  .truck-sheet-picker-grid { grid-template-columns: 1fr; }
  .account-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-filter-fields .field-group:last-child { grid-column: 1 / -1; }
  .money-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-pipeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-card { min-height: 0; }
  .export-status, .recovery-readiness { grid-template-columns: 1fr; gap: 14px; }
  .archive-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .context-panel { position: static; }
  .access-experience { grid-template-columns: 1fr; max-width: 680px; }
  .access-brand-panel { min-height: 310px; padding: 30px 34px; }
  .access-brand-panel .brand-mark { padding-bottom: 17px; }
  .access-brand-panel .gilles-lockup { margin-top: 18px; }
  .access-brand-panel .gilles-lockup > strong { font-size: 54px; }
  .access-brand-message { margin-top: 25px; }
  .access-landscape { right: -45px; bottom: -50px; width: 570px; opacity: .62; }
  .access-form-panel { padding: 38px 42px 0; }
  .access-switch { margin-inline: -42px; padding-inline: 42px; }
  .dashboard-brand-hero { grid-template-columns: 180px minmax(0, 1fr); min-height: 165px; }
  .dashboard-brand-hero .gilles-lockup > strong { font-size: 48px; }
  .dashboard-brand-hero > time { display: none; }
  .dashboard-landscape { width: 70%; opacity: .5; }
}

@media (max-width: 640px) {
  .header-bar { padding: 0 9px; flex-wrap: wrap; gap: 6px; }
  .global-search input, .period-picker select, .period-submit, .header-action { min-height: 36px; }
  .guest-body .header-bar { min-height: 50px; padding: 0 18px; }
  .guest-body .app-wordmark { font-size: 18px; }
  .page-shell.guest-shell, .worker-login-shell { width: 100%; min-height: calc(100svh - 62px); padding: 14px 10px 28px; place-items: start center; }
  .access-card { border-radius: 10px; box-shadow: 0 10px 28px rgba(17, 42, 70, .1); }
  .login-panel, .worker-login-card { padding: 0; }
  .access-card h1 { font-size: clamp(25px, 7.4vw, 29px); }
  .login-form, .worker-login-form { margin-top: 24px; }
  .access-switch { margin: 24px -20px 0; padding: 16px 20px; }
  .account-entry-actions, .account-activity-toolbar { align-items: stretch; flex-direction: column; }
  .text-button, .add-rate-button, .ledger-action { min-height: 36px; padding-block: 8px; }
  .account-entry-actions .text-link, .account-activity-toolbar span { margin-left: 0; }
  .account-activity-toolbar select { min-width: 0; width: 100%; }
  .customer-charge-property-heading { align-items: flex-start; }
  .global-search { order: 2; width: 100%; padding-bottom: 7px; }
  .settings-link { margin-left: auto; }
  .period-picker { order: 1; margin-left: auto; }
  .archive-banner { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; padding-inline: 12px; }
  .primary-nav a { padding-inline: 10px; }
  .primary-nav a { min-width: max-content; }
  .primary-nav .nav-icon { width: 16px; height: 16px; }
  .header-bar > .brand-mark { order: 0; }
  .header-bar > .brand-mark.is-compact > span { font-size: 18px; }
  .guest-custom-label { font-size: 9px; }
  .global-search { order: 2; flex: 1 1 100%; width: 100%; margin-left: 0; padding-bottom: 0; }
  .period-picker, .header-bar > form.button_to { order: 4; }
  .page-shell { width: min(100% - 24px, 1460px); padding-top: 24px; }
  .people-pay-list, .import-row-list { gap: 8px; padding: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .branded-page-hero { min-height: 145px; padding: 22px 20px; }
  .schedule-landscape { right: -90px; width: 90%; opacity: .35; }
  .branded-customer-hero { padding: 16px; }
  .customer-landscape { width: 100%; opacity: .27; }
  .dashboard-brand-hero { min-height: 210px; padding: 20px; display: block; }
  .dashboard-brand-hero .gilles-lockup > span { font-size: 9px; }
  .dashboard-brand-hero .gilles-lockup > strong { font-size: 47px; }
  .dashboard-brand-hero .welcome-block { margin-top: 25px; padding-left: 0; }
  .dashboard-brand-hero .welcome-block h1 { font-size: 31px; }
  .dashboard-brand-hero .welcome-block p { font-size: 13px; }
  .dashboard-landscape { right: -90px; width: 115%; opacity: .42; }
  .access-brand-panel { min-height: 235px; padding: 22px 20px; }
  .access-brand-panel .brand-mark { padding-bottom: 12px; }
  .access-brand-panel .brand-mark > span { font-size: 22px; }
  .access-brand-panel .brand-mark svg { width: 38px; height: 38px; }
  .access-brand-panel .gilles-lockup { margin-top: 13px; }
  .access-brand-panel .gilles-lockup > span { font-size: 8px; }
  .access-brand-panel .gilles-lockup > strong { font-size: 46px; }
  .access-brand-message { margin-top: 19px; }
  .access-brand-message > strong { font-size: 19px; }
  .access-brand-message p { display: none; }
  .access-landscape { right: -115px; bottom: -70px; width: 540px; opacity: .55; }
  .access-form-panel { padding: 28px 20px 0; }
  .access-form-heading h1 { font-size: 30px; }
  .page-heading > .button, .review-mode { width: 100%; }
  .review-mode { text-align: center; padding: 9px; }
  .metrics-grid { gap: 9px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .panel-heading { padding: 14px; }
  .work-table thead, .customer-table thead { display: none; }
  .work-table tbody, .work-table tr, .work-table td, .customer-table tbody, .customer-table tr, .customer-table td { display: block; width: 100%; }
  .work-table tr, .customer-table tr { padding: 13px 14px; border-bottom: 7px solid var(--canvas); }
  .work-table td, .customer-table td { padding: 6px 0 6px 105px; border: 0; min-height: 29px; position: relative; }
  .work-table td::before, .customer-table td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 95px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
  .work-table td:last-child { padding-left: 0; padding-top: 13px; }
  .work-table td:last-child::before, .customer-table .chevron::before { content: none; }
  .row-actions { justify-content: stretch; }
  .row-actions form, .action-button { flex: 1; width: 100%; }
  .customer-tools, .customer-search { width: 100%; align-items: stretch; }
  .customer-tools { flex-direction: column; }
  .customer-search { display: grid; grid-template-columns: 1fr auto; }
  .customer-search input.visually-hidden { width: 1px; height: 1px; padding: 0; }
  .customer-search .button-muted { grid-column: 1 / -1; }
  .customer-table .chevron { padding-left: 0; }
  .customer-expand-control { min-height: 36px; }
  .customer-table .customer-book-row.is-expanded { border-bottom: 0; }
  .customer-table .customer-properties-row { padding: 0; }
  .customer-table .customer-properties-cell { min-height: 0; padding: 0; }
  .customer-table .customer-properties-cell::before { content: none; }
  .customer-property-list { padding: 9px; border-left: 4px solid var(--blue); }
  .customer-property-summary { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .customer-property-contacts { grid-column: auto; }
  .customer-heading-main { grid-template-columns: 1fr; }
  .customer-heading .customer-owner-notes { grid-column: auto; grid-row: auto; }
  .property-title p span { display: block; }
  .property-title p span + span::before { content: none; }
  .property-title { flex-wrap: wrap; }
  .property-title .compact-actions { width: 100%; justify-content: flex-start; }
  #customer-properties > turbo-frame { margin: 12px 10px 0; }
  .property-detail-grid, .property-detail-grid.has-recorded-visits { grid-template-columns: 1fr; }
  .property-detail-grid .property-visit-history, .property-detail-grid.has-recorded-visits .property-visit-history { grid-column: auto; }
  .balance-block { width: 100%; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row > span:nth-child(2) { display: none; }
  .charge-definition-row { grid-template-columns: 90px minmax(0, 1fr); }
  .charge-definition-row > .compact-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .service-choice-grid { grid-template-columns: 1fr; }
  .charge-record-summary { grid-template-columns: 1fr; }
  .charge-record-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .charge-decision-actions { align-items: stretch; flex-direction: column; }
  .charge-decision-actions form, .charge-decision-actions .button { width: 100%; }
  .closeout-charge-note { align-items: flex-start; flex-direction: column; }
  .closeout-charge-note span { text-align: left; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-methods { grid-column: 1 / -1; grid-row: 2; }
  .property-history-row { grid-template-columns: 1fr auto; }
  .property-history-times { grid-column: 1 / -1; grid-row: 2; }
  .property-history-duration { grid-column: 2; grid-row: 1; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tab { flex: 1; text-align: center; white-space: nowrap; }
  .form-grid, .billing-fields, .schedule-fields, .schedule-record-form, .route-default-form, .route-endpoint-group, .route-location-form { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .record-form { padding: 15px; }
  .phone-field-row { grid-template-columns: 105px minmax(0, 1fr); }
  .phone-field-row .remove-phone { grid-column: 2; }
  .form-actions { flex-direction: column-reverse; }
  .invoice-review-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  .account-summary-grid { grid-template-columns: 1fr; }
  .money-filter-fields, .money-summary-grid, .money-pipeline-summary, .money-pipeline-list { grid-template-columns: 1fr; }
  .money-filter-fields .field-group:last-child { grid-column: auto; }
  .money-filter-actions { width: 100%; margin-left: 0; }
  .money-filter-actions .button { flex: 1; }
  .money-pipeline-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .account-detail-heading { align-items: stretch; flex-direction: column; }
  .account-detail-balance { text-align: left; }
  .account-entry-actions { align-items: stretch; flex-direction: column; }
  .account-entry-actions .button, .account-entry-actions .text-link { width: 100%; margin-left: 0; text-align: center; }
  .export-status dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recovery-copy { min-width: 0; }
  .recovery-verification-form > div { align-items: stretch; flex-direction: column; }
  .recovery-verification-form input[type="text"], .recovery-verification-form .button { width: 100%; }
  .archive-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-row { grid-template-columns: 75px minmax(0, 1fr); }
  .period-row form { grid-column: 2; }
  .approval-actions { flex-wrap: wrap; }
  .approval-actions .button { min-height: 40px; flex: 1 1 calc(50% - 4px); }
  .group-heading { align-items: stretch; flex-direction: column; }
  .approval-list, .approval-list turbo-frame { min-width: 0; }
  .approval-table { min-width: 0; }
  .approval-table thead { display: none; }
  .approval-table tbody, .approval-table tr, .approval-table td { display: block; width: 100%; }
  .approval-table .approval-row { position: relative; padding: 11px 12px; border-bottom: 7px solid var(--canvas); }
  .approval-table .approval-row:last-child { border-bottom: 0; }
  .approval-table td { min-height: 28px; padding: 5px 34px 5px 86px; border: 0; position: relative; }
  .approval-table td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 76px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .approval-table th:first-child, .approval-table td:first-child { position: absolute; z-index: 1; top: 8px; right: 10px; width: 32px; min-height: 32px; padding: 8px; }
  .approval-table td:first-child::before { content: none; }
  .approval-table th:last-child, .approval-table td:last-child { width: 100%; text-align: left; }
  .schedule-view-tabs { width: 100%; overflow-x: auto; }
  .schedule-view-tab { flex: 1; text-align: center; white-space: nowrap; }
  .schedule-toolbar, .truck-print-toolbar { align-items: stretch; flex-direction: column; }
  .month-service-picker-heading { align-items: flex-start; flex-direction: column; }
  .month-paint-toolbar { align-items: stretch; flex-direction: column; }
  .month-paint-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .schedule-month-command-center > .month-service-picker { margin-inline: 9px; }
  .schedule-month-command-center > .month-route-filter { margin-inline: 9px; }
  .schedule-date-nav { justify-content: space-between; }
  .schedule-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .route-board-filter, .month-route-filter { grid-template-columns: 1fr; }
  .route-board-filter > span { text-align: left; }
  .route-work-controls, .route-property-choice { grid-template-columns: 1fr; }
  .route-property-choice { position: relative; padding-left: 44px; }
  .route-property-choice > label { position: absolute; left: 13px; top: 14px; }
  .route-property-services { justify-content: flex-start; }
  .visit-planner-form, .closeout-row { grid-template-columns: 1fr; }
  .pay-form-grid, .rate-form-grid, .payment-form-grid, .service-worker-row { grid-template-columns: 1fr; }
  .service-instruction-form { grid-template-columns: 1fr; }
  .pay-summary-grid { grid-template-columns: 1fr; }
  .person-pay-heading { grid-template-columns: 1fr auto; }
  .person-pay-totals { grid-column: 1 / -1; }
  .person-money-actions { grid-template-columns: 1fr; }
  .timer-actions { grid-template-columns: 1fr; }
  .actual-time-form { grid-template-columns: 1fr; }
  .worker-hours-form { grid-template-columns: 1fr; }
  .worker-hours-form .worker-hours-span { grid-column: auto; }
  .worker-signout, .worker-report-editor > summary { min-height: 36px; }
  .worker-report-editor > summary { display: flex; align-items: center; }
  .pay-review-list .action-button, .mini-void summary { min-height: 36px; display: inline-flex; align-items: center; }
  .issue-actions { grid-template-columns: 1fr; }
  .pay-run-row { grid-template-columns: 1fr auto; }
  .pay-run-row > div:nth-child(3), .pay-run-row > div:nth-child(4) { display: none; }
  .pay-run-sheet > header { flex-direction: column; }
  .pay-run-sheet dl { width: 100%; }
  .pay-run-sheet dl div { flex: 1; min-width: 0; }
  .route-board { grid-template-columns: 1fr; }
  .truck-sheet { padding: 14px; overflow-x: auto; }
  .truck-sheet table { min-width: 760px; }
}

.checklist-template-intro { max-width: 900px; margin: 0 0 18px; padding: 20px 22px; border-left: 7px solid var(--brand); border-radius: 10px; background: #eaf4fa; box-shadow: var(--shadow); }
.checklist-template-intro h2 { margin: 3px 0 4px; font-size: 27px; }
.checklist-template-intro p { margin: 0; color: var(--muted); }
.checklist-template-layout { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(420px, 1.15fr); gap: 18px; align-items: start; }
.checklist-create-panel { border-top: 6px solid var(--brand); }
.checklist-template-library { display: grid; gap: 12px; }
.checklist-template-card { padding: 0; overflow: hidden; }
.checklist-template-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; cursor: pointer; background: #eef5f8; border-left: 6px solid #6688a0; }
.checklist-template-card > summary::marker { color: var(--brand); }
.checklist-template-card > summary div { display: grid; gap: 2px; }
.checklist-template-card > summary strong { font-size: 17px; }
.checklist-template-card > summary span { color: var(--muted); font-size: 12px; }
.checklist-template-card > .checklist-builder, .checklist-template-card > form { margin: 16px; }
.checklist-template-card.is-archived { opacity: .78; }
.checklist-builder { display: grid; gap: 14px; padding: 17px; }
.checklist-builder-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.checklist-builder-steps { display: grid; gap: 8px; }
.checklist-builder-label { display: flex; justify-content: space-between; gap: 10px; }
.checklist-builder-label small { color: var(--muted); }
.checklist-builder-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.checklist-step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e7f2f9; color: var(--navy); font-weight: 800; }
.checklist-builder-item input[type="text"] { min-width: 0; }
.checklist-step-controls { display: flex; gap: 4px; }
.checklist-step-controls button { min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8fa; color: var(--ink); font-weight: 700; cursor: pointer; }
.checklist-step-controls button:last-child { color: var(--red); }
.checklist-archived-steps { margin: 14px 30px; }
.danger-text { color: var(--red); }
.visit-checklist-editor { grid-column: 1 / -1; display: grid; gap: 11px; margin-top: 14px; padding: 15px; border: 1px solid #a9c7d8; border-radius: 10px; background: #f2f8fb; }
.visit-checklist-heading strong { font-size: 16px; }
.visit-checklist-heading small { display: block; color: var(--muted); }
.visit-checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visit-checklist-heading .button { flex: none; }
.visit-checklist-panel .visit-checklist-editor { margin-top: 0; border: 0; border-radius: 0; }
.visit-checklist-apply { display: grid; grid-template-columns: minmax(160px, 1fr) auto; gap: 7px; align-items: end; }
.visit-checklist-apply label { grid-column: 1 / -1; font-weight: 800; }
.visit-checklist-list { display: grid; gap: 8px; }
.visit-checklist-copy { border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.visit-checklist-copy > summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px; cursor: pointer; }
.visit-checklist-copy > summary div { display: grid; }
.visit-checklist-copy > summary span { color: var(--muted); font-size: 12px; }
.visit-checklist-progress { display: grid; gap: 7px; margin: 0; padding: 12px 15px; list-style: none; border-top: 1px solid var(--line); background: #f6f9fb; }
.visit-checklist-progress li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 7px 9px; border-radius: 7px; background: white; }
.visit-checklist-progress-icon { grid-row: span 2; color: #668094; font-size: 19px; line-height: 1; }
.visit-checklist-progress li.is-complete .visit-checklist-progress-icon { color: #187849; }
.visit-checklist-progress strong { font-size: 14px; }
.visit-checklist-progress small { color: var(--muted); font-size: 12px; }
.compact-checklist-builder { border-top: 1px solid var(--line); }
.worker-visit-checklists { padding: 14px; border-bottom: 1px solid var(--line); background: #f2f8fb; }
.worker-visit-checklist { overflow: hidden; border: 2px solid #9ec3d8; border-radius: 12px; background: white; }
.worker-visit-checklist + .worker-visit-checklist { margin-top: 12px; }
.worker-checklist-title { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #e4f1f8; }
.worker-checklist-title div { display: grid; gap: 2px; }
.worker-checklist-title small { color: var(--muted); }
.worker-checklist-title > span { align-self: start; padding: 4px 8px; border-radius: 999px; background: white; font-weight: 800; }
.worker-checklist-items { display: grid; }
.worker-checklist-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.worker-checklist-item input { width: 24px; height: 24px; accent-color: var(--green); }
.worker-checklist-item > span { font-weight: 750; }
.worker-checklist-item > small { color: var(--muted); }
.worker-checklist-item.is-complete { background: #effaf3; }
.worker-checklist-item.is-complete > span { color: #356347; text-decoration: line-through; }
.truck-checklist { display: grid; gap: 2px; margin-top: 7px; padding-top: 5px; border-top: 1px solid #999; }

@media (max-width: 760px) {
  .checklist-template-layout { grid-template-columns: 1fr; }
  .checklist-builder-item { grid-template-columns: 30px minmax(0, 1fr); }
  .checklist-step-controls { grid-column: 2; }
  .visit-checklist-apply { grid-template-columns: 1fr; }
  .visit-checklist-apply label { grid-column: auto; }
}

@media (max-width: 430px) {
  .worker-device-queue { grid-template-columns: auto minmax(0, 1fr); }
  .worker-device-queue button { grid-column: 1 / -1; width: 100%; }
  .worker-day-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .worker-day-steps li { font-size: 10px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 92px; }
  .dashboard-layout, .dashboard-layout > * { min-width: 0; }
  .work-panel > .panel-heading { align-items: stretch; flex-direction: column; gap: 9px; }
  .dashboard-day-nav { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 38px 56px 38px; gap: 6px; margin-left: 0; }
  .dashboard-day-nav > strong { grid-column: 1; grid-row: 1; }
  .dashboard-day-nav > .dashboard-day-routes { grid-column: 2 / -1; grid-row: 1; justify-self: end; margin-left: 0; padding-left: 0; border-left: 0; }
  .dashboard-day-nav > .dashboard-day-previous { grid-column: 2; grid-row: 2; }
  .dashboard-day-nav > .dashboard-day-today { grid-column: 3; grid-row: 2; justify-self: center; }
  .dashboard-day-nav > .dashboard-day-next { grid-column: 4; grid-row: 2; }
  .dashboard-day-nav > .dashboard-day-arrow { width: 38px; height: 38px; }
  .dashboard-day-nav > .dashboard-day-today { min-height: 38px; }
  .schedule-date-nav { flex-wrap: wrap; justify-content: center; }
  .schedule-date-nav strong { min-width: 0; flex: 1; white-space: nowrap; }
  .schedule-date-nav > .text-link { flex: 1 0 100%; text-align: center; }
}

/* Owner actions should be easy to spot and forgiving to click without turning rows into cards. */
.owner-workspace .button,
.owner-workspace .action-button,
.owner-workspace .route-stop-action-button,
.owner-workspace .ledger-action,
.owner-workspace .rate-chip,
.owner-workspace .add-rate-button,
.owner-workspace .tiny-button { min-height: 44px; font-size: 13px; }
.owner-workspace .tiny-button { min-width: 44px; }
.owner-workspace .text-link,
.owner-workspace .text-button,
.owner-workspace .void-link,
.owner-workspace .customer-expand-control,
.owner-workspace .todo-edit > summary,
.owner-workspace .mini-void > summary,
.owner-workspace .payment-recorder > summary,
.owner-workspace .attention-title a,
.owner-workspace .context-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #a7c7df;
  border-radius: 7px;
  background: #eef6fc;
  color: #075385;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.owner-workspace .text-link:hover,
.owner-workspace .text-button:hover,
.owner-workspace .customer-expand-control:hover,
.owner-workspace .todo-edit > summary:hover,
.owner-workspace .mini-void > summary:hover { border-color: #4b91c3; background: #dceefa; text-decoration: none; }
.owner-workspace .void-link,
.owner-workspace .mini-void > summary { border-color: #deb9bd; background: #fff3f3; color: #97323a; }
.owner-workspace .branded-customer-hero .customer-owner-notes .text-link { color: #075385; }
.owner-workspace .todo-filter { min-height: 44px; font-size: 13px; }
.owner-workspace .todo-options summary,
.owner-workspace .money-view-tab,
.owner-workspace .panel-footer-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
.owner-workspace .todo-options summary { padding: 8px 11px; border: 1px solid #a7c7df; border-radius: 7px; background: #eef6fc; }
.owner-workspace .record-link,
.owner-workspace .mini-table a,
.owner-workspace .approval-table a { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.owner-workspace .customer-search input.visually-hidden { width: 1px; height: 1px; padding: 0; }
.owner-workspace .customer-expand-control { padding-inline: 12px; }
.owner-workspace .route-stop-actions > .text-button { font-size: 13px; }
.owner-workspace .dashboard-day-nav > .dashboard-day-arrow { min-width: 44px; min-height: 44px; }
.owner-workspace .dashboard-day-nav > .dashboard-day-today,
.owner-workspace .dashboard-day-nav > .dashboard-day-routes { min-height: 44px; padding-inline: 10px; font-size: 13px; }
.owner-workspace .dashboard-day-nav > .dashboard-day-routes { padding-left: 16px; }
.owner-workspace :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #e59c30;
  outline-offset: 2px;
}
@media (max-width: 430px) {
  .owner-workspace .dashboard-day-nav { grid-template-columns: minmax(0, 1fr) 44px 64px 44px; }
  .owner-workspace .dashboard-day-nav > .dashboard-day-arrow { width: 44px; height: 44px; }
  .owner-workspace .dashboard-day-nav > .dashboard-day-routes { padding-left: 10px; }
}

/* Keep the dropdown indicator and selected text clear of every control edge. */
select:not([multiple]):not([size]) {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%233e5870' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.searchable-select { display: block; min-width: 0; width: 100%; }
.searchable-select > select { display: none !important; }
.searchable-select-input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 32px 8px 34px; border: 1px solid #b7c9d8; border-radius: 6px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%233e5870' stroke-width='1.8'/%3E%3Cpath d='m10.5 10.5 3.5 3.5' stroke='%233e5870' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 11px center; font: inherit; }
.searchable-select-input:focus { outline: 3px solid #b9d8f2; border-color: var(--blue); }
.searchable-select-results { position: fixed; z-index: 2000; overflow: auto; border: 1px solid #93b7cf; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(18, 36, 58, .22); }
.searchable-select-results[hidden] { display: none; }
.searchable-select-option { display: block; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-bottom: 1px solid #e4ebf1; color: #172c41; background: white; text-align: left; cursor: pointer; }
.searchable-select-option:hover, .searchable-select-option.is-active { color: #064c7a; background: #e8f4fc; }
.searchable-select-empty { margin: 0; padding: 12px; color: #526479; font-size: 13px; }
