.project-workspace{width:100%;min-width:0}
.project-workspace .crm-grid{max-height:calc(100dvh - 280px);min-height:180px}
.project-workspace .crm-grid thead{position:sticky;top:0;z-index:2}
.project-workspace .crm-columns{z-index:5}
.project-workspace .crm-column-options{max-height:70dvh;overflow:auto}
.project-refresh{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #b9c7ce;border-radius:6px;background:white;color:inherit;padding:10px}
.project-workspace .crm-footer select{width:auto;min-width:68px;height:36px;font-size:14px}
.project-workspace button:focus-visible,.project-workspace summary:focus-visible,.project-detail button:focus-visible,.project-hierarchy>summary:focus-visible{outline:2px solid #087b83;outline-offset:2px}
.project-detail{min-width:0;font-size:14px}
.project-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.project-detail-actions>.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;flex:0 1 auto;max-width:100%;width:auto;padding:8px 12px;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.4}
.project-detail-actions>.btn svg{flex:none;width:18px;height:18px}
.project-hierarchy{border-top:1px solid #cbd5dc;margin-top:16px;padding-top:8px;min-width:0}
.project-hierarchy>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:8px 0;line-height:1.5;overflow-wrap:anywhere}
.project-hierarchy>summary h3{display:inline;font-size:17px;line-height:1.5;margin:0}
.project-hierarchy-grid{overflow:auto;max-height:46dvh}.project-hierarchy-grid table{border-collapse:collapse;width:100%;min-width:500px;font-size:13px}
.project-hierarchy-grid th,.project-hierarchy-grid td{padding:9px 10px;border-bottom:1px solid #dde5e8;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.project-precalculations{border-top:1px solid #cbd5dc;margin-top:16px;padding-top:12px;min-width:0}
.project-subheading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.project-precalculations h3{font-size:17px;line-height:1.5;margin:0}.project-precalculations h3>span{font-size:13px;padding:2px 7px;background:#e9f3f4;color:#20565c;border-radius:4px}
.project-calculation-grid{overflow:auto;max-height:46dvh;border:1px solid #ccd7dc}.project-calculation-grid table{border-collapse:collapse;min-width:1150px;width:100%;font-size:13px}
.project-calculation-grid th{position:sticky;top:0;background:#eff4f7;text-align:left;white-space:nowrap;font-weight:600}.project-calculation-grid th,.project-calculation-grid td{padding:9px 10px;border-bottom:1px solid #dde5e8;vertical-align:top;line-height:1.45;word-break:normal;overflow-wrap:normal}
.project-calculation-grid th:nth-child(3){width:260px}.project-calculation-grid td:nth-child(3){min-width:200px;white-space:normal;overflow-wrap:anywhere}.project-calculation-grid td{white-space:nowrap}.project-calculation-grid .project-number{text-align:right;font-variant-numeric:tabular-nums}
.project-calculation-totals{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0}.project-calculation-totals dt{font-weight:600}.project-calculation-totals dd{margin:0;font-variant-numeric:tabular-nums}
.project-calculation-pages{display:flex;align-items:center;justify-content:flex-end;gap:8px}.project-calculation-pages button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;border:1px solid #bac8d2;border-radius:4px;background:#fff;color:inherit}.project-calculation-pages button:disabled{opacity:.5}
.project-detail svg{width:18px;height:18px}
.project-context{border-top:1px solid #cbd5dc;margin-top:16px;padding-top:8px;min-width:0;letter-spacing:0}
.project-context>summary{cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;font-size:17px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.project-context-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.project-context-fields label{display:grid;gap:6px;min-width:0;font-size:14px}
.project-context-fields input,.project-context-fields select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;font:inherit;letter-spacing:0}
.project-context .button-row{display:flex;flex-wrap:wrap;gap:8px}.project-context .button-row button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.project-context [role=status]{min-height:20px;overflow-wrap:anywhere}.project-context .crm-details{margin:12px 0}.project-context form{margin:0}
.project-context :is(summary,input,select,button):focus-visible{outline:2px solid #087b83;outline-offset:3px}
.project-vehicle{border-top:1px solid #cbd5dc;margin-top:12px;padding-top:12px}.project-vehicle h4{font-size:15px;line-height:1.5;margin:0 0 8px}
@media(max-width:620px){.project-context-fields{grid-template-columns:minmax(0,1fr)}.project-context .button-row button{flex:1 1 150px}}
.project-detail .crm-details{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-detail .crm-details dd{word-break:normal;overflow-wrap:anywhere}
.project-error{white-space:normal;line-height:1.5;color:#912929;padding:18px}
.crm-customer-detail .project-workspace .crm-grid{max-height:46dvh}
.afas-plan-form{font-size:14px;line-height:1.5;letter-spacing:0}.afas-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.afas-plan-grid label{display:grid;gap:6px;min-width:0;white-space:normal;word-break:normal}.afas-plan-grid input,.afas-plan-grid select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;min-height:40px;letter-spacing:0}.afas-plan-form .checkbox-line{display:flex;align-items:flex-start;gap:8px;margin:12px 0;white-space:normal;word-break:normal}.afas-plan-form .checkbox-line input{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:3px 0 0;padding:0}.afas-plan-form button,.afas-plan-trigger{min-height:40px;white-space:normal;word-break:normal;letter-spacing:0}.afas-plan-form .crm-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.afas-plan-form dd{margin:0;overflow-wrap:anywhere}.afas-plan-form dt{font-weight:600}.afas-plan-form [role=status],.afas-plan-form [role=alert]{white-space:normal;overflow-wrap:anywhere}.afas-plan-form button:focus-visible{outline:2px solid #227d86;outline-offset:3px}[data-afas-pending]{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media(max-width:620px){.afas-plan-grid,.afas-plan-form .crm-details{grid-template-columns:minmax(0,1fr)}.afas-plan-form .button-row{flex-wrap:wrap}.afas-plan-form .button-row button{max-width:100%}}
@media(max-width:680px){.project-workspace .crm-footer{align-items:flex-start;flex-direction:column}.project-workspace .crm-footer>div{width:100%;justify-content:space-between}.project-workspace .crm-search{flex-basis:100%}.project-workspace .crm-type{flex:1}.project-workspace .crm-grid{max-height:60dvh}.project-detail .crm-details{grid-template-columns:minmax(0,1fr)}}
