:root{font:16px/1.5 system-ui,sans-serif;color:#18253a;background:#f2f5fa;color-scheme:light;--nav:#111b2e;--accent:#245be8;--muted:#51617a;--line:#dce4f0;--surface:#fff}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:280px}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:#fff;padding:.57rem .85rem}button:hover{background:#e9effe}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7b9eff;outline-offset:2px}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:#1749c8}.login{min-height:100svh;display:grid;place-items:center;padding:1.5rem;background:radial-gradient(ellipse at 80% 0,#dce7ff,#f2f5fa 65%)}.login-card{background:white;padding:2rem;width:min(100%,430px);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 65px #18376017}.login-card h1{margin:1.3rem 0 1rem}.login-card label{display:block;margin-bottom:1rem}.login-card input{display:block;width:100%;margin-top:.3rem}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.18rem;white-space:nowrap}.brand img{width:36px;height:36px;border-radius:10px}.workspace{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100svh}.sidebar{background:var(--nav);color:white;padding:1.4rem 1rem;display:flex;flex-direction:column;gap:1.5rem}.sidebar .brand{padding:0 .35rem}.sidebar nav{display:grid;gap:.25rem}.sidebar button{border:1px solid transparent;background:transparent;color:#dce6ff;text-align:left;padding:.55rem .7rem}.sidebar button:hover,.sidebar button[aria-current]{background:#29416f;color:white}.sidebar button[aria-current]{border-color:#587dc1}.account-box{margin-top:auto;display:grid;padding:.5rem;gap:.25rem}.account-box button{align-self:start}.topbar{display:flex;justify-content:end;align-items:center;gap:1rem;padding:.75rem 1.6rem;border-bottom:1px solid var(--line);background:#fff}.topbar #environment{font-size:.875rem;color:var(--muted)}.content{max-width:1250px;margin:auto;padding:1.6rem clamp(1rem,4vw,3rem) 3rem}.content h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.04em;margin:0 0 .8rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:1rem}.card,.panel{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:1.05rem 1.2rem;min-width:0}.card strong{display:block;font-size:2.3rem;color:#1348cc}.panel h2{font-size:1.15rem;margin:0 0 .8rem}.panel+.panel{margin-top:1rem}.rows{display:grid;gap:.65rem}.record{display:grid;gap:.2rem;padding:.85rem 1rem;background:white;border:1px solid var(--line);border-radius:11px;min-width:0;overflow-wrap:anywhere}.record span,.muted{color:var(--muted)}.record audio{width:min(100%,420px)}.controls{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.65rem 0}input,textarea,select{padding:.62rem;border-radius:10px;border:1px solid #aabbd6;background:#fff;color:inherit;max-width:100%}textarea{width:100%;resize:vertical;min-height:5rem}.approval{border-color:#d29939;background:#fff8e8}output{display:block;margin:.5rem 0;color:#82431c}#nav-toggle{display:none}.stream{max-height:16rem;overflow:auto}.assistant-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:1rem;align-items:start}.assistant-grid>.panel{margin:0}.record button{text-align:left;justify-self:start}.record details summary{cursor:pointer}.calendar-day{margin:1rem 0 .4rem}@media(max-width:880px){.assistant-grid{grid-template-columns:1fr}}@media(max-width:680px){.workspace{grid-template-columns:1fr;grid-template-rows:auto 1fr}.sidebar{padding:.75rem 1rem;gap:.6rem}.sidebar nav,.account-box{display:none}.sidebar.open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar.open .account-box{display:grid}.topbar{justify-content:start}.topbar .language{margin-left:auto}#nav-toggle{display:block}}

.voice-panel{background:#fff;border:1px solid #dbe4f3;border-radius:22px;min-width:0;overflow:hidden;box-shadow:0 12px 30px #192e5810}.voice-panel-header{background:#101b33;color:#edf4ff;padding:1.1rem 1.25rem;display:grid;grid-template-columns:1fr auto;gap:.45rem 1rem;align-items:center}.voice-panel-header h2{margin:0;font-size:clamp(1.05rem,2vw,1.35rem)}.voice-indicator{border:1px solid #5470a9;border-radius:90px;padding:.2rem .65rem;font-size:.875rem;white-space:nowrap;border-color:#7e91bb}.voice-indicator[data-state=listening]{background:#065947;border-color:#56caaa;color:white}.voice-indicator[data-state=thinking],.voice-indicator[data-state=transcribing]{background:#5d471c;border-color:#e0ab4c}.voice-indicator[data-state=speaking]{background:#214eb7;border-color:#a4bbff}.voice-bars{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:.32rem;height:3.15rem}.voice-bars i{width:.42rem;height:2.55rem;border-radius:10px;background:#8bb0ff;transform:scaleY(.18);transition:transform .1s}.voice-toolbar,.voice-actions,.voice-compose,.voice-panel>output{padding:0 1.05rem}.voice-toolbar .controls{gap:.5rem;margin:.65rem 0}.voice-history{max-height:24rem;min-height:7rem;overflow-y:auto;padding:.75rem 1.05rem;border-block:1px solid #e6ecf6;background:#f9fbff}.voice-message{margin:.55rem 0;padding:.55rem .75rem;border-radius:12px;background:white;border:1px solid #dbe4f3;max-width:min(85%,52rem);overflow-wrap:anywhere}.voice-message.you{margin-left:auto;background:#e8efff}.voice-message p{margin:.15rem 0;white-space:pre-wrap}.voice-message b{font-size:.85rem;color:#42577d}.voice-compose{display:flex;gap:.55rem;padding-bottom:1rem}.voice-compose input{width:100%;min-width:0}.voice-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding-top:.5rem}.voice-actions:empty{display:none}.voice-action-label{color:#385895;font-family:ui-monospace,monospace;font-size:.82rem}.voice-error{color:#9a3025}.voice-dock{max-width:1250px;margin:0 auto;padding:0 clamp(1rem,4vw,3rem) 1.3rem}.voice-dock .voice-history{max-height:11rem;min-height:3rem}.voice-dock:empty{display:none}.developer-grid{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,2fr);gap:1rem;margin-top:1rem;align-items:start}.developer-grid>.panel{margin:0;overflow-wrap:anywhere}.dev-task{padding:.5rem 0;border-bottom:1px solid var(--line);display:grid;gap:.2rem}.dev-task button{text-align:left}.dev-task button[aria-current]{background:#e8efff;border-color:#7193ed}.developer-grid pre{white-space:pre-wrap;max-height:24rem;overflow:auto;padding:.75rem;background:#eff4fb;border-radius:9px}.developer-grid h3{font-size:1rem;margin:.6rem 0 .2rem}@media(max-width:800px){.developer-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.voice-bars i{transition:none}}

.schedule-shortcut:empty {display:none}
.schedule-shortcut button {min-height:48px;min-width:112px}

.calls-panel {min-width:0}
.calls-filters {display:flex;flex-wrap:wrap;gap:.55rem}
.calls-sync {display:block;margin:.8rem 0;font-size:.88rem}
.call-card {padding:.9rem;border:1px solid var(--line,#31404d);border-radius:.75rem;min-width:0}
.call-card-head {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .85rem;margin-bottom:.4rem}
.call-card-head time,.call-state {font-size:.88rem}
.call-missed {color:#d1444f}
.call-state {border-radius:.6rem;padding:.15rem .45rem;background:rgba(85,114,148,.17)}
.call-state:empty {display:none}
.call-card summary {cursor:pointer;min-height:2rem}
.call-player {display:grid;gap:.55rem;max-width:38rem;margin:.8rem 0}
.call-player button {min-height:44px;font-size:1rem;justify-self:start}
.call-player audio,.call-player select {width:100%;max-width:100%}
.call-analysis {border-top:1px solid var(--line,#31404d);overflow-wrap:anywhere}
.call-analysis h4 {margin:1rem 0 .35rem}
@media(max-width:640px){
 .calls-filters {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .calls-filters input {grid-column:1/-1;width:100%}
 .calls-filters select {min-width:0;width:100%}
 .call-card {padding:.65rem}
 .call-player button {min-width:9rem}
}

/* morzh-dev-density */
.developer-task-files{gap:16px}

/* Customer, order and calendar views */
.workspace > main {min-width:0}
.schedule-shortcut {margin-bottom:.85rem}
.field-work {max-width:58rem;min-width:0;overflow-wrap:anywhere}
.field-work button,.field-work input,.field-work select,.field-work summary,
.field-work .card-action,.topbar button,.sidebar button {min-height:44px}
.field-work :is(a,summary):focus-visible,.schedule-shortcut button:focus-visible {
  outline:3px solid #245be8;
  outline-offset:2px;
}
.field-work .panel,.field-work .record {padding:.8rem}
.mobile-card,.card-group,.card-form,.card-address,.schedule-view {display:grid;min-width:0;gap:.75rem}
.mobile-card {
  margin-top:.5rem;
  padding:.8rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8faff;
}
.mobile-card h3,.mobile-card p,.card-feedback {margin:0}
.mobile-card h3 {font-size:1rem}
.mobile-card p {white-space:pre-wrap}
.card-group,.card-section {border-top:1px solid var(--line);padding-top:.55rem}
.card-group {gap:.5rem}
.card-group .rows {gap:.35rem}
.field-work .history-job {padding:.45rem .6rem}
.history-job > span {font-size:.875rem}
.job-lead {display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem .65rem}
.job-lead > strong {min-width:0}
.job-lead .job-badge {
  border-radius:1rem;
  padding:.16rem .55rem;
  font-size:.875rem;
  font-weight:650;
  color:#334155;
  background:#eef2f6;
}
.job-lead .job-badge[data-status=scheduled] {color:#183d82;background:#e1edff}
.job-lead .job-badge[data-status=in_progress] {color:#694006;background:#fff0c7}
.job-lead .job-badge[data-status=completed] {color:#125938;background:#dbf5e7}
.job-lead .job-badge[data-status=canceled] {color:#862c36;background:#ffe6e9}
.card-toggle,.card-action,.card-address button,.card-form button {width:100%;text-align:left}
.card-action {
  display:flex;
  align-items:center;
  padding:.5rem .75rem;
  color:#173e93;
  background:#edf3ff;
  border:1px solid #b9ccf1;
  border-radius:10px;
  overflow-wrap:anywhere;
}
.card-action[aria-busy=true],.card-toggle[aria-busy=true] {cursor:progress}
.card-toggle[aria-expanded=true] {background:#edf3ff;border-color:#b9ccf1}
.card-section summary {cursor:pointer;padding:.55rem .3rem;font-weight:650}
.card-section[open] > summary {margin-bottom:.45rem}
.card-form label,.schedule-view > label {display:grid;gap:.25rem;min-width:0;font-weight:600}
.card-form :is(input,select),.schedule-view input {width:100%;min-width:0;font-weight:400}
.card-feedback {color:#125938;font-size:.9375rem}
.card-feedback[data-error=true] {color:#8d242f}
.card-feedback:empty {height:0;overflow:hidden}
.card-form > .card-feedback {grid-column:1/-1}
.job-photos .card-section {border:0;padding:0}
.job-photo-actions {display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}
.job-photo-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,6rem),1fr));
  gap:.5rem;
  margin-top:.5rem;
}
.field-work .job-photo-thumb {aspect-ratio:1;overflow:hidden;padding:0}
.job-photo-thumb img {display:block;width:100%;height:100%;object-fit:cover}
.job-photo-viewer {max-width:min(94vw,64rem);max-height:90dvh;border:1px solid var(--line);border-radius:12px}
.job-photo-viewer::backdrop {background:rgb(15 23 42 / .8)}
.job-photo-viewer img {display:block;max-width:100%;max-height:72dvh;object-fit:contain}
@media(min-width:720px){
  .field-work .panel,.field-work .record,.mobile-card {padding:1rem 1.2rem}
  .field-work .history-job {padding:.45rem .7rem}
  .card-toggle,.card-action,.card-address button,.card-form button {width:fit-content;max-width:100%}
  .card-form {grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));align-items:end}
  .schedule-view > label {max-width:17rem}
}

.message-compose label { display: grid; gap: .35rem; }
.message-compose input, .message-compose textarea { width: 100%; min-width: 0; }
.message-compose button { justify-self: start; }
.message-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.message-record p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-record a { width: fit-content; }

.estimate-form fieldset{border:0;padding:0;margin:0;min-inline-size:0}
.estimate-form label{display:grid;gap:.2rem;min-width:0}
.estimate-line{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.65rem;align-items:end}

.invoice-controls, .invoice-line {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.invoice-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .5rem;
  align-items: end;
}
.invoice-line label {
  display: grid;
  gap: .25rem;
}
.invoice-line input, .invoice-line select {
  width: 100%;
  min-width: 0;
}
.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.clients-view,.client-detail,.client-related,.client-form{display:grid;gap:.75rem;min-width:0}
.clients-view>input{width:100%}
.clients-view output:empty,.client-form output:empty{display:none}
.client-related h3,.client-detail>p{margin:0}
.client-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));align-items:end}
.client-form label{display:grid;gap:.25rem;min-width:0}
.client-form input,.client-form textarea{width:100%;min-width:0}
.client-form textarea{min-height:5rem;resize:vertical}
.client-form output{grid-column:1/-1}
.client-detail .record{overflow-wrap:anywhere}
.client-detail details[open]>form,.clients-view details[open]>form{margin-top:.75rem}

.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem}
.calendar-column{min-width:0;background:#f2f5fa;border-radius:10px;padding:.55rem}
.calendar-column h2{font-size:1rem;margin:0 0 .55rem}
.calendar-column p{margin:0}
.calendar-toolbar button[aria-pressed="true"]{background:#e9effe;border-color:#245be8}
.calendar-visit{display:grid;gap:.3rem;width:100%;padding:.55rem;text-align:left;overflow-wrap:anywhere}
.calendar-visit span{font-size:.85rem}
.visit-status{display:inline-block;justify-self:start;background:#edf1f7;color:#334760;border-radius:8px;padding:.12rem .45rem}
.visit-status-scheduled,.visit-status-confirmed{background:#e4edff;color:#143e85}
.visit-status-in_progress{background:#fff0cf;color:#714500}
.visit-status-completed{background:#dcf4e7;color:#155635}
.visit-status-cancelled,.visit-status-canceled{background:#fbe7ea;color:#81253b}
.calendar-create [role="status"]{flex-basis:100%;margin:0}
@media(max-width:1100px){
  .calendar-week{grid-template-columns:minmax(0,1fr)}
}


.owner-settings,.settings-layout,.settings-vault{display:grid;gap:1rem;min-width:0}
.messaging-settings{display:grid;gap:1rem;min-width:0;align-items:start}
.settings-card{display:grid;gap:.8rem;min-width:0;margin:0;padding:clamp(.85rem,2vw,1.25rem);border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.settings-card legend{font-weight:700;padding:0 .4rem}
.settings-card label{display:grid;gap:.3rem;min-width:0;font-weight:550}
.settings-card .messaging-toggle{display:flex;gap:.65rem;align-items:center;min-height:44px}
.settings-card input,.settings-card select,.settings-card textarea{width:100%;min-width:0;min-height:44px}
.settings-card input[type=checkbox]{width:1.15rem;height:1.15rem;min-height:0;flex:none;margin:0}
.settings-card p,.settings-layout output{margin:0;overflow-wrap:anywhere}
.settings-card .muted{font-size:.925rem}
.settings-actions,.settings-credentials{display:grid;gap:.65rem}
.settings-card button{min-height:44px}
.settings-layout output:empty{display:none}
.settings-layout output{padding:.65rem .75rem;border-radius:9px;color:#23436a;background:#eef4fe}
.settings-layout output[data-error=true]{color:#8c2920;background:#fff1ee}
.settings-reveal{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;padding:.75rem;border:1px solid var(--line);border-radius:10px;background:#f2f5fa}
.settings-reveal code{flex:1 1 14rem;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
@media(min-width:1000px){
  .messaging-settings{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .messaging-settings>.settings-card:first-child{grid-row:span 2}
  .settings-credentials{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
  .settings-actions{display:flex;flex-wrap:wrap}
  .settings-card button.primary{justify-self:start}
}

.developer-activity-nav{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.75rem}.developer-activity-nav button{min-height:44px}.developer-activity-events{display:grid;gap:.4rem;padding-inline-start:1.4rem;overflow-wrap:anywhere}.developer-activity-events li{padding-block:.25rem}

.developer-view,.developer-view form,.developer-report{min-width:0;overflow-wrap:anywhere}
.developer-view form,.developer-task-history{display:grid;gap:.65rem}
.developer-view input[type=file]{max-width:100%}
.developer-view button{min-width:0;min-height:44px;white-space:normal}
.developer-history-card{display:grid;gap:.3rem;text-align:start}
.developer-history-card[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}
.developer-view small{display:block}
.developer-activity-events p,.developer-report p{margin-block:.25rem}
.developer-report pre{white-space:pre-wrap;overflow-wrap:anywhere}

/* Keep AI Developer composer inside narrow viewports. */
.developer-view form{grid-template-columns:minmax(0,1fr)}

.topbar [data-connectivity]{font-size:.875rem;color:var(--muted)}
#local-job-draft{margin-bottom:1rem}
#local-job-draft summary{cursor:pointer}
@media(max-width:440px){.topbar{flex-wrap:wrap;gap:.4rem .65rem}}
#local-job-draft .panel {min-width:0;overflow-wrap:anywhere}
#local-job-draft .rows {grid-template-columns:minmax(0,1fr);margin-block:.75rem}
#local-job-draft :is(input:not([type=checkbox]),textarea) {width:100%;min-width:0;max-width:100%}
#local-job-draft button {min-height:44px;max-width:100%;white-space:normal}
#local-job-draft details > button {margin:.2rem .4rem .2rem 0}
#local-job-draft output {display:block}

.apk-download{display:inline-block;max-width:100%;padding:.75rem 1.2rem;border-radius:10px;background:#245be8;color:white;font-weight:700;text-align:center;text-decoration:none;overflow-wrap:anywhere;min-height:44px}
.apk-download:hover{background:#1749c8;color:white}
.apk-download:focus-visible{outline:3px solid #7b9eff;outline-offset:3px}
/* Morzh CRM 2.0: calm, accessible design system */
:root{font-family:Inter,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.5;color:#17243b;background:#f5f7fb;--nav:#101d34;--accent:#2563eb;--muted:#64748b;--line:#e2e8f0;--surface:#fff;--morzh-soft:#eff5ff;--morzh-shadow:0 6px 26px #132b5210}
body{background:#f5f7fb;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font-family:inherit}
button{min-height:44px;font-weight:600;border-radius:12px;transition:background .15s ease,box-shadow .15s ease}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #80a7ff;outline-offset:2px}
button.primary,.apk-download{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 5px 12px #2563eb24}
button.primary:hover,.apk-download:hover{background:#1d4ed8;box-shadow:0 8px 18px #2563eb30}
input,textarea,select{border:1px solid #bdcade;border-radius:12px;background:#fff;min-height:44px}
input::placeholder,textarea::placeholder{color:#7b8aa1}
label{color:#263a55}
.workspace{grid-template-columns:256px minmax(0,1fr);min-height:100svh}
.sidebar{background:linear-gradient(165deg,#12233d,#0b1930);padding:1.35rem 1rem;gap:1.1rem;min-width:0;box-shadow:5px 0 24px #1a2c4710}
.sidebar .brand{font-size:1.13rem;font-weight:750;padding:.35rem .55rem .7rem;letter-spacing:-.025em}
.sidebar .brand img{height:40px;width:40px}
.sidebar nav{display:grid;gap:.22rem}
.sidebar nav button{display:flex;align-items:center;gap:.75rem;min-height:45px;border-radius:11px;font-size:.93rem;font-weight:550;padding:.65rem .8rem;letter-spacing:.005em}
.sidebar nav button:hover{background:#233e65;color:#fff}
.sidebar nav button[aria-current=page]{background:#e9f1ff;color:#173d83;border-color:transparent;box-shadow:0 3px 9px #00000013;font-weight:750}
.nav-icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar .account-box{margin-top:auto;padding:1rem .6rem .2rem;border-top:1px solid #405372;gap:.65rem;font-size:.88rem;color:#bdcce2}
.sidebar .account-box button{min-height:42px;border:1px solid #536781;padding:.5rem .8rem}
.topbar{min-height:68px;position:sticky;top:0;z-index:15;gap:.75rem;background:#ffffffed;backdrop-filter:blur(14px);border-bottom:1px solid #e8eef7;padding:.8rem clamp(1rem,3vw,2.25rem)}
.topbar #environment{padding:.3rem .65rem;background:#eef4ff;border-radius:99px;color:#33527b;font-weight:650;font-size:.77rem}
.topbar [data-connectivity]{font-size:.83rem}
.content{max-width:1390px;width:100%;padding:2rem clamp(1rem,3.3vw,3rem) 5rem}
.content>h1{font-size:clamp(1.65rem,3vw,2.3rem);letter-spacing:-.045em;line-height:1.14;font-weight:800;margin:0 0 1.35rem}
.panel,.card{background:#fff;border:1px solid #e6ecf4;border-radius:19px;box-shadow:var(--morzh-shadow);padding:1.25rem 1.4rem}
.panel h2{font-size:1.08rem;letter-spacing:-.02em;font-weight:750;color:#17243b}
.grid{gap:1rem}
.record{border-color:#e3eaf4;background:#fff;border-radius:14px;box-shadow:0 2px 8px #223d6410;padding:1rem 1.15rem;transition:border-color .15s ease,box-shadow .15s ease}
.record:hover{border-color:#c9d9f3;box-shadow:0 6px 16px #223d6414}
.rows{gap:.75rem}
.muted{color:var(--muted)}
#local-job-draft details{border-radius:16px}
#local-job-draft summary{font-weight:700}
#status:empty{display:none}
.login{background:radial-gradient(ellipse at 70% 10%,#e5efff,#f5f7fb 62%)}
.login-card{border-color:#e1e8f2;box-shadow:0 24px 70px #142f571b}
.login-card .brand strong{letter-spacing:-.03em}
/* Dashboard built from real CRM counts and job records */
.home-layout{display:grid;gap:1.3rem;min-width:0}
.home-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:0;border-radius:22px;padding:1.5rem 1.65rem;color:#f8fbff;background:linear-gradient(120deg,#15294b,#244c91)}
.home-hero h2{margin:.2rem 0;font-size:clamp(1.25rem,3vw,1.9rem);letter-spacing:-.035em;line-height:1.2;color:#fff}
.home-hero p{margin:.25rem 0;color:#dbe8ff}
.home-eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:.72rem;font-weight:800;color:#bdd4ff}
.home-hero-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:#ffffff18;font-size:1.7rem;flex-shrink:0}
.home-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:.9rem}
.home-metric{display:grid;gap:.42rem;border:1px solid #e2eaf5;border-radius:18px;background:#fff;padding:1.15rem;min-width:0;box-shadow:0 4px 17px #192f4b0a}
.home-metric-name{font-size:.84rem;font-weight:650;color:#60738f}
.home-metric-value{font-size:2.05rem;line-height:1.1;font-weight:800;letter-spacing:-.06em;color:#142a4a;font-variant-numeric:tabular-nums}
.home-section-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}
.home-section-head h2{margin:0;font-size:1.13rem;font-weight:800;letter-spacing:-.025em}
.home-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:.7rem}
.home-action{display:flex;align-items:center;gap:.7rem;text-align:start;min-height:64px;padding:.85rem 1rem;border:1px solid #dbe7f7;background:#fff;border-radius:15px;color:#1a3a65}
.home-action:hover{background:#f1f6ff;border-color:#a9c4f4}
.home-action .nav-icon{width:23px;height:23px;color:#2563eb}
.home-job-list{display:grid;gap:.6rem}
.home-job-item{display:flex;gap:.75rem;align-items:center;justify-content:space-between;width:100%;text-align:start;border:1px solid #e1e9f5;border-radius:13px;background:#fff;padding:1rem}
.home-job-item:hover{background:#f6f9ff}
.home-job-item strong{display:block;overflow-wrap:anywhere}
.home-job-item small{display:block;color:var(--muted);font-weight:450}
.home-empty{padding:1.4rem;border:1px dashed #b9cce8;border-radius:16px;background:#f8fbff;color:#536984}
.home-job-item .nav-icon{color:#2563eb}
/* Responsive field-friendly navigation and form ergonomics */
.bottom-nav{display:none}
@media(max-width:880px){.workspace{grid-template-columns:214px minmax(0,1fr)}.content{padding:1.4rem 1rem 4rem}.sidebar{padding:1rem .65rem}.sidebar nav button{gap:.55rem;padding:.6rem}}
@media(max-width:680px){
 .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .sidebar{padding:.55rem 1rem;background:#11213a;gap:.2rem;box-shadow:none}
 .sidebar .brand{padding:.3rem .35rem;font-size:1.08rem}
 .sidebar .brand img{width:34px;height:34px}
 .sidebar nav,.sidebar .account-box{display:none}
 .sidebar.open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem;margin-top:.45rem}
 .sidebar.open .account-box{display:grid}
 .sidebar nav button{font-size:.83rem;padding:.55rem;min-width:0;overflow-wrap:anywhere;gap:.38rem}
 .topbar{position:static;min-height:51px;padding:.5rem 1rem;gap:.65rem;justify-content:start}
 .content{padding:1.2rem 1rem 6rem}
 .content>h1{font-size:1.65rem;margin-bottom:1rem}
 .panel,.card{border-radius:16px;padding:1rem}
 .home-hero{border-radius:18px;padding:1.25rem;gap:.7rem}
 .home-hero-icon{width:45px;height:45px;border-radius:14px;font-size:1.2rem}
 .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-metric{padding:1rem;gap:.25rem;border-radius:15px}
 .home-metric-value{font-size:1.75rem}
 .home-metric-name{font-size:.78rem}
 .home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-action{min-width:0;min-height:60px;padding:.75rem;font-size:.85rem}
 .bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#fff;border-top:1px solid #dce6f4;padding:.3rem max(.2rem,env(safe-area-inset-right)) max(.35rem,env(safe-area-inset-bottom));box-shadow:0 -7px 25px #182f4c13}
 .bottom-nav button{display:grid;justify-items:center;align-content:center;gap:.15rem;min-width:0;min-height:56px;border:0;border-radius:10px;background:transparent;padding:.25rem .1rem;color:#6d809c;font-size:.67rem;line-height:1.2;white-space:normal;text-align:center;font-weight:650}
 .bottom-nav button[aria-current=page]{color:#1954b9;background:#edf4ff}
 .bottom-nav .nav-icon{width:20px;height:20px}
}
@media(max-width:360px){.home-metric{padding:.8rem}.home-action{font-size:.76rem}.bottom-nav button{font-size:.62rem}}
@media(prefers-reduced-motion:reduce){button,.record{transition:none}}

input:is([type=checkbox],[type=radio]){min-height:0;width:18px;height:18px;border:0;border-radius:4px;accent-color:var(--accent)}
/* Cohesive field-work cards, search, calendars, estimates and invoices */
.field-work{max-width:1060px}
.field-work .panel,.field-work .record{padding:1.15rem 1.2rem}
.field-work .mobile-card,.field-work .card-group{gap:.85rem}
.field-work .job-lead{align-items:center;gap:.5rem .75rem}
.field-work .job-lead>strong{font-size:1.05rem;font-weight:800;letter-spacing:-.025em;line-height:1.3}
.field-work .job-badge{font-size:.74rem;font-weight:750;border-radius:99px;padding:.3rem .65rem;letter-spacing:.005em}
.field-work .card-section{border-top:1px solid #e6edf5;padding-top:.8rem}
.field-work .card-section summary{padding:.65rem .35rem;font-size:.95rem}
.field-work .card-action,.field-work .card-toggle{border-color:#d9e6f8;background:#f3f7ff;color:#214f91;font-weight:700}
.field-work .card-action:hover,.field-work .card-toggle:hover{background:#e7f0ff;border-color:#acc8f1}
.field-work .schedule-view{gap:1rem}
.field-work .schedule-view>label{font-size:.88rem}
.field-work .calendar-toolbar{gap:.65rem}
.field-work .visit-status{font-size:.78rem;font-weight:700;border-radius:99px;padding:.25rem .6rem}
.clients-view>input[type=search]{background:#fff;border-color:#bfcfe5;padding:.8rem 1rem;font-size:1rem;min-height:50px;border-radius:14px}
.clients-view>output:empty{display:none}
.client-form,.settings-card,.message-compose,.estimate-form,.invoice-line{min-width:0}
.card-form input,.card-form select,.card-form textarea,.client-form input,.client-form textarea,.estimate-form input,.invoice-line input{border-radius:11px}
.calls-filters :is(input,select),.message-toolbar :is(input,select){min-height:45px}
.calls-panel,.settings-layout .settings-card,.message-compose{border-radius:18px}
.message-record{border-color:#e1eaf5}
.owner-settings{gap:1.1rem}
.activity-log,.developer-view{overflow-wrap:anywhere}
@media(max-width:680px){
 .field-work .panel,.field-work .record{padding:1rem}
 .field-work .card-action,.field-work .card-toggle{width:100%;min-height:48px}
 .field-work .calendar-toolbar{display:flex;flex-wrap:wrap}
 .field-work .calendar-toolbar input[type=date]{width:100%}
 .calls-filters>:is(input,select){flex:1 1 100%;width:100%}
 .client-form,.invoice-line{grid-template-columns:minmax(0,1fr)}
}

.sidebar nav button[data-nav=activity],.sidebar nav button[data-nav=development],.sidebar nav button[data-nav=settings]{margin-top:.35rem}

.job-editor {min-width:0}
.job-form {grid-template-columns:minmax(0,1fr)}
.job-fields,.job-checklist {min-width:0;margin:0;padding:0;border:0}
.job-fields {display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr)}
.job-form textarea {width:100%;min-height:5rem;resize:vertical;font-weight:400}
.job-wide {grid-column:1/-1}
.job-picker,.job-checklist-rows {display:grid;gap:.5rem;min-width:0}
.job-checklist legend {font-weight:700;margin-bottom:.5rem}
.job-checklist-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:end}
.job-checklist-row label:has(input[type=checkbox]) {display:flex;align-items:center;gap:.35rem}
.job-checklist-row input[type=checkbox] {width:1.25rem;min-height:44px;margin:0}
.job-checklist-row button {grid-column:1/-1}
.job-checklist > button {margin-top:.5rem}
@media (min-width: 720px) {
 .job-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
 .job-checklist-row {grid-template-columns:minmax(0,1fr) auto auto}
 .job-checklist-row button {grid-column:auto}
}

.exchange-list,.exchange-form{display:grid;gap:.75rem;min-width:0}
.exchange-list .panel{overflow-wrap:anywhere}
.exchange-list .panel>button{margin:.25rem .45rem .25rem 0}
.exchange-form{margin-block:.75rem;max-width:32rem}
.exchange-form input,.exchange-form select{max-width:100%;min-width:0}
.exchange-list summary{cursor:pointer}
@media(max-width:680px){.exchange-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

.technician-profile-editor:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.technician-profile-editor > label {
    display: grid;
    gap: 6px;
    font-weight: 500;
}

.technician-profile-editor > label > input {
    width: 100%;
    box-sizing: border-box;
}

.technician-profile-editor > div:empty {
    display: none;
}

.technician-profile-editor > fieldset {
    grid-column: 1 / -1;
    min-width: 0;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    padding: 16px;
}

@media (max-width: 700px) {
    .technician-profile-editor:not([hidden]) {
        grid-template-columns: 1fr;
    }
}

/* Compact technician profile */

.technician-profile-editor:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 760px;
    padding: 20px 0;
    box-sizing: border-box;
}

.tech-form-section,
.tech-appliances {
    width: 100%;
    max-width: 760px;
    padding: 20px;
    border: 1px solid #b9c7d8;
    border-radius: 12px;
    box-sizing: border-box;
}

.tech-form-section h3 {
    font-size: 16px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbd5e1;
}

.tech-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,280px));
    gap: 18px 24px;
}

.tech-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.tech-field-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.tech-field input {
    width: 100%;
    max-width: 280px;
    height: 44px;
    padding: 10px 12px;
    border: 1.5px solid #94a3b8;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
}

.tech-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb22;
}

.tech-field input::placeholder {
    color: #8491a3;
    opacity: 1;
}

.tech-field-radius input {
    max-width: 100px;
}

.tech-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: help;
}

.tech-help-text {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.tech-appliances {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.tech-appliances > div:empty {
    display: none;
}

.tech-appliances > label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #b9c7d8;
    border-radius: 7px;
    cursor: pointer;
}

.tech-appliances input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

@media (max-width: 650px) {
    .tech-form-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .tech-form-section,
    .tech-appliances {
        padding: 14px;
    }

    .tech-appliances {
        grid-template-columns: 1fr;
    }
}

/* Shared directory layout */

.directory-page {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.directory-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.directory-toolbar input {
    width: 320px;
    max-width: 100%;
    height: 44px;
    border: 1.5px solid #94a3b8;
}

.directory-scroll {
    max-height: 480px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.directory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
}

.directory-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eaf0f8;
    white-space: nowrap;
}

.directory-table th,
.directory-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #dce4ee;
    vertical-align: middle;
}

.directory-table th button {
    border: 0;
    background: transparent;
    font-weight: 650;
    padding: 4px 0;
}

.directory-table tbody tr {
    cursor: pointer;
}

.directory-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.directory-table tbody tr:hover {
    background: #eaf1ff;
}

.directory-ready {
    color: #15803d;
    font-weight: 600;
}

.directory-danger {
    color: #dc2626;
}

.directory-pending {
    color: #b45309;
}

.directory-sip-list {
    margin-top: 12px;
    max-height: 280px;
    overflow: auto;
}

.directory-sip-row {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    border-bottom: 1px solid #dce4ee;
}

.directory-modal {
    width: min(850px,calc(100% - 32px));
    max-height: 90vh;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 16px;
    background: #fff;
    color: #18253a;
    box-shadow: 0 24px 80px #0f172a44;
    overflow: auto;
}

.directory-modal::backdrop {
    background: #0f172a80;
    backdrop-filter: blur(3px);
}

.directory-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
}

.directory-modal > .panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media(max-width:650px) {
    .directory-toolbar input {
        width: 100%;
    }

    .directory-modal {
        width: calc(100% - 16px);
        max-height: 94vh;
    }
}

/* Job lifecycle controls */
.job-lifecycle{
  padding:16px;
  margin:12px 0;
  border:1px solid #d8e1eb;
  border-radius:14px;
}
.job-lifecycle-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.job-lifecycle-badge{
  padding:6px 12px;
  border-radius:20px;
  background:#e9edf2;
  color:#344054;
  font-size:13px;
  font-weight:600;
}
.job-lifecycle-badge[data-status=scheduled]{
  background:#e1edff;color:#183d82;
}
.job-lifecycle-badge[data-status=in_progress]{
  background:#fff0c7;color:#694006;
}
.job-lifecycle-badge[data-status=completed]{
  background:#dbf5e7;color:#125938;
}
.job-lifecycle-badge[data-status=canceled],
.job-lifecycle-badge[data-status=cancelled]{
  background:#ffe6e9;color:#862c36;
}
.job-lifecycle-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.job-lifecycle-button{
  flex:1 1 140px;
  min-height:46px;
  padding:12px 16px;
  border:0;
  border-radius:10px;
  font-weight:600;
  color:white;
  cursor:pointer;
}
.job-lifecycle-button.start{background:#2563eb}
.job-lifecycle-button.complete{background:#15803d}
.job-lifecycle-button.cancel{background:#b91c1c}
.job-lifecycle-button.reopen{background:#475569}
.job-lifecycle-button:disabled{opacity:.5;cursor:wait}


/* Orders: compact overview with progressive disclosure. */
.field-work .mobile-card{gap:.7rem;padding:1rem;background:#fff;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 3px 12px rgba(25,48,82,.045)}
.job-quick-summary{display:grid;gap:.45rem;min-width:0}
.job-quick-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}
.job-quick-title h3{margin:0;min-width:0;font-size:1.08rem;line-height:1.3;overflow-wrap:anywhere}
.job-quick-title .job-badge{flex:0 0 auto;border-radius:999px;padding:.2rem .65rem;font-size:.78rem;font-weight:700;background:#eef2f7;color:#334155}
.job-quick-title .job-badge[data-status=scheduled]{background:#e1edff;color:#183d82}
.job-quick-title .job-badge[data-status=in_progress]{background:#fff0c7;color:#694006}
.job-quick-title .job-badge[data-status=completed]{background:#dbf5e7;color:#125938}
.job-quick-title .job-badge[data-status=canceled],.job-quick-title .job-badge[data-status=cancelled]{background:#ffe6e9;color:#862c36}
.job-quick-title .job-badge[data-status=draft]{background:#f0eafe;color:#5b3b91}
.job-quick-meta{display:flex;flex-wrap:wrap;gap:.35rem 1rem;color:#52627a;font-size:.88rem}
.job-lifecycle{display:grid;gap:.55rem;padding:.65rem .75rem;border:1px solid #e3eaf4;border-radius:12px;background:#f8faff}
.job-lifecycle-actions{display:flex;flex-wrap:wrap;gap:.45rem}
.job-lifecycle-button,.job-lifecycle-actions .card-action{width:auto;min-height:38px;padding:.45rem .75rem;border-radius:9px}
.job-details-panel{border-top:1px solid #e8edf5;padding-top:.25rem}
.job-details-panel>summary{cursor:pointer;display:flex;align-items:center;width:fit-content;max-width:100%;padding:.55rem .7rem;border:1px solid #dce6f3;border-radius:10px;color:#244f88;background:#f5f8fe;font-weight:650}
.job-details-panel[open]>summary{margin-bottom:.7rem;background:#edf3ff}
.job-details-body{display:grid;gap:.8rem;min-width:0}
.job-details-body>.card-group:first-child{border-top:0;padding-top:0}
.job-details-body .card-action,.job-details-body .card-toggle{width:auto}
@media(max-width:640px){.field-work .mobile-card{padding:.85rem;border-radius:13px}.job-quick-meta{display:grid;grid-template-columns:1fr;gap:.2rem}.job-lifecycle-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.job-lifecycle-button,.job-lifecycle-actions .card-action{width:100%;min-width:0}.job-details-panel>summary{width:100%}}

/* Astra CRM conversation messages. */
.assistant-conversation{display:grid;gap:.65rem;max-height:520px;overflow:auto;padding:.75rem 0;scroll-behavior:smooth}
.assistant-user-message,.assistant-ai-message{max-width:min(88%,760px);margin:0;padding:.7rem .9rem;border-radius:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-user-message{justify-self:end;background:#e8f0ff;color:#163b76;border:1px solid #d4e2fb;border-bottom-right-radius:5px}
.assistant-ai-message{justify-self:start;background:#fff;color:#17243a;border:1px solid #e0e7f1;border-bottom-left-radius:5px;box-shadow:0 2px 8px rgba(20,40,70,.04)}
.assistant-conversation .muted{justify-self:start;margin:0;padding:.35rem .6rem;font-size:.88rem}
@media(max-width:640px){.assistant-user-message,.assistant-ai-message{max-width:96%}.assistant-conversation{max-height:58vh}}


/* Verified FreePBX CID route health shown directly on each active job. */
.cid-route-health{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;padding:.65rem .8rem;margin-top:.65rem;border:1px solid var(--line,#dbe3ee);border-radius:10px;background:var(--surface-soft,#f7f9fc);font-size:.9rem}
.cid-route-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.14)}
.cid-route-dot[data-state="verified"]{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.15)}
.cid-route-dot[data-state="missing"],.cid-route-dot[data-state="fallback"]{background:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.15)}
.cid-route-dot[data-state="hold"],.cid-route-dot[data-state="blocked"]{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.15)}
.cid-route-dot[data-state="unknown"]{background:#64748b;box-shadow:0 0 0 3px rgba(100,116,139,.15)}
.cid-route-health small{color:var(--muted,#64748b)}

/* Keep directory controls in place as the independent PBX request resolves. */
html{scrollbar-gutter:stable}
.directory-page,.directory-page .panel{min-width:0}
.directory-scroll{max-width:100%;scrollbar-gutter:stable}
.directory-table{table-layout:fixed;min-width:940px}
.directory-table th:nth-child(1){width:19%}
.directory-table th:nth-child(2){width:15%}
.directory-table th:nth-child(3){width:7%}
.directory-table th:nth-child(4){width:14%}
.directory-table th:nth-child(5){width:14%}
.directory-table th:nth-child(6){width:17%}
.directory-table th:nth-child(7){width:14%}
.directory-table td:not(:last-child){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.directory-table td:last-child button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-sip-list{height:var(--sip-reserve,9rem);max-height:16rem;overflow:auto;scrollbar-gutter:stable}
.bill-list,.bill-detail,.bill-form{display:grid;gap:1rem;min-width:0}
.bill-tools,.bill-picker{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}
.bill-tools input[type=search]{flex:1 1 14rem;min-width:0}
.bill-picker select{flex:1 1 15rem;min-width:0}
.record.bill-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1.25rem;align-items:center}
.bill-row>div{display:grid;gap:.18rem;min-width:0;overflow-wrap:anywhere}
.bill-row .bill-row-sum{justify-items:end}
.bill-row small,.bill-meta small,.bill-items small,.bill-number>span{color:#52647a}
.bill-status{display:inline-block;width:fit-content;white-space:nowrap;border-radius:1rem;background:#eef1f5;color:#334155;padding:.16rem .65rem;font-size:.8rem;font-weight:650}
.bill-status[data-state=paid]{background:#e1f3e9;color:#195a3e}
.bill-status[data-state=sent]{background:#e4efff;color:#1e5094}
.bill-status[data-state=void]{background:#f8e9e8;color:#8d3935}
.bill-paper{display:block;background:white;border:1px solid #cbd5e1;border-top:4px solid #233e64;border-radius:12px;padding:clamp(1rem,3.5vw,2.7rem);color:#16263c;overflow-wrap:anywhere}
.bill-paper>header{position:static;display:flex;justify-content:space-between;align-items:flex-start;gap:1.3rem;background:transparent;color:inherit;border:0;padding:0}
.bill-brand{font-size:clamp(1.05rem,2.2vw,1.55rem);letter-spacing:-.02em;line-height:1.2}
.bill-number{text-align:right}
.bill-number h2{font-size:clamp(1.15rem,2.4vw,1.75rem);margin:.1rem 0 .25rem}
.bill-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:1rem;border-block:1px solid #dce3ec;padding:1.15rem 0;margin:1.3rem 0}
.bill-meta small,.bill-meta strong,.bill-items small{display:block}
.bill-items{width:100%;border-collapse:collapse;table-layout:fixed}
.bill-items th,.bill-items td{padding:.6rem .35rem;border-bottom:1px solid #e2e8f0;text-align:right;font-variant-numeric:tabular-nums;vertical-align:top}
.bill-items th{font-size:.84rem;color:#465a74}
.bill-items th:first-child,.bill-items td:first-child{width:46%;text-align:left}
.bill-sums{display:grid;grid-template-columns:auto auto;gap:.35rem 1.5rem;margin:1rem 0 0 auto;width:fit-content;max-width:100%;font-variant-numeric:tabular-nums}
.bill-sums dd{margin:0;text-align:right;font-weight:700}
.bill-notes{white-space:pre-wrap}
.bill-form .invoice-line{padding:.8rem;border:1px solid #dce3ec;border-radius:.65rem;grid-template-columns:minmax(6rem,.85fr) minmax(10rem,2.6fr) minmax(5rem,.7fr) minmax(6rem,.85fr) auto}
.bill-fields{display:grid;grid-template-columns:minmax(9rem,1fr) 2fr;gap:.85rem}
.bill-fields label{display:grid;align-content:start;gap:.25rem}
.bill-fields textarea{width:100%;resize:vertical}
.bill-edit-total{margin-left:auto;font-weight:700}
.bill-form h3,.bill-edit p:empty,.bill-detail>p:empty{margin:0}
.bill-print{display:none}
@media(max-width:990px){.bill-form .invoice-line{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.record.bill-row{grid-template-columns:minmax(0,1fr) auto;gap:.75rem}.bill-row button{grid-column:1 / -1}.bill-fields{grid-template-columns:1fr}.bill-paper{padding:1rem}.bill-items th:first-child,.bill-items td:first-child{width:38%}.bill-items{font-size:.84rem}.bill-tools select,.bill-tools input{max-width:100%}}
@media print{
  body.printing-invoice{display:block!important;background:white!important;min-width:0!important;margin:0!important}
  body.printing-invoice>:not(.bill-print){display:none!important}
  body.printing-invoice>.bill-print{display:block!important;overflow:visible;border:0;border-radius:0;box-shadow:none;width:100%;max-width:none;padding:.2in;color:#111}
  .bill-print thead{display:table-header-group}.bill-print tr,.bill-print .bill-sums,.bill-print .bill-meta{break-inside:avoid}
  .bill-print .bill-meta{grid-template-columns:repeat(2,1fr)}.bill-print .bill-items{font-size:10pt}
}

.call-new-label{background:#dceffd;color:#134c75;border-radius:1em;padding:.15em .6em;font-size:.8em;font-weight:650}.call-new-label[hidden]{display:none}

.account-directory {display:grid;gap:14px;max-width:58rem}
.account-directory [hidden] {display:none!important}
.account-directory {min-width:0;container-type:inline-size}
.account-directory .account-list {min-width:0}
.account-list-head,.account-summary {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.86fr) minmax(0,.62fr) minmax(0,.72fr) minmax(0,1.04fr) 1rem;align-items:center;column-gap:.9rem}
.account-list-head {padding:.5rem .9rem;color:var(--muted);font-size:.8rem;font-weight:650}
.account-list-items {list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.account-row + .account-row {border-top:1px solid var(--line)}
.account-directory summary {cursor:pointer;font-weight:650;padding:10px 0}
.account-entry > .account-summary {list-style:none;min-height:3.25rem;margin:0;padding:.5rem .9rem;border-radius:8px;font-size:.92rem;font-weight:400;line-height:1.3;overflow-wrap:anywhere}
.account-summary::-webkit-details-marker {display:none}
.account-summary:hover,.account-entry[open] > .account-summary {background:#eff4fc}
.account-directory summary:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.account-identity {display:grid;min-width:0;gap:.1rem}
.account-login,.account-phone {color:var(--muted);font-size:.83rem}
.account-extension {font-variant-numeric:tabular-nums}
.account-access {color:#17603c}
.account-access.is-disabled {color:#993b32}
.account-chevron {width:.5rem;height:.5rem;justify-self:center;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
.account-entry[open] > .account-summary .account-chevron {transform:rotate(45deg)}
.account-controls {padding:.65rem .9rem .8rem;border-top:1px solid var(--line)}
.account-controls .account-editor {margin-top:.35rem}
@container (max-width:43rem) {
  .account-list-head {display:none}
  .account-entry > .account-summary {grid-template-columns:minmax(0,1fr) auto 1rem;gap:.2rem .5rem;padding:.55rem .75rem}
  .account-identity {grid-column:1;grid-row:1}
  .account-extension {grid-column:2;grid-row:1;font-weight:650}
  .account-chevron {grid-column:3;grid-row:1}
  .account-role,.account-access,.account-phone {font-size:.8rem}
  .account-role {grid-column:1;grid-row:2;color:var(--muted)}
  .account-access {grid-column:2/4;grid-row:2;text-align:right}
  .account-phone {grid-column:1/-1;grid-row:3}
  .account-phone.no-line-state {display:none}
}
.account-directory .account-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.account-directory input,.account-directory select {width:100%;max-width:100%;min-height:44px}
.account-directory .account-form {display:grid;gap:10px;max-width:34rem;margin:8px 0}
.account-directory .account-form label {display:grid;gap:4px}
.account-directory button {min-height:44px}
.account-directory [role=status]:empty {display:none}

.login-card .web-install{display:block;margin-top:1rem}
.topbar{flex-wrap:wrap}
.topbar .web-install{display:inline-flex;align-items:center;padding:.45rem .85rem;font-size:.875rem}
html:has(#field-android-style) .web-install{display:none}

/* Continuous record lists share dividers while expanded editors use the full width. */
.crm-record-list,.home-job-list.crm-record-list,.calls-feed,.bill-list .rows:has(>.bill-row),.exchange-list,.rows:has(>.message-record) {display:flex;flex-direction:column;gap:0}
#view .crm-record-list>.record,#view .home-job-list>.record,#view .calls-feed>.call-card,#view .bill-row,#view .exchange-list>.market-offer,#view .market-directory>.crm-record,#view .rows>.message-record {
  border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;background:white;padding:.55rem .8rem;min-width:0
}
#view .crm-record-list>.crm-record,.home-job-list>.crm-record,#view .rows>.message-record,#view .market-directory>.crm-record,#view .exchange-list>.market-offer {display:flex;align-items:center;gap:.35rem .85rem;flex-wrap:wrap}
#view .crm-record>.job-lead,#view .crm-record>strong:first-child {flex:1 1 12rem;min-width:0}
#view .crm-record>span,#view .crm-record>time {flex:1 1 9rem}
#view .crm-record>output:empty,#view .crm-record>div:empty,#view .crm-record>.card-feedback:empty {display:none}
#view .crm-record>div:not(.job-lead):not(:empty),#view .crm-record>section,#view .crm-record>form {flex-basis:100%}
#view .crm-record>button,#view .bill-row>button {padding:.32rem .65rem;min-height:36px;width:auto;align-self:center}
#view .bill-row {display:flex;align-items:center;gap:1rem}
#view .bill-row>div:first-child {flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .85rem}
#view .bill-row>div:first-child small {color:var(--muted)}
#view .bill-row .bill-row-sum {display:flex;align-items:center;gap:.6rem}
#view .call-card {display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem 1rem}
#view .call-card-head {flex:1 1 22rem;margin:0;gap:.3rem .8rem}
#view .call-card details[open] {width:100%}
#view .call-card summary {padding:.3rem 0;min-height:32px}
#view .exchange-list>.market-offer>* {margin:0}
#view .exchange-list>.market-offer>h2 {font-size:1rem}
.market-tabs {display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.8rem}
.market-tabs [aria-current=page] {color:white;background:var(--accent)}
.bill-identity {display:flex;gap:.8rem;align-items:center}
.invoice-walrus {object-fit:contain;max-width:22vw}
.bill-identity small {display:block;color:var(--muted)}
.voice-actions:empty,.voice-panel output:empty,.voice-history:empty {display:none}
.voice-panel .voice-compose {margin:0}
@media(max-width:650px){
 #view .bill-row {gap:.35rem .65rem;flex-wrap:wrap}
 #view .bill-row>div:first-child {min-width:45%}
 #view .call-card-head {flex-basis:100%}
 #view .crm-record-list>.crm-record,#view .home-job-list>.crm-record {gap:.25rem .55rem}
 .bill-identity {gap:.4rem}
}
.doc-delivery {width:min(30rem,calc(100% - 1.2rem));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:1.15rem;color:inherit}
.doc-delivery::backdrop {background:#13253c75}
.doc-delivery h2 {font-size:1.2rem;margin:0 0 .8rem}
.doc-delivery fieldset {display:grid;gap:.7rem;border:0;padding:0;min-width:0}
.doc-delivery fieldset>label {display:grid;gap:.2rem;font-weight:600}
.doc-delivery input,.doc-delivery select {max-width:100%;min-width:0}
.doc-delivery small {color:var(--muted)}
.doc-delivery output:not(:empty) {display:block;padding:.65rem 0;font-weight:600}
.doc-delivery>button {margin-top:.55rem}
.doc-gallery {display:flex;flex-wrap:wrap;gap:.4rem}
.doc-gallery:empty {display:none}
.doc-gallery strong {width:100%}
.doc-gallery label {display:flex;align-items:center;gap:.2rem;border:1px solid var(--line);padding:.25rem}
.doc-gallery img {object-fit:cover;width:56px;height:46px}
#view>.voice-panel {max-width:55rem;margin-inline:auto}
.voice-panel-header {padding:.8rem 1rem}
.voice-panel-header h2 {font-size:1.15rem}
.voice-panel:not([data-active=yes]) .voice-bars {display:none}
.assistant-shortcuts {display:flex;flex-wrap:wrap;gap:.4rem;padding:.65rem .85rem}
.assistant-shortcuts button {font-size:.88rem;padding:.32rem .6rem}
.voice-options summary {cursor:pointer}
.voice-options[open] {display:flex;flex-wrap:wrap;gap:.45rem}
.voice-panel .voice-history:not(:empty) {max-height:48vh;overflow:auto}
.voice-panel .voice-actions details p {padding:.24rem 0;margin:0;border-bottom:1px solid var(--line)}
.doc-delivery input[type=file] {font-size:.85rem}
.planner-title{margin:12px 0 0;text-transform:capitalize}.planner-zone{margin:2px 0 8px;font-size:.85rem}
.planner-scroll{max-height:72vh;min-height:18rem;overflow:auto;border:1px solid #cbd6e4;border-radius:8px;position:relative;overscroll-behavior:contain}
.planner-grid{--tracks:1;display:grid;grid-template-columns:3.5rem repeat(var(--tracks),minmax(0,1fr));grid-template-rows:auto auto;position:relative;background:white}
.planner-grid.planner-seven{--tracks:7;min-width:850px}.planner-head{grid-column:1/-1;position:sticky;top:0;z-index:3;background:#f0f5fc;display:grid;grid-template-columns:subgrid;align-items:center;text-align:center;border-bottom:1px solid #c5d0df}
.planner-date-label{border:0;background:none;color:#183e73;box-shadow:none;font-weight:650;min-width:0;padding:8px 3px}.planner-track,.planner-axis{height:1248px;position:relative}.planner-track{border-left:1px solid #dbe3ed;background:repeating-linear-gradient(to bottom,#d0dbe8 0 1px,transparent 1px 26px,#edf1f5 26px 27px,transparent 27px 52px)}
.planner-axis span{display:block;height:52px;text-align:right;padding:2px 5px;font-size:.73rem;color:#445773;box-sizing:border-box}.planner-track.is-today,.planner-date.is-today{background-color:#f1f7ff}.planner-slot{display:block;width:100%;height:52px;border:0;border-radius:0;box-shadow:none;background:transparent;padding:0}.planner-slot:hover,.planner-slot:focus-visible{background:#ccdffc66}
.planner-visit{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;overflow:hidden;text-align:left;color:#15385e;background:#deedff;border:1px solid #98bce6;border-left:3px solid #2466b5;border-radius:4px;box-sizing:border-box;padding:3px 5px;gap:1px;min-width:0;min-height:0;font-size:.8rem}.planner-track>.planner-visit{position:absolute}.planner-visit strong,.planner-visit small{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.planner-visit:hover{background:#c6e0ff}.planner-visit .visit-status{font-size:.65rem;padding:0 3px}
.planner-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #ccd8e5}.planner-date{min-height:6rem;padding:3px;border:1px solid #e3e9ef;min-width:0}.planner-date.adjacent{background:#f6f7f9}.planner-date .planner-visit{width:100%;margin:2px 0}.planner-date-label{overflow-wrap:anywhere}.calendar-toolbar [aria-pressed=true]{background:#204e86;color:white}
@media(max-width:620px){.planner-date{min-height:4.4rem;padding:1px}.planner-date-label{font-size:.73rem}.planner-date .planner-visit{font-size:.65rem}.planner-date .planner-visit small{display:none}.planner-scroll{max-height:65vh}}

/* Keep time and its column heading visible inside the same two-axis scrollport. */
.planner-grid>.planner-axis{position:sticky;left:0;align-self:start;z-index:2;background:#fff;border-right:1px solid #c5d0df}
.planner-head>span:first-child{position:sticky;left:0;align-self:stretch;display:grid;place-items:center;z-index:1;background:#f0f5fc;border-right:1px solid #c5d0df}
.job-appointment-sms{margin:.6rem 0;display:grid;gap:.35rem}.job-appointment-sms button{justify-self:start}.job-appointment-sms p{margin:.15rem 0;overflow-wrap:anywhere}

.unpaid-banner{width:100%;display:flex;align-items:center;gap:.8rem;padding:1rem 1.2rem;background:#fff2f4;color:#8a163b;border:1px solid #dc98ab;border-inline-start:5px solid #bf2354;border-radius:12px;text-align:start}
.unpaid-banner strong{flex:1}.unpaid-count,.unpaid-amount,.visit-balance{background:#ffe1e9;color:#8a163b;border-radius:.5rem;padding:.2rem .55rem}
.unpaid-count{background:#a71947;color:white;min-width:2rem;text-align:center}
.unpaid-page {min-width:0;background:#fff;color:#28313c;border:1px solid #c9ced5;border-radius:10px;overflow:clip}
.content:has(.unpaid-page) #heading {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.unpaid-toolbar {text-align:center;background:#fff}
.unpaid-header {display:flex;align-items:center;gap:12px;padding:8px 12px;text-align:start}
.unpaid-header h2 {flex:1;margin:0;font-size:1.2rem;font-weight:550}
.unpaid-tool {background:transparent;border:0;min-width:44px;min-height:44px;padding:0;color:#354253;font-size:1.4rem}
.unpaid-tab {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 18px;border-bottom:3px solid #202124;font-size:.95rem}
.unpaid-tab-count {display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:20px;background:#c51e65;color:white}
.unpaid-job-list {list-style:none;margin:0;padding:0;border-top:1px solid #aeb5bd}
.unpaid-job-list>.muted {padding:14px}
.unpaid-job-tile {position:relative;isolation:isolate;display:grid;grid-template-columns:clamp(5.9rem,25%,12rem) minmax(0,1fr);background:#fff;border-bottom:1px solid #aeb5bd}
.unpaid-job-meta {display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:10px 6px;border-inline-end:1px solid #b7bdc5;min-width:0;font-size:.92rem;line-height:1.35}
.unpaid-time {color:#434d59;font-size:1rem}.unpaid-date {color:#626d7b}
.unpaid-job-meta .unpaid-amount {display:block;border-radius:0;background:#f6bdd2;color:#902046;padding:2px 4px;text-align:center;font-weight:550;overflow-wrap:anywhere}
.unpaid-job-open {display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;min-width:0;min-height:58px;padding:10px 12px 13px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#38414c;text-align:start;font:inherit;line-height:1.4;overflow-wrap:anywhere;cursor:pointer}
.unpaid-job-open::after {content:"";position:absolute;inset:0;z-index:1}
.unpaid-job-open:focus-visible {outline:none}
.unpaid-job-open:focus-visible::after {outline:3px solid #245be8;outline-offset:-3px}
@media (hover:hover){.unpaid-job-tile:has(.unpaid-job-open:hover){background:#f3f7fc}}
.unpaid-job-title {display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.35}
.unpaid-job-address {white-space:pre-line}
.unpaid-window {display:flex;align-items:baseline;gap:6px;margin-top:3px;color:#626d7b;font-size:.86rem}
.unpaid-window .nav-icon {align-self:flex-start;flex:none;width:16px;height:16px;margin-top:2px}
.unpaid-job-invoices {display:grid;gap:2px}
.unpaid-job-invoices button {position:relative;z-index:2;margin:0;padding:3px 0;border:0;border-radius:3px;min-height:30px;color:#596575;text-align:center;font:inherit;line-height:1.2;background:transparent;overflow-wrap:anywhere}
.unpaid-job-invoices button:hover {text-decoration:underline}
.unpaid-page>.card-feedback:empty {display:none}
.unpaid-page>button {margin:8px}
@media(max-width:600px){
  .unpaid-page {border-radius:0}
  .unpaid-job-open {padding:9px 8px 11px}
  #workspace .content:has(.unpaid-page) {padding-inline:0}
}
.visit-balance{font-size:.77rem;line-height:1.2}.job-work fieldset{min-width:0}.job-work output{display:block;font-weight:700;margin:.5rem 0}.bill-identity small{display:block;white-space:pre-line}
.bill-paper p,.bill-paper strong{overflow-wrap:anywhere}
@media(max-width:550px){.job-work .invoice-line,.bill-form .invoice-line{grid-template-columns:1fr 1fr}.job-work .bill-fields{grid-template-columns:1fr}.bill-paper .bill-identity{flex-wrap:wrap}}

.job-sheet-page,.job-sheet,.sheet-column,.sheet-sections{min-width:0}
.job-sheet{color:#182d45}.job-sheet h2,.job-sheet h3,.job-sheet h4,.job-sheet p{margin:0}.sheet-back{position:sticky;top:0;z-index:5;background:#fff;display:flex;align-items:center;gap:1rem;border-bottom:1px solid #d8e0e9;padding:.4rem .7rem}
.sheet-hero,.sheet-block,.sheet-fold,.job-sheet .job-photos,.sheet-sections>.sheet-link{background:white;border:1px solid #d8e0e9;border-radius:12px}
.sheet-hero{overflow:hidden;margin:0 0 .7rem}.sheet-cover{display:block;width:100%;height:clamp(6rem,23vw,13rem);object-fit:cover}.sheet-cover[hidden]{display:none}
.sheet-intro{padding:1rem 1.15rem}.sheet-intro h2{font-size:clamp(1.25rem,3vw,1.75rem);line-height:1.25;overflow-wrap:anywhere}.sheet-intro small,.sheet-block small{color:#4b6079}.sheet-intro p{margin-top:.25rem}.sheet-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:.6rem 0 .2rem}
.sheet-actions button,.sheet-actions a{padding:.46rem .85rem;background:#e9f1ff;color:#114894;border:1px solid #c9d9f4;border-radius:1.25rem;font-weight:650;min-height:38px}
.sheet-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:.75rem}.sheet-column,.sheet-sections{display:grid;gap:.6rem}
.sheet-block{padding:.8rem 1rem}.sheet-block>h3{font-size:1rem;border-bottom:1px solid #e4e8ef;padding-bottom:.55rem;margin-bottom:.55rem}
.sheet-pair,.sheet-link{display:flex;justify-content:space-between;align-items:center;gap:.75rem;text-align:start;padding:.5rem 0}.sheet-pair>span{overflow-wrap:anywhere}.sheet-pair>b{text-align:end}.sheet-link{width:100%;border:0;background:transparent;color:#173f78;font-weight:650;min-height:40px}.sheet-due{color:#9c2443}.sheet-description{white-space:pre-wrap}
.sheet-fold{padding:.65rem .9rem}.sheet-fold>summary,.job-sheet .job-work>summary,.job-photos summary{cursor:pointer;font-weight:650}.sheet-fold[open]>summary{margin-bottom:.65rem}.sheet-block>.sheet-fold,.sheet-block .job-work{margin-top:.5rem}
.sheet-progress .job-lifecycle{padding:0;border:none;background:transparent;box-shadow:none}.sheet-progress .job-lifecycle-heading strong{display:none}.sheet-progress .cid-route-health{font-size:.82rem}.sheet-progress>.field-actions{display:none}.sheet-clock output{font-variant-numeric:tabular-nums;font-weight:700}
.sheet-clock>.sheet-fold{margin-top:.4rem}.sheet-sections>.sheet-link{padding:.7rem 1rem}.sheet-pricing h4{font-size:.85rem;margin:.6rem 0 0}.sheet-block .card-address{margin-top:.65rem}.job-sheet .job-photos{padding:.65rem}.job-sheet .job-photos .card-section{border:0;background:transparent;padding:.2rem}
.sheet-modal{width:min(54rem,94vw);max-height:88dvh;padding:0;border:0;color:#182d45;border-radius:14px}.sheet-modal::backdrop{background:#0a1b30a8}.sheet-modal>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid #dee4ec;padding:.6rem 1rem}.sheet-modal>header h2{font-size:1.1rem}.sheet-dialog-body{padding:1rem;overflow-wrap:anywhere}.sheet-edit-row{display:flex;align-items:center;gap:.4rem;margin-bottom:.4rem}.sheet-edit-row input{min-width:0;flex:1}.sheet-edit-row input[type=checkbox]{flex:none}.sheet-edit-row button{flex:none}.sheet-share{margin-top:.5rem}.sheet-actions:empty{display:none}
@media(max-width:760px){.sheet-layout{grid-template-columns:minmax(0,1fr)}.sheet-intro,.sheet-block{padding:.8rem}.job-sheet-page{width:100%}.sheet-modal{width:96vw}.sheet-dialog-body{padding:.65rem}.sheet-edit-row{flex-wrap:wrap}.sheet-cover{height:7.5rem}}

@media(max-width:760px){
  #workspace:has(.job-sheet-page)>.sidebar,#workspace:has(.job-sheet-page) main>.topbar,#workspace:has(.job-sheet-page) #schedule-shortcut,#workspace:has(.job-sheet-page)>.field-tabs,#workspace:has(.job-sheet-page)>#bottom-nav{display:none!important}
  #workspace:has(.job-sheet-page){display:block;padding-bottom:0;min-height:100dvh}
  #workspace:has(.job-sheet-page) main{width:100%;max-width:none;margin:0;padding:0}
  #workspace:has(.job-sheet-page) .content{padding:0 .5rem .5rem}
  #workspace:has(.job-sheet-page) #heading{position:absolute;clip-path:inset(50%);height:1px;width:1px;padding:0;margin:0;overflow:hidden}
  .job-sheet-page .sheet-back{top:0;margin:0 -.5rem .5rem;padding:.35rem .6rem;min-height:44px}
  .sheet-intro .sheet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem}
  .sheet-intro .sheet-actions button{padding:.45rem .15rem;font-size:.88rem;white-space:normal}
}
.sheet-clip{max-height:65vh;max-width:100%}

.customer-link,.address-trigger{display:inline-block;min-height:40px;max-width:100%;padding:4px 3px;background:transparent;border:0;border-radius:4px;color:#174fb1;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px;text-align:start;overflow-wrap:anywhere;cursor:pointer}
.customer-link:focus-visible,.address-trigger:focus-visible{outline:2px solid currentColor}
.address-options{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.address-options .card-action,.address-options button{min-height:44px;display:inline-flex;align-items:center}.address-value{overflow-wrap:anywhere}.card-address{min-width:0}.market-offer .address-map,.crm-record .address-map{justify-self:start;width:fit-content}

.incoming-message,.incoming-message p,.incoming-message strong,.incoming-message h3{font-weight:400;color:#516174}
.incoming-message.is-unread{border-inline-start:3px solid #285ccd;background-color:#eff5ff}
.incoming-message.is-unread,.incoming-message.is-unread p,.incoming-message.is-unread strong,.incoming-message.is-unread h3{font-weight:700;color:#173968}

.chat-file{display:grid;gap:4px;margin:5px 0;max-width:100%;min-width:0}.chat-file img,.chat-file video{max-width:min(100%,23rem);max-height:18rem;object-fit:contain;border-radius:8px}.chat-file a{overflow-wrap:anywhere;text-decoration:underline}#fileList{padding:6px 12px;font-size:.875rem;overflow-wrap:anywhere;background:#edf5ef}#fileList button{margin-inline-start:8px}#attach{cursor:pointer}

.ce-modal{padding:0;border:0;border-radius:12px;width:min(510px,100vw);max-width:100vw;max-height:min(94dvh,930px);color:#20252c;background:#fbfbfd;overflow:hidden;box-shadow:0 16px 50px #0003}
.ce-modal::backdrop{background:#1118}
.ce-form{margin:0;display:flex;flex-direction:column;max-height:min(94dvh,930px)}
.ce-modal header{display:flex;align-items:center;gap:10px;background:white;min-height:56px;padding:7px 13px;border-bottom:1px solid #e1e3e7;flex-shrink:0}
.ce-modal header h2{flex:1;margin:0;font-size:19px;font-weight:600;line-height:1.2}
.ce-modal .ce-back,.ce-modal .ce-remove{background:transparent;color:#25292f;border:0;box-shadow:none;padding:0;min-width:40px;min-height:40px;font-size:22px}
.ce-modal .ce-save{background:#055cf0;color:white;border:0;border-radius:24px;padding:9px 15px;font-size:14px;min-height:40px}
.ce-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding-bottom:12px}
.ce-section{padding:13px 16px 16px;border-bottom:1px solid #dcdee3;display:grid;gap:12px}
.ce-section h3{margin:0;font-size:18px;font-weight:550}
.ce-modal .ce-field,.ce-modal .ce-address{display:flex;flex-direction:column;text-align:left;align-items:stretch;min-width:0;background:#e6e6e8;border:0;border-bottom:1px solid #777c82;border-radius:4px 4px 0 0;padding:7px 12px 5px;margin:0;color:#272a2e;box-shadow:none}
.ce-field>span,.ce-address small{color:#51545a;font-size:12px;font-weight:400}
.ce-modal .ce-field input,.ce-modal .ce-field textarea{width:100%;min-width:0;min-height:24px;border:none;border-radius:0;box-shadow:none;background:transparent;color:#17191c;font:400 16px/1.4 Roboto,Arial,sans-serif;padding:0;margin:0}
.ce-field:focus-within{outline:2px solid #075bea;outline-offset:-1px}.ce-modal .ce-field textarea{min-height:90px;resize:vertical}
.ce-values,.ce-addresses{display:grid;gap:11px}.ce-values:empty,.ce-addresses:empty,.ce-section [hidden],.ce-error:empty{display:none!important}
.ce-value{display:flex;align-items:center;gap:7px}.ce-value .ce-field{flex:1}.ce-modal .ce-remove{min-width:32px}
.ce-modal .ce-action{justify-self:start;display:inline-flex;align-items:center;width:auto;text-decoration:none;min-height:40px;border:0;background:transparent;color:#064fbf;box-shadow:none;font-weight:600;padding:2px 10px}
.ce-switch{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.ce-switch span{display:grid}.ce-switch strong{font-weight:500}.ce-switch small{color:#61656d;font-size:13px}.ce-switch input{appearance:none;flex:none;min-width:0;width:38px;height:22px;padding:0;border:none;border-radius:18px;background:#8e959e;cursor:pointer}.ce-switch input:before{content:'';display:block;width:18px;height:18px;margin:2px;border-radius:50%;background:white}.ce-switch input:checked{background:#075bea}.ce-switch input:checked:before{transform:translateX(16px)}.ce-switch input:disabled{opacity:.48}
.ce-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ce-error{padding:6px 16px;color:#98321d;font-size:14px}
@media(max-width:620px){.ce-modal{margin:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.ce-form{height:100%;max-height:100%}}

.customer-invite-download{display:block;width:fit-content;margin:10px 0;padding:10px 14px;border-radius:8px;background:#125bd5;color:white;font-weight:650;text-decoration:none}

/* Customer service and billing addresses */
.address-editor.ce-modal {background:#f9fafe;color:#292d32}
.address-editor .ce-form {width:100%;align-items:stretch}
.address-editor header {min-height:58px;gap:16px;padding:6px 16px 6px 10px;border:0}
.address-editor header h2 {font-size:21px;color:#49505a}
.address-editor .ce-save:disabled {background:#e3e7f0;color:#7a8392;opacity:1;cursor:default}
.address-editor .ce-error:empty {display:none}
.address-editor .ce-body {display:flex;flex-direction:column;gap:clamp(14px,2.6dvh,24px);padding:16px;background:#f9fafe}
.address-editor .addr-field {position:relative;display:block;width:100%;margin:0;min-width:0}
.address-editor .addr-field input,.address-editor .addr-field textarea,.address-editor .addr-field select {box-sizing:border-box;display:block;width:100%;min-width:0;margin:0;padding:21px 16px 6px;min-height:56px;height:clamp(56px,7.3dvh,65px);border:0;border-bottom:1px solid #797c80;border-radius:4px 4px 0 0;background-color:#e2e2e2;box-shadow:none;font:inherit;font-size:17px;line-height:1.35;color:#202428}
.address-editor .addr-field textarea {height:clamp(110px,18.9dvh,168px);resize:vertical;padding-top:25px}
.address-editor .addr-field select {appearance:auto;padding-right:9px}
.address-editor .addr-field>span {position:absolute;top:50%;left:16px;transform:translateY(-50%);pointer-events:none;color:#54575a;font-size:18px;line-height:1.2}
.address-editor .addr-field:has(textarea)>span {top:26px}
.address-editor .addr-field:focus-within>span,.address-editor .addr-field:has(input:not(:placeholder-shown),textarea:not(:placeholder-shown))>span,.address-editor .addr-field.filled>span {top:6px;transform:none;font-size:11px;font-weight:500}
.address-editor .addr-field :is(input,select,textarea):focus {outline:0;border-bottom:2px solid #145bcc}
.address-editor .addr-pair {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.address-editor .addr-lookup .addr-field input {padding-left:52px}
.address-editor .addr-lookup .addr-field>span {left:52px}
.address-editor .addr-lookup .addr-field::before,.address-editor .addr-lookup .addr-field::after {content:'';position:absolute;pointer-events:none;color:#62666b;z-index:1}
.address-editor .addr-lookup .addr-field::before {width:13px;height:13px;border:2px solid;border-radius:50%;left:19px;top:calc(50% - 9px)}
.address-editor .addr-lookup .addr-field::after {height:2px;width:9px;background:currentColor;left:32px;top:calc(50% + 7px);transform:rotate(45deg)}
.address-editor .addr-results:not(:empty) {background:white;border:1px solid #c9d1dc;border-radius:0 0 5px 5px;max-height:min(270px,35dvh);overflow-y:auto}
.address-editor .addr-option {padding:9px 14px;min-height:45px;cursor:pointer;border-bottom:1px solid #e3e6eb}
.address-editor .addr-option:last-child {border-bottom:0}
.address-editor .addr-option:hover,.address-editor .addr-option[aria-selected=true] {background:#eaf1fc}
.address-editor .addr-option strong,.address-editor .addr-option small {display:block}
.address-editor .addr-option small,.address-editor .addr-hint {font-size:13px;color:#4b5461}
.address-editor .addr-hint:not(:empty) {margin-top:6px}
.address-editor .addr-switch {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin:0;font-size:16px;color:#202429;cursor:pointer}
.address-editor .addr-switch input {appearance:none;position:relative;width:38px;min-width:38px;height:18px;min-height:0;border:0;border-radius:12px;background:#929aa9;padding:0;margin:0 4px}
.address-editor .addr-switch input::after {content:'';position:absolute;width:23px;height:23px;border-radius:50%;left:-1px;top:50%;transform:translateY(-50%);background:#dce4f5;box-shadow:0 1px 3px #0004}
.address-editor .addr-switch input:checked {background:#6793dd}
.address-editor .addr-switch input:checked::after {left:16px;background:#125bd4}
@media(max-width:640px){
  .address-editor.ce-modal {inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .address-editor .ce-form {height:100%;max-height:100%;padding:0}
  .address-editor .ce-body {padding-bottom:max(18px,env(safe-area-inset-bottom))}
}

.job-sheet-page {background:#eef2fb;color:#252b34}
.job-sheet-page .sheet-back {background:white;color:#4c5562;padding:8px 14px;min-height:52px;box-shadow:0 2px 7px #1d263323}
.sheet-back>strong {flex:1}
.sheet-back>button,.sheet-job-more {border:0;background:white;border-radius:50%;color:#20252a;min-height:42px;min-width:42px;box-shadow:none}
.sheet-bar-more,.sheet-job-more {font-size:24px}
.job-sheet-page .sheet-job-more {display:none}
.job-sheet .sheet-hero {position:relative;border:0;box-shadow:none}
.sheet-hero>.sheet-job-more {position:absolute;right:10px;top:9px}
.job-sheet .sheet-cover {height:clamp(132px,22vw,250px)}
.job-sheet .sheet-intro {padding:18px;background:white}
.job-sheet .sheet-intro small,.job-sheet .sheet-intro p {color:#505b6a}
.job-sheet .sheet-intro h2 {line-height:1.2;margin:6px 0 4px}
.job-sheet .sheet-actions button,.job-sheet .sheet-actions a {color:#0754cb;background:#e7efff;border:0}
.job-sheet .sheet-column,.job-sheet .sheet-sections {gap:12px}
.job-sheet .sheet-block,.job-sheet .job-photos {border:1px solid #e4e8ef;border-radius:10px;box-shadow:0 3px 11px #1b283123;background:white}
.job-sheet .sheet-block>h3,.job-sheet .job-photos>h3 {margin:0 0 6px;padding:0;border-bottom:1px solid #dadde2}
.job-sheet .click-tile {cursor:pointer}
.job-sheet .tile-open {width:100%;display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#181e24;text-align:start;line-height:1.25;font-size:18px;font-weight:600}
.job-sheet .tile-title {flex:1}
.job-sheet .tile-mark {color:#065bea;font-size:21px;margin-inline-start:auto}
.job-sheet .tile-icon,.job-sheet .nav-icon {display:inline-flex;width:20px;height:20px;color:#19232e;flex:none}
.job-sheet .sheet-pair {align-items:baseline}
.job-sheet .sheet-pricing h4 {letter-spacing:.025em;text-transform:uppercase;font-weight:500;font-size:12px;color:#647083;border-bottom:1px solid #dce0e6;padding:7px 0}
.sheet-pricing .sheet-pair:last-child {margin-top:10px;border-top:1px solid #d9dfe7;padding-top:12px;font-weight:700}
.sheet-pricing .sheet-pair>span {overflow-wrap:anywhere}
.sheet-line-detail {white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-pricing .sheet-line-detail {margin:4px 0 9px}
.price-row .sheet-line-detail {display:block;margin-top:4px;font-weight:400}
.invoice-line .line-detail-field,.service-item-editor .line-name-field {grid-column:1/-1}
.invoice-line .line-detail-field textarea {width:100%;box-sizing:border-box;resize:vertical}
.job-sheet .sheet-link,.job-sheet .sheet-fold>summary {cursor:pointer;min-height:46px}
.sheet-sections>.sheet-fold {background:white;padding:0 14px}
.sheet-sections>.sheet-fold>summary,.sheet-contact .sheet-fold>summary {display:flex;align-items:center;justify-content:space-between;list-style:none}
.sheet-sections>.sheet-fold>summary::after,.sheet-contact .sheet-fold>summary::after {content:'›';color:#637186;font-size:23px}
.job-sheet .sheet-sections>.sheet-link,.job-sheet .job-note-tile {border:1px solid #2264c3;color:#212735;background:white;border-radius:8px}
.sheet-progress>.complete {display:block;width:100%;border:0;border-radius:24px;background:#005aee;color:white;min-height:44px}
.job-sheet .sheet-person {display:flex;gap:12px;align-items:center;margin:9px 0}
.sheet-avatar {display:grid;place-items:center;width:37px;height:37px;border-radius:50%;border:2px solid #2675c5;background:#e1edff;color:#184975;font-weight:700;font-size:14px}
.job-photos .job-photo-actions>button[data-media] {color:#0759d4;background:white;border:1px solid #c9d6ed}
.price-screen.sheet-modal {width:min(590px,96vw);background:#f8f9fc}
.price-screen>header {background:#171a1f;color:white;display:flex;gap:8px}
.price-screen>header h2 {flex:1;margin:0;color:white;font-size:20px}
.price-screen>header button {color:white;border:0;background:transparent;font-size:24px;min-width:42px}
.price-screen .sheet-dialog-body {padding:0}
.price-bar,.price-row,.price-add,.price-footer>label {display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:52px;padding:10px 14px}
.price-bar {justify-content:space-between;background:#f4f6fa;color:#596575;font-size:14px}
.price-bar button {color:#0756c5;background:transparent;border:0;font-weight:600}
.price-row,.price-add {border:0;border-bottom:1px solid #e4e7eb;border-radius:0;box-shadow:none;background:white;color:#354253;text-align:left}
.price-row>span:first-child {min-width:0;flex:1}.price-row strong,.price-row small {display:block}.price-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.price-row small,.price-add {color:#566779}.price-row>b {white-space:nowrap}
.price-footer {margin-top:22px;background:white}.price-footer>label {border-bottom:1px solid #e2e6ec;justify-content:space-between}
.price-footer input[type=checkbox] {width:23px;height:23px;accent-color:#005ce5}
.price-footer input[type=number] {max-width:96px}
.price-footer label:last-child {display:grid;gap:6px}.price-footer textarea {width:100%;min-height:78px}
.job-menu .sheet-dialog-body>button {display:block;width:100%;text-align:left;border:0;border-radius:0;min-height:46px;background:white;color:#202832}
.job-menu button.menu-danger,.sheet-modal .menu-danger {color:#bb1558}
@media(max-width:720px){
 .job-sheet-page .sheet-layout {display:block}
 .job-sheet .sheet-column {gap:19px;padding:0 9px 18px}
 .job-sheet .sheet-block,.job-sheet .job-photos {padding:4px 15px 11px}
 .job-sheet .sheet-intro .sheet-actions {display:flex;flex-wrap:wrap;gap:8px}
 .job-sheet .sheet-intro .sheet-actions button {padding:8px 15px}
 .job-sheet-page .sheet-back {z-index:8}
 .price-screen.sheet-modal {inset:0;margin:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;border-radius:0}
}
.sheet-pricing>h3 {display:flex;align-items:center;gap:6px}
.sheet-pricing>h3>.tile-open {flex:1;min-width:0}
.sheet-pricing .sheet-expand {background:white;border:0;color:#0758d0;min-height:44px;min-width:42px;font-size:22px}
.job-menu.sheet-modal {width:min(310px,88vw);max-height:78dvh;margin:0;inset:64px max(12px,calc((100vw - 1100px)/2)) auto auto;border-radius:6px}
.job-menu .sheet-dialog-body {padding:3px 0}.job-menu .sheet-dialog-body>button {padding:12px 16px;border-radius:0}
.job-sheet .job-lifecycle .cancel {display:none}
.job-sheet .job-photos>h3 {display:flex;align-items:center;gap:4px}.job-sheet .job-photos .tile-open {flex:1;min-width:0}
.job-sheet .sheet-media-icon {border:0;background:white;color:#0758d0;width:44px;min-height:44px;padding:10px;border-radius:5px}
.job-sheet .sheet-media-pad {display:flex;width:100%;min-height:105px;align-items:center;justify-content:center;flex-direction:column;gap:7px;margin:10px 0;color:#085dcc;border:1.5px dashed #aebace;background:white}
.job-sheet .sheet-media-pad[hidden] {display:none}.sheet-media-pad svg {width:31px;height:31px}

.finance-job {border-top:1px solid #dce3ed;margin-top:12px;padding-top:9px}
.finance-job h4{font-size:1rem;margin:4px 0 10px}.finance-job .sheet-link{width:100%;display:flex;justify-content:space-between;gap:12px}
.finance-job .finance-unbilled{color:#174eac;background:#eef4ff}
.finance-reports .bill-tools{display:flex;align-items:end;flex-wrap:wrap}.finance-reports .bill-tools label{display:grid;gap:4px}
.finance-reports .bill-tools input,.finance-reports .bill-tools select{min-width:0;max-width:100%}
.finance-reports{max-width:100%;min-width:0}.finance-scroll{max-width:100%;overflow:auto}.finance-scroll table{min-width:600px}
.finance-overview{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.finance-overview>div{min-width:130px;flex:1;border:1px solid #dce3ed;padding:10px;border-radius:8px}.finance-overview strong,.finance-entry span{display:block}
.finance-entry{padding:10px 0;border-bottom:1px solid #dce3ed}

.planner-money{display:flex;gap:2px 5px;align-items:baseline;flex-wrap:wrap;font-size:.74rem;line-height:1.2}
.visit-fin-due,.visit-fin-paid,.visit-fin-unbilled{padding:2px 4px;font-weight:600}
.visit-fin-due{background:#f6bdd4;color:#822044}.visit-fin-paid{background:#d9f1e2;color:#175837}
.visit-fin-unbilled{background:#e3edfc;color:#244d85}.visit-fin-state{color:#475568}

.invoice-workhead,.invoice-worktools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.invoice-workhead{padding:10px 12px;background:#fff;border-bottom:1px solid #d8dce1}.invoice-workhead h2{margin:0;flex:1;color:#31383f;font-size:1.22rem}
.invoice-workhead button,.invoice-worktools button{min-height:42px}.invoice-workhead .primary{border-radius:32px;padding:8px 20px}
.invoice-worktools{background:#f6f8fb;padding:8px 12px}.invoice-worktools .inv-source{margin-right:auto;display:grid;gap:2px}.invoice-worktools .inv-source button{padding:0;min-height:30px;border:0;background:none;color:#1156ae;text-align:left}.invoice-worktools .inv-icon{width:42px;height:42px;padding:8px;border:0;background:transparent;color:#384452;display:grid;place-items:center}.inv-icon svg{width:22px;height:22px}
.invoice-paper-frame{container-type:inline-size;width:100%;background:#edf0f3;padding:clamp(5px,1.6%,14px);box-sizing:border-box}
.bill-paper.service-invoice{display:flex;flex-direction:column;gap:0;box-sizing:border-box;width:100%;max-width:790px;min-height:0;aspect-ratio:8.5/11;margin:0 auto;padding:5.5% 5%;background:#fff;color:#262b2f;box-shadow:0 3px 12px #14263826;border:0;border-radius:2px;font:400 clamp(8px,1.65cqi,13px)/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.service-invoice .si-head{display:grid;grid-template-columns:52% 42%;gap:6%;align-items:start}.service-invoice .si-head>div{min-width:0}
.service-invoice .si-head img{width:30%;max-width:96px;height:auto;display:block}
.service-invoice h2{font-size:1.2em;margin:.15em 0 .9em}.service-invoice h3,.service-invoice h4{color:#4b545c;text-transform:uppercase;letter-spacing:.025em;font-size:.86em;font-weight:600;margin:1.2em 0 .25em}
.service-invoice .si-block{white-space:pre-line}.service-invoice .si-block h4{border-bottom:1px solid #e1e3e4}
.service-invoice dl{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:0;margin:0}.service-invoice dl>*{margin:0;padding:.3em .4em}.service-invoice dl dd{text-align:right}.service-invoice .si-facts{border:1px solid #c7cacc}.service-invoice .si-facts>:nth-last-child(-n+2),.service-invoice .si-totals>:nth-last-child(-n+2){font-weight:bold;border-top:1px solid #9ca4aa}
.service-invoice table{border-collapse:collapse;width:100%;table-layout:fixed;color:inherit;font:inherit}.service-invoice table td,.service-invoice table th{padding:.3em .4em;vertical-align:top;border-bottom:1px solid #dce0e3;text-align:right}.service-invoice table th{background:#60696e;color:#fff;font-weight:600}.service-invoice table :is(th,td):first-child{width:55%;text-align:left}.service-invoice table small{display:block;font-size:.94em;white-space:pre-line}
.service-invoice .si-sub{text-align:right;margin:.45em 0}.service-invoice .si-totals{margin:1em 0 .8em auto;width:46%;min-width:12em}.service-invoice .si-totals>*{border-bottom:1px solid #e2e5e8}.service-invoice .si-message{white-space:pre-line;margin:1.3em 0 .3em}.service-invoice footer{margin-top:auto;padding-top:1em;display:flex;justify-content:space-between;gap:1em;border-top:1px solid #ddd;font-size:.8em}
.bill-detail>.invoice-settings,.bill-detail>.inv-message{margin:.6rem 0}.invoice-settings summary{padding:10px;cursor:pointer}.bill-detail .inv-message{color:#1457b0}
@media(max-width:650px){dialog.sheet-modal:has(.bill-detail:not([hidden])){width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:0;border-radius:0;margin:0}dialog.sheet-modal:has(.bill-detail:not([hidden]))>header{display:none}dialog.sheet-modal:has(.bill-detail:not([hidden])) .sheet-dialog-body{padding:0} .sheet-dialog-body .panel:has(.bill-detail:not([hidden])){padding:0}.sheet-dialog-body .panel:has(.bill-detail:not([hidden]))>h2{display:none}}
@media print{.bill-paper.service-invoice{display:flex!important;font:9pt/1.35 Arial,sans-serif;max-width:none;width:100%;padding:0;margin:0;box-shadow:none;aspect-ratio:auto}.service-invoice th{print-color-adjust:exact}.service-invoice tr{break-inside:avoid}}

/* Website callback requests on the staff dashboard. */
.callback-panel.panel{padding:12px 16px}
.callback-header,.callback-who,.callback-pages,.callback-actions,.callback-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.callback-header{justify-content:space-between}.callback-header h2,.callback-who h3,.callback-message h4{margin:0}
.callback-header button,.callback-pages button{min-height:36px;padding:4px 10px}
.callback-filters{gap:6px;margin-top:8px}
.callback-filters button{min-height:32px;padding:3px 10px;font-size:.85rem;border-radius:20px}
.callback-filters button[aria-pressed=true]{color:#fff;background:#1746aa;border-color:#1746aa}
.callback-list{list-style:none;padding:0;margin:8px 0 0}.callback-list:empty,.callback-pages:empty,.callback-feedback:empty{display:none}
.callback-list li{margin:0;border-top:1px solid #e1e7ef}
.callback-list .callback-row{display:grid;grid-template-columns:minmax(0,1fr) auto 7rem 1rem;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 4px;background:transparent;color:#142540;text-align:left;border:0;border-radius:4px;box-shadow:none}
.callback-row:hover,.callback-row:focus-visible{background:#edf4ff}
.callback-row strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.callback-row time,.callback-received,.callback-consent,.callback-pages span{font-size:.84rem;color:#54647a}
.callback-badge{justify-self:start;padding:2px 8px;border-radius:12px;font-size:.78rem;font-weight:650}
.callback-new{color:#173e91;background:#e6eeff}.callback-contacted{color:#704710;background:#fff1d7}.callback-completed{color:#245b46;background:#e2f2e9}
.callback-arrow{color:#485f81;font-size:1.3rem}.callback-pages{justify-content:end;margin-top:6px}.callback-feedback{margin:6px 0;font-size:.9rem}
dialog.sheet-modal.callback-dialog{inset:0;margin:auto;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:fit-content;max-height:86dvh;border-radius:12px;background:#fff;overflow:auto}
.callback-dialog .sheet-dialog-body{padding:16px}
.callback-who{justify-content:space-between}.callback-who h3{overflow-wrap:anywhere}
.callback-call{display:table;margin:12px 0;padding:8px 12px;background:#1648b5;color:white;border-radius:7px;text-decoration:none;font-weight:650}
.callback-message p{white-space:pre-wrap;margin:4px 0}.callback-consent{margin:10px 0}
.callback-actions,.callback-confirm{border-top:1px solid #dde4ed;padding-top:10px}
.callback-actions button,.callback-confirm button{min-height:40px;padding:6px 10px}
.callback-actions button.callback-delete,.callback-confirm button.callback-delete{color:#9f1837;border-color:#e8acb8}
.callback-confirm p{margin:0 0 8px}.callback-confirm button+button{margin-left:8px}
.callback-actions[hidden],.callback-confirm[hidden]{display:none}
@media(max-width:540px){
  .callback-panel.panel{padding:10px 12px}.callback-header h2{flex:1;min-width:0}
  .callback-list .callback-row{grid-template-columns:minmax(0,1fr) auto .65rem;gap:2px 6px;padding:6px 2px}
  .callback-row time{grid-column:1;grid-row:2}.callback-row .callback-badge{grid-column:2;grid-row:1 / 3}.callback-row .callback-arrow{grid-column:3;grid-row:1 / 3}
}

.intake-notice{background:#eaf2ff;color:#104ba6;border:1px solid #a9c5ed;border-radius:8px;padding:.45em .8em;margin:.3em 0 .6em;font-weight:650}
.booking-count{font-weight:700;color:#17417a;font-variant-numeric:tabular-nums}
.booking-panel .callback-header h2{margin:0}.booking-panel .callback-header .booking-count{margin-inline-end:auto}
.booking-panel .booking-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}.booking-urgent{font-weight:650;color:#954200}
@media(max-width:640px){.booking-panel .booking-row{grid-template-columns:minmax(0,1fr) auto}.booking-row strong,.booking-row span:nth-child(2){grid-column:1}.booking-row time{grid-column:1;font-size:.85em}.booking-row .callback-arrow{grid-column:2;grid-row:1 / 4}}


/* The job sheet groups related actions on raised cards. */
.job-sheet-page {--job-card-shadow:0 3px 8px #17223826,0 9px 16px -6px #17223840;background:#edf1fa}
.job-sheet .sheet-layout {padding:5px 12px 18px;gap:18px}
.job-sheet .sheet-column,.job-sheet .sheet-sections {gap:20px}
.job-sheet .sheet-block,.job-sheet .job-photos,.job-sheet .sheet-sections>.sheet-fold,.job-sheet .sheet-sections>.sheet-link,.job-sheet .job-note-tile {
  background:white;border:1px solid #dfe4ec;border-radius:10px;box-shadow:var(--job-card-shadow)
}
.job-sheet .sheet-block>h3 {border-bottom-color:#d7dbe0}
.job-sheet .sheet-progress>.sheet-link {border-top:1px solid #dfe2e6;border-radius:0;min-height:48px}
@media(max-width:760px){
  .job-sheet-page .sheet-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding:4px 10px 20px}
  .job-sheet .sheet-column {padding:0;gap:22px}
  .job-sheet .sheet-hero {border-radius:0 0 10px 10px}
}

/* Customer directory and full-screen Android customer detail */
button.profile-tile{box-sizing:border-box;width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;gap:14px;padding:16px;text-align:left;background:white;color:#182438;border:0;border-bottom:1px solid #e0e5ed;border-radius:0;box-shadow:none;font:inherit}
.profile-tile:first-child{border-radius:12px 12px 0 0}.profile-tile:last-child{border-radius:0 0 12px 12px}.profile-tile:only-child{border-radius:12px}
.profile-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;font-size:16px;font-weight:650;letter-spacing:.015em;color:#254d86;background:#e8effa}
.profile-tile-lines{min-width:0;display:grid;gap:3px}.profile-tile-lines>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-tile-lines strong{font-size:16px;font-weight:650}.profile-tile-lines>span{color:#526377;font-size:14px;font-weight:400}.profile-tile>.nav-icon{color:#63758a;width:20px;height:20px}
dialog.profile-screen{position:fixed;inset:0;box-sizing:border-box;margin:0;width:100vw;height:100%;height:100dvh;max-width:none;max-height:none;border:0;padding:0;overflow:hidden;color:#1b2533;background:#f7f8fb;font:inherit;color-scheme:light}
.profile-screen::backdrop{background:#f7f8fb}.profile-frame{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.profile-frame[hidden]{display:none!important}
.profile-screen .profile-header{position:relative;box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:60px;padding:5px max(10px,calc((100% - 720px)/2));padding-top:max(5px,env(safe-area-inset-top));border-bottom:1px solid #dde2e9;background:#fff;color:#233246}
.profile-header h2{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;line-height:1.25;font-weight:650;margin:0;letter-spacing:-.02em}.profile-tools{display:flex;align-items:center;gap:2px}
.profile-screen .profile-icon-action{box-sizing:border-box;width:44px;height:44px;flex:none;display:inline-grid;place-items:center;color:#1458cf;background:transparent;padding:0;border:none;border-radius:50%;text-decoration:none;box-shadow:none}.profile-header>.profile-icon-action{color:#233246}
.profile-screen .nav-icon,.profile-tile .nav-icon{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}
.profile-body{box-sizing:border-box;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto;width:100%;max-width:720px;justify-self:center;min-width:0;padding-bottom:max(20px,env(safe-area-inset-bottom));background:#f9fafe}
.profile-screen button,.profile-screen a{touch-action:manipulation}.profile-screen button:focus-visible,.profile-tile:focus-visible,.profile-screen a:focus-visible{outline:3px solid #2a69d8;outline-offset:-3px}
.profile-screen .profile-location{width:100%;display:flex;align-items:center;gap:16px;background:#eaf1f9;color:#264461;border:none;border-radius:0;padding:24px 18px;min-height:108px;text-align:left;box-shadow:none}
.profile-location>span{flex:1;min-width:0;display:grid;gap:4px}.profile-location small,.profile-value small{font-size:13px;font-weight:400;color:#586779}.profile-location strong{font-weight:650;font-size:19px;overflow-wrap:anywhere}.profile-location span span{font-size:15px;font-weight:400}
.profile-actions{display:flex;gap:12px;padding:16px 16px 2px}.profile-screen .profile-pill{flex:1;min-height:44px;border:0;border-radius:999px;padding:9px 16px;background:#e1ebff;color:#124db7;box-shadow:none;font-size:15px;font-weight:650}
.profile-block{padding:20px 16px 12px;border-bottom:1px solid #d9dfe7;margin:0;background:transparent}.profile-block h3{margin:0 0 14px;font-size:21px;font-weight:620;line-height:1.3;letter-spacing:-.025em}
.profile-detail-row{display:flex;align-items:center;gap:3px;min-height:50px;padding:5px 0}.profile-value{flex:1;min-width:0;display:grid;gap:3px}.profile-value span{font-size:16px;line-height:1.4;white-space:pre-line;overflow-wrap:anywhere}.profile-value small{line-height:1.25}.profile-notices{display:block;padding:10px 0 3px;color:#667183;font-size:12px;letter-spacing:.035em;text-transform:uppercase}
.profile-address-row{display:flex;align-items:center;gap:4px}.profile-screen .profile-address-open{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;text-align:left;padding:12px 0;min-height:52px;color:#213248;border:0;background:transparent;box-shadow:none;font:inherit}.profile-address-open>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.profile-address-open .nav-icon,.profile-link-row .nav-icon{flex:none}
.profile-screen .profile-link-row,.profile-screen .profile-download{box-sizing:border-box;width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:transparent;color:#243247;border:0;border-bottom:1px solid #d9dfe7;border-radius:0;min-height:54px;padding:12px 16px;box-shadow:none;font:inherit;text-decoration:none}.profile-link-row>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.profile-count{font-size:15px;color:#566475;font-variant-numeric:tabular-nums}.profile-block>.profile-link-row{margin:10px 0 -12px;padding:12px 0;border-bottom:0;border-top:1px solid #d9dfe7}.profile-sections .profile-link-row{font-size:18px;font-weight:550}.profile-download .nav-icon{margin-left:auto}
.profile-rows>.profile-detail-row,.profile-rows>.profile-address-row,.profile-body>.profile-detail-row{padding:8px 16px;border-bottom:1px solid #d9dfe7}.profile-screen .profile-media{width:100%;max-height:75dvh;object-fit:contain;background:#17212d}
.profile-list-tail,.profile-empty{margin:12px 16px;color:#526377}.profile-list-tail:empty{display:none}.profile-body>.profile-pill,.profile-body>.client-form,.profile-body>.job-editor,.profile-body>details,.profile-body>.profile-extra{margin:12px 16px}.profile-filters{display:flex;flex-wrap:wrap;gap:8px;padding:14px 16px}
.profile-screen .profile-filter{border:1px solid #d3dce9;border-radius:999px;min-height:42px;padding:8px 12px;color:#344965;background:white;font-size:14px}.profile-screen .profile-filter[aria-pressed=true]{background:#e3edff;color:#164caa;border-color:#aac7f5}
.profile-screen .profile-body>.job-editor[open]>summary{display:none}.profile-screen .profile-icon-action:active,.profile-tile:active,.profile-screen .profile-link-row:active{background:#eaf0fa}
