/* One inquiry / repair visit, with a shared header across saved work and editing. */
.project-header{background:#fff;border:1px solid #dce4ee;border-radius:12px;margin-bottom:22px;overflow:hidden}
.project-header .breadcrumb{margin:0;padding:15px 24px;border-bottom:1px solid #edf1f6}
.project-title{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 24px 14px}
.project-title h1{font-size:30px;line-height:1.25;margin:8px 0;color:#182f4c;display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.project-title p{margin:0;color:#5e6e82}.project-title .status-pill{font-size:11px}
.project-meta{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0;padding:10px 24px 24px}
.project-meta div{border-left:2px solid #e6edf6;padding-left:12px;min-width:0}
.project-meta dt,.project-details dt{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#62738a;margin-bottom:7px}
.project-meta dd,.project-details dd{margin:0;font-size:13px;font-weight:600;color:#233b58;overflow-wrap:anywhere}
.project-tabs{display:flex;overflow-x:auto;border-top:1px solid #e2e9f2;background:#fafcfe;padding:0 12px}
.project-tabs a{flex:0 0 auto;padding:17px 13px;text-decoration:none;font-weight:600;font-size:13px;border-bottom:3px solid transparent;color:#586c84;white-space:nowrap}
.project-tabs a[aria-current=page]{color:#1758b5;border-bottom-color:#276cd1;background:#eff5ff}
.project-tabs a:hover{background:#edf3fa}.project-tabs a:focus-visible{outline:2px solid #1758b5;outline-offset:-4px}
.project-content{min-width:0}.project-content>.panel,.project-content>.project-grid{margin-bottom:22px}
.project-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px}
.project-grid>.panel{min-width:0;margin:0}.project-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0}
.project-stage ol{display:flex;gap:12px;list-style:none;padding:0;counter-reset:stage;flex-wrap:wrap}.project-stage li{counter-increment:stage;background:#eff4fa;border-radius:6px;padding:10px 14px;font-size:13px;color:#34516f}.project-stage li:before{content:counter(stage) "  ";font-weight:700}.project-stage p{color:#62738a;font-size:12px}
.project-next>a{display:block;border-top:1px solid #e5ebf3;padding:15px 0;text-decoration:none}.project-next>a span{display:block;color:#64768d;margin-top:6px;font-size:13px}
.project-context{padding:14px 18px;background:#fff5df;border:1px solid #efcf8c;border-radius:8px}.project-prose{white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:1100px){.project-header{position:sticky;top:0;z-index:10;box-shadow:0 3px 12px #243e5810}}
@media(max-width:800px){.project-title{align-items:flex-start;flex-direction:column}.project-title h1{font-size:24px}.project-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.project-grid{grid-template-columns:1fr}.project-details{gap:16px}.project-header .breadcrumb,.project-title,.project-meta{padding-left:16px;padding-right:16px}.project-tabs{padding:0}.project-content .panel{overflow-wrap:anywhere}.project-title .head-actions{flex-wrap:wrap}}

.unsaved-navigation-dialog{border:1px solid #dce4ee;border-radius:12px;padding:26px;max-width:480px;width:calc(100% - 40px);box-shadow:0 18px 70px #102c4b40}.unsaved-navigation-dialog::backdrop{background:#112a4666}.unsaved-navigation-dialog h2{margin-top:0}.unsaved-navigation-dialog p{line-height:1.6}.unsaved-navigation-dialog button{margin:8px 8px 0 0}

/* Operational scope remains readable on narrow screens. */
.scope-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6;}

.commercial-completion form{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin-top:18px;}
.commercial-completion form>label{display:flex;flex-direction:column;gap:7px;flex:1 1 280px;font-size:.9rem;}
.commercial-completion form>label:has(textarea){flex-basis:100%;}
.commercial-completion input:not([type=checkbox]):not([type=hidden]),.commercial-completion textarea,.commercial-completion select{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;background:#fff;}
.commercial-completion label:has(input[type=checkbox]){flex-direction:row;align-items:start;}
.commercial-completion input[type=checkbox]{margin-top:3px;}
.commercial-completion details{margin-block:16px;}
.commercial-completion summary{cursor:pointer;font-weight:600;color:#164e63;}
.commercial-completion .quotation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
@media(max-width:900px){.commercial-completion .quotation-summary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:540px){.commercial-completion .quotation-summary{grid-template-columns:1fr;}.commercial-completion form>label{min-width:0;flex-basis:100%;}}
