.crm-service-manager{width:min(980px,calc(calc(100vw / var(--crm-ui-scale, 1)) - 28px));max-height:calc(calc(100vh / var(--crm-ui-scale, 1)) - 28px);padding:0;overflow:hidden;border:0;border-radius:16px;background:#f4f6f8;box-shadow:0 28px 80px rgba(13,22,35,.34);color:#18202a}.crm-service-manager::backdrop{background:rgba(8,13,20,.62);backdrop-filter:blur(5px)}.crm-service-sheet{display:grid;max-height:calc(calc(100vh / var(--crm-ui-scale, 1)) - 28px);overflow:auto}.crm-service-sheet.is-busy{pointer-events:none;opacity:.7}.crm-service-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;color:#fff;background:#17202b}.crm-service-sheet-head span,.crm-service-sheet span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.crm-service-sheet-head span{color:#ff6b70}.crm-service-sheet-head h2{margin:4px 0 2px;font-size:24px}.crm-service-sheet-head p{margin:0;color:#aeb8c5;font:600 12px ui-monospace,monospace}.crm-service-sheet-head button{width:38px;height:38px;border:1px solid #394555;border-radius:10px;background:transparent;color:#fff;font-size:20px}.crm-service-progress{display:grid;grid-template-columns:repeat(5,1fr);padding:16px 24px;border-bottom:1px solid #dfe4e9;background:#fff}.crm-service-progress div{position:relative;display:grid;justify-items:center;gap:6px;color:#9aa3ad}.crm-service-progress div::before{position:absolute;top:6px;right:50%;left:-50%;height:2px;background:#dfe4e9;content:""}.crm-service-progress div:first-child::before{display:none}.crm-service-progress i{z-index:1;width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#d3d9df;box-shadow:0 0 0 1px #c5ccd4}.crm-service-progress .is-done i,.crm-service-progress .is-current i{background:#ed3239;box-shadow:0 0 0 1px #ed3239}.crm-service-progress .is-done::before,.crm-service-progress .is-current::before{background:#ed3239}.crm-service-progress .is-current{color:#18202a}.crm-service-overview{display:grid;grid-template-columns:repeat(3,1fr) auto;margin:16px 18px 0;overflow:hidden;border:1px solid #dfe4e9;border-radius:12px;background:#fff}.crm-service-overview section{display:grid;gap:4px;padding:14px 16px;border-right:1px solid #e7ebef}.crm-service-overview span,.crm-service-reason span,.crm-service-progress-form header span,.crm-service-history header span{color:#89939e}.crm-service-overview b{font-size:14px}.crm-service-overview small{color:#727d89}.crm-service-overview button{margin:12px;align-self:center;padding:10px 12px;border:1px solid #ccd3db;border-radius:9px;background:#fff;font-weight:700}.crm-service-overview .is-overdue{color:#c72e37}.crm-service-reason,.crm-service-progress-form,.crm-service-history,.crm-service-resolution{margin:12px 18px 0;border:1px solid #dfe4e9;border-radius:12px;background:#fff}.crm-service-reason{padding:14px 16px}.crm-service-reason p{margin:7px 0 0;line-height:1.5}.crm-service-progress-form{padding:16px}.crm-service-progress-form header,.crm-service-history header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.crm-service-progress-form>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.crm-service-progress-form label,.crm-service-resolution label{display:grid;gap:5px;color:#66717d;font-size:11px;font-weight:700}.crm-service-progress-form input,.crm-service-progress-form select,.crm-service-progress-form textarea,.crm-service-resolution input,.crm-service-resolution select,.crm-service-resolution textarea{width:100%;padding:10px;border:1px solid #cfd6de;border-radius:8px;background:#fff;color:#18202a}.crm-service-progress-form>label{margin-top:10px}.crm-service-progress-form footer,.crm-service-resolution footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.crm-service-progress-form button,.crm-service-resolution button{padding:10px 14px;border:1px solid #ccd3db;border-radius:9px;background:#fff;font-weight:800}.crm-service-progress-form .is-primary,.crm-service-resolution .is-primary{border-color:#ed3239;background:#ed3239;color:#fff}.crm-service-history{margin-bottom:18px;padding:16px}.crm-service-history article{display:grid;grid-template-columns:auto 1fr auto;gap:12px;padding:10px 0;border-top:1px solid #edf0f3}.crm-service-history article>i{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#ed3239}.crm-service-history article div{display:grid;gap:2px}.crm-service-history p{margin:0;color:#4e5965}.crm-service-history small,.crm-service-history time{color:#8a949f;font-size:10px}.crm-service-resolution{padding:22px}.crm-service-resolution>span{color:#ed3239}.crm-service-resolution h3{margin:5px 0;font-size:24px}.crm-service-resolution>p{margin:0 0 18px;color:#66717d}.crm-service-resolution>label{margin-top:12px}.crm-service-refund-fields{display:none;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.crm-service-resolution:has(select[name="resolution"] option[value="refunded"]:checked) .crm-service-refund-fields{display:grid}.crm-service-error{margin:12px 18px 0;padding:10px 12px;border-radius:8px;background:#fff0f1;color:#b4232d}.crm-service-loading{display:grid;min-height:260px;place-items:center;align-content:center;gap:12px}.crm-service-loading i{width:28px;height:28px;border:3px solid #dfe4e9;border-top-color:#ed3239;border-radius:50%;animation:crm-service-spin .7s linear infinite}.crm-service-loading button{border:0;background:transparent;color:#66717d}.crm-service-empty{color:#89939e}@keyframes crm-service-spin{to{transform:rotate(360deg)}}@media(max-width:720px){.crm-service-manager{width:calc(100vw / var(--crm-ui-scale, 1));max-height:calc(100vh / var(--crm-ui-scale, 1));border-radius:0}.crm-service-sheet{max-height:calc(100vh / var(--crm-ui-scale, 1))}.crm-service-overview{grid-template-columns:1fr}.crm-service-overview section{border-right:0;border-bottom:1px solid #e7ebef}.crm-service-progress-form>div,.crm-service-refund-fields{grid-template-columns:1fr}.crm-service-progress span{font-size:8px}.crm-service-sheet-head{padding:16px}.crm-service-overview,.crm-service-reason,.crm-service-progress-form,.crm-service-history,.crm-service-resolution{margin-right:12px;margin-left:12px}}@media(prefers-reduced-motion:reduce){.crm-service-loading i{animation:none}}

.crm-service-intake-choice{margin-bottom:12px}.crm-service-intake-choice label{display:grid;gap:8px}.crm-return-form[hidden]{display:none!important}.crm-service-overview.is-repair{grid-template-columns:repeat(3,1fr)}@media(max-width:720px){.crm-service-overview.is-repair{grid-template-columns:1fr}}

.crm-service-simple-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-bottom:1px solid #e0e4e9;background:#fff;color:#b67617;font-weight:800}.crm-service-simple-status small{color:#77828e;font-weight:400}.crm-service-simple-status.is-complete{color:#28764c}.crm-service-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.crm-service-photos:empty{display:none}.crm-service-photos>div{position:relative;overflow:hidden;border:1px solid #dfe4e9;border-radius:10px}.crm-service-photos a{display:block}.crm-service-photos img{display:block;width:100%;height:130px;object-fit:cover}.crm-service-photos button{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#b4232d;font-size:20px;box-shadow:0 1px 6px #0002}.crm-service-photo-picker{display:grid;gap:8px;margin-top:14px;color:#596674;font-size:12px}.crm-service-photo-picker input{width:100%;min-width:0}.crm-service-photo-picker small{color:#8a949f}.crm-service-history summary{cursor:pointer;font-weight:700}.crm-service-sheet-head h2{overflow-wrap:anywhere}.crm-service-progress-form>label{font-size:13px}.crm-service-progress-form footer{flex-wrap:wrap}@media(max-width:720px){.crm-service-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-service-simple-status{padding:12px 16px}.crm-service-progress-form footer button{flex:1}.crm-service-resolution h3{font-size:21px}}

.crm-service-payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 24px;background:#f5f6f8}.crm-service-payment-summary div{display:grid;gap:6px}.crm-service-payment-summary span{color:#69717d;font-size:13px}.crm-service-payment-summary b{font-size:20px}.crm-service-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width:600px){.crm-service-payment-summary{padding:16px}.crm-service-payment-summary b{font-size:17px}.crm-service-payment-fields{grid-template-columns:1fr}}

/* Consistent field geometry for service intake and payment editing. */
#crm-service-repair-form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
#crm-service-repair-form .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
#crm-service-repair-form label{display:grid;gap:7px;min-width:0;margin:0}
#crm-service-repair-form .field-row:has(>label:only-child){grid-template-columns:1fr}
#crm-service-repair-form .editor-head{margin:0;padding-bottom:16px;border-bottom:1px solid #e0e4e9}
#crm-service-repair-form textarea{width:100%;min-height:88px}
#crm-service-repair-form input[type=file]{padding:12px;background:#f7f8fa}
#crm-service-repair-form #crm-service-intake-balance{padding:14px 16px;margin:0;border-radius:8px;background:#f4f6f8;color:#4d5967;font-variant-numeric:tabular-nums}
#crm-service-repair-form>button{justify-self:end;min-width:200px}
#crm-service-repair-form [hidden],.crm-service-progress-form [hidden],.crm-service-resolution [hidden]{display:none!important}
.crm-service-progress-form{display:grid;gap:18px;padding:22px}
.crm-service-progress-form>label{margin:0}
.crm-service-progress-form .crm-service-payment-summary,.crm-service-resolution .crm-service-payment-summary{border-radius:10px;padding:16px;margin:0;font-variant-numeric:tabular-nums}
.crm-service-progress-form>.crm-service-payment-fields,.crm-service-resolution>.crm-service-payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:0}
.crm-service-progress-form .crm-service-payment-fields label,.crm-service-resolution label{font-size:13px;gap:7px}
.crm-service-progress-form>.crm-service-pay-action{display:flex;justify-content:flex-end;padding-bottom:18px;border-bottom:1px solid #e0e4e9}
.crm-service-pay-action button{color:#c82431;border-color:#ed3239}
.crm-service-progress-form footer{margin-top:0}
.crm-service-resolution{display:grid;gap:18px}.crm-service-resolution>label{margin:0}
@media(max-width:720px){#crm-service-repair-form .field-row,.crm-service-progress-form>.crm-service-payment-fields,.crm-service-resolution>.crm-service-payment-fields{grid-template-columns:1fr}#crm-service-repair-form>button{width:100%}.crm-service-progress-form,.crm-service-resolution{padding:16px}}
.crm-service-block{display:grid;gap:10px;padding:14px 16px;border:1px solid #dfe4e9;border-radius:12px;background:#fff}
.crm-service-block>h3{margin:0;font-size:15px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.crm-service-block>h3 small{color:#8a949f;font-size:11px;font-weight:600}
.crm-service-hint{margin:0;color:#8a949f;font-size:12px}
.crm-service-line-group{display:grid;gap:6px}
.crm-service-line-head,.crm-service-line{display:grid;grid-template-columns:minmax(160px,1fr) 56px 92px 92px 74px 34px;gap:8px;align-items:center}
.crm-service-line-head{grid-template-columns:minmax(120px,1fr) 56px 92px 92px 74px auto;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#89939e}
.crm-service-line-head b{font-size:12px;letter-spacing:0;text-transform:none;color:#18202a}
.crm-service-line-head button{justify-self:end;padding:7px 10px;border:1px dashed #ed3239;border-radius:9px;background:#fff;color:#ed3239;font-weight:800;white-space:nowrap}
.crm-service-line-head:not(:has(span)){grid-template-columns:1fr auto}
.crm-service-line input{width:100%;min-width:0;padding:9px 10px;border:1px solid #cfd6de;border-radius:8px;background:#fff}
.crm-service-line>button{width:34px;height:34px;border:1px solid #ccd3db;border-radius:9px;background:#fff;color:#b4232d;font-weight:800}
.crm-service-line.is-work{background:transparent}
.crm-service-line-total{display:flex;gap:18px;flex-wrap:wrap;padding-top:10px;border-top:1px dashed #cfd6de;color:#66717d;font-size:12px}
.crm-service-line-total b{color:#18202a;font-size:14px}
.crm-service-line-ro{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #edf0f3}
.crm-service-total-field{max-width:260px}
.crm-service-photos-box>summary,.crm-service-note>summary{cursor:pointer;font-weight:700;color:#4e5965}
.crm-service-note textarea{width:100%;margin-top:8px}
.crm-service-actions{position:sticky;bottom:0;z-index:2;padding:12px 0;background:linear-gradient(transparent,#fff 30%)}
@media(max-width:720px){.crm-service-line,.crm-service-line-head{grid-template-columns:1fr 56px 1fr 1fr}.crm-service-line input[data-f="title"]{grid-column:1/-1}.crm-service-line-head span{display:none}.crm-service-line-head{grid-template-columns:1fr auto}.crm-service-line>button{grid-column:auto}}
