/* Jobs module — extends the established v2.13 workspace design without changing existing views. */
.job-editor-modal{width:min(980px,100%)}
.job-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.job-editor-grid>.full{grid-column:1/-1}.job-editor-grid textarea{min-height:110px;resize:vertical}
.job-editor-section{padding:16px;border:1px solid #e9e4ed;border-radius:16px;background:#fcfbfd}.job-editor-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.job-editor-section-head h3{margin:0;color:#3d3445;font-size:14px}.job-editor-section-head p{margin:4px 0 0;color:#817989;font-size:10px;font-weight:650}
.job-customer-picker-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px}.job-customer-picker-head label{margin:0}.job-schedule-note{margin:9px 2px 0;color:#817989;font-size:9.5px;font-weight:650;line-height:1.45}
.job-window-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.job-address-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px}.job-address-grid .wide{grid-column:1/-1}
.job-estimate-selection{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #d7c9e8;border-radius:13px;background:#f8f5fb}.job-estimate-selection[hidden]{display:none}.job-estimate-selection strong,.job-estimate-selection span{display:block}.job-estimate-selection strong{color:#392f42;font-size:12px}.job-estimate-selection span{margin-top:3px;color:#7c7383;font-size:10px;font-weight:650}
.job-stop-list{display:grid;gap:10px}.job-stop{position:relative;display:grid;grid-template-columns:1fr 2fr 1fr 1fr;gap:9px;padding:13px;border:1px solid #e5dfe9;border-radius:13px;background:#fff}.job-stop .wide{grid-column:span 2}.job-stop .job-stop-instructions{grid-column:1/-1}.job-stop-remove{position:absolute;top:8px;right:8px;border:0;background:transparent;color:#a01818;font-size:10px;font-weight:850}.job-stop-empty{padding:16px;border:1px dashed #ddd5e4;border-radius:12px;color:#837a89;font-size:11px;font-weight:700;text-align:center}
.jobs-page-heading .btn.primary{align-self:center;background:#332b3b;color:#fff}.jobs-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) 190px 190px;gap:12px;align-items:center;margin-bottom:18px}.jobs-toolbar select{height:54px;border-radius:15px;background:#fff}
.job-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}.job-summary-card{padding:15px 16px;border:1px solid #e8e3ec;border-radius:15px;background:#fff}.job-summary-card span,.job-summary-card strong{display:block}.job-summary-card span{color:#7c7383;font-size:10px;font-weight:800}.job-summary-card strong{margin-top:6px;color:#342b3d;font-size:22px}
.jobs-sections{display:grid;gap:20px}.jobs-section{display:grid;gap:9px}.jobs-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.jobs-section-head h3{margin:0;color:#372e40;font-size:17px}.jobs-section-head span{color:#817889;font-size:10px;font-weight:800}.job-list{display:grid;gap:8px}.job-row{display:grid;grid-template-columns:112px minmax(150px,1fr) minmax(160px,1.2fr) minmax(130px,.75fr) 92px;gap:14px;align-items:center;width:100%;padding:14px 16px;border:1px solid #e8e3ec;border-radius:16px;background:#fff;color:#3c3344;text-align:left;box-shadow:0 4px 16px rgba(40,28,52,.025)}.job-row:hover{border-color:#cdbfde;background:#fcfafd}.job-row strong,.job-row span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-row strong{font-size:12px}.job-row span{margin-top:4px;color:#817889;font-size:9.5px;font-weight:700}.job-row-number{color:var(--purple)!important;font-weight:900!important}.job-empty{padding:30px 18px;border:1px dashed #ddd5e4;border-radius:16px;background:#fcfbfd;color:#817889;font-size:11px;font-weight:700;text-align:center}
.job-status-pill{display:inline-flex!important;width:max-content;padding:5px 8px;border-radius:999px;background:#f1edf6;color:#5d4a70;font-size:9px!important;font-weight:900!important}.job-status-pill[data-colour="warning"]{background:#fff3d7;color:#845f00}.job-status-pill[data-colour="positive"]{background:#eaf7e6;color:#32721b}.job-status-pill[data-colour="danger"]{background:#fff0f0;color:#9d2020}.job-status-pill[data-colour="active"]{background:#e8f2ff;color:#1e5f9d}
.job-details-hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid #eeeaf1}.job-details-hero .back-link{grid-column:1/-1}.job-number-label{color:var(--purple);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.7px}.job-details-hero h2{margin:5px 0 0;color:#30283a;font-size:28px;letter-spacing:-.5px}.job-details-hero p{margin:6px 0 0;color:#786f80;font-size:12px;font-weight:700}.job-details-actions{display:flex;gap:9px}.job-details-actions .btn.ghost{border:1px solid #e1dbe6;background:#fff;color:#554461}
.job-details-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.7fr);gap:18px;align-items:start}.job-details-main,.job-details-side{display:grid;gap:16px}.job-details-main .customer-section-card,.job-details-side .customer-section-card{margin:0}.job-customer-card{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center}.job-customer-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--theme-soft);color:var(--purple);font-weight:900}.job-customer-card strong,.job-customer-card span{display:block}.job-customer-card strong{color:#372e40;font-size:14px}.job-customer-card span{margin-top:4px;color:#7b7282;font-size:10px;font-weight:650}
.job-service-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.job-detail-value{padding:12px;border-radius:12px;background:#f8f6fa}.job-detail-value span,.job-detail-value strong{display:block}.job-detail-value span{color:#82798a;font-size:9px;font-weight:800;text-transform:uppercase}.job-detail-value strong{margin-top:5px;color:#3b3243;font-size:11px}.job-address-details{display:grid;gap:9px}.job-address-card{padding:13px 14px;border:1px solid #e8e3ec;border-radius:13px;background:#fff}.job-address-card strong,.job-address-card span{display:block}.job-address-card strong{color:#463b4e;font-size:11px}.job-address-card span{margin-top:4px;color:#7d7484;font-size:10px;line-height:1.4;font-weight:650}
.job-notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.job-note-card{min-height:100px;padding:13px;border-radius:13px;background:#f8f6fa}.job-note-card strong{display:block;margin-bottom:7px;color:#44394d;font-size:10px}.job-note-card p{margin:0;color:#756c7d;font-size:10px;line-height:1.5;white-space:pre-wrap}.job-history{display:grid;gap:0}.job-history-entry{position:relative;padding:0 0 17px 26px;border-left:2px solid #e7e0ec}.job-history-entry:last-child{padding-bottom:0}.job-history-entry:before{content:"";position:absolute;left:-6px;top:2px;width:10px;height:10px;border-radius:50%;background:var(--purple);box-shadow:0 0 0 4px #f2edf7}.job-history-entry strong,.job-history-entry span{display:block}.job-history-entry strong{color:#3c3344;font-size:11px}.job-history-entry span{margin-top:4px;color:#837a89;font-size:9.5px;line-height:1.4;font-weight:650}
.job-estimate-card strong,.job-estimate-card span{display:block}.job-estimate-card strong{color:#3d3445;font-size:13px}.job-estimate-card span{margin-top:5px;color:#7c7383;font-size:10px;font-weight:650}.job-future-card h3{margin:0 0 13px}.job-future-card>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #eeeaf1;color:#776e7e;font-size:10px;font-weight:750}.job-future-card b{color:#9a929f}
.job-resource-planning{display:grid;gap:11px}.job-resource-type{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(260px,1.15fr);gap:12px;padding:13px;border:1px solid var(--theme-border,#e4deea);border-radius:14px;background:var(--theme-card,#fff)}.job-resource-type-head{grid-column:1/-1;display:flex;align-items:center;gap:10px}.job-resource-type-head span{display:block}.job-resource-type-head strong{display:block;color:var(--theme-text,#382f41);font-size:12px}.job-resource-type-head small{display:block;margin-top:3px;color:var(--theme-muted,#817989);font-size:9px;font-weight:650}.job-resource-icon{width:44px;height:44px;display:grid!important;place-items:center;border-radius:14px;background:var(--theme-soft,#f1edf6);color:var(--theme-primary,var(--purple));font-size:0;font-weight:900}.job-resource-icon svg{display:block;width:24px;height:24px}.job-resource-rule{display:grid;grid-template-columns:minmax(155px,1fr) 90px;gap:8px}.job-resource-rule label{margin:0;color:var(--theme-muted,#817989);font-size:9px;font-weight:800}.job-resource-rule select,.job-resource-rule input{margin-top:5px}.job-resource-options{display:grid;gap:7px}.job-resource-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;margin:0;padding:9px 10px;border:1px solid var(--theme-border,#e5dfe9);border-radius:11px;background:var(--theme-surface,#fbfafc);cursor:pointer}.job-resource-option input{width:16px;height:16px;margin:0}.job-resource-option span,.job-resource-option strong,.job-resource-option small{display:block;min-width:0}.job-resource-option strong{overflow:hidden;color:var(--theme-text,#3d3445);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.job-resource-option small{margin-top:2px;color:var(--theme-muted,#817989);font-size:8.5px;font-weight:650}.job-resource-option b{padding:4px 7px;border-radius:999px;background:#eaf7e6;color:#32721b;font-size:8px}.job-resource-option[data-status="unavailable"] b,.job-resource-option[data-status="under-repair"] b,.job-resource-option[data-status="out-of-service"] b{background:#fff0f0;color:#9d2020}.job-resource-warning-list{display:grid;gap:7px;margin-top:10px}.job-resource-warning{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:center;padding:9px 11px;border-left:4px solid #63809d;border-radius:9px;background:#eef4fa;color:#334b62}.job-resource-warning strong{font-size:8px;text-transform:uppercase;letter-spacing:.4px}.job-resource-warning span{font-size:9.5px;font-weight:700}.job-resource-warning[data-severity="recommendation"]{border-color:#d49a13;background:#fff8e6;color:#795500}.job-resource-warning[data-severity="required"]{border-color:#d36a26;background:#fff3e9;color:#864217}.job-resource-warning[data-severity="conflict"],.job-resource-warning[data-severity="unavailable"]{border-color:#c7343f;background:#fff0f1;color:#8d2028}.job-resource-empty{padding:16px;border:1px dashed var(--theme-border,#ddd5e4);border-radius:12px;color:var(--theme-muted,#817889);font-size:10px;font-weight:700;text-align:center}.job-resource-empty.compact{padding:10px}.job-resource-details{display:grid;gap:10px}.job-resource-detail-list{display:grid;gap:7px}.job-resource-detail-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--theme-border,#e8e3ec);border-radius:11px;background:var(--theme-surface,#fff)}.job-resource-detail-row strong,.job-resource-detail-row small{display:block}.job-resource-detail-row strong{color:var(--theme-text,#3d3445);font-size:10.5px}.job-resource-detail-row small{margin-top:3px;color:var(--theme-muted,#817989);font-size:8.5px;font-weight:650}.job-resource-detail-row>b{padding:4px 7px;border-radius:999px;background:#eaf7e6;color:#32721b;font-size:8px}.job-resource-detail-row>b:not([data-status="active"]){background:#fff0f0;color:#9d2020}
.customer-jobs-card{display:grid;gap:18px}.customer-job-group h4{margin:0 0 8px;color:#5c5264;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.customer-job-list{display:grid;gap:7px}.customer-job-row{display:grid;grid-template-columns:100px 1fr auto;gap:12px;align-items:center;width:100%;padding:11px 12px;border:1px solid #e8e3ec;border-radius:13px;background:#fff;color:#3c3344;text-align:left}.customer-job-row:hover{border-color:#cdbfde;background:#fcfafd}.customer-job-row strong,.customer-job-row span{display:block}.customer-job-row strong{font-size:11px}.customer-job-row span{margin-top:3px;color:#817889;font-size:9.5px;font-weight:650}.customer-job-none{padding:13px;border:1px dashed #ddd5e4;border-radius:12px;color:#8a818f;font-size:10px;font-weight:700;text-align:center}
html[data-color-mode="dark"] .job-editor-section,html[data-color-mode="dark"] .job-summary-card,html[data-color-mode="dark"] .job-row,html[data-color-mode="dark"] .job-address-card,html[data-color-mode="dark"] .customer-job-row,html[data-color-mode="dark"] .job-estimate-selection,html[data-color-mode="dark"] .job-stop{border-color:#3b4859;background:#1b2530;color:#f1f5f9}
html[data-color-mode="dark"] .job-detail-value,html[data-color-mode="dark"] .job-note-card,html[data-color-mode="dark"] .job-empty,html[data-color-mode="dark"] .job-stop-empty{background:#111821;color:#bac4d1}
html[data-color-mode="dark"] .job-row,html[data-color-mode="dark"] .customer-job-row,html[data-color-mode="dark"] .job-details-hero h2,html[data-color-mode="dark"] .job-summary-card strong,html[data-color-mode="dark"] .job-editor-section h3,html[data-color-mode="dark"] .job-address-card strong,html[data-color-mode="dark"] .job-customer-card strong,html[data-color-mode="dark"] .job-detail-value strong,html[data-color-mode="dark"] .job-note-card strong,html[data-color-mode="dark"] .job-history-entry strong,html[data-color-mode="dark"] .job-estimate-card strong{color:#f4f7fb}
html[data-color-mode="dark"] .job-row span,html[data-color-mode="dark"] .customer-job-row span,html[data-color-mode="dark"] .job-address-card span,html[data-color-mode="dark"] .job-customer-card span,html[data-color-mode="dark"] .job-detail-value span,html[data-color-mode="dark"] .job-note-card p,html[data-color-mode="dark"] .job-history-entry span,html[data-color-mode="dark"] .jobs-section-head span{color:#bac4d1}
html[data-color-mode="dark"] .job-schedule-note{color:#bac4d1}
html[data-color-mode="dark"] .job-resource-type,html[data-color-mode="dark"] .job-resource-option,html[data-color-mode="dark"] .job-resource-detail-row{border-color:#3b4859;background:#1b2530}html[data-color-mode="dark"] .job-resource-type-head strong,html[data-color-mode="dark"] .job-resource-option strong,html[data-color-mode="dark"] .job-resource-detail-row strong{color:#f4f7fb}
@media(max-width:980px){.jobs-toolbar{grid-template-columns:1fr 1fr}.jobs-toolbar .customer-search-box{grid-column:1/-1}.job-row{grid-template-columns:100px 1fr 1fr}.job-row>*:nth-child(4),.job-row>*:nth-child(5){display:none}.job-details-grid{grid-template-columns:1fr}.job-summary-strip{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.job-editor-grid,.job-address-grid,.job-notes-grid,.job-service-details,.job-resource-type{grid-template-columns:1fr}.job-editor-grid>.full,.job-address-grid .wide{grid-column:auto}.job-window-fields{grid-template-columns:1fr 1fr}.jobs-toolbar{grid-template-columns:1fr}.jobs-toolbar .customer-search-box{grid-column:auto}.job-summary-strip{grid-template-columns:1fr 1fr}.job-row{grid-template-columns:90px 1fr}.job-row>*:nth-child(3){display:none}.job-details-hero{grid-template-columns:1fr}.job-details-actions{flex-wrap:wrap}.job-stop{grid-template-columns:1fr}.job-stop .wide,.job-stop .job-stop-instructions{grid-column:auto}.job-resource-warning{grid-template-columns:1fr}}
