/* D1 styling is restricted to the existing request workspace. Native sidebar/header remain intact. */
body.d1-native-requests app-root .workspace > :not(header):not(.workspace-header):not(#d1-native-content){display:none!important}
.d1-root{width:100%;min-width:0;color:#17233a;font-family:inherit;padding:0 0 24px}
.d1-root *, .d1-dialog *{box-sizing:border-box}
.d1-root [hidden],.d1-dialog [hidden]{display:none!important}
.d1-root h2,.d1-dialog h2{font-size:21px;line-height:1.35;letter-spacing:-.02em;margin:4px 0 7px;font-weight:750}
.d1-root h3,.d1-dialog h3{font-size:16px;margin:20px 0 12px;color:#17233a}
.d1-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e1e7ef;border-left:4px solid #f45e16;border-radius:16px;padding:18px 22px;background:linear-gradient(110deg,#fff,#fffaf7);margin:0 0 16px}
.d1-eyebrow{font-size:10px;font-weight:850;letter-spacing:.12em;color:#ef5910}
.d1-muted{font-size:12px;line-height:1.6;color:#63748d;margin:5px 0}
.d1-root button,.d1-dialog button{border:1px solid #dce3ee;border-radius:9px;background:white;color:#33445f;padding:9px 14px;min-height:39px;font-family:inherit;font-size:12px;font-weight:650;line-height:1.4;cursor:pointer;white-space:normal}
.d1-root button:hover,.d1-dialog button:hover{border-color:#f5a27c;background:#fff8f2}
.d1-root button.primary,.d1-dialog button.primary{background:#f2631c;color:white;border-color:#f2631c}
.d1-root button:disabled,.d1-dialog button:disabled{opacity:.5;cursor:wait}
.d1-root button:focus-visible,.d1-dialog button:focus-visible,.d1-root select:focus-visible,.d1-dialog input:focus-visible,.d1-dialog select:focus-visible,.d1-dialog textarea:focus-visible{outline:3px solid #f7b99c;outline-offset:2px}
.d1-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 20px;padding:5px;border:1px solid #e1e7ef;border-radius:13px;width:fit-content;background:#f7f9fc}
.d1-tabs button{border-color:transparent;background:transparent;color:#687891;min-height:35px}
.d1-tabs .active{background:white;color:#eb5a17;box-shadow:0 2px 8px #2233440b}
.d1-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.d1-root label,.d1-dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;color:#536581}
.d1-root select,.d1-dialog select,.d1-dialog input,.d1-dialog textarea{width:100%;border:1px solid #d7e0ed;border-radius:8px;min-height:39px;padding:9px 11px;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;color:#20304c;background:white}
.d1-dialog input[type=checkbox]{min-height:0;width:auto;accent-color:#f2631c}
.d1-dialog textarea{resize:vertical}
.d1-check{flex-direction:row!important;align-items:center;gap:9px!important;min-height:39px}
.d1-list,.d1-settings{background:white;border:1px solid #e0e6ef;border-radius:14px;padding:16px}
.d1-table-wrap{overflow:auto;margin:14px 0}
.d1-root table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;border:1px solid #e1e7f0;border-radius:11px;overflow:hidden}
.d1-root th{background:#f7f9fc;text-align:left;text-transform:uppercase;letter-spacing:.045em;font-size:10px;color:#6b7c95;font-weight:800;padding:12px}
.d1-root td{padding:13px 12px;border-top:1px solid #e8edf4;vertical-align:middle;line-height:1.5}
.d1-root td small{display:block;font-size:11px;color:#6b7c92;max-width:300px;overflow-wrap:anywhere;margin-top:3px}
.d1-badge{display:inline-flex;white-space:nowrap;font-size:11px;font-weight:750;border-radius:7px;background:#eef3f9;color:#526583;padding:5px 8px}
.d1-badge.reportee{background:#fff3df;color:#9b5e09}.d1-badge.approuvee{background:#eaf7ef;color:#278052}.d1-badge.refusee{background:#fff0ed;color:#a2412d}.d1-badge.annulee{background:#f3f4f6;color:#737d8c}
.d1-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#63748d;padding-top:12px}
.d1-empty{padding:28px 16px;color:#687c97;text-align:center;font-size:14px}
.d1-message{background:#fff1e8;color:#93461f;border:1px solid #f7c7ad;border-left:4px solid #f16622;border-radius:9px;margin:0 0 14px;padding:12px 15px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.d1-warning{padding:11px 13px;background:#fff7e8;color:#855411;border:1px solid #f2d4a0;border-radius:8px;font-size:12px;line-height:1.5}
.d1-warning-text{color:#a66a16!important}
.d1-dialog{width:min(880px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #dce4ef;border-radius:18px;padding:0;color:#20304c;font:13px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 24px 80px #1b2b4b30}
.d1-dialog::backdrop{background:#13203865}
.d1-dialog>header{position:sticky;top:0;background:white;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #e6ebf1;z-index:1}
.d1-dialog>header h2{margin:0;font-size:20px}
.d1-dialog>header button{border:0;font-size:24px;line-height:1;min-height:36px}
.d1-dialog [data-d1-body]{padding:20px 22px}
.d1-dialog form>label,.d1-dialog form>.d1-grid,.d1-dialog form>.d1-check{margin-bottom:15px}
.d1-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.d1-dialog footer{display:flex;gap:10px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid #e6ecf3;flex-wrap:wrap}
.d1-detail-summary{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#f8fafc;padding:12px 14px;border:1px solid #e2e9f1;border-radius:10px}
.d1-detail-summary div{flex:1;min-width:180px}.d1-detail-summary p{margin:3px 0;font-size:12px;color:#657891}.d1-detail-summary small{color:#7486a0}
.d1-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}
.d1-prose{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px}
.d1-step{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-top:1px solid #e6ebf3}
.d1-step small,.d1-step p{grid-column:1/-1;margin:0;font-size:12px;color:#65748a}
.d1-step strong{font-size:13px}.d1-step span{font-size:11px;font-weight:700;color:#6c7b91}
.d1-document{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 0;border-top:1px solid #e9eef4;overflow-wrap:anywhere}
.d1-document span{min-width:0}.d1-document button{flex-shrink:0}
.d1-collapse{border-top:1px solid #e3e9f1;margin:18px 0;padding:12px 0}.d1-collapse summary{cursor:pointer;color:#506582;font-weight:700;font-size:13px;margin-bottom:10px}
.d1-event{border-top:1px solid #e7ebf3;padding:11px 0}.d1-event small{display:block;color:#708097;margin:3px 0}.d1-event p{margin:4px 0}
.d1-internal{background:#f2f5fa;padding:9px;border-radius:6px;color:#5e6e86;font-size:12px}
.d1-balance{display:flex;flex-direction:column;gap:5px;background:#fff6ef;border-radius:12px;padding:18px;margin-bottom:16px;color:#7e4428}.d1-balance strong{font-size:32px;color:#e85810}
.d1-settings>button{margin:6px 0}.d1-settings>h3{margin-top:25px}.d1-settings .d1-collapse>select{margin-bottom:12px;max-width:400px}.d1-settings .d1-collapse>button{margin:4px}
@media(max-width:650px){.d1-head{align-items:flex-start;padding:15px;gap:12px}.d1-head h2{font-size:17px}.d1-grid{grid-template-columns:1fr}.d1-toolbar>*{flex:1 1 150px}.d1-root th,.d1-root td{padding:10px}.d1-table-wrap{min-width:0}.d1-dialog [data-d1-body]{padding:15px}.d1-dialog>header{padding:14px 15px}.d1-dialog{width:calc(100vw - 16px);max-height:94vh}.d1-step{grid-template-columns:1fr}.d1-step small,.d1-step p{grid-column:1}.d1-document{flex-wrap:wrap}.d1-pagination{flex-wrap:wrap}}
