.record-editor{min-width:0;flex-basis:100%;font-size:14px;letter-spacing:0}
.record-editor:has([data-record-body]:empty){flex-basis:auto}
.record-editor [hidden]{display:none!important}
.record-edit-form{margin:12px 0;padding:16px 0;border-top:1px solid #cad6dc;min-width:0}
.record-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.record-edit-grid label{display:grid;gap:6px;min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
.record-edit-grid input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;font:inherit;letter-spacing:0;padding:8px;border:1px solid #91a4b0;border-radius:4px;background:#fff;color:#182a35}
.record-edit-form .button-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.record-edit-form button,.record-editor>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;width:auto;white-space:normal;word-break:normal;letter-spacing:0}
.record-edit-form button svg,.record-editor>button svg{width:18px;height:18px;flex:none}
.record-edit-form [role=status],.record-edit-form [role=alert]{white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.record-edit-changes{overflow:auto;max-width:100%}.record-edit-changes table{border-collapse:collapse;width:100%;min-width:450px}.record-edit-changes td,.record-edit-changes th{padding:8px;text-align:left;border-bottom:1px solid #d5dfe4;white-space:normal;overflow-wrap:anywhere}
.record-editor :focus-visible{outline:2px solid #087b83;outline-offset:3px}
.modal.modal-standard:has(.project-detail),.modal.modal-wide:has(.project-detail){width:min(1500px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
.project-detail .project-calculation-grid table{min-width:1320px;width:100%;table-layout:auto}
.project-detail .project-calculation-grid{max-height:none;max-width:100%;overflow:auto}
.project-detail>.crm-details{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.project-detail .project-precalculations{container-type:inline-size}
.project-detail tr[data-precalculation-id] td{word-break:normal;overflow-wrap:normal;white-space:nowrap}
.project-detail tr[data-precalculation-id] td:nth-child(3){white-space:normal;min-width:160px}
.project-detail tr[data-precalculation-id] input,.project-detail tr[data-precalculation-id] select{box-sizing:border-box;min-height:40px;border:1px solid #738895;border-radius:4px;background:#fff;color:#182a35;padding:6px 8px;font:inherit;letter-spacing:0;width:140px;min-width:100px}
.project-detail tr[data-precalculation-id] input[type=number]{width:145px;font-variant-numeric:tabular-nums;text-align:right}
.project-detail tr[data-precalculation-id] input[type=time]{width:110px}
.project-detail tr[data-precalculation-id] select{width:180px}
.project-detail tr[data-precalculation-id] input:disabled,.project-detail tr[data-precalculation-id] select:disabled{background:#eef2f4;color:#354b58;opacity:1}
.project-detail [data-afas-plan-actions]{min-width:100px;white-space:normal!important}
.project-detail .afas-cell-form{margin:0;min-width:100px;max-width:320px;white-space:normal;word-break:normal;overflow-wrap:normal}
.afas-cell-form:has([data-afas-commit]){width:min(320px,calc(100vw - 100px))}
.afas-cell-form p:empty{display:none}
.afas-cell-form .button-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.afas-cell-form .btn,.afas-cell-command{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;max-width:100%;width:auto;white-space:normal;word-break:normal;letter-spacing:0}
.afas-cell-form .btn.afas-cell-command,.afas-cell-command{width:40px;height:40px;min-width:40px;flex:none;padding:8px}
.afas-cell-form button svg,.afas-cell-command svg,.afas-cell-command i{width:18px;height:18px;flex:none}
.project-detail .afas-cell-form .crm-details{grid-template-columns:minmax(0,1fr);gap:8px}
.project-detail .afas-cell-form dd,.project-detail .afas-cell-form [role=status],.project-detail .afas-cell-form [role=alert]{overflow-wrap:normal;word-break:normal;white-space:normal}
.project-detail :is(input,select,button):focus-visible,.project-calculation-grid:focus-visible,.project-hierarchy-grid:focus-visible{outline:2px solid #087b83;outline-offset:3px}
.project-hierarchy{min-width:0;margin:16px 0;padding:12px 0;border-top:1px solid #cad6dc}
.project-hierarchy-grid{max-width:100%;overflow:auto}
.project-hierarchy-grid table{min-width:620px;width:100%;border-collapse:collapse;font-size:13px}
.project-hierarchy-grid th,.project-hierarchy-grid td{padding:9px 10px;text-align:left;border-bottom:1px solid #dde5e8;word-break:normal;overflow-wrap:normal;white-space:nowrap}
.project-hierarchy-grid th{background:#eff4f7;font-weight:600}
.project-hierarchy .crm-name{white-space:normal;word-break:normal;overflow-wrap:normal;letter-spacing:0;min-height:40px}
@media(max-width:700px){.record-edit-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.project-detail>.crm-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.project-detail>.crm-details{grid-template-columns:minmax(0,1fr)}}
