:root {
  --navy: #112a46;
  --navy-deep: #0b1c30;
  --blue: #1769aa;
  --blue-soft: #e8f2fb;
  --ink: #162231;
  --muted: #637083;
  --line: #dce2e9;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --green: #1d7a52;
  --green-soft: #e9f6ef;
  --amber: #a35a00;
  --amber-soft: #fff3dc;
  --red: #af2f37;
  --red-soft: #fdecee;
  --shadow: 0 1px 2px rgba(15, 34, 54, .06), 0 8px 24px rgba(15, 34, 54, .05);
}

* { 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 { background: linear-gradient(105deg, #17324f, #10283f); color: white; box-shadow: 0 2px 10px rgba(9, 24, 41, .2); }
.header-bar { min-height: 42px; width: 100%; padding: 0 25px; display: flex; align-items: center; gap: 12px; }
.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: 3px; overflow-x: auto; }
.primary-nav a { color: #fff; text-decoration: none; padding: 12px 14px 10px; border-bottom: 0; font-size: 13px; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover { color: white; }
.primary-nav a.active { color: white; background: #1976df; border-radius: 3px; }

.page-shell { width: min(1500px, calc(100% - 50px)); margin: 0 auto; padding: 20px 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: 39px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 13px; cursor: pointer; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #125b95; }
.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; gap: 10px; font-size: 11px; }
.dashboard-day-nav > a:first-child, .dashboard-day-nav > a:nth-child(3) { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #ccd5de; border-radius: 4px; background: #f3f5f7; color: #334155; text-decoration: none; font-size: 18px; }

.panel { background: var(--surface); border: 1px solid #d7dee7; border-radius: 5px; box-shadow: 0 1px 3px rgba(20, 40, 70, .04); 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); }
.property-card { padding: 0 14px 14px; border-bottom: 5px solid #dce3ea; background: #f3f6f9; }
.panel > turbo-frame:last-of-type .property-card { border-bottom: 0; }
.property-title { margin: 0 -14px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #d6dee7; background: white; }
.property-title h3 { margin: 0 0 3px; font-size: 16px; }
.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: " · "; }
.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; }

.login-panel { width: min(430px, 100%); margin: 70px auto; padding: 28px; }
.login-panel h1 { margin: 5px 0 6px; font-size: 27px; letter-spacing: -.03em; }
.login-form { margin-top: 24px; }
.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; }
.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: inline-flex; gap: 3px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #e9edf2; }
.money-view-tab { padding: 8px 12px; border-radius: 4px; color: #415168; font-size: 11px; font-weight: 800; text-decoration: none; }
.money-view-tab.active { color: white; background: var(--blue); }
.money-filter-panel { margin-bottom: 14px; padding: 14px 16px 10px; }
.money-filter-form { display: grid; grid-template-columns: 150px 150px minmax(180px, .7fr) minmax(320px, 1.3fr) auto; gap: 12px; align-items: end; }
.money-filter-form .field-group label, .money-service-filter legend { display: block; margin-bottom: 5px; color: #405169; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.money-filter-form input[type=date], .money-filter-form select { width: 100%; padding: 8px; border: 1px solid #c8d2dc; border-radius: 4px; background: white; font-size: 11px; }
.money-service-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.money-service-choices { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 1px; }
.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: block; padding: 7px 9px; border: 1px solid #cbd5df; border-radius: 999px; background: white; color: #43536a; font-size: 9px; font-weight: 750; }
.money-service-choices input:checked + span { border-color: var(--blue); color: white; background: var(--blue); }
.money-filter-actions { display: flex; gap: 6px; }
.money-period-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; }
.money-period-shortcuts span { color: var(--muted); font-size: 8px; 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; }
.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 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-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 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-card { width: min(430px, 100%); margin: 50px auto; padding: 26px; border: 1px solid #d4dce4; border-radius: 7px; background: white; box-shadow: var(--shadow); }
.worker-login-card h1 { margin: 4px 0 6px; font-size: 27px; letter-spacing: -.03em; }
.worker-login-card > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.worker-login-form { display: grid; gap: 16px; margin-top: 23px; }
.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-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 span, .worker-visit-card > header strong { display: block; }
.worker-visit-card > header span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.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, .worker-report-form input[type="file"] { 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; }
.upload-help { margin: 5px 0 11px; display: block; color: var(--muted); font-size: 9px; line-height: 1.35; text-transform: none !important; }
.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-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); }
.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; }

@media print {
  @page { size: letter landscape; margin: .35in; }
  html, body { background: white; }
  .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; }
}

@media (max-width: 1280px) {
  .dashboard-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .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: 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) {
  .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-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-service-filter { 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; }
}

@media (max-width: 640px) {
  .header-bar { padding: 0 9px; flex-wrap: wrap; gap: 6px; }
  .account-entry-actions, .account-activity-toolbar { align-items: stretch; flex-direction: column; }
  .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; }
  .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; }
  .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 .button-muted { grid-column: 1 / -1; }
  .customer-table .chevron { padding-left: 0; }
  .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-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; }
  .form-actions .button { width: 100%; }
  .account-summary-grid { grid-template-columns: 1fr; }
  .money-filter-form, .money-summary-grid, .money-pipeline-summary, .money-pipeline-list { grid-template-columns: 1fr; }
  .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)); }
  .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 { flex: 1 1 calc(50% - 4px); }
  .group-heading { align-items: stretch; flex-direction: column; }
  .approval-table { min-width: 720px; }
  .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; }
  .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; }
}

@media (max-width: 430px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 92px; }
}
