/* A practical service-business workspace. No decorative dashboard chrome. */
.ops-workspace { min-width:0; font:16px/1.6 Inter,'Segoe UI',Arial,sans-serif; color:var(--ink); }
.ops-workspace [hidden],.ops-dialog [hidden] { display:none!important; }
.ops-workspace :is(h1,h2,h3),.ops-dialog :is(h1,h2,h3) { font-family:Inter,'Segoe UI',Arial,sans-serif; font-weight:650; letter-spacing:-.035em; }
.ops-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin:0 0 18px; }
.ops-heading .eyebrow { font-size:11px; letter-spacing:.12em; color:var(--muted); margin:0 0 7px; }
.owner-main .ops-heading h1,.ops-heading h1 { font-size:32px; line-height:1.2; letter-spacing:-.04em; overflow-wrap:anywhere; }
.ops-subtitle { font-size:15px; line-height:1.6; color:var(--muted); margin-top:8px; max-width:580px; }
.ops-heading-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center; flex-shrink:0; }
.ops-workspace :is(.button,.subtle-button),.ops-dialog :is(.button,.subtle-button) { min-height:44px; padding:11px 16px; font-size:14px; line-height:1.45; gap:12px; }
.ops-text-button,.ops-back { min-width:44px; min-height:44px; border:0; border-radius:8px; background:none; padding:9px 6px; font-size:14px; line-height:1.5; color:var(--blue); text-align:left; }
.ops-workspace :is(button,a,input,textarea,select,summary):focus-visible,.ops-dialog :is(button,a,input,textarea,select,summary):focus-visible,.ops-demo .owner-nav :is(button,a):focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.ops-text-button:hover,.ops-back:hover,.ops-remove:hover,.ops-close:hover { background:var(--accent-soft); color:var(--blue); }
.ops-workspace button:disabled,.ops-dialog button:disabled { opacity:.55; cursor:not-allowed; }
.ops-back { margin:0 0 18px; }
.ops-date-line { display:flex; align-items:center; flex-wrap:wrap; gap:15px; padding:0 0 10px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.ops-date-line strong { font-size:15px; font-weight:600; }
.ops-date-line > span { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.ops-date-line button { margin-left:auto; }
.ops-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.ops-metrics > div { display:flex; flex-direction:column; gap:7px; padding:17px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.ops-metrics strong { font-size:27px; letter-spacing:-.055em; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; }
.ops-metrics span { font-size:12px; line-height:1.5; color:var(--muted); }
.ops-today-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr); gap:20px; align-items:start; }
.ops-card { min-width:0; padding:20px; margin:0 0 18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); }
.ops-card h2 { font-size:20px; line-height:1.35; margin:0 0 12px; }
.ops-card-note { color:var(--muted); font-size:14px; line-height:1.65; margin:0 0 14px; }
.ops-card-heading { display:flex; gap:18px; justify-content:space-between; align-items:center; margin:18px 0; }
.ops-card-heading > button { flex-shrink:0; }
.ops-disclaimer { font-size:13px; line-height:1.65; color:var(--muted); }
.ops-job-row { display:grid; grid-template-columns:92px minmax(0,1fr) auto; gap:16px; align-items:center; width:100%; padding:16px 0; border:0; border-top:1px solid var(--line); border-radius:8px; background:none; color:var(--ink); text-align:left; }
.ops-job-row:hover .ops-job-info > strong { color:var(--blue); }
.ops-job-time { display:flex; flex-direction:column; gap:4px; }
.ops-job-time > strong { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.ops-job-time > span { font-size:12px; line-height:1.5; color:var(--muted); }
.ops-job-info > strong { display:block; font-size:16px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.ops-job-info > p { font-size:14px; line-height:1.55; color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.ops-job-end { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.ops-job-end > strong { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.ops-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid var(--line); border-radius:6px; font-size:12px; font-weight:500; line-height:1.5; color:var(--muted); background:var(--paper); white-space:nowrap; }
.ops-badge.status-scheduled,.ops-badge.status-in_progress { color:var(--blue); background:var(--accent-soft); }
.ops-badge.status-in_progress::before { content:''; width:6px; height:6px; background:var(--blue); border-radius:50%; }
.ops-badge.status-completed { color:var(--success); background:var(--success-bg); border-color:var(--success-bg); }
.ops-badge.status-cancelled { text-decoration:line-through; }
.ops-balances { margin:0; }
.ops-balances > div { padding:18px 0; border-top:1px solid var(--line); }
.ops-balances dt { color:var(--muted); font-size:14px; line-height:1.6; }
.ops-balances dd { margin:7px 0 0; font-size:26px; letter-spacing:-.04em; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ops-empty { padding:30px 10px; text-align:center; max-width:520px; margin:0 auto; }
.ops-empty-mark { display:inline-flex; width:40px; height:40px; justify-content:center; align-items:center; border:1px solid var(--line); border-radius:9px; color:var(--blue); margin-bottom:14px; font-size:23px; }
.ops-empty h3 { font-size:18px; line-height:1.4; margin-bottom:9px; }
.ops-empty p { font-size:15px; color:var(--muted); line-height:1.65; }
.ops-empty button { margin-top:18px; }
.ops-field { display:flex; flex-direction:column; gap:7px; font-size:14px; font-weight:600; line-height:1.5; margin:0 0 18px; min-width:0; }
.ops-field :is(input,textarea,select),.ops-checklist-row > input[type=text] { min-height:46px; width:100%; min-width:0; border:1px solid var(--control-border); border-radius:8px; padding:11px 12px; background:var(--surface); color:var(--ink); font-size:16px; font-weight:400; line-height:1.5; }
.ops-field :is(input,textarea,select):disabled { background:var(--soft); color:var(--muted); cursor:wait; }
.ops-field textarea { resize:vertical; min-height:88px; }
.ops-field input::placeholder,.ops-field textarea::placeholder { color:var(--muted); font-size:14px; }
.ops-filterbar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin:0 0 20px; }
.ops-filterbar > .ops-field { margin:0; flex:1; min-width:120px; }
.ops-filterbar > .ops-field:first-child { flex:2; min-width:180px; }
.ops-filterbar > button { flex-shrink:0; }
.ops-customer-row { display:flex; gap:15px; align-items:center; width:100%; border:0; border-top:1px solid var(--line); border-radius:8px; padding:17px 0; background:none; color:var(--ink); text-align:left; }
.ops-customer-row > div { min-width:0; }
.ops-customer-row:first-child { border-top:0; }
.ops-avatar { display:grid; place-items:center; width:42px; height:42px; flex-shrink:0; border-radius:10px; background:var(--soft); border:1px solid var(--line); color:var(--blue); font-size:16px; }
.ops-customer-row strong { font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.ops-customer-row p { font-size:14px; color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.ops-row-arrow { margin-left:auto; color:var(--muted); font-size:18px; }
.ops-customer-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:20px; align-items:start; }
.ops-contact-links { display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin-bottom:18px; overflow-wrap:anywhere; }
.ops-contact-links > a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; font-size:16px; line-height:1.5; }
.ops-preserve-lines { font-size:15px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.ops-vehicle { padding:15px 0; border-top:1px solid var(--line); }
.ops-vehicle strong { font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.ops-vehicle p { font-size:15px; color:var(--muted); margin-top:6px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.ops-two-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ops-job-editor { max-width:900px; }
.ops-job-editor > .ops-card { padding:25px; }
.ops-job-editor .ops-card > .ops-field:last-child { margin-bottom:0; }
.ops-job-editor > .ops-form-actions { position:sticky; bottom:12px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:0 8px 30px #0001; justify-content:flex-end; z-index:2; }
.ops-line-item { display:grid; grid-template-columns:minmax(0,2.2fr) 65px minmax(100px,1fr) 44px; gap:10px; align-items:center; }
.ops-remove { width:44px; min-width:44px; min-height:44px; padding:5px; border:0; border-radius:8px; background:none; color:var(--muted); font-size:23px; }
.ops-job-total { font-size:21px; letter-spacing:-.035em; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); text-align:right; }
.ops-check { display:flex; gap:8px; align-items:start; font-size:14px; line-height:1.6; padding:12px; border:1px solid var(--line); border-radius:8px; margin-top:16px; background:var(--paper); cursor:pointer; }
.ops-check > span { padding-top:10px; }
.ops-check > input,.ops-checklist-row > input[type=checkbox] { appearance:none; position:relative; flex:none; width:44px; height:44px; min-width:44px; margin:0; padding:0; border:0; border-radius:8px; background:transparent; cursor:pointer; }
.ops-check > input::before,.ops-checklist-row > input[type=checkbox]::before { content:''; position:absolute; inset:12px; border:1px solid var(--control-border); border-radius:4px; background:var(--surface); }
.ops-check > input:checked::before,.ops-checklist-row > input[type=checkbox]:checked::before { border-color:var(--blue); background:var(--blue); }
.ops-check > input:checked::after,.ops-checklist-row > input[type=checkbox]:checked::after { content:''; position:absolute; top:16px; left:19px; width:6px; height:10px; border:solid var(--blue-ink); border-width:0 2px 2px 0; transform:rotate(45deg); }
.ops-checklist { display:grid; gap:10px; margin-bottom:8px; }
.ops-checklist-row { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:8px; }
.ops-checklist-row > input[type=text] { font-size:16px; min-height:46px; }
.ops-ledger-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.ops-ledger-summary strong { display:block; font-size:24px; letter-spacing:-.035em; font-weight:600; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.ops-ledger-summary span { display:block; font-size:14px; line-height:1.5; color:var(--muted); margin-top:6px; }
.ops-payment { display:flex; justify-content:space-between; gap:20px; align-items:start; border-top:1px solid var(--line); padding:17px 0; }
.ops-payment strong { font-size:14px; font-weight:600; }
.ops-payment > div { min-width:0; }
.ops-payment p { font-size:14px; line-height:1.6; color:var(--muted); margin-top:6px; overflow-wrap:anywhere; }
.ops-payment.is-voided > div > strong { text-decoration:line-through; color:var(--muted); }
.ops-payment .ops-void-label { font-size:12px; color:var(--ink); }
.ops-history { margin-top:16px; border-top:1px solid var(--line); padding-top:18px; }
.ops-history > summary { cursor:pointer; font-size:14px; min-height:44px; padding:8px 0; }
.ops-history ol { list-style:none; padding:0; margin:12px 0; }
.ops-history li { padding:14px 0; border-top:1px solid var(--line); }
.ops-history strong { display:block; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.ops-history time { display:block; margin-top:4px; font-size:12px; color:var(--muted); }
.ops-pagination { display:flex; justify-content:flex-end; gap:12px; align-items:center; margin:18px 0; font-size:12px; color:var(--muted); }
.ops-pagination > span { margin-right:auto; }
.ops-toast { padding:12px 15px; border:1px solid var(--line); border-radius:8px; background:var(--accent-soft); color:var(--ink); font-size:14px; margin-bottom:20px; overflow-wrap:anywhere; }
.ops-toast:empty { display:none; }
.ops-error,.ops-toast.error { color:var(--danger); font-size:14px; line-height:1.6; padding:13px 0; white-space:pre-line; overflow-wrap:anywhere; }
.ops-toast.error { padding:12px 15px; background:var(--danger-bg); }
.ops-error:empty { display:none; }
.ops-loading { font-size:14px; color:var(--muted); padding:40px 0; }
.ops-dialog { width:min(560px,calc(100% - 32px)); max-height:calc(100dvh - 40px); padding:26px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface); box-shadow:0 18px 70px #07152c30; font:16px/1.6 Inter,'Segoe UI',Arial,sans-serif; overflow:auto; overflow-wrap:anywhere; overscroll-behavior:contain; }
.ops-dialog::backdrop { background:#07152c80; backdrop-filter:blur(3px); }
.ops-dialog-heading { display:flex; justify-content:space-between; align-items:start; gap:20px; margin-bottom:24px; }
.ops-dialog-heading h2 { font-size:25px; line-height:1.3; }
.ops-dialog-heading p { color:var(--muted); font-size:15px; margin-top:10px; line-height:1.65; }
.ops-close { width:44px; min-width:44px; height:44px; border:0; border-radius:8px; background:none; color:var(--muted); font-size:26px; padding:0; }
.ops-form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:22px; }
.ops-demo-banner { position:sticky; top:0; z-index:10; border-bottom:1px solid var(--line); background:var(--soft); color:var(--ink); font-size:12px; text-align:center; line-height:1.5; padding:11px 20px; }
.ops-demo-banner strong { font-weight:600; }
.ops-demo .owner-layout { display:grid; }
.ops-demo .owner-nav { border-right:1px solid var(--line); display:flex; flex-direction:column; }
.ops-demo .owner-nav button { min-height:44px; border:0; border-radius:8px; background:transparent; color:var(--ink); font-size:14px; text-align:left; }
.ops-demo .owner-nav button.active { color:var(--blue); background:var(--accent-soft); box-shadow:inset 3px 0 var(--blue); }
.ops-demo .owner-main { width:100%; }
.ops-demo .owner-nav .ops-demo-cta { margin:22px 12px; color:var(--blue); font-size:13px; }
@media(max-width:1100px) { .ops-today-grid { grid-template-columns:1fr; } .ops-heading-actions { flex-shrink:1; } }
@media(max-width:760px) {
 .ops-heading { flex-direction:column; gap:14px; }
 .ops-heading-actions { justify-content:flex-start; }
 .owner-main .ops-heading h1,.ops-heading h1 { font-size:28px; }
 .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .ops-metrics > div { padding:18px; }
 .ops-customer-grid { grid-template-columns:1fr; }
 .ops-demo .owner-layout { grid-template-columns:1fr; }
 .ops-demo .owner-nav { display:flex; flex-direction:row; flex-wrap:nowrap; padding:10px 20px; border-right:0; border-bottom:1px solid var(--line); gap:8px; overflow-x:auto; }
 .ops-demo .owner-nav > p,.ops-demo .ops-demo-cta { display:none; }
 .ops-demo .owner-nav > button { flex:0 0 auto; padding:10px 14px; white-space:nowrap; text-align:center; }
 .ops-demo .owner-nav button.active { box-shadow:inset 0 -2px var(--blue); }
 .ops-demo .owner-main { padding:24px 20px 55px; }
}
@media(max-width:600px) {
 .ops-subtitle,.ops-card-note,.ops-disclaimer,.ops-empty p,.ops-preserve-lines,.ops-vehicle p,.ops-check,.ops-history strong,.ops-dialog-heading p,.ops-error,.ops-toast,.ops-toast.error { font-size:16px; line-height:1.6; }
 .ops-card h2 { font-size:19px; }
 .ops-heading-actions { width:100%; gap:8px; }
 .ops-date-line { gap:8px 12px; }
 .ops-date-line > span { font-size:13px; }
}
@media(max-width:480px) {
 .ops-card,.ops-job-editor > .ops-card { padding:18px 16px; }
 .ops-job-row { grid-template-columns:65px minmax(0,1fr); gap:12px; }
 .ops-job-end { grid-column:2; flex-direction:row; justify-content:space-between; width:100%; }
 .ops-two-fields { grid-template-columns:1fr; gap:0; }
 .ops-field :is(input,textarea,select) { font-size:16px; }
 .ops-line-item { grid-template-columns:minmax(0,1fr) 60px 44px; gap:8px; border-top:1px solid var(--line); padding-top:14px; }
 .ops-line-item > .ops-field:first-child { grid-column:1/3; }
 .ops-line-item > .ops-field:nth-child(2) { grid-column:2; grid-row:2; }
 .ops-line-item > .ops-field:nth-child(3) { grid-column:1; grid-row:2; }
 .ops-line-item > button { grid-column:3; grid-row:1/3; }
 .ops-filterbar { gap:10px; }
 .ops-filterbar > .ops-field { min-width:110px; }
 .ops-filterbar > .ops-field:first-child { min-width:100%; }
 .ops-ledger-summary { grid-template-columns:1fr; gap:15px; }
 .ops-ledger-summary > div { display:flex; justify-content:space-between; gap:16px; align-items:center; }
 .ops-ledger-summary strong { font-size:22px; }
 .ops-ledger-summary span { margin:0; font-size:13px; text-align:right; }
 .ops-card-heading,.ops-payment { flex-direction:column; gap:10px; }
 .ops-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 24px); padding:22px 18px; }
 .ops-dialog-heading { gap:10px; margin-bottom:20px; }
 .ops-dialog-heading h2 { font-size:23px; }
 .ops-dialog .ops-form-actions > :is(.button,.subtle-button),.ops-job-editor > .ops-form-actions > button { flex:1 1 100%; justify-content:center; text-align:center; }
 .ops-job-editor > .ops-form-actions { bottom:8px; padding:10px; gap:6px; }
 .ops-pagination { flex-wrap:wrap; gap:8px; }
 .ops-pagination > span { flex-basis:100%; font-size:13px; }
}

:root[data-theme=dark] :is(.ops-error,.ops-toast.error) { color:var(--danger); }
@media(max-width:520px) {
 .ops-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-bottom:16px; }
 .ops-metrics > div { min-width:0; padding:10px; gap:6px; border-radius:8px; }
 .ops-metrics strong { font-size:22px; line-height:1.2; }
 .ops-metrics span { font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
}

/* Product information stays dense; color communicates action or actual status. */
.ops-avatar,.ops-empty-mark{color:var(--blue);background:var(--accent-soft);border-color:var(--line)}
.ops-job-row:hover,.ops-customer-row:hover{background:var(--soft)}
.ops-job-editor>.ops-form-actions{box-shadow:var(--shadow)}
.ops-demo-banner{background:var(--soft);color:var(--muted)}
@media(forced-colors:active) {
 .ops-check > input,.ops-checklist-row > input[type=checkbox] { appearance:auto; accent-color:Highlight; }
 .ops-check > input::before,.ops-check > input::after,.ops-checklist-row > input[type=checkbox]::before,.ops-checklist-row > input[type=checkbox]::after { display:none; }
}
@media(max-width:360px) {
 .ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ops-metrics>div{padding:12px}
 .ops-metrics span{overflow-wrap:normal}
}

/* The appointment book and location board are working views of the same jobs. */
.ops-schedule-modes{display:inline-flex;gap:4px;flex-wrap:wrap;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin-bottom:24px}
.ops-schedule-modes .subtle-button{border-color:transparent;background:transparent;box-shadow:none}
.ops-schedule-modes [aria-pressed=true]{background:var(--surface);border-color:var(--line);color:var(--blue);box-shadow:var(--shadow)}
.ops-schedule-workspace{min-width:0}
.ops-customer-address{font-size:16px;white-space:pre-line;margin-top:20px}
.ops-job-info>.ops-job-location{font-size:13px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.ops-address-links{margin-top:14px}
.schedule-route-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.schedule-route-toolbar .ops-field{margin:0;min-width:160px}
.schedule-route-status{font-size:14px;color:var(--muted);margin:18px 0;line-height:1.65}
.schedule-route-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:20px;align-items:start}
.schedule-route-map{min-width:0;position:sticky;top:20px}
.schedule-route-stops{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:22px;min-width:0}
.schedule-route-stops h2{font-size:22px;margin-bottom:8px}
.schedule-stop{padding:20px 0;border-top:1px solid var(--line)}
.schedule-stop:first-of-type{border-top:0}
.schedule-stop-time{color:var(--muted);font-size:13px;margin-bottom:8px;text-transform:capitalize}
.schedule-stop-title{display:block;min-height:44px;text-align:left;border:0;background:none;padding:0;color:var(--blue);font-size:17px;font-weight:650;line-height:1.45;cursor:pointer}
.schedule-stop>p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.schedule-stop-address{margin:12px 0;color:var(--ink)}
.schedule-stop>.schedule-stop-help{font-size:12px;color:var(--muted);margin-top:10px}
@media(max-width:1100px){.schedule-route-layout{grid-template-columns:1fr}.schedule-route-map{position:static}}
@media(max-width:600px){.ops-schedule-modes{display:flex}.ops-schedule-modes .subtle-button{flex:1;padding:10px 8px;font-size:13px}.schedule-route-toolbar .ops-field{order:-1;flex-basis:100%}.schedule-route-toolbar>.subtle-button{flex:1;font-size:12px;padding:10px 8px}.schedule-route-stops{padding:18px}.schedule-stop>p{font-size:16px}}
.schedule-stop-locate { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin-top:8px; padding:9px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--blue); font:600 14px/1.5 Inter,'Segoe UI',Arial,sans-serif; cursor:pointer; }
.schedule-stop-locate[aria-pressed=true] { background:var(--accent-soft); border-color:var(--blue); }
.schedule-stop-locate:disabled { opacity:.5; cursor:default; }
.schedule-stop-locate:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.schedule-stop.is-map-focused { box-shadow:inset 3px 0 var(--blue); padding-left:18px; }
