/* The repair hierarchy editor also appears in the administration page. */
.repair-panel{margin:16px 0;padding:16px 20px;color:#17354a;background:#fff;border:1px solid #d4e2e7;border-radius:16px;scroll-margin-top:12px}
.repair-panel>summary{cursor:pointer;font-size:1.15rem;font-weight:700;overflow-wrap:anywhere}
#repair-editor{display:grid;gap:14px;min-width:0;margin-top:16px;border:0;padding:0}
.repair-panel:not([open])>#repair-editor{display:none}
.repair-controls{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.repair-controls button,#repair-links button{border:1px solid #baccd5;background:#fff;color:#164558;font:inherit;border-radius:9px;padding:8px 12px;cursor:pointer}
#repair-save{background:#14586a;color:#fff;border-color:#14586a}
#repair-editor label{display:grid;gap:5px;min-width:0}
#repair-editor .repair-controls label{flex:1 1 175px}
#repair-editor :disabled{opacity:.6}
.repair-panel select,.repair-panel input:not([type=checkbox]){min-height:40px;border:1px solid #bacbd3;border-radius:8px;padding:5px 9px;max-width:100%;width:100%;background:#fff;color:#17354a;font:inherit}
#repair-links{list-style:none;margin:0;padding:0}
#repair-links li{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:5px 0}
#repair-status:empty,#repair-links:empty{display:none}
#repair-current[hidden],#repair-rule-fields[hidden]{display:none}
#repair-current,.repair-rule,.repair-structure[open]{display:grid;gap:9px}
#repair-current h3,#repair-current p,#repair-editor>h3{margin:0}
#repair-projects button[aria-pressed=true]{background:#17586c;color:#fff}
#repair-members{display:grid;gap:6px;max-height:31rem;overflow-y:auto;border:1px solid #d7e2e9;border-radius:10px;padding:8px}
.repair-member{border-bottom:1px solid #e3eaee;padding:4px 6px 8px}
.repair-member:last-child{border-bottom:0}
#repair-editor label.repair-check{display:flex;align-items:center;gap:9px;min-height:32px;cursor:pointer}
#repair-editor label.repair-check input{flex:none;width:18px;height:18px;margin:0;accent-color:#14586a}
.repair-member details{margin-left:27px}.repair-member summary,.repair-structure summary{color:#315971;cursor:pointer;padding:5px 0}
.repair-rule,.repair-structure{border:1px solid #d7e2e9;border-radius:10px;padding:10px 12px}
.repair-rule{background:#f5f8fa}.repair-rule small:empty{display:none}
#schedule-repair-summary{margin:12px 0 16px;padding:12px 16px;border:1px solid #d9e3f1;border-radius:14px;background:#f4f7fc}
.repair-estimate-total,.repair-visit-fee{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.repair-estimate-total{margin:4px 0}.repair-estimate-total strong{color:#2454a5}
.repair-order-lines{list-style:none;margin:5px 0 9px;padding:0;font-size:14px}
.repair-checkout>.repair-order-lines{flex:1 0 100%;margin:0}
.repair-order-lines li{padding:8px 0;border-bottom:1px solid #d9e3f1}
.repair-charge{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:10px;line-height:1.4}
.repair-charge :last-child:not(:first-child){font-variant-numeric:tabular-nums}
.repair-charge>b,.repair-charge>span+span{white-space:nowrap}
.repair-charge small{display:block;color:#50637a}
.repair-supplement{padding-left:12px;margin-top:4px;font-size:13px;color:#44566e}
.repair-visit-fee{margin-top:8px;padding-top:8px;border-top:1px solid #d9e3f1;font-size:.9rem}
#repair-rule-fields{align-items:flex-start}
.repair-crew-options{flex:1 1 240px;min-width:0;margin:0;padding:0;border:0}
.repair-crew-options legend{margin-bottom:4px}
#repair-crews{display:grid;gap:2px;max-height:15rem;overflow:auto;padding:3px 8px;background:#fff;border:1px solid #bacbd3;border-radius:8px}

#renovation[hidden],#service-grid[hidden],.repair-list[hidden]{display:none}
.repair-body{display:grid;gap:16px;color:#24334a}
.repair-projects{display:flex;flex-wrap:wrap;column-gap:20px;border-bottom:1px solid #e0e7ef}
.repair-projects button{background:none;border:0;border-bottom:2px solid transparent;padding:8px 0 10px;min-height:44px;color:#59677b;font:inherit;line-height:1.35;font-size:15px;font-weight:600;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.repair-projects button[aria-pressed=true]{color:#214da6;border-bottom-color:#315fc5}
.repair-tile:focus-visible,.repair-projects button:focus-visible,.repair-options summary:focus-visible{outline:3px solid #2454c6;outline-offset:2px}
.repair-branches{container:repair / inline-size;min-width:0}
.repair-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.repair-tile{min-width:0;position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:5px;padding:13px 14px 8px;border:1px solid #e2e7ee;border-radius:16px;background:#f5f6f9;color:#24334a;text-align:left;font:inherit;cursor:pointer}
.repair-tile:hover{background:#f0f4fc;border-color:#b9cbed}
.repair-tile[aria-expanded=true]{background:#edf2fc;border-color:#9cb5e8}
.repair-tile-heading{display:block;position:relative;padding-right:21px;font-size:16px;font-weight:600;letter-spacing:-.025em;line-height:1.3;overflow-wrap:anywhere}
.repair-tile-heading::after{content:"";position:absolute;right:2px;top:.28em;width:7px;height:7px;border:solid #607492;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.repair-tile[aria-expanded=true] .repair-tile-heading::after{top:.52em;transform:rotate(225deg)}
.repair-tile-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;width:100%;min-height:52px}
.repair-tile-foot>span:first-child{padding-bottom:3px;flex:none;color:#2454c6;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.repair-tile-foot small{display:block;margin-top:2px;color:#4e607c;font-size:11px;font-weight:600}
.repair-visual{display:block;width:45%;max-width:106px;height:62px;min-width:0;overflow:hidden;mix-blend-mode:multiply}
.repair-visual img,.repair-visual svg{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.repair-visual img[data-photo=bath],.repair-visual img[data-photo=shower]{transform:scale(1.14)}
.repair-visual img[data-photo=washer]{transform:scale(1.44)}
.repair-visual img[data-photo=vanity],.repair-visual img[data-photo=cistern]{transform:scale(1.9)}
.repair-list{grid-column:1/-1;grid-row:var(--wide);min-width:0;display:grid;gap:10px;padding:12px;border:1px solid #cddbf1;border-radius:16px;background:#fff}
.repair-works{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start}
.repair-work{border:1px solid #e3e9f1;border-radius:10px;background:#fff;overflow-wrap:anywhere}
.repair-work:has(input:checked){border-color:#a9bfe9;background:#f5f8fe}
.repair-work>label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:45px;padding:7px 10px;cursor:pointer;font-size:14px;line-height:1.35}
.repair-work input{width:17px;height:17px;min-height:0;margin:0;accent-color:#2454c6}
.repair-work small{display:block;color:#58677b;font-size:12px}
.repair-work b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.repair-options{margin:0 10px 4px 36px}
.repair-options summary{width:fit-content;cursor:pointer;color:#2c58a2;font-size:12px;font-weight:600;padding:7px 0}
.repair-options>div{display:grid;gap:8px;padding:5px 0 8px}
.repair-extra{display:grid;gap:3px;min-width:0;font-size:13px}
.repair-extra select{box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:5px;border:1px solid #c3d0e3;border-radius:7px;background:white;color:#24334a;font:inherit}
.repair-checkout{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;padding:14px 18px;border:1px solid #d9e3f1;border-radius:16px;background:#f4f7fc}
.repair-checkout>div{display:grid;gap:2px}
.repair-checkout strong{font-size:20px;line-height:1.35;font-variant-numeric:tabular-nums}
.repair-checkout span,.repair-checkout small,.repair-empty{font-size:13px;color:#4e6078}
.repair-checkout .repair-book{gap:4px;text-align:center}
.repair-book .btn{min-height:44px}
.repair-book small{font-size:12px}
@container repair (max-width:880px){.repair-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.repair-list{grid-row:var(--mid)}}
@container repair (max-width:590px){
  .repair-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .repair-list{grid-row:var(--small);padding:7px}
  .repair-works{grid-template-columns:1fr}
  .repair-tile{padding:11px 10px 7px;border-radius:13px}
  .repair-tile-heading{font-size:14px;padding-right:0;hyphens:auto}
  .repair-tile-heading::after{display:none}
  .repair-from::after{content:"";display:inline-block;vertical-align:3px;margin-left:6px;width:5px;height:5px;border:solid #607492;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
  .repair-tile[aria-expanded=true] .repair-from::after{vertical-align:0;transform:rotate(225deg)}
  .repair-tile-foot>span:first-child{font-size:12px}
  .repair-visual{height:49px}
}
@container repair (max-width:250px){.repair-tiles{grid-template-columns:minmax(0,1fr)}.repair-list{grid-row:var(--single)}}
@media(max-width:680px){
  .catalog-views{display:grid;grid-template-columns:1fr .72fr 1.2fr;gap:4px}
  .catalog-views button{padding:5px 3px;font-size:clamp(11px,3vw,14px);line-height:1.22;min-width:0}
  .repair-projects{gap:4px 14px}
  .repair-projects button{font-size:14px}
  .repair-body{gap:11px}
  .repair-body>.repair-works{grid-template-columns:1fr}
  .repair-options summary{padding:10px 0}
  .repair-options select{min-height:44px}
  .repair-checkout{padding:12px}
}
@media(max-width:550px){.repair-panel{padding:14px}.repair-controls label{width:100%}.repair-panel button,.repair-panel select{min-height:44px}}
@media(max-width:460px){.repair-checkout .repair-book{width:100%}}

/* Illustrated rooms use the same catalogue selections and checkout. */
#repair-editor [hidden], .room-dialog [hidden] { display:none; }
.repair-layout { display:grid; gap:16px; }
.room-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.room-browser { min-width:0; }
.room-heading h2 { margin:0 0 4px; font-size:25px; line-height:1.2; letter-spacing:-.04em; }
.room-heading p { margin:0 0 12px; color:#60728a; font-size:14px; }
.room-scene { position:relative; overflow:visible; isolation:isolate; border:1px solid #e1e8ee; border-radius:20px; background:#fff; }
.room-scene>img { display:block; width:100%; height:auto; border-radius:20px; }
.room-hotspot { position:absolute; z-index:1; left:var(--x); top:var(--y); transform:translate(-50%,-50%); width:44px; height:44px; display:grid; place-items:center; border:0; background:transparent; color:#214f9c; padding:0; cursor:pointer; }
.room-hotspot>span:first-child { display:grid; place-items:center; width:29px; height:29px; background:#fff; border:1px solid #315eae; box-shadow:0 2px 12px #183c4e35; border-radius:50%; font:700 22px/1 Arial,sans-serif; }
.room-hotspot[data-selected=true]>span:first-child { color:white; background:#25664b; border-color:#25664b; font-size:17px; }
.room-hotspot:hover>span:first-child { box-shadow:0 0 0 5px #dceafa99; }
.room-tip { pointer-events:none; position:absolute; bottom:42px; left:50%; transform:translateX(-50%); width:max-content; max-width:175px; padding:5px 8px; border-radius:7px; background:#17334d; color:white; font-family:inherit; font-size:12px; font-weight:600; line-height:1.35; opacity:0; }
.room-hotspot:is(:hover,:focus-visible) { z-index:3; }
.room-hotspot:is(:hover,:focus-visible) .room-tip { opacity:1; }
.room-chips { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.room-chip { padding:8px 11px; min-height:40px; border:1px solid #cddae6; border-radius:9px; background:#fff; color:#36516c; font:inherit; font-size:13px; cursor:pointer; }
.room-chip[data-selected=true] { border-color:#86b99b; background:#eaf5ef; color:#205d41; }
.room-chip span { white-space:nowrap; font-weight:700; }
.room-layout .repair-checkout { position:sticky; top:16px; display:grid; gap:12px; padding:18px; background:white; border-color:#dae4ed; box-shadow:0 6px 22px #23456508; }
.room-layout .repair-checkout>h2 { margin:0; font-size:20px; letter-spacing:-.025em; }
.room-layout .repair-checkout>.repair-order-lines { margin:0; max-height:48vh; overflow:auto; }
.room-layout .repair-charge { gap:6px; font-size:13px; }
.room-layout .repair-order-lines b { font-size:13px; }
.room-layout .repair-book .btn { width:100%; white-space:normal; font-size:14px; }
.room-mobile-summary { display:none; border:0; font:inherit; cursor:pointer; width:100%; text-align:left; }
.room-dialog { box-sizing:border-box; position:fixed; inset:0 0 0 auto; margin:0; width:min(520px,100%); max-width:100%; height:100dvh; max-height:100dvh; padding:0; border:0; border-left:1px solid #dbe3eb; border-radius:18px 0 0 18px; color:#24334a; background:white; box-shadow:-12px 0 60px #18324e25; overflow:hidden; }
.room-dialog[open] { display:flex; flex-direction:column; }
.room-dialog::backdrop { background:#142b4545; }
.room-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px; border-bottom:1px solid #dce5ee; }
.room-dialog-heading h2 { margin:0; font-size:23px; line-height:1.2; }
.room-dialog-heading button { flex:none; width:44px; height:44px; background:#f1f5f9; border:0; border-radius:50%; font-size:28px; cursor:pointer; color:#334b63; }
.room-dialog-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px; flex:1; }
.room-dialog .repair-works { grid-template-columns:1fr; }
.room-dialog .repair-work>label { min-height:62px; padding:12px; }
.room-dialog .repair-work input { width:20px; height:20px; }
.room-dialog .repair-options summary { padding:10px 0; }
.room-dialog-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 22px max(16px,env(safe-area-inset-bottom)); border-top:1px solid #dce5ee; }
.room-dialog-footer span { display:grid; font-size:13px; }
.room-dialog-footer b { font-size:20px; }
.room-hotspot:focus-visible,.room-chip:focus-visible { outline:3px solid #2759b6; outline-offset:2px; border-radius:12px; }
#repair-room-summary { scroll-margin-top:20px; }
@media(max-width:1000px) {
  .room-layout { grid-template-columns:1fr; }
  .room-layout .repair-checkout { position:static; }
  .room-mobile-summary { position:sticky; bottom:12px; z-index:5; display:flex; justify-content:space-between; gap:12px; padding:12px 18px; border-radius:12px; color:white; background:#2156ab; font-size:14px; text-decoration:none; box-shadow:0 4px 20px #173a5f25; }
}
@media(max-width:600px) {
  .room-heading h2 { font-size:21px; }
  .room-dialog { inset:auto 0 0; width:100%; height:auto; max-height:88dvh; border-radius:20px 20px 0 0; border-left:0; }
  .room-dialog-heading { padding:14px 16px; }
  .room-dialog-heading h2 { font-size:21px; }
  .room-dialog-body { padding:12px; }
  .room-dialog-footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
  .room-dialog .repair-work>label { font-size:13px; gap:7px; }
  .room-dialog .repair-work b { font-size:12px; }
  .room-chip { font-size:12px; }
  .room-tip { display:none; }
  .room-hotspot[data-compact-hidden=true] { display:none; }
}

.room-order-help{margin:0;color:#50637a;font-size:14px;line-height:1.5}
.room-project-count{display:inline-block;min-width:20px;padding:1px 5px;margin-left:4px;border-radius:9px;background:#e8f0fc;color:#2351a3;font-size:12px}
.room-layout .repair-checkout>.room-order-groups{max-height:48vh;overflow:auto;display:block}
.room-order-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:10px 0 4px}
.room-order-title button{font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer;border:0;background:none;color:#2454a5;padding:0}
.room-order-title>b{white-space:nowrap;font-size:13px}
.room-order-group+.room-order-group{border-top:1px solid #c9d7e8;margin-top:10px}
.repair-combined-total{border-top:2px solid #c9d7e8;padding-top:12px;margin-top:14px;font-weight:700;gap:8px}
.room-order-groups:empty{display:none!important}
@media(max-width:1000px){.room-layout .repair-checkout>.room-order-groups{max-height:none}}

/* Visible room navigation, matching the main catalog controls. */
#renovation .repair-projects{display:flex;flex-wrap:wrap;gap:8px;padding:8px;margin-bottom:18px;background:#e8eff8;border:1px solid #c5d4e8;border-radius:14px}
#renovation .repair-projects button{flex:1 1 140px;min-height:44px;padding:10px 14px;border:1px solid #b6c8df;border-radius:10px;background:#fff;color:#304e85;font:600 15px HomeManrope,system-ui,sans-serif;cursor:pointer}
#renovation .repair-projects button[aria-pressed=true]{background:#304e85;color:white;border-color:#304e85;box-shadow:0 3px 8px #304e8520}
@media(max-width:680px){.catalog-views{grid-template-columns:1fr 1.2fr .72fr}#renovation .repair-projects{display:grid;grid-template-columns:1fr 1fr}#renovation .repair-projects button{font-size:13px;padding:8px 6px}}
