.margin-page{gap:22px;min-width:0;display:grid}.margin-page>.back-link{justify-self:start}.margin-heading{justify-content:space-between;align-items:center;gap:20px;display:flex}.margin-heading h1{margin:0 0 12px}.margin-heading p{margin:0}.margin-page button{cursor:pointer;border:1px solid var(--line);background:var(--surface-active);color:var(--ink);border-radius:10px;padding:12px 18px;font-weight:600}.margin-page button:disabled{opacity:.5;cursor:not-allowed}.margin-page button:focus-visible,.margin-page summary:focus-visible,.margin-page [tabindex]:focus-visible{outline:3px solid var(--outline);outline-offset:3px}.margin-page .margin-export,.margin-modes button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.margin-export{flex-shrink:0}.margin-controls{background:var(--surface);border:1px solid var(--line);border-radius:18px;flex-wrap:wrap;align-items:center;gap:18px;padding:24px;display:flex}.margin-modes{gap:8px;display:flex}.margin-modes button{min-width:90px}.margin-controls label{color:var(--muted);align-items:center;gap:10px;display:flex}.margin-controls .french-date-input{width:165px}.margin-controls input{border:1px solid var(--input-border);background:var(--input-bg);width:100%;min-height:44px;color:var(--ink);border-radius:8px;padding:10px}.margin-refresh{margin-inline-start:auto}.margin-status{margin:0}.margin-status:empty{display:none}.margin-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.margin-kpis section{background:var(--surface);border:1px solid var(--line);border-radius:18px;gap:14px;padding:24px;display:grid}.margin-kpis span,.margin-kpis small{color:var(--muted)}.margin-kpis strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(22px,2vw,32px)}.margin-period-summary{gap:22px;min-width:0;display:grid}.margin-summary-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;display:flex}.margin-summary-heading h2{margin:0;font-size:21px}.margin-summary-heading p{margin:0;font-size:12px}.margin-summary-family{gap:14px;display:grid}.margin-summary-family>header{justify-content:space-between;align-items:center;gap:16px;display:flex}.margin-summary-family h3{margin:0;font-size:16px}.margin-summary-family>header span{font-size:12px}.margin-kpis .margin-kpi-profit{border-color:var(--green);background:var(--surface-active)}.margin-kpi-profit strong{color:var(--green)}.margin-kpis strong>small{color:inherit;font-size:16px}.margin-kpis .margin-kpi-credit{border-color:color-mix(in srgb, var(--danger) 35%, var(--line))}.margin-page .margin-negative,.margin-credit-document h3,.margin-credit-document .margin-document-meta strong,.margin-page .margin-credit-document .margin-document-select,.margin-credit-document .margin-document-badge,.margin-credit-document .margin-number,.margin-credit-document .margin-document-totals strong{color:var(--danger)}.margin-unit{margin:-6px 0 0;font-size:12px}.margin-grid{grid-template-columns:1.1fr 1fr;gap:20px;min-width:0;display:grid}.margin-panel{border:1px solid var(--line);background:var(--surface);border-radius:18px;min-width:0;padding:24px}.margin-panel h2{margin:0 0 22px;font-size:21px}.margin-panel>p{font-size:13px}.margin-legend{flex-wrap:wrap;justify-content:flex-end;gap:18px;min-height:25px;margin-bottom:12px;display:flex}.margin-legend span{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.margin-legend i{border-radius:50%;width:10px;height:10px}.margin-chart-scroll{width:100%;overflow-x:auto}.margin-chart-scroll svg{width:100%;height:275px}.margin-chart-scroll text{fill:var(--muted);font-size:12px}.margin-products{gap:22px;margin-top:26px;display:grid}.margin-products>div{grid-template-columns:minmax(140px,1fr) minmax(40px,1fr) auto;align-items:center;gap:16px;font-size:13px;display:grid}.margin-products small,.margin-details td small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.margin-products strong{font-variant-numeric:tabular-nums}.margin-product-track{background:var(--surface-muted);border-radius:6px;height:16px}.margin-product-track i{border-radius:6px;height:100%;display:block}.margin-detail-empty{padding:0 24px}.margin-period-table summary{cursor:pointer;font-weight:600}.margin-period-table[open] summary{margin-bottom:20px}.margin-period-table tfoot th,.margin-period-table tfoot td{background:var(--surface-active);border-top:2px solid var(--line);z-index:1;border-bottom:0;font-weight:700;position:sticky;top:auto;bottom:0}.margin-details{padding:0;overflow:hidden}.margin-details>header{justify-content:space-between;align-items:center;gap:16px;padding:24px;display:flex}.margin-details h2{margin:0}.margin-table-scroll{max-height:600px;overflow:auto}.margin-page table{border-collapse:collapse;width:100%;font-size:13px}.margin-page th,.margin-page td{text-align:start;white-space:nowrap;border-bottom:1px solid var(--line);padding:14px 16px}.margin-page th{background:var(--table-header-bg);color:var(--ink);z-index:1;position:sticky;top:0}.margin-page tr:nth-child(2n){background:var(--surface-muted)}.margin-page .margin-history{background:var(--warning-bg)}.margin-page .margin-number{text-align:end;font-variant-numeric:tabular-nums}.margin-details footer{justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;display:flex}.margin-details footer span{color:var(--muted);margin-inline-end:auto;font-size:13px}.margin-empty{text-align:center}.margin-document-explorer{gap:16px;min-width:0;display:grid}.margin-document-list>header{align-items:flex-start}.margin-document-list>header p{margin:10px 0 0;font-size:13px;line-height:1.6}.margin-document-count{color:var(--muted);white-space:nowrap;font-size:13px}.margin-document-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:18px;padding:0 24px 20px;display:flex}.margin-document-tabs{flex-wrap:wrap;gap:8px;display:flex}.margin-document-tabs button{align-items:center;gap:10px;display:flex}.margin-document-tabs button span{background:var(--surface-muted);color:var(--muted);border-radius:20px;padding:3px 7px;font-size:11px}.margin-document-tabs button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:var(--surface-active)}.margin-document-tabs button[aria-pressed=true] span{color:var(--green)}.margin-document-table{max-height:360px}.margin-document-table tfoot th,.margin-document-table tfoot td{background:var(--surface-active);border-top:2px solid var(--line);z-index:1;border-bottom:0;font-weight:700;position:sticky;top:auto;bottom:0}.margin-document-search{color:var(--muted);gap:6px;min-width:min(100%,280px);font-size:12px;display:grid}.margin-document-search input{border:1px solid var(--input-border);background:var(--input-bg);width:100%;min-height:44px;color:var(--ink);border-radius:10px;padding:10px 12px;font-size:13px}.margin-document-search input:focus-visible{outline:3px solid var(--outline);outline-offset:2px}.margin-page .margin-document-select{color:var(--green);background:0 0;border:0;border-radius:4px;align-items:center;gap:12px;padding:0;display:flex}.margin-document-select:hover{text-decoration:underline}.margin-document-select span{font-size:17px}.margin-document-selected td{background:var(--surface-active)}.margin-document-selected td:first-child{box-shadow:inset 3px 0 var(--green)}[dir=rtl] .margin-document-selected td:first-child{box-shadow:inset -3px 0 var(--green)}[dir=rtl] .margin-document-select span{transform:rotate(180deg)}.margin-document-badge{background:var(--surface-muted);color:var(--ink);border-radius:6px;align-items:center;padding:5px 8px;font-size:11px;display:inline-flex}.margin-selected-heading{justify-content:space-between;align-items:start;gap:18px;display:flex}.margin-eyebrow{color:var(--green);margin:0 0 10px;font-size:12px;font-weight:600}.margin-selected-heading h3{overflow-wrap:anywhere;margin:0;font-size:23px}.margin-document-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0 0;font-size:13px;display:flex}.margin-document-meta strong{color:var(--ink)}.margin-document-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 16px;display:grid}.margin-document-totals section{border:1px solid var(--line);background:var(--surface-muted);border-radius:12px;gap:14px;padding:18px;display:grid}.margin-document-totals section>span{color:var(--muted);font-size:12px}.margin-document-totals strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(20px,1.8vw,28px)}.margin-document-totals small{color:var(--muted);margin-inline-start:6px;font-size:11px;font-weight:500}.margin-document-totals .margin-document-profit{border-color:var(--green);background:var(--surface-active)}.margin-document-profit strong,.margin-line-profit{color:var(--green);font-weight:700}.margin-history-notice{background:var(--warning-bg);border-radius:8px;padding:12px 16px;font-size:13px}.margin-line-explanation{margin:0 0 18px;line-height:1.6}.margin-line-table{border:1px solid var(--line);border-radius:10px;max-height:560px}.margin-line-product{min-width:230px;max-width:360px}.margin-page .margin-line-product{white-space:normal}.margin-line-product strong{line-height:1.5}.margin-line-product small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.margin-free-line{background:var(--warning-bg);color:var(--ink);border-radius:5px;margin-top:8px;padding:3px 7px;font-size:10px;display:inline-block}.margin-line-table tfoot th,.margin-line-table tfoot td{background:var(--surface-active);border-top:2px solid var(--line);z-index:1;border-bottom:0;font-weight:700;position:sticky;top:auto;bottom:0}@media (max-width:1200px){.margin-document-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.margin-document-toolbar{gap:14px;padding:0 18px 18px}.margin-document-tabs{width:100%}.margin-document-tabs button{flex:1;justify-content:center;padding:10px;font-size:12px}.margin-document-search{width:100%}.margin-selected-heading,.margin-document-list>header{flex-direction:column;gap:12px}.margin-document-list>header{padding:18px}.margin-document-totals{gap:8px;margin-top:18px}.margin-document-totals section{gap:10px;padding:12px}.margin-document-totals strong{font-size:20px}}@media (max-width:1200px){.margin-grid{grid-template-columns:1fr}.margin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.margin-heading{flex-direction:column;align-items:flex-start}.margin-controls{gap:12px;padding:16px}.margin-modes{width:100%}.margin-modes button{flex:1;min-width:0}.margin-controls label{justify-content:space-between;width:100%}.margin-controls .french-date-input{width:calc(100% - 40px)}.margin-refresh{width:100%}.margin-kpis{gap:10px}.margin-kpis section{padding:16px}.margin-panel{padding:18px}.margin-details{padding:0}.margin-products>div{grid-template-columns:minmax(0,1fr) auto}.margin-product-track{display:none}.margin-details footer{gap:6px;padding:12px}.margin-details footer button{padding:10px}}
