:root {
  --ink: #101c2b; --muted: #647184; --line: #dbe1e8; --canvas: #f3f6f8; --surface: #fff;
  --navy: #102436; --navy-2: #1a3448; --cyan: #18b6c9; --cyan-dark: #087f91;
  --amber: #f2ad3d; --red: #c33b45; --green: #18845d; --radius: 14px;
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
body { font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(24,182,201,.34); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.045em; margin-bottom: .7rem; }
h2 { font-size: 1.28rem; letter-spacing: -.02em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0,1fr); }
.sidebar { background: var(--navy); color: #e9f1f5; padding: 26px 18px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 244px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 48px; }
.brand-logo-mark { width: 41px; height: 46px; overflow: hidden; flex: 0 0 41px; }
.brand-logo-mark img { display: block; width: auto; max-width: none; height: 46px; }
.brand strong, .brand small { display: block; } .brand small { color: #91a4b1; font-size: .78rem; margin-top: 1px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 48px; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; color: #b8c7d0; text-decoration: none; padding: 12px 13px; border-radius: 9px; font-weight: 650; }
.sidebar nav a span { font-size: .68rem; color: #6f8797; letter-spacing: .08em; }
.sidebar nav a:hover { color: white; background: #173249; }
.sidebar nav a.active { background: var(--cyan); color: #062b33; }
.sidebar nav a.active span { color: #126270; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 4px; display: flex; gap: 9px; align-items: center; color: #91a4b1; font-size: .77rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #42d49b; box-shadow: 0 0 0 4px rgba(66,212,155,.12); }
.app-main { grid-column: 2; min-width: 0; }
.content { max-width: 1420px; margin: 0 auto; padding: 58px clamp(24px, 5vw, 72px) 80px; }
.mobile-header, .mobile-nav { display: none; }

.page-heading, .detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 32px; }
.page-heading p:not(.eyebrow), .detail-heading p { color: var(--muted); max-width: 620px; margin-bottom: 0; }
.eyebrow { margin-bottom: 10px; color: var(--cyan-dark); font-weight: 800; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; font-weight: 750; white-space: nowrap; }
.button:disabled { opacity: .52; cursor: not-allowed; }
.button.primary { background: var(--cyan); color: #062d35; box-shadow: 0 6px 18px rgba(10,142,160,.14); }
.button.primary:hover { background: #29c8d9; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: #9facb9; }
.button.danger { background: var(--red); color: white; }
.button-group { display: flex; gap: 8px; }
.icon-button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.6rem; color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.metric-card { min-height: 172px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #aeb9c4; }
.metric-card span { color: var(--muted); font-weight: 720; }
.metric-card strong { font-size: 3.25rem; line-height: 1; letter-spacing: -.06em; margin: 18px 0 11px; }
.metric-card small { color: var(--muted); margin-top: auto; }
.metric-card.accent { background: var(--navy); color: white; border-color: var(--navy); }
.metric-card.accent span, .metric-card.accent small { color: #a9bdc8; }
.metric-card.accent strong { color: var(--cyan); }
.metric-card.warning { border-top: 4px solid var(--amber); padding-top: 19px; }

.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; margin-bottom: 20px; }
.search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cbd4de; border-radius: 8px; padding: 11px 12px; min-height: 46px; }
textarea { resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #9ba9b7; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--red); }
.validation-message { display: block; color: var(--red); font-size: .82rem; margin-top: 4px; }
.validation-errors { color: var(--red); background: #fff0f1; border: 1px solid #f0c8cb; border-radius: 8px; padding: 12px 30px; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.filter-chip { min-height: 39px; border: 1px solid var(--line); background: #f8fafb; border-radius: 999px; padding: 7px 13px; cursor: pointer; color: #445266; }
.filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

.job-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.job-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; min-width: 0; cursor: pointer; box-shadow: 0 3px 15px rgba(25,46,65,.035); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.job-card:hover { transform: translateY(-2px); border-color: #aab7c4; box-shadow: 0 9px 26px rgba(25,46,65,.09); }
.job-card-top, .title-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-number { font-size: .76rem; font-weight: 850; letter-spacing: .08em; color: #556478; }
.job-card h3 { font-size: 1.14rem; line-height: 1.25; margin: 17px 0 5px; }
.job-card .customer { color: #344357; font-weight: 650; margin-bottom: 4px; }
.job-address { font-size: .88rem; color: var(--muted); min-height: 42px; }
.job-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; border-top: 1px solid #edf0f3; padding-top: 14px; margin-top: 15px; }
.job-card-meta div { min-width: 0; } .job-card-meta strong, .meta-label { display: block; }
.job-card-meta strong { font-size: .81rem; overflow: hidden; text-overflow: ellipsis; }
.meta-label { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.status-pill { display: inline-flex; align-items: center; min-height: 27px; border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.status-pending { background: #eef1f4; color: #506072; }.status-scheduled { background: #e3f3fa; color: #12637d; }.status-completed { background: #dff5e9; color: #166643; }.status-confirmed { background: #fff0cf; color: #8a5910; }.status-billed { background: #e8e3fa; color: #5b4598; }
.priority { display: inline-block; margin-top: 12px; font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.priority-high { color: #a05a06; }.priority-urgent { color: var(--red); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; color: var(--muted); font-size: .88rem; }
.queue-list { display: grid; gap: 14px; }.queue-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; }.queue-row .job-card { width: 100%; }

.week-grid { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); gap: 9px; overflow-x: auto; padding-bottom: 8px; }
.day-column { min-height: 480px; background: #e9eef2; border-radius: 11px; padding: 9px; }
.day-column.today { background: #dff3f5; box-shadow: inset 0 0 0 1px #aadbe0; }
.day-column > header { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 5px 12px; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.day-column > header strong { font-size: 1.35rem; color: var(--ink); }
.schedule-item { display: grid; gap: 2px; background: white; border-left: 4px solid var(--cyan); padding: 11px 10px; border-radius: 7px; margin-bottom: 8px; text-decoration: none; }
.schedule-item:hover { box-shadow: 0 5px 15px rgba(22,48,68,.09); }.schedule-item time { font-size: .7rem; color: var(--cyan-dark); font-weight: 800; }.schedule-item strong { font-size: .85rem; line-height: 1.25; }.schedule-item span,.schedule-item small { color: var(--muted); font-size: .73rem; }
.day-empty { color: #8a96a4; text-align: center; font-size: .8rem; padding-top: 25px; }

.eod-form { display: grid; gap: 18px; margin-bottom: 16px; }
.eod-form .section-heading { margin-bottom: 0; }
.eod-job-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.eod-job-option { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; cursor: pointer; background: #f9fbfc; }
.eod-job-option:hover { border-color: #9facb9; background: #fff; }
.eod-job-option:has(input:checked) { border-color: var(--cyan); background: #eefbfc; box-shadow: inset 0 0 0 1px var(--cyan); }
.eod-job-option input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--cyan-dark); flex: 0 0 auto; }
.eod-job-option strong,.eod-job-option small { display: block; }
.eod-job-option small { color: var(--muted); margin-top: 2px; }
.eod-search-block { display: grid; gap: 7px; padding-top: 2px; }
.eod-search-block > label { font-size: .84rem; font-weight: 750; }
.eod-search-results { display: grid; gap: 7px; padding-top: 3px; }
.eod-search-results > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfc; }
.eod-search-results strong,.eod-search-results small { display: block; }
.eod-search-results small { color: var(--muted); margin-top: 2px; }
.eod-subheading { padding-top: 12px; border-top: 1px solid var(--line); }
.eod-work-list { display: grid; gap: 12px; }
.eod-work-section { display: grid; gap: 14px; padding: 16px; background: #f6f8fa; border: 1px solid #dfe6eb; border-radius: 10px; }
.eod-work-section > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.eod-work-section > header strong,.eod-work-section > header small { display: block; }
.eod-work-section > header small { color: var(--muted); margin-top: 2px; }
.eod-work-section > header > label { flex: 1; display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.eod-work-fields { display: grid; grid-template-columns: 110px minmax(190px,.7fr) minmax(280px,2fr); align-items: end; gap: 12px; }
.eod-work-fields > label { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.eod-work-fields input { min-height: 40px; padding-block: 7px; }
.eod-work-fields .eod-job-details { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; }
.eod-work-fields textarea { min-height: 98px; }
.eod-requirements { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.eod-requirements > strong { font-size: .82rem; }
.eod-requirements > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.eod-requirements label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.eod-requirements input { width: 84px; min-height: 36px; padding-block: 5px; }
.eod-requirements small { color: var(--muted); }
.eod-hours-list { display: grid; gap: 8px; }
.eod-hours-row { display: grid; grid-template-columns: minmax(220px,1fr) 110px minmax(190px,.7fr) auto; align-items: end; gap: 12px; padding: 12px; background: #f6f8fa; border: 1px solid #e3e8ed; border-radius: 9px; }
.eod-hours-row > div strong,.eod-hours-row > div small { display: block; }
.eod-hours-row > div small { color: var(--muted); margin-top: 2px; }
.eod-hours-row label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.eod-hours-row input { min-height: 40px; padding-block: 7px; }
.eod-labor-preview { align-self: center; color: var(--cyan-dark); font-size: .8rem; font-weight: 800; }
.eod-custom-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eod-custom-heading > div { display: grid; gap: 2px; }
.eod-custom-heading small { color: var(--muted); font-size: .76rem; }
.eod-coworkers { margin-top: -7px; }
.eod-crew-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 8px; background: #eaf6f8; color: #174c55; }
.eod-crew-total span { color: var(--muted); font-size: .8rem; }
.eod-summary { display: grid; gap: 7px; font-size: .88rem; font-weight: 750; }
.eod-history { margin-top: 16px; }
.eod-report-list { display: grid; gap: 11px; }
.eod-report-card { padding: 16px; border: 1px solid #dbe2e8; border-radius: 10px; background: #f5f7f9; }
.eod-report-card header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.eod-report-card header strong,.eod-report-card header time { display: block; }
.eod-report-card header time { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.eod-report-card header > span { color: var(--muted); font-size: .76rem; font-weight: 750; }
.eod-worker-list { color: var(--muted); font-size: .82rem; margin-top: 9px!important; }
.eod-report-jobs { display: grid; gap: 6px; margin: 13px 0; }
.eod-report-job { display: grid; gap: 8px; padding: 10px 0; }
.eod-report-job + .eod-report-job { border-top: 1px solid var(--line); }
.eod-report-job-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eod-report-job > p { margin: 0; white-space: pre-wrap; }
.eod-report-jobs a,.eod-report-jobs span { border-radius: 999px; background: #e4f4f6; color: #175966; padding: 5px 9px; font-size: .75rem; font-weight: 750; text-decoration: none; }
.eod-report-jobs a:hover { text-decoration: underline; }
.eod-report-job small { color: var(--muted); text-align: right; }
.eod-report-card > p { white-space: pre-wrap; margin: 0; }
.eod-office-details { margin: 13px 0; padding: 11px 13px; border-left: 3px solid var(--cyan-dark); border-radius: 8px; background: #edf6f7; }
.eod-office-details strong { display: block; color: #175966; font-size: .78rem; }
.eod-office-details p { margin: 4px 0 0; white-space: pre-wrap; }
.eod-history-heading,.dashboard-eod-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.eod-date-nav { display: grid; justify-items: end; gap: 8px; }
.eod-date-nav > label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.eod-date-nav input { width: auto; min-height: 38px; padding: 6px 9px; }
.eod-history-heading .panel-heading { margin-bottom: 0; }
.eod-report-card-actions { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.eod-report-job-label { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.eod-create-job-modal { width: min(650px,100%); display: grid; gap: 16px; }
.eod-create-job-modal .modal-heading h2 { margin: 2px 0 0; }
.eod-create-job-source { padding: 12px 14px; border-radius: 9px; background: #f2f7f8; border: 1px solid #d8e6e8; }
.eod-create-job-source p { margin: 6px 0 0; white-space: pre-wrap; color: var(--muted); }
.eod-comments { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.eod-comment-list { display: grid; gap: 8px; margin-bottom: 10px; }
.eod-comment-list > div { padding: 9px 11px; border-radius: 8px; background: #fff; border: 1px solid #e0e6eb; }
.eod-comment-list > div.reply { margin-left: 28px; border-left: 3px solid #b6dce1; }
.eod-comment-list > div > div { display: flex; justify-content: space-between; gap: 10px; }
.eod-comment-list > div > div > span:first-child { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.eod-comment-list > div > div > span:first-child small { color: var(--muted); }
.comment-meta { display: flex; align-items: center; gap: 5px; }
.eod-comment-list time { color: var(--muted); font-size: .72rem; }
.eod-comment-list p { margin: 4px 0 0; white-space: pre-wrap; }
.reply-status { display: inline-flex; border-radius: 999px; background: #fff0c9; color: #805607; padding: 3px 7px; font-size: .68rem; font-weight: 800; }
.replying-to { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #eef8f9; border-radius: 7px; padding: 7px 10px; margin-bottom: 8px; font-size: .78rem; }
.reply-follow-up { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-bottom: 8px; }
.reply-follow-up label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .78rem; font-weight: 750; }
.reply-follow-up input { width: 18px; height: 18px; accent-color: var(--cyan-dark); }
.reply-follow-up select { width: min(240px,100%); min-height: 36px; padding-block: 5px; }
.eod-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.eod-comment-form textarea { min-height: 56px; padding-block: 8px; }
.dashboard-eod { margin-top: 16px; }
.dashboard-eod-heading h2 { margin-bottom: 3px; }
.dashboard-eod-heading p { color: var(--muted); margin: 0; font-size: .84rem; }
.dashboard-eod-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.dashboard-eod-list article { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfc; }
.dashboard-eod-list header { display: flex; justify-content: space-between; gap: 12px; }
.dashboard-eod-list header span { color: var(--cyan-dark); font-size: .78rem; font-weight: 800; }
.dashboard-eod-list small { display: block; color: var(--muted); margin-top: 4px; }
.dashboard-eod-list p { margin: 10px 0 0; white-space: pre-wrap; }
.dashboard-eod-list article > a { display: inline-block; margin-top: 8px; color: var(--cyan-dark); font-size: .78rem; font-weight: 750; }
.dashboard-actions { display: flex; align-items: center; gap: 9px; }
.notification-center { position: relative; z-index: 15; }
.mail-button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.mail-button:hover { border-color: #9facb9; }
.mail-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mail-button.has-unread { color: var(--red); border-color: #e2a9ae; background: #fff8f8; }
.notification-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 999px; padding: 0 4px; background: var(--red); color: white; font-size: .64rem; font-weight: 850; }
.reply-needed-badge { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 50%; background: #ffd75a; color: #b4232d; font-size: .82rem; line-height: 1; font-weight: 950; }
.notification-panel { position: absolute; top: calc(100% + 9px); right: 0; width: min(390px,calc(100vw - 32px)); max-height: 520px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(16,36,54,.2); }
.notification-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.notification-panel h2 { margin: 0; font-size: 1.05rem; }
.notification-panel header div > span { display: block; color: var(--muted); font-size: .7rem; margin-top: 1px; }
.notification-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.notification-list { overflow-y: auto; display: grid; }
.notification-item { width: 100%; display: grid; gap: 3px; text-align: left; border: 0; border-bottom: 1px solid #edf0f3; background: white; padding: 12px 15px; color: var(--ink); cursor: pointer; }
.notification-item:hover { background: #f6fafb; }
.notification-item.unread { border-left: 4px solid var(--cyan); padding-left: 11px; }
.notification-item.action-required { border-left: 4px solid var(--amber); padding-left: 11px; background: #fff9e9; }
.notification-item.read { opacity: .72; }
.notification-item strong { font-size: .84rem; line-height: 1.35; }
.notification-item small { color: var(--muted); }
.notification-state { color: var(--cyan-dark); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.notification-item.action-required .notification-state { color: #97650a; }
.notification-empty { color: var(--muted); text-align: center; padding: 30px 15px; margin: 0; }

.employee-list { display: grid; gap: 10px; }.employee-row { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 14px; }.employee-row h3,.employee-row p { margin: 0; }.employee-row p { color: var(--muted); font-size: .86rem; }.avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #dceff2; color: #126576; font-weight: 850; font-size: .78rem; }.employee-state { font-size: .78rem; font-weight: 800; }.employee-state.active { color: var(--green); }.employee-state.inactive { color: var(--muted); }
.employee-access { display: grid; justify-items: end; gap: 2px; }.password-state { font-size: .72rem; }.password-state.ready { color: var(--muted); }.password-state.missing { color: #9a5707; font-weight: 750; }.employee-actions { display: flex; gap: 7px; }.form-help,.modal-subtitle { color: var(--muted); font-size: .82rem; margin: 0; }

.job-form { display: grid; gap: 15px; max-width: 1000px; }.form-section,.detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,3vw,30px); }.section-heading { display: flex; gap: 13px; margin-bottom: 24px; }.section-heading > span { color: var(--cyan-dark); font-size: .73rem; font-weight: 850; letter-spacing: .09em; padding-top: 4px; }.section-heading h2,.section-heading p { margin-bottom: 2px; }.section-heading p { color: var(--muted); font-size: .9rem; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }.form-grid label,.job-form > section > label,.modal label,.note-form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 750; }.span-2 { grid-column: span 2; }.employee-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.employee-option { min-height: 64px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; cursor: pointer; }.employee-option:hover { background: #f8fbfc; }.employee-option input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--cyan-dark); }.employee-option strong,.employee-option small { display: block; }.employee-option small { color: var(--muted); }.form-actions { display: flex; justify-content: flex-end; gap: 9px; }.sticky-actions { position: sticky; bottom: 12px; background: rgba(243,246,248,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 12px; z-index: 8; }

.back-link { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; }.detail-heading { align-items: flex-end; }.detail-heading h1 { margin: 10px 0 7px; }.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }.detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,.8fr); gap: 16px; }.detail-grid main { display: grid; gap: 16px; }.detail-panel h2 { margin-bottom: 18px; }.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; gap: 17px; }.detail-list div { border-bottom: 1px solid #edf0f3; padding-bottom: 13px; }.detail-list dt { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; }.detail-list dd { margin: 4px 0 0; font-weight: 650; }.description { margin-top: 23px; }.description h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }.description p { white-space: pre-wrap; margin-bottom: 0; }.panel-heading p { color: var(--muted); margin: -14px 0 20px; font-size: .84rem; }.note-list { display: grid; gap: 10px; }.note { background: #f6f8fa; border-radius: 9px; padding: 14px; }.note > div { display: flex; justify-content: space-between; gap: 12px; }.note time { color: var(--muted); font-size: .77rem; }.note p { margin: 8px 0 0; white-space: pre-wrap; }.note-form { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; display: grid; gap: 10px; }.note-form .button { justify-self: end; }.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 19px; }.timeline li { display: flex; gap: 11px; }.timeline li > span { width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 4px #def4f6; }.timeline strong,.timeline time { display: block; }.timeline time { color: var(--muted); font-size: .78rem; }.updated { color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); padding-top: 15px; margin: 20px 0 0; }

.loading-state { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 50px; color: var(--muted); }.spinner { width: 22px; height: 22px; border: 3px solid #d1dbe2; border-top-color: var(--cyan-dark); border-radius: 50%; animation: spin .7s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 9px; padding: 14px 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }.alert.error { background: #fff1f2; border: 1px solid #f1c7ca; color: #8b2931; }.alert.draft-recovered { background: #eefbfc; border: 1px solid #a9e1e7; color: #124b54; }.alert.draft-recovered strong,.alert.draft-recovered span { display: block; }.alert.draft-recovered span { margin-top: 2px; font-size: .86rem; color: #477078; }.alert .button { margin-left: auto; }.empty-state { text-align: center; background: var(--surface); border: 1px dashed #b9c4cf; border-radius: var(--radius); padding: 60px 20px; }.empty-state h2 { margin-bottom: 6px; }.empty-state p,.inline-empty { color: var(--muted); }.inline-empty { background: #f6f8fa; border-radius: 8px; padding: 15px; }.modal-backdrop { position: fixed; inset: 0; background: rgba(7,18,29,.6); display: grid; place-items: center; padding: 20px; z-index: 100; }.modal { width: min(500px,100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 14px; padding: 24px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }.modal-heading { display: flex; align-items: center; justify-content: space-between; }.modal form { display: grid; gap: 15px; }.checkbox-label { display: flex!important; grid-template-columns: auto 1fr; align-items: center; }.checkbox-label input { width: 21px; min-height: 21px; }.modal.confirm p { color: var(--muted); }

@media (max-width: 1100px) { .metric-grid,.job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.week-grid { grid-template-columns: repeat(7,180px); }.detail-grid { grid-template-columns: 1fr; }.detail-grid aside { order: -1; }.timeline { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { display: none; }.app-main { padding-bottom: 68px; }.mobile-header { display: block; position: sticky; top: 0; background: rgba(16,36,54,.96); color: white; padding: 9px 16px; z-index: 30; backdrop-filter: blur(10px); }.mobile-header .brand { min-height: 42px; }.mobile-header .brand-mark { width: 34px; height: 34px; font-size: .8rem; }.mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5,1fr); bottom: 0; left: 0; right: 0; background: var(--navy); z-index: 30; padding: 7px max(7px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); }.mobile-nav a { color: #aebdc7; text-align: center; text-decoration: none; font-size: .7rem; font-weight: 750; padding: 10px 3px; border-radius: 7px; }.mobile-nav a.active { color: #082c34; background: var(--cyan); }.content { padding: 28px 16px 40px; }.page-heading,.detail-heading { align-items: stretch; flex-direction: column; gap: 17px; margin-bottom: 24px; }.page-heading .button { align-self: stretch; }.detail-actions { justify-content: stretch; }.detail-actions .button { flex: 1; }.metric-grid,.job-grid { grid-template-columns: 1fr; }.metric-card { min-height: 140px; }.metric-card strong { font-size: 2.7rem; margin: 12px 0 8px; }.search { grid-template-columns: 1fr; }.filter-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -17px; padding-inline: 17px; }.filter-chip { flex: 0 0 auto; }.queue-row { grid-template-columns: 1fr; }.queue-row > .button { width: 100%; }.button-group { display: grid; grid-template-columns: repeat(3,1fr); }.form-grid,.employee-picker,.detail-list { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.form-section,.detail-panel { padding: 19px; }.employee-row { grid-template-columns: auto minmax(0,1fr) auto; }.employee-row .employee-state { grid-column: 2; }.employee-row .button { grid-row: 1/3; grid-column: 3; }.timeline { grid-template-columns: 1fr 1fr; }.pagination { gap: 8px; justify-content: space-between; }.pagination span { font-size: .72rem; text-align: center; }.pagination .button { padding-inline: 10px; }.note > div { flex-direction: column; gap: 2px; }.sticky-actions { bottom: 76px; }.modal-backdrop { align-items: end; padding: 0; }.modal { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; } }

.identity-picker { margin-top: auto; display: grid; gap: 6px; padding: 12px 8px 4px; }
.identity-picker label,.mobile-identity label { color: #91a4b1; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.identity-picker select,.mobile-identity select { width: 100%; min-height: 40px; border: 1px solid #385064; border-radius: 8px; background: var(--navy-2); color: white; padding: 7px 9px; }
.sidebar-foot { margin-top: 8px; padding-top: 10px; }
.note-author { color: var(--muted); font-size: .82rem; }
.note-author strong { color: var(--ink); }

.signed-in-account { margin-top: auto; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 13px 8px 4px; }.signed-in-account .avatar.small { width: 34px; height: 34px; }.signed-in-account strong,.signed-in-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.signed-in-account small { color: #91a4b1; font-size: .7rem; }.logout-form { padding: 3px 8px 0; }.sidebar-signout { border: 0; background: transparent; color: #91a4b1; font-size: .76rem; padding: 4px 0; cursor: pointer; }.sidebar-signout:hover { color: white; }.mobile-account { display: flex; align-items: center; gap: 8px; }.mobile-user { color: #c7d5dd; font-size: .75rem; }.mobile-account form { display: flex; }.mobile-account button { border: 1px solid #496173; border-radius: 6px; background: transparent; color: white; padding: 4px 7px; font-size: .68rem; cursor: pointer; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left,#dff4f6 0,transparent 36%),var(--canvas); }.auth-card { width: min(460px,100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px,5vw,38px); box-shadow: 0 24px 70px rgba(16,36,54,.12); }.auth-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 42px; }.auth-brand strong,.auth-brand small { display: block; }.auth-brand small { color: var(--muted); font-size: .78rem; }.auth-heading h1 { font-size: clamp(2.25rem,8vw,3.2rem); }.auth-heading > p:not(.eyebrow) { color: var(--muted); }.auth-form { display: grid; gap: 16px; margin-top: 24px; }.auth-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 750; }.auth-form .button { margin-top: 4px; }.auth-signout { display: flex; justify-content: center; margin-top: 14px; }.setup-account { display: grid; background: #eef8f9; border: 1px solid #cbe8eb; border-radius: 10px; padding: 13px 15px; margin-top: 22px; }.setup-account span,.route-message { color: var(--muted); font-size: .84rem; }
.auth-brand { justify-content: center; margin-bottom: 34px; }
.auth-logo { display: block; width: min(320px,100%); height: auto; }

.alert.success { background: #e7f7ef; border: 1px solid #b8e2ce; color: #145f42; }
.integration-setup { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,38px); display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px 20px; align-items: start; }
.integration-setup h2 { margin-bottom: 7px; }.integration-setup p { color: var(--muted); margin-bottom: 0; }
.integration-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 13px; color: white; background: #2ca01c; font-weight: 900; letter-spacing: -.04em; }
.integration-config { grid-column: 2; display: grid; gap: 10px; margin: 0; }
.integration-config div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf0f3; }
.integration-config dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }.integration-config dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.integration-config code { font-size: .84rem; font-weight: 500; }.integration-help { grid-column: 2; font-size: .84rem; }.integration-setup > .button { grid-column: 2; justify-self: start; }
.connection-strip { background: #eaf8ef; border: 1px solid #bfe3cb; border-radius: 11px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.connection-strip strong,.connection-strip small { display: block; }.connection-strip small { color: #4c715b; margin-top: 1px; }.connection-dot { width: 10px; height: 10px; border-radius: 50%; background: #2ca01c; box-shadow: 0 0 0 4px rgba(44,160,28,.13); }
.quickbooks-toolbar { margin-bottom: 16px; }.estimate-list { display: grid; gap: 13px; }.estimate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.estimate-picker-modal { width: min(720px,100%); }
.estimate-picker-search { display: grid!important; grid-template-columns: minmax(0,1fr) auto; margin: 18px 0; }
.estimate-picker-list { display: grid; gap: 8px; max-height: 48vh; overflow: auto; }
.estimate-picker-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fa; }
.estimate-picker-list strong,.estimate-picker-list small { display: block; }
.estimate-picker-list small { color: var(--muted); margin-top: 3px; }
.estimate-card > header { display: flex; justify-content: space-between; gap: 20px; }.estimate-card h2 { margin: 4px 0 3px; }.estimate-card header p { color: var(--muted); margin: 0; font-size: .86rem; }
.estimate-number { color: var(--cyan-dark); font-size: .73rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }.estimate-total { display: grid; justify-items: end; align-content: start; gap: 3px; }.estimate-total span { color: var(--muted); font-size: .75rem; }.estimate-total strong { font-size: 1.45rem; }
.estimate-meta { display: flex; gap: 24px; padding: 13px 0; margin-top: 14px; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; font-size: .84rem; font-weight: 700; }.estimate-meta span { display: grid; }.estimate-meta small { color: var(--muted); font-size: .67rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.estimate-lines { display: grid; gap: 8px; padding-top: 14px; }.estimate-lines > div { display: grid; grid-template-columns: minmax(0,1fr) 80px 100px; gap: 12px; align-items: start; font-size: .84rem; }.estimate-lines > div > span:first-child { display: grid; }.estimate-lines small { color: var(--muted); font-weight: 400; }.estimate-lines > div > strong:last-child { text-align: right; }.more-lines { display: block; padding-top: 3px; }
.estimate-card > footer { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 17px; }.draft-note { margin-right: auto; color: var(--muted); font-size: .8rem; }.imported-label { margin-right: auto; color: var(--green); font-size: .8rem; font-weight: 800; }

@media (max-width: 760px) {
  .mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-header .brand-logo-mark { width: 32px; height: 36px; flex-basis: 32px; }
  .mobile-header .brand-logo-mark img { height: 36px; }
  .mobile-identity { display: grid; gap: 2px; width: min(45vw,180px); }
  .mobile-identity label { font-size: .58rem; }
  .mobile-identity select { min-height: 34px; padding: 4px 7px; font-size: .78rem; }
  .integration-setup { grid-template-columns: 1fr; }.integration-mark,.integration-config,.integration-help,.integration-setup > .button { grid-column: 1; }.integration-config div { grid-template-columns: 1fr; gap: 2px; }
  .estimate-card > header { align-items: flex-start; }.estimate-meta { gap: 14px; flex-wrap: wrap; }.estimate-lines > div { grid-template-columns: minmax(0,1fr) auto; }.estimate-lines > div > strong:last-child { grid-column: 2; }.estimate-card > footer { align-items: stretch; flex-direction: column; }.draft-note,.imported-label { margin-right: 0; }
}

@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(auto-fit,minmax(58px,1fr)); }
  .employee-row { grid-template-columns: auto minmax(0,1fr); }
  .employee-access { grid-column: 2; justify-items: start; }
  .employee-actions { grid-column: 1 / -1; width: 100%; }
  .employee-actions .button { flex: 1; }
  .auth-shell { padding: 12px; align-items: start; }
  .auth-card { margin-top: 5vh; padding: 24px 20px; }
}

.job-form { gap: 10px; }
.job-form .form-section { padding: 18px 20px; }
.job-form .section-heading { margin-bottom: 14px; }
.job-form .section-heading p { font-size: .82rem; }
.job-form .form-grid { gap: 11px 13px; }
.job-form input,.job-form select { min-height: 40px; padding-block: 8px; }
.job-form textarea { min-height: 76px; padding-block: 8px; }
.form-grid.compact-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.schedule-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.schedule-toolbar label { display: grid; gap: 4px; width: min(230px,100%); font-size: .76rem; font-weight: 750; }
.schedule-day-editor { display: grid; gap: 7px; }
.schedule-day-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) 38px; align-items: end; gap: 8px; padding: 9px; background: #f6f8fa; border: 1px solid #e3e8ed; border-radius: 9px; }
.schedule-day-row label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.remove-schedule-day { width: 38px; height: 40px; font-size: 1.3rem; }
.button.compact { min-height: 36px; padding: 7px 11px; font-size: .82rem; }
.requirement-toolbar { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.requirement-toolbar label { display: grid; gap: 4px; width: 125px; font-size: .76rem; font-weight: 750; }
.requirement-editor { display: grid; gap: 7px; }
.requirement-edit-row { display: grid; grid-template-columns: minmax(220px,1fr) 105px 105px 38px; align-items: end; gap: 8px; padding: 9px; background: #f6f8fa; border: 1px solid #e3e8ed; border-radius: 9px; }
.requirement-edit-row label { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.requirement-edit-row .remove-requirement { width: 38px; height: 40px; font-size: 1.3rem; }
.compact-empty { padding: 11px 13px; margin: 0; font-size: .82rem; }
.employee-picker.compact-crew { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.compact-crew .employee-option { min-height: 42px; padding: 7px 9px; gap: 8px; }
.compact-crew .employee-option strong { font-size: .84rem; }
.requirement-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.requirement-detail-heading h2 { margin-bottom: 2px; }
.requirement-detail-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.office-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.overall-progress,.requirement-progress-copy progress { width: 100%; height: 8px; accent-color: var(--cyan-dark); }
.overall-progress { margin-bottom: 12px; }
.requirement-progress-list { display: grid; gap: 8px; }
.requirement-progress-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 11px 12px; background: #f6f8fa; border-radius: 9px; }
.requirement-progress-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 10px; }
.requirement-progress-copy span { color: var(--muted); font-size: .78rem; }
.requirement-progress-copy progress { grid-column: 1 / -1; }
.requirement-progress-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.requirement-progress-control input { width: 76px; min-height: 36px; padding: 6px 8px; }
.note-heading { align-items: flex-start; }
.note-meta { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.note-meta time,.note-edited { color: var(--muted); font-size: .77rem; }
.note-edited::before { content: "·"; margin-right: 7px; }
.note-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.note-action { border: 0; background: transparent; color: var(--cyan-dark); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; padding: 3px 5px; }
.note-action:hover { text-decoration: underline; }
.note-action.danger-text { color: #9d2d37; }
.note-edit-form { display: grid; gap: 8px; margin-top: 10px; }
.note-edit-form textarea { min-height: 84px; }
.note-edit-actions { display: flex; justify-content: flex-end; gap: 7px; }
.office-details-section,.commercial-panel { border-color: #b9dce3; background: #fbfeff; }
.private-source { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; background: #eaf6f8; color: #174c55; }
.private-source span { color: var(--muted); font-size: .78rem; }
.progressive-toggle { align-self: end; min-height: 40px; gap: 10px!important; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.progressive-toggle span,.progressive-toggle strong,.progressive-toggle small { display: block; }.progressive-toggle small { color: var(--muted); font-weight: 500; margin-top: 2px; }
.billing-progress { margin-top: 15px; }
.billing-history { display: grid; gap: 7px; margin-top: 14px; }
.billing-history > div { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 10px 12px; border-radius: 8px; background: #f3f7f8; }
.billing-history > div > span { display: grid; gap: 2px; text-align: right; }.billing-history > div > span:first-child { text-align: left; }.billing-history small { color: var(--muted); font-size: .75rem; }
.billing-entry-actions { display: flex; justify-content: flex-end; gap: 2px; margin-top: 3px; }
.billing-form-shortcuts { display: flex; justify-content: flex-end; margin-top: -2px; }
.billing-list { display: grid; gap: 14px; }.billing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }.billing-card .job-card { width: 100%; }
.billing-summary { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(160px,1fr) auto; align-items: center; gap: 15px; padding: 13px 8px 2px; }.billing-summary progress { width: 100%; height: 9px; accent-color: var(--cyan-dark); }
.billing-progress-copy { display: grid; gap: 2px; }.billing-progress-copy span { color: var(--muted); font-size: .78rem; }
.compact-history { border-top: 1px solid var(--line); padding-top: 10px; }.calculated-billing { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 8px; background: #eaf6f8; }.calculated-billing span { color: var(--muted); font-size: .8rem; }
.billing-input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }

@media (max-width: 760px) {
  .job-form .form-section { padding: 15px; }
  .form-grid.compact-3 { grid-template-columns: 1fr; }
  .schedule-toolbar { align-items: stretch; flex-direction: column; }
  .schedule-toolbar label { width: 100%; }
  .schedule-day-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 38px; }
  .requirement-toolbar label { width: 100%; }
  .requirement-toolbar .button { flex: 1; }
  .requirement-edit-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 38px; }
  .requirement-edit-row .requirement-name { grid-column: 1 / -1; }
  .employee-picker.compact-crew { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .requirement-detail-heading,.requirement-progress-row { align-items: stretch; grid-template-columns: 1fr; }
  .requirement-detail-heading { display: grid; }
  .requirement-progress-control { justify-content: flex-end; }
  .note-heading { flex-direction: column; gap: 7px; }
  .note-actions { align-self: flex-end; }
  .billing-summary { grid-template-columns: 1fr; }.billing-summary .button { width: 100%; }
  .billing-history > div { flex-direction: column; }.billing-history > div > span { text-align: left; }
  .billing-input-grid { grid-template-columns: 1fr; }
  .eod-job-picker { grid-template-columns: 1fr; }
  .eod-hours-row { grid-template-columns: minmax(0,1fr) 95px; }
  .eod-hours-row > div { grid-column: 1 / -1; }
  .eod-work-fields { grid-template-columns: 95px minmax(0,1fr); }
  .eod-work-fields .eod-job-details { grid-column: 1 / -1; grid-row: auto; }
  .eod-requirements > div { align-items: flex-start; flex-direction: column; }
  .eod-labor-preview { text-align: right; }
  .eod-report-job-heading { align-items: flex-start; flex-direction: column; }
  .estimate-picker-search { grid-template-columns: 1fr; }
  .estimate-picker-list article { align-items: stretch; flex-direction: column; }
  .eod-report-job { align-items: flex-start; flex-direction: column; }
  .eod-report-job small { text-align: left; }
  .eod-history-heading,.dashboard-eod-heading { align-items: stretch; flex-direction: column; }
  .eod-date-nav { justify-items: stretch; }
  .eod-date-nav > label { display: grid; }
  .eod-date-nav input { width: 100%; }
  .eod-history-heading .button-group { width: 100%; }
  .eod-history-heading .button-group .button { flex: 1; }
  .eod-comment-form { grid-template-columns: 1fr; }
  .dashboard-eod-list { grid-template-columns: 1fr; }
  .dashboard-actions { width: 100%; justify-content: flex-end; }
  .notification-panel { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 160px); }
  .eod-comment-list > div.reply { margin-left: 14px; }
  .reply-follow-up { align-items: stretch; flex-direction: column; }
  .reply-follow-up select { width: 100%; }
}
