.drawer-workspace{padding:24px;min-width:0;max-width:1600px;margin:0 auto;color:#17241c}
.drawer-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:4px 0 22px}
.drawer-page-head h2{font-size:28px;margin:0 0 6px;letter-spacing:0}.drawer-page-head p{font-size:14px;color:#607063;margin:0;line-height:1.5}
.drawer-workspace .drawer-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:0}
.drawer-actions button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;font-size:13px;border-radius:6px}.drawer-actions svg{width:18px;height:18px;flex-shrink:0}
.drawer-secondary-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.drawer-secondary-actions button{min-height:36px;font-size:12px;padding:6px 10px}
.drawer-redesign{letter-spacing:0;min-width:0}.drawer-redesign h3{letter-spacing:0}
.drawer-highlights{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:16px;margin-bottom:16px}.drawer-expected,.drawer-opening{padding:24px;border-radius:6px;color:#fff;min-width:0}.drawer-expected{background:#2c5935}.drawer-opening{background:#197d83}.drawer-expected-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
.drawer-expected h3,.drawer-opening h3{font-size:21px;margin:0;font-weight:650;line-height:1.35;color:inherit}.drawer-expected-value,.drawer-opening-value{font-size:54px;display:block;line-height:1.2;font-weight:750;font-variant-numeric:tabular-nums;margin:10px 0;overflow-wrap:anywhere}.drawer-opening-value{font-size:48px}.drawer-expected p,.drawer-opening p{font-size:14px;color:#edf3ea;margin:0;line-height:1.5}
.drawer-live{display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.4;flex-shrink:0}.drawer-live:before{content:'';width:7px;height:7px;border-radius:50%;background:#86dda0;flex-shrink:0}.drawer-live.is-stale{color:#fff0cb}.drawer-live.is-stale:before{background:#f2cd6c}
.drawer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.drawer-stat{min-width:0;padding:18px 20px;border-radius:6px;line-height:1.5}.drawer-stat>span{font-size:17px;font-weight:650;display:block}.drawer-stat>strong{font-size:34px;font-weight:750;display:block;margin:6px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.drawer-stat small{font-size:12px;display:block;line-height:1.6}.drawer-stat small span{display:block}.drawer-stat.is-sales{background:#e5f1fc;color:#234b70}.drawer-stat.is-total{background:#efebfa;color:#594279}.drawer-stat.is-out{background:#fbeaec;color:#a12636}.drawer-stat.is-out>strong:before{content:'− '}
.drawer-highlights .drawer-metric-label,.drawer-stat>.drawer-metric-label{display:flex;align-items:center;gap:10px;min-width:0}.drawer-metric-label>span{min-width:0}.drawer-metric-label>svg{width:24px;height:24px;flex:0 0 24px}.drawer-stat>.drawer-metric-label>svg{width:22px;height:22px;flex-basis:22px}
.drawer-ledger-section{border-top:1px solid #e1e7e1;padding-top:20px;margin-top:10px}.drawer-ledger-section>header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}.drawer-ledger-section h3{font-size:19px;margin:0;font-weight:700}.drawer-out-total,.drawer-in-total{font-size:22px;white-space:nowrap;font-variant-numeric:tabular-nums}.drawer-out-total{color:#a82a36}.drawer-in-total{color:#326c41}
.drawer-ledger{max-width:100%;overflow:auto}.drawer-ledger table{border-collapse:collapse;width:100%;font-size:13px;table-layout:fixed}.drawer-ledger th,.drawer-ledger td{text-align:left;border-bottom:1px solid #e1e7e1;padding:12px 8px;vertical-align:top;line-height:1.45;overflow-wrap:anywhere}.drawer-ledger th{color:#607063;font-size:12px;font-weight:600}.drawer-ledger th:first-child,.drawer-ledger td:first-child{padding-left:0;width:7%}.drawer-ledger th:nth-child(2){width:20%}.drawer-ledger th:nth-child(3){width:35%}.drawer-ledger th:nth-child(4){width:19%}.drawer-ledger th:last-child,.drawer-ledger td:last-child{text-align:right;padding-right:0;width:19%}
.drawer-ledger td strong{font-weight:550}.drawer-ledger small{display:block;font-size:11px;color:#69776b;margin-top:3px}.drawer-ledger td.is-out>span{color:#aa2935}.drawer-ledger td.is-in>span{color:#326c41}.drawer-ledger-amount>span{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.drawer-ledger .is-voided{color:#7b857c}.drawer-ledger .is-voided .drawer-ledger-amount>span{color:#7b857c}
.drawer-void{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;border:0;background:transparent;color:#617362;padding:4px;margin-left:4px;vertical-align:middle}.drawer-void svg{width:16px;height:16px}.drawer-empty{color:#647166;font-size:13px;padding:12px 0}
.drawer-equation{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-top:22px;background:#eef5e9;padding:20px;border-radius:0}.drawer-equation h3{font-size:17px;margin:0;flex-shrink:0}.drawer-equation-parts{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;min-width:0}.drawer-equation-term{text-align:center;min-width:0}.drawer-equation-term>span{display:block;font-size:11px;color:#586958;margin-bottom:3px}.drawer-equation-term strong{font-size:20px;font-variant-numeric:tabular-nums;display:block;overflow-wrap:anywhere}.drawer-equation-parts>b{font-size:22px;font-weight:500;color:#48673d}.drawer-equation-term.is-result strong{font-size:30px;color:#48673d}
.drawer-equation-parts{align-items:baseline;align-items:last baseline}.drawer-equation-parts>b{font-weight:650;flex-shrink:0;line-height:1.25}
.drawer-orders{margin-top:20px;font-size:13px}.drawer-orders>summary{cursor:pointer;padding:8px 0;color:#566459}.drawer-orders .drawer-table table{font-size:12px}.drawer-orders .drawer-table td,.drawer-orders .drawer-table th{min-width:80px}.drawer-orders small{display:block}.drawer-close-note{font-size:12px;color:#647166;line-height:1.6;margin-top:18px}.drawer-counted{display:grid;grid-template-columns:1fr 1fr;margin:22px 0}
.client-transfer-modal{width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto}.client-transfer-modal>header{display:flex;align-items:baseline;gap:12px;justify-content:space-between}.client-transfer-modal h2{font-size:22px;letter-spacing:0}.client-transfer-modal p{font-size:13px;line-height:1.6;color:#5c6b5f}.transfer-scope{font-size:11px;font-weight:650;color:#48673d;white-space:nowrap}.transfer-impact{border-top:1px solid #dce6d7;border-bottom:1px solid #dce6d7;padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}.transfer-impact span{font-size:12px;max-width:240px;line-height:1.5}.transfer-impact strong{font-size:24px;white-space:nowrap;color:#48673d;font-variant-numeric:tabular-nums}.client-transfer-modal .transfer-note{font-size:12px}
.drawer-ledger table{min-width:0}.drawer-ledger th{letter-spacing:0;text-transform:none}
@media(max-width:1100px){.drawer-equation{display:block}.drawer-equation h3{margin-bottom:14px}.drawer-equation-parts{justify-content:space-between;gap:12px}.drawer-expected-value{font-size:46px}.drawer-opening-value{font-size:40px}.drawer-stat>strong{font-size:29px}.drawer-stat>span{font-size:15px}.drawer-stat{padding:16px}}
@media(max-width:650px){
 .drawer-workspace{padding:16px 12px}.drawer-page-head h2{font-size:24px}.drawer-workspace .drawer-actions{justify-content:flex-start;gap:6px}.drawer-actions button{font-size:11px;padding:8px;min-height:40px}
 .drawer-highlights{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.drawer-expected,.drawer-opening{padding:18px 15px}.drawer-expected-heading{align-items:flex-start}.drawer-expected h3,.drawer-opening h3{font-size:17px}.drawer-expected h3{max-width:240px}.drawer-expected-value,.drawer-opening-value{font-size:36px;margin:12px 0}.drawer-expected p,.drawer-opening p{font-size:12px}.drawer-live{font-size:10px;max-width:85px;flex-shrink:1}
 .drawer-stats{grid-template-columns:1fr;gap:12px}.drawer-stat{padding:16px}.drawer-stat>span{font-size:15px}.drawer-stat>strong{font-size:29px}.drawer-stat small{font-size:12px}
 .drawer-ledger-section h3{font-size:16px}.drawer-out-total,.drawer-in-total{font-size:18px}.drawer-ledger table,.drawer-ledger tbody{display:block}.drawer-ledger thead{display:none}.drawer-ledger tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:13px 0;border-bottom:1px solid #e1e7e1}.drawer-ledger td,.drawer-ledger td:first-child,.drawer-ledger td:last-child{border:0;padding:0;width:auto;min-width:0}.drawer-ledger td:first-child{grid-column:1;grid-row:1;color:#69776b;font-size:11px}.drawer-ledger td:nth-child(2){grid-column:1;grid-row:2}.drawer-ledger td:nth-child(3){grid-column:1;grid-row:3;font-size:12px}.drawer-ledger td:nth-child(4){grid-column:1;grid-row:4;font-size:11px;color:#69776b}.drawer-ledger td:nth-child(4):before{content:'Par : '}.drawer-ledger td:last-child{grid-column:2;grid-row:1/5;align-self:center;max-width:145px;font-size:13px}
 .drawer-equation{padding:16px 12px}.drawer-equation-parts{justify-content:flex-start;gap:10px}.drawer-equation-term strong{font-size:16px}.drawer-equation-term.is-result strong{font-size:25px}.drawer-equation-term>span{font-size:10px}.drawer-equation-parts>b{font-size:18px}.drawer-secondary-actions{justify-content:flex-start;flex-wrap:wrap}.transfer-impact{align-items:flex-start}.transfer-impact strong{font-size:21px}
}

.drawer-ledger small.drawer-correction-badge{display:block;width:fit-content;margin-top:6px;padding:4px 9px;border:1px solid #edb15e;border-radius:999px;background:#fff0d6;color:#824400;font-size:12px;font-weight:750;line-height:1.35}

/* Caissier de la session active — format compact */
.drawer-cashier{display:inline-flex;align-items:center;gap:8px;margin:4px 0 2px;padding:6px 10px;background:#edf3e5;border:1px solid #d4dfc9;border-radius:8px;color:#263e20;max-width:100%;box-sizing:border-box}
.drawer-cashier svg{width:20px;height:20px;flex:none;color:#49683b}
.drawer-cashier>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0}
.drawer-cashier span{font-size:12px;font-weight:500;line-height:1.4;color:#526348}
.drawer-cashier strong{font-size:18px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
.drawer-page-head .drawer-session-time{margin:6px 0 0;font-size:13px}
