*{box-sizing:border-box}body{margin:0;font:16px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ludo-c243240);background:var(--ludo-cf3f6f8)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--ludo-ccad5dc);background:var(--ludo-surface);color:var(--ludo-c243240);border-radius:7px;padding:.65rem 1rem;font-weight:600}button:hover{background:var(--ludo-cedf5f8)}button.primary{background:#087f9e;color:var(--ludo-on-accent);border-color:#087f9e}a{color:#087b9c}.brand{display:flex;align-items:center;gap:.7rem}.brand img{width:145px;height:auto}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:var(--ludo-surface);border-right:1px solid var(--ludo-cdce5ea);display:flex;flex-direction:column;padding:1.6rem 1rem;overflow:auto;z-index:2}.sidebar .brand{padding:0 .5rem 1.4rem}.smallcaps{font-size:.75rem;letter-spacing:.13em;font-weight:700;color:var(--ludo-c768693);text-transform:uppercase}.sidebar .smallcaps{padding:.8rem .7rem .25rem}.nav{display:flex;flex-direction:column;gap:.15rem}.nav button{display:flex;align-items:center;text-align:left;gap:.75rem;border:0;background:transparent;padding:.7rem .8rem;font-size:.925rem;font-weight:500;min-height:44px}.nav button.active{background:var(--ludo-ce8f5f8);color:var(--ludo-c086f8a);font-weight:700;border-left:3px solid #099aba}.nav .icon{width:20px;color:var(--ludo-c6d8593);font-size:1rem;text-align:center}.nav .badge{margin-left:auto;font-size:.8rem;border-radius:5px;padding:0 .45rem;background:var(--ludo-cfff1df);color:var(--ludo-c85550b)}.sidebar .foot{margin-top:auto;padding:1.3rem .7rem .2rem;font-size:.85rem;color:var(--ludo-c667b88)}.local-dot{display:inline-block;width:7px;height:7px;background:#0983a2;border-radius:50%;margin-right:6px}.workspace{margin-left:248px;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 2rem;background:var(--ludo-surface);border-bottom:1px solid var(--ludo-cdce5ea);min-height:76px}.topbar .search{width:min(420px,45vw)}.identity{display:flex;align-items:center;gap:.75rem;font-size:.9rem}.avatar{width:35px;height:35px;display:grid;place-items:center;background:var(--ludo-ce8f5f8);color:#087f9e;border-radius:50%;font-weight:700}.mobile-menu{display:none}.content{padding:2rem;max-width:1600px;margin:0 auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}.eyebrow{color:#0a809e;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}h1{font-size:1.8rem;line-height:1.25;margin:.3rem 0 .5rem}h2{font-size:1.05rem;margin:0}h3{font-size:1rem;margin:.4rem 0}.muted{color:var(--ludo-c667b88);font-size:.925rem}p{margin:.5rem 0 1rem}.actions{display:flex;gap:.5rem;flex-wrap:wrap}.notice{border-left:3px solid #099aba;background:var(--ludo-ceaf6fa);padding:.9rem 1.1rem;border-radius:4px;margin-bottom:1.5rem;font-size:.925rem}.notice.warn{background:var(--ludo-cfff5e7);border-color:#d99620}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{border:1px solid var(--ludo-cdce5ea);border-radius:10px;background:var(--ludo-surface);padding:1.3rem;box-shadow:0 2px 3px #24324003}.metric{font-size:1.85rem;font-weight:700;margin:.45rem 0;color:var(--ludo-c203441)}.metric-sub{font-size:.85rem;color:var(--ludo-c667b88)}.section{margin-top:1.6rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.9rem}.listitem{padding:1rem 0;border-bottom:1px solid var(--ludo-cedf0f3);display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.listitem:last-child{border:0}.listitem button{padding:.4rem .7rem;font-size:.85rem}.table-wrap{background:var(--ludo-surface);border:1px solid var(--ludo-cdce5ea);border-radius:9px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th{text-align:left;color:var(--ludo-c687e8b);font-size:.8rem;font-weight:700;background:var(--ludo-cf8fafb);padding:.85rem 1rem;white-space:nowrap}td{padding:.85rem 1rem;border-top:1px solid var(--ludo-cedf0f3);vertical-align:top}td a{font-weight:600;text-decoration:none}tr:hover td{background:var(--ludo-cfbfdfe)}.pill{display:inline-block;border-radius:5px;background:var(--ludo-ceef2f5);color:var(--ludo-c526975);padding:.2rem .5rem;font-size:.8rem;white-space:nowrap}.pill.good{background:var(--ludo-ce5f5ed);color:var(--ludo-c216341)}.pill.warn{background:var(--ludo-cfff1df);color:var(--ludo-c86520b)}.pill.blue{background:var(--ludo-ce8f5f8);color:var(--ludo-c086f8a)}.filters{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}input,select,textarea{border:1px solid var(--ludo-ccad5dc);border-radius:7px;padding:.6rem .7rem;background:var(--ludo-surface);color:var(--ludo-c243240);min-width:0;max-width:100%}textarea{min-height:95px;resize:vertical}label{display:flex;flex-direction:column;gap:.4rem;font-weight:600;font-size:.9rem}form .field{margin-bottom:1rem}dialog{border:1px solid var(--ludo-cdce5ea);border-radius:12px;padding:1.6rem;width:min(680px,calc(100vw - 2rem));max-height:90vh;overflow:auto;box-shadow:0 20px 80px #0a243340}dialog::backdrop{background:#172d4260}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.2rem}.dialog-heading button{padding:.3rem .6rem;border:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}.form-grid .wide{grid-column:1/-1}.error-message{color:#a82b3b;font-size:.9rem;margin-bottom:1rem;min-height:1rem}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:var(--ludo-surface)}.auth-story{padding:10vh 7vw;background:var(--ludo-ceef7fa);border-right:1px solid var(--ludo-cdce5ea);display:flex;flex-direction:column;justify-content:center}.auth-story h1{font-size:2.6rem;max-width:480px}.auth-story .brand{margin-bottom:2.5rem}.auth-story .rule{height:4px;width:54px;background:#d7314c;margin:1.5rem 0}.auth-story p{max-width:440px;color:var(--ludo-c526c7c)}.auth-form{padding:8vh 7vw;display:flex;flex-direction:column;justify-content:center}.auth-form form{max-width:390px;width:100%;margin:0 auto}.auth-form h2{font-size:1.5rem;margin-bottom:.4rem}.auth-form button{width:100%}.empty{padding:2.4rem;text-align:center;color:var(--ludo-c667b88)}.source-path{font-size:.8rem;color:var(--ludo-c687e8b);overflow-wrap:anywhere}.timeline{border-left:2px solid var(--ludo-cdce5ea);padding-left:1rem;margin:1rem 0}.timeline p{margin:.7rem 0}#toast{position:fixed;bottom:1.5rem;right:1.5rem;background:var(--ludo-c203441);color:var(--ludo-surface);border-radius:8px;padding:.75rem 1rem;z-index:5;display:none;max-width:calc(100vw - 3rem)}.loading{padding:3rem}.footer-note{font-size:.8rem;color:var(--ludo-c768693);margin:1.5rem 0}.attention-count{font-size:1.8rem;font-weight:700;color:#995d09}.location-type{color:#087f9e;font-size:.8rem}.split{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem}@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:1.4rem}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{width:220px;transform:translateX(-100%)}.sidebar.open{transform:none;box-shadow:0 0 50px #1c354a30}.workspace{margin-left:0}.mobile-menu{display:inline-block}.topbar .search{display:none}.topbar{padding:.75rem 1rem}.content{padding:1rem}.page-heading{flex-direction:column}.grid,.grid.two,.grid.three,.split{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-story{padding:2rem;border:0}.auth-story h1{font-size:1.8rem}.auth-story .brand{margin-bottom:1rem}.auth-story p,.auth-story .rule{display:none}.auth-form{padding:2rem 1.5rem}.form-grid{grid-template-columns:1fr}.identity .muted{display:none}h1{font-size:1.5rem}}

[hidden]{display:none!important}
@media(max-width:760px){.identity>span:not(.avatar){display:none}.identity{gap:.4rem}.identity button{padding:.5rem .65rem;font-size:.85rem}.topbar{gap:.5rem}}

.statistics-controls{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap}.statistics-controls label{max-width:100%}.statistics-controls input[type=number]{width:7rem}.statistics-controls .statistics-toggle{flex-direction:row;align-items:center}.statistics-controls .error-message{width:100%;margin:0;min-height:0}.statistics-chart{width:100%;height:auto;display:block}.stat-positive{fill:#087f9e}.stat-negative{fill:#c83c55}.stat-label{fill:var(--ludo-c667b88);font-size:11px}.stat-axis{stroke:var(--ludo-cb7c9d3);stroke-width:1}

.yoyo-photo{margin:0}.yoyo-photo img{width:100%;height:240px;object-fit:contain}.yoyo-photo figcaption{margin-top:12px}

.commercial-photo{display:block;max-width:360px;width:100%;height:auto;margin:20px auto}

#classify-document .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#classify-document .field{min-width:0}#classify-document select{width:100%}@media(max-width:760px){#classify-document .form-grid{grid-template-columns:1fr}}

.report-logo{width:145px;height:auto}.report-note{font-size:.85rem;color:var(--ludo-c526c7c)}.report-preview td{overflow-wrap:anywhere}
@media print{@page{size:A4 portrait;margin:12mm}body{background:var(--ludo-surface);font-size:10pt}.sidebar,.topbar,.page-heading,.no-print,#toast,dialog{display:none!important}.workspace{margin:0;min-height:0}.content{padding:0;max-width:none}.report-preview{border:0;border-radius:0;padding:0;box-shadow:none;margin:0}.report-preview .table-wrap{overflow:visible;border:0;border-radius:0}.report-preview table{font-size:8pt;table-layout:fixed}.report-preview th{white-space:normal}.report-preview th,.report-preview td{padding:5px;overflow-wrap:anywhere}.report-preview thead{display:table-header-group}.report-preview tr{break-inside:avoid}.report-preview h2{font-size:16pt}.report-preview a{color:inherit;text-decoration:none}}

#entry .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#entry .field{min-width:0}#entry select{width:100%}@media(max-width:760px){#entry .form-grid{grid-template-columns:1fr}}

.identity .avatar{padding:0;flex-shrink:0}

.payment-filters{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap;margin-bottom:.75rem}.payment-filters .payment-text-filter{flex:1 1 260px}.payment-filters label{min-width:140px}.payments-scroll{max-height:58vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.payments-scroll:focus-visible{outline:2px solid #087f9e;outline-offset:2px}.payments-scroll table{min-width:1080px}.payments-scroll th{position:sticky;top:0;z-index:1;box-shadow:0 1px 0 var(--ludo-cdce5ea)}.payment-communication{display:inline;min-width:0;max-width:none;overflow-wrap:inherit}@media(max-width:760px){.payment-filters label{flex:1 1 140px}.payments-scroll{max-height:55vh}}

.sort-heading{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;white-space:normal;cursor:pointer}
.sort-arrow{font-size:.8em;color:#087f9e}.table-wrap{max-height:70vh;overflow:auto}.table-wrap th{position:sticky;top:0;z-index:1;background:var(--ludo-cf7fafc)}
.dashboard-link{text-align:left;color:inherit;font:inherit;display:block}.dashboard-link:hover{border-color:#087f9e;background:var(--ludo-cf7fcfd)}.dashboard-link:focus-visible{outline:2px solid #087f9e}
.action-menu{position:relative;display:inline-block}.action-menu summary{cursor:pointer;padding:.7rem 1rem;border:1px solid #cad8e0;border-radius:8px;background:var(--ludo-surface);list-style:none;white-space:nowrap}.action-menu-items{position:absolute;right:0;top:100%;z-index:5;min-width:260px;display:flex;flex-direction:column;gap:.35rem;padding:.6rem;background:var(--ludo-surface);border:1px solid var(--ludo-cdce5ea);border-radius:8px;box-shadow:0 10px 25px #142c4020}.action-menu-items button,.action-menu-items a{text-align:left;width:100%;font-size:.95rem}.view-tabs{display:flex;gap:.5rem;margin:1rem 0}.filters label{display:flex;flex-direction:column;gap:.3rem}.filters{align-items:end;flex-wrap:wrap}
.transport-notes{min-width:260px;max-width:440px;white-space:normal;overflow-wrap:anywhere}.transport-notes summary{cursor:pointer;color:#087f9e}.transport-article{min-width:160px}.transport-items{width:100%;margin:1rem 0}.transport-item{display:grid;grid-template-columns:minmax(200px,1fr) 140px auto;align-items:end;gap:.7rem;padding:.5rem 0}.transport-item label{display:flex;flex-direction:column;gap:.3rem}.transport-lines{max-height:40vh;overflow:auto}.transport-item input{width:100%}
@media print{.table-wrap,.payments-scroll{max-height:none;overflow:visible}.sort-heading{display:block!important}.sort-arrow{display:none}.action-menu,.view-tabs,.filters{display:none!important}}
@media(max-width:760px){.action-menu-items{right:auto;left:0}.transport-item{grid-template-columns:minmax(150px,1fr) 100px auto}}

.compact-list td{padding:.45rem .75rem;line-height:1.35}.compact-list th{padding:.6rem .75rem}.compact-list button{padding:.35rem .6rem;font-size:.85rem}.compact-list details{min-width:160px;max-width:480px}.compact-list summary,.cost-detail summary{cursor:pointer;color:#087b9c}.source-path,td,th,.notice,p,dd{white-space:normal;overflow-wrap:anywhere}.audit-detail{min-width:260px;max-width:500px}.audit-fields{display:grid;grid-template-columns:minmax(100px,1fr) minmax(160px,2fr);gap:.35rem .7rem;font-size:.85rem}.audit-fields dt{color:var(--ludo-c667b88)}.audit-fields dd{margin:0;min-width:0}.audit-fields .audit-fields{display:block;border-left:2px solid var(--ludo-cdce5ea);padding-left:.6rem}.metric-period{font-size:.75rem;color:#526977;margin-top:.6rem}.text-link{background:transparent;border:0;padding:0;color:#087b9c;font-weight:600;text-align:left}.cost-detail{padding:.8rem 1rem}.card{box-shadow:none}.metric{font-size:1.55rem}.content{padding:1.5rem}.page-heading{margin-bottom:1rem}.actions{align-items:start}.notice{margin-bottom:1rem}.table-wrap{scrollbar-gutter:stable}td{min-width:90px}.table-wrap table{min-width:620px}.dashboard-link .metric-sub{line-height:1.4}

.nav-group{margin-top:.35rem}.nav-group summary{cursor:pointer;font-size:.875rem;font-weight:600;color:#496071;padding:.6rem .7rem;list-style:none}.nav-group summary::before{content:'›';display:inline-block;width:16px;color:var(--ludo-c6d8593)}.nav-group[open] summary::before{content:'⌄'}.nav-group div{display:flex;flex-direction:column;margin-left:.4rem;border-left:1px solid var(--ludo-cedf0f3)}.nav-group button{font-size:.85rem;min-height:34px;padding:.45rem .7rem}.sidebar .smallcaps{padding:.2rem .7rem .5rem}.sidebar .brand{padding-bottom:1rem}.sidebar .foot{font-size:.75rem}

button.text-link{border:0;background:transparent;color:#087b9c;padding:0;text-align:left;font-weight:600;text-decoration:underline} .wide-dialog{width:min(1080px,calc(100vw - 2rem))}.draft-item{display:grid;grid-template-columns:minmax(200px,2fr) repeat(4,minmax(75px,1fr)) auto;gap:.65rem;align-items:end;border-bottom:1px solid var(--ludo-cdce5ea);padding:.8rem 0}.draft-item label{font-size:.8rem}.source-path{overflow:visible;text-overflow:clip} .pill{white-space:normal}.view-tabs button{padding:.4rem .7rem;font-size:.85rem}@media(max-width:760px){.draft-item{grid-template-columns:1fr 1fr}.draft-item label:first-child{grid-column:1/-1}}

.print-stamp{display:none}.report-sites{grid-column:1/-1}.site-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin-top:12px}.site-checklist label{display:flex;align-items:center;gap:8px}.site-checklist input{width:auto;min-height:0}.report-sites summary{cursor:pointer}.report-sites .actions{margin-top:12px}@media print{.print-stamp:not(.no-print){display:block;font-size:9pt;margin-bottom:12pt}.report-preview .sort-heading{border:0;padding:0;background:none}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.date-picker{position:fixed;width:min(340px,calc(100vw - 16px));padding:12px;background:var(--ludo-cfff);border:1px solid #c5d5dd;border-radius:10px;box-shadow:0 8px 30px #20334226;z-index:10000;font-size:.9rem}.date-picker-head{display:grid;grid-template-columns:30px 1fr 75px 30px 30px;gap:4px;align-items:center}.date-picker-head button,.date-picker-head select{padding:5px;min-height:34px;margin:0;font-size:.85rem}.date-picker-head label{min-width:0}.date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin:10px 0}.date-grid button{padding:7px 0;min-height:34px;font-size:.85rem;border:0}.date-weekday{text-align:center;color:#687f8a;font-size:.8rem}.date-grid .outside-month{color:#798c96}.date-grid .selected-day{background:#087f9e;color:var(--ludo-on-accent)}.date-grid button:disabled{color:#bec9cf;background:var(--ludo-cf3f6f7);cursor:not-allowed}.date-picker-foot{display:flex;gap:8px}.date-picker-foot button{padding:6px 10px;font-size:.85rem}input[type=date]::-webkit-calendar-picker-indicator{pointer-events:none}@media print{.date-picker{display:none!important}}

summary::marker{color:#087b9c}summary::-webkit-details-marker{color:#087b9c}.nav-group summary::before,.action-menu summary::after{color:#087b9c}.export-list{display:flex;flex-direction:column;gap:.6rem}.export-formats{display:block}.table-wrap th{white-space:normal;min-width:100px}.table-wrap td{overflow-wrap:anywhere}.text-link{white-space:normal;text-align:left}

.admin-row-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;min-width:135px}.admin-row-actions button{padding:.4rem .65rem;font-size:.85rem;white-space:nowrap;flex-shrink:0}.admin-row-actions .trash-button{display:inline-flex;align-items:center;justify-content:center;color:#a33c32;min-width:34px;min-height:34px;padding:.35rem}.trash-button:disabled{color:#83929b;cursor:not-allowed}.field select:disabled{opacity:1;color:#334955;background:var(--ludo-cf3f6f7)}

.table-wrap:has(.admin-row-actions) td{overflow-wrap:normal}

/* Stock detail uses available screen width; words remain readable. */
dialog.stock-dialog{width:min(1500px,96vw);max-width:96vw;max-height:94vh;padding:clamp(16px,2vw,32px)}
dialog.stock-dialog th{white-space:normal;word-break:normal;overflow-wrap:normal}
dialog.stock-dialog td{word-break:normal;overflow-wrap:normal}
dialog.stock-dialog .table-wrap{max-width:100%}
dialog.stock-dialog .text-link{white-space:normal;text-align:left}
@media(max-width:650px){dialog.stock-dialog{width:96vw;padding:14px}dialog.stock-dialog th,dialog.stock-dialog td{padding:.5rem}.stock-dialog .filters{flex-wrap:wrap}}

/* Tables use the workspace width and wrap between words, never inside dates or status labels. */
@media screen{.content{max-width:none;width:100%;min-width:0}.table-wrap th,.table-wrap td{overflow-wrap:normal;word-break:normal;white-space:normal}.table-wrap th{min-width:0}.pill{white-space:nowrap}.table-wrap td .source-path,.table-wrap .audit-technical{overflow-wrap:anywhere}.table-wrap th,.table-wrap td{padding:.65rem .8rem}}

/* Grouped actions are consistently identifiable. */
.action-menu>summary{background:#087f9e;color:var(--ludo-on-accent);border-color:#087f9e;font-weight:600}
.action-menu>summary:hover,.action-menu[open]>summary{background:var(--ludo-c086f8a);border-color:var(--ludo-c086f8a)}
.action-menu>summary::marker,.action-menu>summary::after{color:var(--ludo-on-accent)}
.inline-choice{display:flex;flex-direction:row;align-items:center;gap:.5rem;font-weight:400;margin-bottom:1rem}
.table-wrap .pill{white-space:normal;word-break:normal;overflow-wrap:normal}

.unit-cost{font-size:inherit;font-weight:600;font-variant-numeric:tabular-nums}

.view-tabs{flex-wrap:wrap;align-items:flex-start}.view-tabs button{flex:0 1 auto;min-height:38px}

.mailing-message{white-space:pre-wrap;overflow-wrap:anywhere}#mailing-editor input,#mailing-editor textarea{width:100%}

/* Compact dates and open items on the dashboard. */
.dashboard-agenda .listitem{padding:.55rem 0;gap:.65rem;line-height:1.35}.dashboard-agenda .listitem>div{min-width:0}.dashboard-agenda .listitem p{margin:.2rem 0 0}.dashboard-agenda .section{margin-top:1rem}.dashboard-agenda .section-header{margin-bottom:.4rem}

.sumup-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}.sumup-metric{display:flex;flex-direction:column;text-align:left;gap:.5rem;min-width:0}.sumup-metric strong{font-size:1.7rem;color:#0783a0}.sumup-ref{white-space:nowrap;font-variant-numeric:tabular-nums}.sumup-metric:hover{border-color:#0783a0}@media(max-width:700px){.sumup-metrics{grid-template-columns:1fr}}

.recovery-progress{display:block;width:100%;min-width:7rem;height:.55rem;accent-color:#0783a0;margin-top:.35rem}.recovery-summary{font-size:1.5rem;font-weight:700;color:#0783a0;margin:1rem 0}.recovery-summary progress{height:.9rem}#sumup-filters [name=year]{font-weight:700}.tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}

.table-wrap td.reference-cell,.table-wrap td.date-cell{white-space:nowrap;overflow-wrap:normal;word-break:normal}.table-wrap .pill{white-space:nowrap}.dashboard-agenda .text-link{font-size:.95rem;line-height:1.35}.dashboard-agenda .listitem p{margin:.15rem 0 0}

button.link-button{border:0;background:transparent;padding:0;color:#087b9c;font-weight:600;text-align:left;text-decoration:underline}button.link-button:hover,button.text-link:hover{color:#06566d}.sumup-metric strong{font-variant-numeric:tabular-nums}

.offer-loss{color:#a72b2b}.sumup-metrics .card{display:flex;flex-direction:column;gap:.4rem}.draft-item{align-items:start}

.offer-verdict{padding:.55rem .8rem;border-radius:7px;font-weight:700}.offer-success{background:#e5f4ed;color:#236247}.offer-caution{background:#fff1dd;color:#8a560d}.offer-loss.offer-verdict{background:#fde9e9}

/* Readable summaries and a consistent keyboard path through all views. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ludo-c086f8a);outline-offset:3px}
.methodology{margin:1rem 0}.methodology summary{color:#49677a}.case-preview{margin:.3rem 0!important;line-height:1.4}
.page-heading h2{font-size:1.35rem;margin:0}.audit-summary{max-width:40rem;line-height:1.45;margin:.15rem 0;overflow-wrap:anywhere}.document-links-preview{line-height:1.4;margin-bottom:.35rem}
dialog .dialog-heading{position:sticky;top:-1.5rem;background:var(--ludo-cfff);z-index:2;padding:.5rem 0;border-bottom:1px solid var(--ludo-ce2eaf0)}dialog #entry>.actions{position:sticky;bottom:-1.5rem;background:var(--ludo-cfff);padding:.75rem 0;border-top:1px solid var(--ludo-ce2eaf0);z-index:2}
@media(max-width:700px){.content{padding:1rem}.statistics-controls{gap:.7rem}.audit-summary{min-width:14rem}.page-heading .actions{flex-wrap:wrap}}

.audit-list table{min-width:1100px}.audit-list th:nth-child(1),.audit-list td:nth-child(1){min-width:155px;white-space:nowrap}.audit-list th:nth-child(5),.audit-list td:nth-child(5){min-width:330px;width:35%}.audit-list .audit-detail{min-width:170px}.audit-list .audit-summary{overflow-wrap:normal}
.nav .page-sections{list-style:none;margin:.1rem 0 .5rem 1.1rem;padding:0 0 0 .7rem;border-left:1px solid var(--ludo-cdce5ea)}.nav .page-sections a{display:block;padding:.3rem .45rem;font-size:.8rem;line-height:1.35;text-decoration:none;color:var(--ludo-c526975);border-radius:4px}.nav .page-sections a:hover,.nav .page-sections a[aria-current="location"]{background:var(--ludo-ce8f5f8);color:var(--ludo-c086f8a)}.section-target{scroll-margin-top:1.2rem}.section-target:focus-visible{outline:2px solid var(--ludo-c086f8a);outline-offset:4px}
.amount-summary{max-width:720px}.amount-summary table{min-width:0}.amount-summary th:last-child,.amount-summary td:last-child{text-align:right;white-space:nowrap;width:140px}.cost-overview{display:flex;align-items:center;gap:1.5rem;justify-content:space-between;margin:.5rem 0 1rem;padding:1rem;background:var(--ludo-ceef7fa);border-radius:8px}.cost-overview strong{display:block;font-size:1.6rem}.cost-overview p{margin:.2rem 0}.cost-detail{margin:1rem 0}.cost-detail summary{color:#087b9c;cursor:pointer;font-weight:600}.dialog-heading .print-control{margin-left:auto;font-size:.85rem;padding:.35rem .6rem;border:1px solid var(--ludo-ccad5dc)}
@media print{.page-heading{display:flex!important}.page-heading .actions,.no-print,[data-print-view]{display:none!important}.content table{min-width:0!important}.print-stamp:empty{display:none}body.printing-dialog .workspace,body.printing-dialog .sidebar,body.printing-dialog .topbar{display:none!important}body.printing-dialog #modal[open]{display:block!important;position:static;width:100%!important;max-width:none;max-height:none;overflow:visible;box-shadow:none;border:0;padding:0;margin:0}body.printing-dialog #modal .dialog-heading{position:static;border:0}body.printing-dialog #modal button,body.printing-dialog #modal .actions{display:none!important}body.printing-dialog #modal table{min-width:0!important;font-size:9pt}body.printing-dialog #modal thead{display:table-header-group}body.printing-dialog #modal tr{break-inside:avoid}body.printing-dialog #modal::backdrop{display:none}body.printing-dialog #modal .sort-heading{display:inline!important;background:transparent;border:0;padding:0;font:inherit}body.printing-dialog #modal .sort-arrow{display:none}}
.table-wrap .article-cell,.table-wrap .article-cell a,.table-wrap .article-cell .text-link{white-space:nowrap!important;word-break:normal}.purchase-estimate{max-width:620px;margin:1rem 0;padding:1rem;border:1px solid var(--ludo-cdce5ea);border-radius:8px}.purchase-estimate .filters{align-items:flex-end;margin:.8rem 0}.purchase-estimate input{width:140px}.estimate-total{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.estimate-total strong{font-size:1.5rem;color:var(--ludo-c086f8a);white-space:nowrap}.purchase-estimate p{margin:.3rem 0;line-height:1.4}

/* Short operational cells keep their intrinsic width; long explanations stay in details. */
@media screen{.table-wrap table{table-layout:auto}.table-wrap th{white-space:nowrap}.table-wrap td.compact-cell,.table-wrap td.compact-cell>a,.table-wrap td.compact-cell>.text-link{white-space:nowrap;overflow-wrap:normal;word-break:normal}.table-wrap td.compact-cell{width:1%}.table-wrap td.article-cell{width:1%}.table-wrap .movement-context{display:inline-flex;margin-left:.55rem;vertical-align:middle}.table-wrap td.compact-cell .pill{white-space:nowrap}}
@media print{.table-wrap td.compact-cell{white-space:normal}.movement-context{margin-left:.4rem}}

@media print{.table-wrap .text-link,body.printing-dialog #modal .table-wrap .text-link{display:inline!important;border:0;background:none;color:inherit;text-decoration:none;padding:0;font:inherit}.table-wrap .sort-heading{display:inline!important;border:0;background:none;color:inherit;padding:0;font:inherit}.table-wrap .sort-arrow{display:none!important}}

/* Table actions participate in row layout so scroll containers cannot crop them. */
@media screen{.table-wrap .action-menu-items{position:static;min-width:170px;width:max-content;max-width:340px;margin-top:.35rem;box-shadow:none}.table-wrap .action-menu-items button,.table-wrap .action-menu-items a{white-space:normal;overflow-wrap:normal}.table-wrap .action-menu[open]{display:block}}

.invoice-status{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.invoice-status button{margin-left:auto}.invoice-settings{max-width:800px}.invoice-settings summary{font-weight:600;padding:.6rem 0}.invoice-settings form{margin-bottom:1rem}.invoice-settings .check{display:flex;gap:.6rem;align-items:flex-start}.invoice-settings input[type=checkbox]{width:auto}.unit-cost{white-space:nowrap}

/* Fit short operational columns to their contents, reserving wrapping for prose. */
@media screen{.table-wrap table{table-layout:auto;width:max-content;min-width:100%}.table-wrap th,.table-wrap .sort-heading{white-space:nowrap!important}.table-wrap .sort-heading{display:inline-flex;align-items:baseline;gap:.2rem}.table-wrap .sort-arrow{flex:none}.table-wrap td.reference-cell,.table-wrap td.date-cell{width:1%;min-width:0}.table-wrap td[data-cell-layout="compact"],.table-wrap td[data-cell-layout="compact"]>.text-link,.table-wrap td[data-cell-layout="compact"]>a{white-space:nowrap!important;overflow-wrap:normal;word-break:normal}.table-wrap td[data-cell-layout="prose"]{white-space:normal;min-width:240px;max-width:580px}.table-wrap td details[open]{max-width:600px;white-space:normal}.table-wrap td details[open] p{white-space:normal}.table-wrap td details:not([open]) summary{white-space:nowrap}.table-wrap td[data-cell-layout="compact"]:not(.article-cell){width:1%}}
.list-year-control{display:flex;align-items:center;gap:.6rem;white-space:nowrap;font-size:.9rem}.list-year-control select{width:auto;min-width:100px}.count-photo-preview{display:block;max-width:220px;max-height:170px;object-fit:contain;margin:.5rem 0}.count-proof{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:.5rem 0}.stock-location-total{margin:.5rem 0 1rem}.section-header .list-year-control{margin-left:auto}

@media screen{dialog.stock-dialog{max-height:calc(100dvh - 2rem);overflow-y:auto;overscroll-behavior:contain}.table-wrap td:has(.evidence-points){white-space:normal!important;min-width:280px;max-width:580px}.evidence-points{padding-left:1.1rem;margin:0;white-space:normal}.evidence-points li{margin:0 0 .35rem;white-space:normal;line-height:1.4}.evidence-points li:last-child{margin-bottom:0}}

.metric.invoice-attention{color:var(--ludo-cb42336)}

.dashboard-overview{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start}.dashboard-overview>section{min-width:0}@media(max-width:760px){.dashboard-overview{grid-template-columns:1fr}}

.distribution-proof{display:block;white-space:nowrap}.distribution-check{display:flex;flex-direction:row;align-items:center;gap:.5rem}#distribution-reconcile .form-grid{gap:1rem}#distribution-reconcile label{margin-bottom:.65rem}#distribution-reconcile select{width:100%}

@media screen{.payments-scroll th{min-width:0}.payments-scroll col:not(.payment-description-column){width:1%}.payments-scroll td:has(.payment-communication){width:auto}.payments-scroll td:has(.payment-communication)[data-cell-layout="compact"] .payment-communication{white-space:nowrap}}

.fixed-context{display:block;padding:.6rem 0;font-weight:400;line-height:1.4;overflow-wrap:anywhere}.dialog-heading .detail-back{flex:none;font-size:.85rem;padding:.35rem .6rem}.dialog-heading h2{min-width:0}

.case-reading>details{margin-top:1rem}.case-reading h3{font-size:1rem;margin:1rem 0 .5rem}.case-reading>ol{padding-left:1.3rem}.case-reading>ol p{margin:.25rem 0}.case-reading>.evidence-points{max-width:78ch}.case-reading .timeline>div{margin:.8rem 0}.document-link{display:inline-block;max-width:36rem;white-space:normal!important;overflow-wrap:anywhere}

@media screen{.table-wrap{max-width:100%;min-width:0}.table-scroll-dock{position:fixed;z-index:20;height:22px;overflow-x:scroll;overflow-y:hidden;background:var(--ludo-ceaf0f4);border:1px solid var(--ludo-cb7c9d3);border-radius:5px;box-shadow:0 -2px 8px #24324015;scrollbar-color:#087f9e var(--ludo-ceaf0f4);scrollbar-width:auto}.table-scroll-dock>div{height:1px}.table-scroll-dock:focus-visible{outline:2px solid #087f9e;outline-offset:2px}.table-scroll-dock::-webkit-scrollbar{height:16px}.table-scroll-dock::-webkit-scrollbar-track{background:var(--ludo-ceaf0f4)}.table-scroll-dock::-webkit-scrollbar-thumb{background:#087f9e;border:3px solid var(--ludo-ceaf0f4);border-radius:8px}}
@media print{.table-scroll-dock{display:none!important}}

@media print{body.printing-dialog #modal .table-wrap{max-width:none;max-height:none;overflow:visible;border:0}body.printing-dialog #modal table{width:100%;table-layout:fixed}body.printing-dialog #modal th,body.printing-dialog #modal td{min-width:0;max-width:none;white-space:normal!important;overflow-wrap:anywhere;padding:5px;position:static}body.printing-dialog #modal .text-link{white-space:normal!important}body.printing-dialog #modal .reference-cell,body.printing-dialog #modal .compact-cell{width:auto}}
#draft-entry .draft-line-total{grid-column:1/-1;display:flex;flex-wrap:wrap;column-gap:1rem;row-gap:.2rem;margin:.25rem 0 .4rem}#draft-entry .draft-line-total span{white-space:nowrap}#draft-new-partner[hidden]{display:none}#draft-new-partner{margin:.7rem 0 1rem}#draft-entry .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#draft-entry label{min-width:0}#draft-entry select{width:100%}@media(max-width:760px){#draft-entry .form-grid{grid-template-columns:1fr}}
.invoice-editor-dialog{width:min(980px,calc(100vw - 2rem));background:var(--ludo-cf3f6f8)}.draft-editor-status{margin:0 1.3rem;color:var(--ludo-c526975);font-size:.85rem}.draft-paper-wrap{overflow-x:auto;padding:1rem 1.3rem}.draft-paper{width:210mm;min-height:297mm;padding:40pt 40pt 65pt;margin:auto;background:var(--ludo-cfff);color:var(--ludo-c000);font:10pt/12pt Arial,Helvetica,sans-serif;box-shadow:0 2px 12px #24324020;position:relative}.draft-letterhead{position:relative;height:191pt}.draft-paper-logo{position:absolute;top:0;left:0;width:78pt;height:78pt;object-fit:contain}.draft-issuer{position:absolute;left:2.835pt;top:100pt;width:240pt}.draft-recipient{position:absolute;left:284pt;top:78pt;width:231pt}.draft-issuer>div,.draft-recipient>div>div{margin:0}.draft-issuer>div:last-child{margin-top:16pt}.draft-paper label{font:10pt/12pt Arial,Helvetica,sans-serif;font-weight:400;gap:0;min-width:0}.draft-paper input,.draft-paper select{border:1px dashed var(--ludo-ccad5dc);border-radius:0;padding:0 2pt;background:var(--ludo-cfff);font:10pt/12pt Arial,Helvetica,sans-serif;color:var(--ludo-c000);min-width:0;width:100%;height:17pt}.draft-paper input:hover,.draft-paper select:hover,.draft-paper input:focus,.draft-paper select:focus{border-color:#087f9e;background:#f2fafc}.draft-field-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.draft-recipient select{font-weight:700}.draft-paper-title{height:22pt;display:flex;align-items:baseline;gap:5pt}.draft-planned-reference{font:bold 17pt/20pt Arial,Helvetica,sans-serif;color:#888}.draft-reference-status{font:8pt/10pt Arial,Helvetica,sans-serif;color:var(--ludo-c667b88);white-space:nowrap}.draft-paper-title label{display:block}#draft-entry .draft-paper-title select{font:bold 17pt/20pt Arial,Helvetica,sans-serif;text-transform:uppercase;width:auto;height:22pt;max-width:100%;padding:0;border-color:transparent}.draft-dates{margin:0 0 20pt;padding:0;text-align:left}.draft-dates input,.draft-dates output{text-align:left}.draft-vat-client{display:grid;grid-template-columns:94.5pt 1fr;min-height:16pt;align-items:center}.draft-dates label{display:grid;grid-template-columns:94.5pt 1fr;align-items:center;min-height:16pt}.draft-dates input{width:126pt;height:16pt}.draft-dates .draft-reference input{width:100%}.draft-credit-source[hidden]{display:none}.draft-invoice-columns,.draft-paper .draft-item{display:grid;grid-template-columns:minmax(0,66.3fr) minmax(0,264.2fr) minmax(0,55.8fr) minmax(0,70.8fr) minmax(0,58.176fr);gap:0}.draft-invoice-columns{font-style:italic;border-bottom:.5pt solid var(--ludo-cccc)}.draft-invoice-columns span{padding:2.8pt 8.5pt;border-right:.5pt solid var(--ludo-cccc);white-space:nowrap}.draft-invoice-columns span:last-child{border-right:0}.draft-paper .draft-item{padding:0;border-bottom:.5pt solid var(--ludo-cccc);position:relative;align-items:center;min-height:22.5pt}.draft-paper .draft-item:last-child{border-bottom:.5pt solid var(--ludo-cccc)}.draft-paper .draft-item>label,.draft-paper .draft-item>output{padding:2.8pt;border-right:.5pt solid var(--ludo-cccc);min-height:22.5pt;display:flex;align-items:center;font:10pt/12pt Arial,Helvetica,sans-serif}.draft-paper .draft-item>label:first-of-type{grid-column:2;padding-left:8.5pt}.draft-paper .draft-item>label input,.draft-paper .draft-item>label select{height:17pt;font:10pt/12pt Arial,Helvetica,sans-serif}.draft-paper .draft-item input[type=number]{appearance:textfield;-moz-appearance:textfield;text-align:right}.draft-paper .draft-item input[name=unit_price]{text-align:right}.draft-paper .draft-item input::-webkit-inner-spin-button,.draft-paper .draft-item input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#draft-entry .draft-paper .draft-line-total{grid-column:5;display:flex;justify-content:flex-end;margin:0;padding:2.8pt;font:10pt/12pt Arial,Helvetica,sans-serif;white-space:nowrap;border-right:0}.draft-paper .draft-line-reference{padding-left:8.5pt!important;white-space:nowrap;font-size:9pt!important}.draft-remove-line,.draft-tax-toggle{position:absolute;right:-18pt;width:16pt;height:20pt;padding:0;border:0;background:transparent;color:var(--ludo-c667b88);font-size:10pt}.draft-remove-line{top:0}.draft-tax-toggle{right:-36pt;top:0}.draft-line-options{grid-column:1/-1;padding:5pt;display:flex;gap:12pt;background:var(--ludo-cf3f6f8)}.draft-line-options[hidden]{display:none}.draft-line-options label{display:flex;flex-direction:row;gap:5pt}.draft-line-options input{width:45pt}.draft-invoice-totals{width:200pt;margin:22pt 0 24pt auto}.draft-invoice-totals>div{display:flex;justify-content:space-between;gap:10pt;line-height:12pt;padding:0}.draft-invoice-totals>div span:last-child,.draft-invoice-totals>div strong:last-child{white-space:nowrap}.draft-total-ttc{font-size:14pt;line-height:17pt!important;margin-top:17pt}.draft-bank{display:flex;gap:4pt;align-items:center;border-top:.5pt solid var(--ludo-cccc);border-bottom:.5pt solid var(--ludo-cccc);font-size:9pt;line-height:16pt;white-space:nowrap}.draft-bank>span{background:#eee;padding:0 3pt}.draft-bank strong{font-weight:400}.draft-paper .draft-payment-text{margin:14pt 0 0;font-size:10pt;line-height:12pt}.draft-paper .draft-thanks{margin:18pt 0 0;padding-top:12pt;border-top:.5pt solid var(--ludo-cccc);font-size:10pt}.draft-paper .draft-commercial-conditions{font-size:8pt;line-height:11pt;margin-top:12pt}.draft-paper-footer{position:absolute;bottom:38pt;left:40pt;right:40pt;font-size:8pt;color:var(--ludo-c526975)}.draft-exact-pdf{display:block;width:100%;height:70vh;border:0;background:var(--ludo-cfff);margin:1rem 0}
@media(max-width:760px){#draft-entry .draft-paper .draft-item>label:first-of-type{grid-column:2;padding-left:8.5pt}}

/* Compact, responsive dashboard and interactive agenda. */
.dashboard-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));align-items:stretch}
.dashboard-summary>.card{min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.invoice-preparation-heading{display:block;text-align:left;text-decoration:none;width:100%;font-size:.85rem;font-weight:500}.invoice-preparation-heading .metric{font-size:1.35rem;font-weight:600}.invoice-preparation-heading .metric{display:block}
.invoice-preparation-list{list-style:none;padding:0;margin:.4rem 0 0;line-height:1.35}.invoice-preparation-list li+li{margin-top:.25rem}.invoice-preparation-list button{text-align:left;white-space:normal;overflow-wrap:anywhere;max-width:100%;font-size:.85rem;font-weight:500;line-height:1.35}.invoice-preparation-list small{display:block;color:var(--ludo-c627e8c);margin-top:.1rem;font-size:.75rem;line-height:1.35}
.agenda-meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.2rem}.agenda-meta button{padding:.2rem .55rem;font-size:.85rem;white-space:nowrap}.agenda-status{align-self:flex-start;flex-shrink:0;cursor:pointer;font-size:.8rem;border:0;white-space:nowrap}.agenda-status:hover{filter:brightness(.94)}
.agenda-calendar{min-width:0}.calendar-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem}.calendar-toolbar label{min-width:90px}.calendar-toolbar select{width:auto;max-width:100%}.calendar-toolbar button{padding:.45rem .8rem}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem}.calendar-weekday{text-align:center;color:var(--ludo-c627e8c);font-size:.85rem;padding:.4rem 0}.calendar-day{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:85px;padding:.5rem;border:1px solid var(--ludo-cdce5ea);border-radius:6px;background:var(--ludo-cfff);text-align:left;position:relative}.calendar-day small{font-size:.75rem;margin-top:.2rem}.calendar-day.outside{opacity:.5}.calendar-day.current-day>span:first-child{font-weight:800;text-decoration:underline}.calendar-day.selected-day{outline:2px solid #087f99;outline-offset:1px}.calendar-day.action{background:var(--ludo-ceaf6f9)}.calendar-day.payment{background:var(--ludo-cfff5df)}.calendar-day.billing{background:var(--ludo-cf0eafb)}.calendar-day.overdue{background:#fdeeee}.calendar-day:hover{border-color:#087f99}.calendar-dots{display:flex;gap:.2rem;margin-top:auto;padding-top:.25rem}.calendar-dots i{width:7px;height:7px;border-radius:50%;background:#16879f}.calendar-dots .payment{background:#bc7b0d}.calendar-dots .billing{background:#7951ad}.calendar-dots .overdue{background:var(--ludo-cb42336)}
.calendar-legend{display:flex;gap:.6rem;flex-wrap:wrap;font-size:.8rem}.calendar-mark{padding:.15rem .4rem;border-radius:4px}.calendar-mark.action{background:var(--ludo-ceaf6f9)}.calendar-mark.payment{background:var(--ludo-cfff5df)}.calendar-mark.billing{background:var(--ludo-cf0eafb)}.calendar-mark.overdue{background:#fdeeee}
@media(max-width:1000px){.dashboard-overview{grid-template-columns:1fr}}@media(max-width:600px){.calendar-day{min-height:60px;padding:.35rem}.calendar-action-label{display:none}.calendar-grid{gap:.2rem}.calendar-day small{font-size:.65rem}.agenda-calendar{padding:.8rem}}

.dashboard-summary>.dashboard-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center;column-gap:.8rem;row-gap:.55rem}.dashboard-summary>.dashboard-link>.metric-sub{grid-column:1/-1}.dashboard-summary .metric{margin:0;line-height:1.15}.dashboard-summary .invoice-preparation-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem}.dashboard-summary .invoice-preparation-heading>.muted{min-width:0}.dashboard-summary .invoice-preparation-heading .metric{flex-shrink:0}.dashboard-summary>.card{padding:1rem 1.2rem}

.agenda-calendar .listitem>div{min-width:0}.agenda-calendar .listitem .text-link{white-space:normal;overflow-wrap:anywhere}

.agenda-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.5rem 0;border-bottom:1px solid var(--ludo-cedf0f3)}.agenda-row-date{font-variant-numeric:tabular-nums;font-size:.85rem;white-space:nowrap!important;color:var(--ludo-c627e8c)}.agenda-row-date.past{color:#b42332}.agenda-row-title{min-width:0;white-space:normal!important;overflow-wrap:anywhere;font-size:.95rem;line-height:1.35}.agenda-row>.action-menu{justify-self:end}.agenda-row .action-menu summary{padding:.35rem .65rem;font-size:.85rem}.agenda-row .action-menu-items{min-width:min(260px,calc(100vw - 4rem));max-width:calc(100vw - 4rem)}.agenda-row .action-menu-items button{white-space:normal;overflow-wrap:anywhere}
@media(max-width:440px){.agenda-row{column-gap:.45rem}.agenda-row-date{font-size:.75rem}.agenda-row-title{font-size:.85rem}.agenda-row .action-menu summary{padding:.35rem .4rem;font-size:.75rem}}

.invoice-preparation-card button.text-link{text-decoration:none;font-weight:500}.invoice-preparation-card button.text-link:hover{color:#075b73;background:var(--ludo-cedf7fa);border-radius:3px}.invoice-preparation-card button.text-link:focus-visible{outline:2px solid #087b9c;outline-offset:3px}

/* Shared screen typography. A4 documents and print styling retain their own type scale. */
@media screen{
 body{font-size:14px;line-height:1.45}
 h1{font-size:1.5rem;font-weight:600;line-height:1.25}h2{font-size:1rem;font-weight:600}h3{font-size:.9rem;font-weight:600}.page-heading h2{font-size:1.1rem}.auth-story h1{font-size:1.85rem}.auth-form h2{font-size:1.2rem}
 button{font-size:.8125rem;font-weight:500;line-height:1.35}input,select,textarea{font-size:.875rem;line-height:1.4}label{font-size:.8125rem;font-weight:500}
 table{font-size:.8125rem}th{font-size:.75rem;font-weight:600}.muted,.notice{font-size:.8125rem}.metric-sub,.report-note,.footer-note,.error-message{font-size:.8rem}
 .metric,.attention-count,.cost-overview strong,.estimate-total strong{font-size:1.35rem;font-weight:600}.sumup-metric strong{font-size:1.4rem}.recovery-summary{font-size:1.25rem;font-weight:600}
 .text-link,button.text-link,button.link-button{font-weight:500}.nav button.active{font-weight:600}.nav-group summary,.action-menu>summary{font-weight:500}.action-menu>summary{font-size:.8125rem;padding:.45rem .7rem}
 .action-menu-items button,.action-menu-items a{font-size:.8125rem;font-weight:500;line-height:1.35;padding:.45rem .6rem}
 .dashboard-agenda .text-link{font-size:.8125rem;font-weight:500;text-decoration:none;line-height:1.4}.dashboard-agenda .text-link:hover{color:#075b73;background:var(--ludo-cedf7fa);border-radius:3px}.dashboard-agenda .section-header button{font-size:.8125rem;padding:.45rem .7rem}.agenda-row-date{font-size:.75rem}.agenda-row-title{font-size:.8125rem}.agenda-row .action-menu summary{font-size:.8125rem}
 .agenda-row .action-menu-items{min-width:min(260px,calc(100vw - 4rem));gap:.3rem}.agenda-row .action-menu-items .agenda-choice,.agenda-direct-action{font-size:.8125rem;font-weight:500;line-height:1.35;padding:.45rem .6rem;text-align:left}
 .agenda-choice{display:flex;flex-direction:column;gap:.18rem;align-items:flex-start}.agenda-choice small{font-size:.72rem;font-weight:400;color:var(--ludo-c627e8c);line-height:1.35}.agenda-choice-primary{background:var(--ludo-cedf7fa);border-color:#a9ccd6}.agenda-choice-context{font-size:.75rem;color:var(--ludo-c627e8c);margin:0 0 .25rem;padding:0 .25rem}
}

dialog:has(.invoice-finalize-layout){width:min(1200px,calc(100vw - 2rem))}.invoice-finalize-layout{display:grid;grid-template-columns:minmax(0,1fr) 19rem;gap:1.25rem;align-items:start}.invoice-finalize-preview{min-width:0}.invoice-finalize-pdf{display:block;width:100%;height:68vh;min-height:360px;border:1px solid var(--ludo-cdce5ea);background:var(--ludo-ceef2f5)}.invoice-finalize-layout form{min-width:0;font-size:.875rem}.invoice-finalize-layout form p{font-size:inherit}.invoice-finalize-layout .check{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;font-weight:400}.invoice-finalize-layout .check input{width:auto;min-height:0;flex:none;margin-top:.25rem}.invoice-finalize-layout .actions{margin-top:1rem}.invoice-finalize-layout .actions button{font-size:.875rem;padding:.55rem .75rem}@media(max-width:850px){.invoice-finalize-layout{grid-template-columns:1fr}.invoice-finalize-pdf{height:60vh}.invoice-finalize-layout form{width:100%}}

.calendar-mark.manifestation,.calendar-day.manifestation{background:#eaf4e9}.calendar-dots .manifestation{background:#488247}.agenda-carryover{margin-bottom:1rem}.planning-quantity{min-width:5rem;max-width:7rem}.product-location-line{align-items:end;border-bottom:1px solid var(--ludo-cedf0f3);padding:.7rem 0}.product-location-line button{align-self:end;margin-bottom:.3rem}
.table-scroll-dock{scrollbar-width:none}.table-scroll-dock::-webkit-scrollbar{height:0}.table-scroll-slider{position:sticky;left:0;display:block;height:20px;padding:0;margin:0;border:0;appearance:none;background:transparent;cursor:ew-resize}.table-scroll-slider::-webkit-slider-runnable-track{height:16px;background:var(--ludo-cd7e3e9);border-radius:6px}.table-scroll-slider::-webkit-slider-thumb{appearance:none;width:var(--scroll-thumb,40px);height:16px;background:#087f9e;border:2px solid var(--ludo-cd7e3e9);border-radius:6px}.table-scroll-slider::-moz-range-track{height:16px;background:var(--ludo-cd7e3e9);border-radius:6px}.table-scroll-slider::-moz-range-thumb{width:var(--scroll-thumb,40px);height:12px;background:#087f9e;border:2px solid var(--ludo-cd7e3e9);border-radius:6px}

.paid-date{white-space:nowrap;text-decoration:none;color:inherit;font-weight:400}.paid-date.provisional{color:#a85800}.paid-date:hover{text-decoration:underline}
#detail-print-view{display:none}
@page detailPortrait{size:A4 portrait;margin:12mm}
@media print{body.printing-dialog>*:not(#detail-print-view){display:none!important}body.printing-dialog #detail-print-view{display:block!important;position:static;width:auto;margin:0;padding:0;background:var(--ludo-surface);overflow:visible;max-height:none}#detail-print-view.detail-print-portrait{page:detailPortrait}#detail-print-view .dialog-heading{position:static;display:block;border:0;padding:0;background:var(--ludo-surface)}#detail-print-view h2{font-size:14pt}#detail-print-view h3{font-size:11pt;break-after:avoid}#detail-print-view .table-wrap{overflow:visible!important;max-height:none!important;border:0}#detail-print-view table{min-width:0!important;width:100%;table-layout:fixed;font-size:8pt}#detail-print-view th,#detail-print-view td{padding:4pt;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}#detail-print-view thead{display:table-header-group}#detail-print-view tr{break-inside:avoid}#detail-print-view a{color:inherit;text-decoration:none}#detail-print-view details{display:block}#detail-print-view .paid-date.provisional{color:#a85800}}

.dashboard-overview .listitem>.actions{flex:0 0 auto;flex-direction:column;align-items:flex-end;margin-left:auto}.agenda-row>.agenda-direct-action,.agenda-row>.action-menu{justify-self:end}.page-heading>.actions{margin-left:auto;justify-content:flex-end}.table-wrap th.action-column,.table-wrap td.action-cell{text-align:right}.action-cell>.actions{justify-content:flex-end}.action-cell .action-menu{display:inline-block;text-align:left}

/* Operational controls share a height; text links and calendar cells keep their own layout. */
@media screen{
 :is(.content,dialog,.topbar,.auth-form) button:not(.text-link):not(.link-button):not(.sort-heading):not(.dashboard-link):not(.calendar-day):not(.sumup-metric):not(.avatar):not(.agenda-choice):not(.mobile-menu){box-sizing:border-box;min-height:36px;padding-top:0;padding-bottom:0;display:inline-flex;align-items:center;justify-content:center;line-height:1.35}
 .action-menu>summary{box-sizing:border-box;min-height:36px;padding-top:0;padding-bottom:0;display:inline-flex;align-items:center;line-height:1.35}
 .actions{align-items:center}.page-heading>.actions,.section-header>.actions{align-self:center}.page-heading>.actions{align-items:flex-end}
}

#stock-policy .inline-choice input{width:auto;min-height:0;flex:none;margin:0}#stock-policy .stock-policy-actions{justify-content:flex-end;flex-wrap:nowrap;gap:.5rem}#stock-policy .stock-policy-actions button{white-space:nowrap}@media(max-width:420px){#stock-policy .stock-policy-actions{flex-wrap:wrap}}

/* Report downloads refer to the visible, validated selection. */
.report-downloads{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.report-download{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 .8rem;border:1px solid var(--ludo-ccad5dc);border-radius:7px;background:var(--ludo-surface);color:#087b9c;text-decoration:none;white-space:nowrap;font-size:.8125rem}.report-download:hover{background:var(--ludo-cedf5f8)}.report-download[aria-disabled="true"]{opacity:.5;cursor:default}

/* Group titles open the main view; the adjacent marker expands the submenu. */
.nav-group>summary{display:flex;align-items:center;gap:.15rem;padding:.15rem .25rem}.nav-group>summary::before{flex:none;width:16px;text-align:center}.nav-group>summary>.nav-group-link{flex:1;min-width:0;margin:0;padding:.5rem .35rem;text-align:left;font-size:inherit;color:inherit;border:0;background:transparent}.nav-group>summary>.nav-group-link:hover{color:#087b9c;background:var(--ludo-cedf7fa)}

.case-pending-count,.case-pending-questions>li>p,.case-pending-questions>li::marker{color:var(--ludo-cb42338)}

.page-sections[hidden]{display:none}

/* Inline edits and multiple dated supplier associations. */
.edit-affordance{font-size:.875em!important;font-style:italic}
.supplier-entry{display:grid;grid-template-columns:1.3fr 1.3fr 1fr auto;gap:.7rem;align-items:end;padding:.9rem 0;border-bottom:1px solid #dbe5eb}
.supplier-entry>button{margin:0}
.supplier-role{font-size:.875em}
.select-suggestions{display:flex;flex-direction:column;gap:.3rem;align-items:flex-start;font-size:.875rem;margin-top:.2rem}
.select-suggestions:empty{display:none}
@media(max-width:850px){.supplier-entry{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.supplier-entry{grid-template-columns:1fr}}

.supplier-remove{width:36px;height:36px;min-width:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--ludo-cb42338)}

.case-reading>.case-actions{width:100%;max-width:none;display:flex;flex-flow:row wrap;gap:.5rem;margin-top:.75rem}
.case-actions>button{flex:0 0 auto;white-space:nowrap}
.document-review-link,.document-review-ref,.document-review-ref .text-link{color:var(--ludo-cb42338)!important}
.document-case-ref{font-size:.8rem;line-height:1.35;margin:0 0 .4rem;max-width:27rem}
dialog:has(.profile-card),dialog:has(#profile-entry){width:min(640px,calc(100vw - 2rem))!important}
.profile-card{background:var(--ludo-ceef7fa);border:1px solid #dce9ef;border-radius:10px;padding:1.1rem}
.profile-identity{display:flex;align-items:center;gap:.7rem;margin-bottom:1rem}
.profile-lines{margin:0}.profile-lines>div{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;margin:.65rem 0}
.profile-lines dt{color:var(--ludo-c627e8c)}.profile-lines dd{margin:0}.profile-lines button{margin-left:.35rem}
.section-target{transition:background-color .4s,color .4s,box-shadow .4s}
.section-target-highlight{background:#dff3f8;color:#087b9c;box-shadow:none;outline:4px solid #dff3f8;border-radius:3px}
.section-target-highlight::before{content:"—";display:inline-block;margin-right:.45em;color:#087f9e}
@media(prefers-reduced-motion:reduce){.section-target{transition:none}}

.article-detail-actions{margin:.9rem 0 1.1rem;justify-content:flex-end}
.article-facts{border:1px solid var(--ludo-cdce5ea);border-radius:8px;background:var(--ludo-cf8fafb);padding:.4rem 1rem;margin-bottom:1rem}
.article-fact,.article-facts>p{display:grid;grid-template-columns:220px minmax(0,1fr);gap:.75rem;margin:0;padding:.65rem 0;border-bottom:1px solid var(--ludo-ce2eaf0)}
.article-facts>:last-child{border-bottom:0}
.article-fact .muted{margin:.2rem 0 0}
.article-facts .text-link{font-size:.875em;font-style:italic}
@media(max-width:600px){.article-fact,.article-facts>p{grid-template-columns:1fr;gap:.2rem}.article-detail-actions{justify-content:flex-start}}
@media print{body.printing-dialog #modal[open]{display:none!important}#detail-print-view .article-facts{background:var(--ludo-surface);border:0;padding:0}#detail-print-view .article-fact,#detail-print-view .article-facts>p{grid-template-columns:145pt minmax(0,1fr);gap:8pt;padding:6pt 0;break-inside:avoid}#detail-print-view .print-record{border:1px solid var(--ludo-cdce5ea);padding:7pt;margin:0 0 8pt;break-inside:avoid}#detail-print-view .print-record dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:5pt 12pt}#detail-print-view .print-record dl>div{min-width:0;overflow-wrap:anywhere}#detail-print-view .print-record dt{font-size:8pt;font-weight:700;color:var(--ludo-c667b88)}#detail-print-view .print-record dd{margin:0;font-size:9pt}#detail-print-view .print-created{font-size:8pt;color:var(--ludo-c667b88);margin-top:12pt}#detail-print-view summary{font-weight:700;list-style:none}#detail-print-view summary::-webkit-details-marker{display:none}}

.article-facts>.notice{display:block}

/* Shared compact tables: labels wrap at words; short identifiers retain their integrity. */
@media screen{.table-wrap table,.payments-scroll table{width:100%;min-width:0;table-layout:auto}.table-wrap th,.payments-scroll th{white-space:normal!important;min-width:0;padding:.55rem .6rem;vertical-align:bottom}.table-wrap .sort-heading,.payments-scroll .sort-heading{display:block!important;white-space:normal!important;text-wrap:balance;max-width:17ch;line-height:1.25}.table-wrap td,.payments-scroll td{padding:.55rem .6rem}.table-wrap td[data-cell-layout="compact"],.table-wrap td.compact-cell,.table-wrap td.article-cell,.table-wrap td[data-cell-layout="compact"]>.text-link,.table-wrap td[data-cell-layout="compact"]>a,.table-wrap .article-cell a,.table-wrap .article-cell .text-link{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;width:auto}.table-wrap td.article-cell{min-width:12ch;max-width:25ch}.table-wrap td.reference-cell,.table-wrap td.date-cell{white-space:nowrap!important;min-width:0;width:1%}.table-wrap td.reference-cell>a,.table-wrap td.reference-cell>.text-link,.table-wrap td.date-cell>.text-link{white-space:nowrap!important}.table-wrap td.action-cell{min-width:0}.table-wrap .action-menu>summary{white-space:nowrap}.payments-scroll col:not(.payment-description-column){width:auto}}
@media print{table th,.sort-heading{white-space:normal!important;text-wrap:balance;line-height:1.25}table th,table td{padding:4pt!important}table td.reference-cell,table td.date-cell{white-space:normal!important}}

/* Keep account controls on the right when this page has no searchable list. */
.topbar .identity{margin-left:auto}

/* Summary cards share feedback even when they contain several separate links. */
.dashboard-summary>.card:hover,.dashboard-summary>.card:focus-within{border-color:#087f9e;background:var(--ludo-cf7fcfd)}

/* Align action buttons with the controls below their labels. */
.actions{align-items:flex-end}
.actions>label{align-items:flex-start}
:is(.actions,.filters)>label>:is(select,input:not([type="checkbox"]):not([type="radio"])){min-height:36px;padding-top:0;padding-bottom:0}

/* Give article names a bounded share instead of all surplus table width. */
.table-wrap td.article-cell[data-cell-layout]{max-width:none}
.table-wrap td.article-cell>.text-link,.table-wrap td.article-cell>a{display:inline-block;max-width:25ch}

/* Wide tables distribute width by column content instead of expanding one name column. */
@media screen{.table-wrap table[data-balanced-columns]{table-layout:fixed;min-width:950px}.table-wrap table[data-balanced-columns]:has(th:nth-child(12)){min-width:1150px}}

/* Price entries and detail controls share the same reading order. */
#entry .price-edit-grid{grid-template-columns:minmax(0,1fr);max-width:42rem}.price-edit-grid .price-article{display:block}.price-edit-grid .price-article .fixed-context{display:inline;padding:0}.price-help{line-height:1.6}.modal-detail-actions{justify-content:flex-end;margin:0 0 1.1rem}.actions .print-control{font-size:inherit;padding-left:1rem;padding-right:1rem}
.dashboard-overview .action-menu>summary,.dashboard-overview button:not(.text-link):not(.agenda-choice){background:var(--ludo-surface);color:var(--ludo-c243240);border:1px solid var(--ludo-ccad5dc)}.dashboard-overview .action-menu.invoice-action>summary{color:var(--ludo-cb42336)}.dashboard-overview .action-menu>summary:hover,.dashboard-overview button:not(.text-link):not(.agenda-choice):hover{background:var(--ludo-cedf5f8)}

.price-source{display:block;font-size:.8rem;line-height:1.4;margin-top:.25rem}

.dashboard-overview .action-menu>summary,.dashboard-overview button:not(.text-link):not(.agenda-choice){width:auto;min-width:0;max-width:100%;justify-content:center;text-align:center}.dashboard-agenda .agenda-row>.action-menu{width:auto}

input::placeholder,textarea::placeholder{color:#87939e;opacity:1;font-weight:400}

/* Shared action controls, including agenda, document pages and nested dialogs. */
@media screen{
#app .content button:not(.date-picker button):not(.card):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.draft-remove-line):not(.draft-tax-toggle):not(.draft-move-line):not(.draft-article-popup button):not(.document-partner-trigger):not(.document-partner-results button),#modal button:not(.date-picker button):not(.text-link):not(.link-button):not(.sort-heading):not([data-close]):not(.draft-remove-line):not(.draft-tax-toggle):not(.draft-move-line):not(.draft-article-popup button):not(.document-partner-trigger):not(.document-partner-results button),.content .button,dialog .button,.content .action-menu>summary,dialog .action-menu>summary{box-sizing:border-box;background:var(--ludo-cfff);color:var(--ludo-c243240);border:1px solid var(--ludo-ccad5dc);width:max-content;min-width:0;max-width:100%;min-height:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.35;padding:0 .8rem;font-weight:500;white-space:nowrap}
.content .action-menu>summary:hover,dialog .action-menu>summary:hover,.content button.primary:hover,dialog button.primary:hover{background:var(--ludo-cedf5f8);border-color:var(--ludo-ccad5dc)}
.content .action-menu>summary::after,dialog .action-menu>summary::after{color:inherit}
.content .invoice-action>summary,dialog .invoice-action>summary,.content button.invoice-action,dialog button.invoice-action{color:var(--ludo-cb42336)}
.agenda-row>.action-menu,.dashboard-agenda .agenda-row>.action-menu{width:auto}
.action-menu-items button,.action-menu-items a{width:100%!important;min-width:0!important;text-align:left!important;justify-content:flex-start!important}
.view-tabs{flex-wrap:wrap}
.draft-editor-choices{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap;margin:1rem 1.3rem}.draft-editor-choices label{min-width:14rem;flex:1}.draft-editor-choices .draft-field-label{position:static;clip-path:none;width:auto;height:auto;margin:0;overflow:visible;white-space:normal}.draft-editor-choices select{font-size:.9rem;font-weight:400;text-transform:none;width:100%;height:auto}
.draft-paper-title .draft-kind-heading{font:bold 17pt/20pt Arial,Helvetica,sans-serif}.draft-recipient-name{display:block;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:pretty;line-height:12pt}.draft-recipient{height:auto}.draft-letterhead{min-height:191pt;height:191pt}.draft-paper-wrap.overview{overflow:auto}.draft-paper-wrap{padding-inline:1.3rem}.history-positions{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.875rem}.history-recipient{white-space:normal}
}

@media screen{.content button.primary[aria-pressed="true"],.content .view-tabs button.primary{border-color:#087f9e;box-shadow:inset 0 -2px #087f9e}}

/* Document recipient choice stays bounded; calendar cells keep their own compact grid. */
.document-partner-picker{position:relative;min-width:0}.document-partner-value{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;clip-path:inset(50%)}
#draft-entry .document-partner-trigger{width:100%;min-width:0;max-width:100%;text-align:left;justify-content:space-between;min-height:36px;height:36px;white-space:nowrap}
.document-partner-popup{position:absolute;inset:calc(100% + 4px) 0 auto;z-index:30;padding:.5rem;border:1px solid var(--ludo-ccad5dc);border-radius:7px;background:var(--ludo-cfff);box-shadow:0 8px 24px #20334226}.document-partner-popup[hidden]{display:none}.document-partner-popup input{width:100%;margin-bottom:.4rem}.document-partner-results{max-height:min(16rem,34vh);overflow-y:auto;overscroll-behavior:contain}
#draft-entry .document-partner-results button{display:block;width:100%;min-width:0;max-width:100%;min-height:36px;border:0;border-radius:4px;padding:.4rem .5rem;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:400}#draft-entry .document-partner-results button:hover,#draft-entry .document-partner-results button[aria-selected="true"]{background:var(--ludo-ce8f5f8)}

#draft-entry .draft-item:has(.draft-move-line){min-height:42pt}#draft-entry .draft-move-line{position:absolute;top:22pt;width:16pt;min-width:0;min-height:20pt;height:20pt;padding:0;border:0;background:transparent;font-size:12pt;color:var(--ludo-c526975)}#draft-entry .draft-move-up{right:-36pt}#draft-entry .draft-move-down{right:-18pt}

@media screen{dialog .dialog-heading{justify-content:flex-start;gap:.75rem;cursor:grab;touch-action:none}dialog .dialog-heading h2{order:-1;flex:1;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}dialog .dialog-heading button{flex:none;cursor:pointer}dialog.popup-dragging .dialog-heading{cursor:grabbing;user-select:none}}
/* Shared screen palette: all action controls, including popup and menu actions. */
@media screen {
  body:not(.printing-dialog) :is(button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button)),input[type="button"],input[type="submit"],input[type="reset"],.button,.action-menu>summary,.action-menu-items>a) {
    background:var(--ludo-ceaf3fb)!important;
    border-color:var(--ludo-cb2cadd)!important;
    color:var(--ludo-c000)!important;
  }
  body:not(.printing-dialog) :is(button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button)),input[type="button"],input[type="submit"],input[type="reset"],.button,.action-menu>summary,.action-menu-items>a) * {
    color:var(--ludo-c000)!important;
  }
  body:not(.printing-dialog) :is(button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button)),input[type="button"],input[type="submit"],input[type="reset"],.button,.action-menu>summary,.action-menu-items>a):hover {
    background:var(--ludo-cdcecf9)!important;
    border-color:var(--ludo-c8cabc4)!important;
  }
  body:not(.printing-dialog) :is(button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button)),input[type="button"],input[type="submit"],input[type="reset"],.button,.action-menu>summary,.action-menu-items>a):active,
  body:not(.printing-dialog) button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button))[aria-pressed="true"],
  body:not(.printing-dialog) .view-tabs button.primary,
  body:not(.printing-dialog) .action-menu[open]>summary {
    background:var(--ludo-ccfe4f5)!important;
    border-color:var(--ludo-c779fbf)!important;
  }
  body:not(.printing-dialog) :is(button.invoice-action,.invoice-action>summary,button.trash-button,button.draft-remove-line,button[data-issue-draft],button[data-send-invoice],button[data-admin-remove],button[data-remove-line],button[data-site-remove],button[data-confirm-supplier-remove],button[data-remove-supplier],button[data-remove-arrival-proof],button[data-remove-count-proof],button[data-remove-distribution-proof],button[data-remove-supplier-proof]) {
    background:var(--ludo-cfcebec)!important;
    border-color:var(--ludo-ce0b8bd)!important;
    color:var(--ludo-c000)!important;
  }
  body:not(.printing-dialog) :is(button.invoice-action,.invoice-action>summary,button.trash-button,button.draft-remove-line,button[data-issue-draft],button[data-send-invoice],button[data-admin-remove],button[data-remove-line],button[data-site-remove],button[data-confirm-supplier-remove],button[data-remove-supplier],button[data-remove-arrival-proof],button[data-remove-count-proof],button[data-remove-distribution-proof],button[data-remove-supplier-proof]):hover,
  body:not(.printing-dialog) .invoice-action[open]>summary {
    background:var(--ludo-cf7dce0)!important;
    border-color:var(--ludo-cc78f98)!important;
  }
  body:not(.printing-dialog) :is(button:where(:not(.card):not(.dashboard-link):not(.sumup-metric):not(.text-link):not(.link-button):not(.sort-heading):not(.calendar-day):not(.agenda-choice):not(.avatar):not(.nav button):not(.date-picker button):not(.document-partner-results button):not(.draft-article-popup button)),input[type="button"],input[type="submit"],input[type="reset"]):disabled,
  body:not(.printing-dialog) .button[aria-disabled="true"] {
    background:var(--ludo-ceef1f4)!important;
    border-color:#d3dbe1!important;
    color:var(--ludo-c000)!important;
    cursor:not-allowed;
  }
  body:not(.printing-dialog) .action-menu>summary::after,
  body:not(.printing-dialog) .action-menu>summary::marker {
    color:inherit!important;
  }
}

/* Main popup actions stay beside the title; original controls retain form ownership and handlers. */
@media screen{
 dialog .dialog-heading{flex-wrap:wrap;z-index:10}
 dialog .dialog-heading h2{flex:1 1 10rem}
 dialog .popup-actions{flex:0 1 auto;gap:.45rem;margin:0;align-items:stretch;justify-content:flex-start;cursor:default}
 #modal .popup-actions button{width:max-content;min-width:0;max-width:100%;min-height:36px;height:36px;padding:0 .8rem;font-size:.875rem;line-height:1.35;white-space:nowrap;flex:0 0 auto;align-self:center}
 dialog .popup-action-source{display:none!important}
 dialog .actions:has(>.popup-action-source):not(:has(>:not(.popup-action-source))){display:none}
 .draft-recipient-email{font-size:.9rem;color:var(--ludo-c526975)}
}
@media(max-width:760px){dialog .popup-actions{order:5;flex-basis:100%}#modal .popup-actions button{flex:1 1 8rem;max-width:none}}

/* Article choice stays inside its editing dialog; row controls retain compact dimensions. */
@media screen{
 .draft-article-value{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;clip-path:inset(50%)}
 #modal #draft-entry .draft-article-trigger{width:100%;min-width:0;max-width:100%;min-height:17pt;height:17pt;padding:0 2pt;border:1px dotted #c8d6df;border-radius:0;font:10pt/12pt Arial,Helvetica,sans-serif;text-align:left;justify-content:space-between;white-space:nowrap;overflow:hidden;background:transparent;color:var(--ludo-c000)}
 #modal .draft-article-popup{position:absolute;z-index:50;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:.35rem;border:1px solid var(--ludo-ccad5dc);border-radius:7px;background:var(--ludo-cf7fcfd);box-shadow:0 8px 24px #20334226}
 #modal .draft-article-popup button{display:block;width:100%;min-width:0;max-width:100%;min-height:30px;padding:.25rem .5rem;border:0;border-radius:3px;background:transparent;color:var(--ludo-c000);text-align:left;font-size:.875rem;font-weight:400;line-height:1.35;white-space:normal}
 #modal .draft-article-popup button[aria-selected="true"],#modal .draft-article-popup button:hover,#modal .draft-article-popup button:focus{background:var(--ludo-cedf5f8)}
}

/* Document choice fields share dimensions; recipient options are list rows. */
@media screen{
 #modal #draft-entry .draft-editor-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 #modal #draft-entry .draft-editor-choices>label{min-width:0;display:flex;flex-direction:column}
 #modal #draft-entry .draft-editor-choices>label>select[name="kind"]{flex:1;min-height:36px;height:36px;padding-block:0}
 #modal #draft-entry .draft-editor-choices .document-partner-picker{flex:1;display:flex;align-items:stretch}
 #modal #draft-entry .draft-editor-choices .document-partner-trigger{width:100%;min-width:0;max-width:100%;min-height:36px;height:36px;padding:0 .8rem;font-size:.875rem;line-height:1.35;text-align:left;white-space:nowrap}
 #modal #draft-entry [data-draft-fit]{align-self:end;min-height:36px}
 #modal #draft-entry .document-partner-results button{width:100%;min-width:0;min-height:32px;height:auto;padding:.35rem .5rem;background:var(--ludo-cfff);border:0;border-radius:3px;text-align:left;font-size:.875rem;line-height:1.35;white-space:normal}
 #modal #draft-entry .document-partner-results button:hover,#modal #draft-entry .document-partner-results button:focus,#modal #draft-entry .document-partner-results button[aria-selected="true"]{background:var(--ludo-ce8f5f8)}
}
@media screen and (max-width:760px){#modal #draft-entry .draft-editor-choices{grid-template-columns:1fr}#modal #draft-entry [data-draft-fit]{width:100%;min-width:0}}

@media screen{#modal #draft-entry .draft-invoice-columns>button{width:auto;min-width:0;max-width:100%;min-height:0;height:auto;padding:0 8.5pt;border:0;border-right:.5pt solid var(--ludo-cccc);border-radius:0;background:transparent;color:var(--ludo-c000);text-align:left;justify-content:flex-start;font:italic 10pt/12pt Arial,Helvetica,sans-serif;white-space:nowrap}#modal #draft-entry .draft-invoice-columns>button .sort-arrow{color:#087b9c}}


/* User-sized popups retain readable controls and scroll their contents. */
@media screen{
 #modal{container-type:inline-size;container-name:popup;transform:translate(0,0)}
 #modal.popup-resizing{user-select:none}
 #modal.popup-resizing iframe{pointer-events:none}
}
@container popup (max-width:650px){
 #modal .invoice-finalize-layout,#modal .form-grid,#modal .split{grid-template-columns:1fr}
 #modal #draft-entry .draft-editor-choices{grid-template-columns:1fr}
 #modal #draft-entry [data-draft-fit]{width:100%;min-width:0}
 #modal .popup-actions{order:5;flex-basis:100%}
 #modal .popup-actions button{flex:1 1 8rem;max-width:none}
}

@media screen{
 #modal .popup-resize-handle{position:fixed;z-index:100;touch-action:none}
 #modal [data-popup-resize="n"],#modal [data-popup-resize="s"]{left:14px;right:14px;height:8px;cursor:ns-resize}
 #modal [data-popup-resize="n"]{top:0}
 #modal [data-popup-resize="s"]{bottom:0}
 #modal [data-popup-resize="e"],#modal [data-popup-resize="w"]{top:14px;bottom:14px;width:8px;cursor:ew-resize}
 #modal [data-popup-resize="e"]{right:0}
 #modal [data-popup-resize="w"]{left:0}
 #modal [data-popup-resize="nw"],#modal [data-popup-resize="ne"],#modal [data-popup-resize="sw"],#modal [data-popup-resize="se"]{width:14px;height:14px}
 #modal [data-popup-resize="nw"]{left:0;top:0;cursor:nwse-resize}
 #modal [data-popup-resize="ne"]{right:0;top:0;cursor:nesw-resize}
 #modal [data-popup-resize="sw"]{left:0;bottom:0;cursor:nesw-resize}
 #modal [data-popup-resize="se"]{right:0;bottom:0;cursor:nwse-resize}
}

@media print{#modal{transform:none}}

@media screen{
 #modal.invoice-editor-dialog .dialog-heading h2{flex-basis:0}
 #modal .draft-internal-notes{padding:1rem;margin-top:1rem;border:1px solid var(--ludo-ccad5dc);border-left:3px solid #087f9e;border-radius:7px;background:var(--ludo-cfff)}
 #modal .draft-internal-notes h3{margin:0 0 .5rem}
 #modal .draft-internal-notes textarea{min-height:7rem}
}

/* Agenda printing uses selected content, not a clone of the interactive page. */
.agenda-print-choices{border:1px solid var(--ludo-cdce5ea);border-radius:7px;margin:0 0 1rem;padding:.75rem;display:flex;gap:1rem;flex-wrap:wrap}
.agenda-print-choices .check{display:flex;flex-direction:row;align-items:center;font-weight:400}
.agenda-print-preview{margin-top:1rem;padding:1rem;border:1px solid var(--ludo-cdce5ea);background:var(--ludo-surface);overflow:auto}
.agenda-print-heading p{margin:.3rem 0;color:var(--ludo-c526975)}
.agenda-print-heading h1{font-size:1.5rem}
.agenda-print-calendar{table-layout:fixed;width:100%;font-size:.75rem}
.agenda-print-calendar th{text-align:center;padding:.4rem}
.agenda-print-calendar td{min-width:0;width:14.285%;height:5rem;border:1px solid var(--ludo-ccad5dc);padding:.35rem;vertical-align:top}
.agenda-print-calendar td p{margin:.3rem 0;font-size:inherit;line-height:1.25}
.agenda-print-calendar .outside{background:#f5f5f5;color:#89949b}
.agenda-print-sheet small,.agenda-print-preview small{display:block;color:var(--ludo-c526975)}
.agenda-print-list{margin-top:1rem}
.agenda-print-list table{width:100%;table-layout:fixed}
.agenda-print-list th:first-child,.agenda-print-list td:first-child{width:6.5rem}
.agenda-print-list th:last-child,.agenda-print-list td:last-child{width:9rem}
.agenda-print-note{margin-top:1rem;font-size:.8rem;color:var(--ludo-c526975)}
@page agendaLandscape{size:A4 landscape;margin:12mm}
@media print{
 #detail-print-view.agenda-print-landscape{page:agendaLandscape}
 #detail-print-view .agenda-print-heading h1{font-size:16pt;margin:.3rem 0}
 #detail-print-view .agenda-print-calendar{font-size:8pt;table-layout:fixed}
 #detail-print-view .agenda-print-calendar td{height:20mm;padding:3pt;border:1px solid #aaa;vertical-align:top;min-width:0}
 #detail-print-view .agenda-print-calendar th{padding:4pt;text-align:center}
 #detail-print-view .agenda-print-calendar tr{break-inside:avoid}
 #detail-print-view .agenda-print-list table{font-size:9pt}
 #detail-print-view .agenda-print-list td{padding:5pt}
 #detail-print-view .agenda-print-list h2{font-size:12pt}
}

@media screen{
 .section-header{gap:.75rem;flex-wrap:wrap}
 .actions{align-items:center}
 .action-menu-items button{height:auto!important;min-height:36px;white-space:normal!important}
}
@media screen and (max-width:440px){
 #app .content .actions button,#modal .popup-actions button{height:auto;min-height:36px;white-space:normal;overflow-wrap:anywhere}
}

@media screen{
 .topbar button:not(.avatar):not(.mobile-menu){width:max-content;min-height:36px;height:36px;font-size:.875rem;white-space:nowrap}
 .action-menu-items{min-width:max-content}
}

@media screen and (max-width:1200px){.dashboard-overview{grid-template-columns:1fr}}

/* The overview uses Encaissement as its own compact width reference. */
@media screen{
 #app .content .dashboard-overview button:not(.text-link):not(.agenda-choice):not(.action-menu-items button),#app .content .dashboard-overview .action-menu>summary{width:max-content!important;min-width:0;max-width:100%}
 #app .content .dashboard-overview .agenda-row>.action-menu{width:max-content}
 body:has(.dashboard-overview) .topbar button:not(.avatar):not(.mobile-menu){width:max-content}
}

@media screen{.content>.page-heading:has(h2){margin-top:1.6rem;background:var(--ludo-cf3f6f8);scroll-margin-top:1rem}}

/* Gift views allocate space to their text, not to empty numeric columns. */
@media screen{
 #app .content .event-gifts-view button:not(.text-link):not(.sort-heading){width:max-content!important}
 #app .content .planned-gifts-view button:not(.text-link):not(.sort-heading){width:max-content!important}
 .event-gifts-view>.page-heading,.planned-gifts-view>.page-heading{margin-top:1.6rem;scroll-margin-top:1rem;background:var(--ludo-cf3f6f8)}
 .event-gifts-view table,.planned-gifts-view table{table-layout:auto;min-width:0}
 .event-gifts-view th:nth-child(1),.event-gifts-view td:nth-child(1),.event-gifts-view th:nth-child(2),.event-gifts-view td:nth-child(2),.event-gifts-view th:nth-child(3),.event-gifts-view td:nth-child(3),.event-gifts-view th:last-child,.event-gifts-view td:last-child{width:1%;white-space:nowrap!important}
 .event-gifts-view th:nth-child(4),.event-gifts-view td:nth-child(4){width:auto;min-width:24ch;white-space:normal!important;overflow-wrap:anywhere}
 .event-gifts-view .sort-heading,.planned-gifts-view .sort-heading{white-space:nowrap!important;max-width:none}
 .event-gifts-view .actions{display:grid;gap:.4rem}
 .planned-gifts-view th:nth-child(1),.planned-gifts-view td:nth-child(1),.planned-gifts-view th:nth-child(4),.planned-gifts-view td:nth-child(4),.planned-gifts-view th:nth-child(5),.planned-gifts-view td:nth-child(5),.planned-gifts-view th:last-child,.planned-gifts-view td:last-child{width:1%;white-space:nowrap!important}
 .planned-gifts-view td:nth-child(2){min-width:16ch;max-width:28ch}
 .planned-gifts-view td:nth-child(3){min-width:18ch}
 .planned-gifts-view td:nth-child(6){min-width:18ch}
 .planned-gifts-view .pill{white-space:normal;overflow-wrap:anywhere;max-width:100%}
 .shared-gift-proof{margin:.75rem 0 1rem;overflow-wrap:anywhere}
}

/* Compact controls follow the actions in this view, never an unrelated page. */
@media screen{
 .dashboard-overview .section-header{flex-wrap:nowrap}
 .dashboard-overview .section-header>h2{min-width:0}
 .dashboard-overview .section-header>button{flex:0 0 auto;margin-left:auto}
 :is(.content,#modal) :is([data-calendar-step],.trash-button){width:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important}
 .content-sized-table{table-layout:auto!important;min-width:0!important}
 .content-sized-table :is(th,td){width:auto;overflow-wrap:anywhere}
 .content-sized-table .sort-heading{max-width:none}
 .content-sized-table .pill{white-space:normal!important;max-width:100%;overflow-wrap:anywhere}
 .content-sized-table td :is(.text-link,a){max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 .stock-sites-table :is(th,td):nth-child(2),.stock-sites-table :is(th,td):nth-child(3),.stock-sites-table :is(th,td):nth-child(4),.stock-sites-table :is(th,td):nth-child(5){width:1%;white-space:nowrap!important}
 .stock-sites-table :is(th,td):nth-child(6){min-width:18ch}
 .stock-sites-table :is(th,td):last-child{min-width:25ch}
 .stock-sites-table th:nth-child(4) .sort-heading{max-width:17ch}
 .stock-sites-table th:nth-child(6) .sort-heading{max-width:18ch}
 .content-sized-table.planning-table :is(th,td):nth-child(1){width:1%;min-width:0;padding-right:.3rem;white-space:nowrap!important}
 .planning-table :is(th,td):nth-child(2),.planning-table td:nth-child(4),.planning-table td:nth-child(5),.planning-table td:nth-child(8),.planning-table td:nth-child(9){width:1%;white-space:nowrap!important;overflow-wrap:normal}
 .content-sized-table.planning-table td:nth-child(3){width:1%;min-width:22ch;max-width:40ch}
 .content-sized-table.planning-table td:nth-child(3) :is(a,button){white-space:nowrap!important;overflow-wrap:normal!important}
 .content-sized-table.planning-table td:nth-child(6){width:auto;min-width:20ch;overflow-wrap:normal!important}
 .content-sized-table.planning-table td:nth-child(7){width:auto;min-width:30ch;overflow-wrap:normal!important}
 .planning-table td:last-child{width:1%;min-width:max-content}
 .planning-table td:last-child button:not(.text-link){width:max-content!important}
 .planning-table .planning-quantity{width:5rem;min-width:5rem;max-width:5rem}
 .planning-table th:nth-child(4) .sort-heading,.planning-table th:nth-child(5) .sort-heading,.planning-table th:nth-child(9) .sort-heading{max-width:15ch}
 .transports-table :is(th,td):nth-child(1),.transports-table :is(th,td):nth-child(5),.transports-table :is(th,td):nth-child(6),.transports-table :is(th,td):nth-child(7){width:1%;white-space:nowrap!important}
 .transports-table td:nth-child(10){min-width:20ch}
 .transports-table td:nth-child(11){min-width:22ch}
 .transports-table td:last-child{min-width:24ch}
 .movements-table td:nth-child(5){width:1%;white-space:nowrap!important}
 .movements-table td:nth-child(6),.movements-table td:nth-child(7),.movements-table td:nth-child(8){min-width:18ch}
 .purchases-table td:nth-child(5),.purchases-table td:nth-child(6){width:1%;white-space:nowrap!important}
 .purchases-table td:nth-child(3){min-width:22ch}
 .purchases-table td:nth-child(7){min-width:22ch}
 .gift-overview-table td:nth-child(5),.gift-overview-table td:nth-child(6){width:1%;white-space:nowrap!important}
 .gift-overview-table td:nth-child(3),.gift-overview-table td:nth-child(4){min-width:18ch}
 .gift-overview-table td:last-child{width:1%;min-width:max-content}
}

@media screen{
 .page-heading>div:first-child{min-width:0;flex:1 1 auto}
 .page-heading>.actions{flex:0 0 auto;max-width:65%;justify-content:flex-end}
 .partners-table :is(th,td):nth-child(2),.partners-table :is(th,td):nth-child(3),.partners-table :is(th,td):nth-child(7){width:1%;white-space:nowrap!important}
 .partners-table td:nth-child(1){min-width:24ch}
 .partners-table td:nth-child(4){min-width:24ch}
 .partners-table td:nth-child(5){min-width:22ch;overflow-wrap:anywhere}
 .partners-table td:nth-child(6){min-width:30ch}
 .partners-table td:nth-child(6) .document-link{max-width:none}
 .partners-table td:nth-child(8){width:1%;white-space:nowrap!important}
 .partners-table th:nth-child(8) .sort-heading{max-width:18ch}
 .purchases-table td:nth-child(6),.costs-table td:nth-child(3),.costs-table td:nth-child(4),.costs-table td:nth-child(5),.costs-table td:last-child{white-space:nowrap!important;min-width:16ch}
 .costs-table td:nth-child(2){min-width:24ch;width:30%}
 .costs-table td:nth-child(5)>button,.costs-table td:last-child>button{white-space:nowrap!important}
 .purchases-table td:nth-child(7){white-space:nowrap!important}
 .transports-table :is(th,td):nth-child(8){width:1%;white-space:nowrap!important}
 .planned-gifts-view .gift-overview-table :is(th,td):nth-child(4){width:auto;white-space:normal!important}
 .planned-gifts-view .gift-overview-table :is(th,td):nth-child(5),.planned-gifts-view .gift-overview-table :is(th,td):nth-child(6){width:1%;white-space:nowrap!important}
 .planned-gifts-view .gift-overview-table td:nth-child(7){min-width:16ch}
 .planned-gifts-view .gift-overview-table td:nth-child(8){min-width:18ch}
}
@media screen and (max-width:760px){.page-heading>.actions{max-width:100%;align-self:flex-start;justify-content:flex-start;margin-left:0}}

/* Content determines column widths; scalar values and controls stay intact. */
@media screen{
 .content-sized-table th .sort-heading{max-width:20ch;white-space:normal!important}
 .content-sized-table td[data-column-kind="scalar"],.content-sized-table td[data-column-kind="short"],.content-sized-table td[data-column-kind="choice"]{width:1%;white-space:nowrap!important;overflow-wrap:normal}
 .content-sized-table td[data-column-kind="scalar"] :is(a,button),.content-sized-table td[data-column-kind="short"] :is(a,button){white-space:nowrap!important}
 .content-sized-table td[data-column-kind="prose"]{min-width:22ch;white-space:normal!important;overflow-wrap:anywhere}
 .content-sized-table td[data-column-kind="text"]{min-width:12ch;max-width:48ch}
 .content-sized-table td[data-column-kind="action"]{width:1%;white-space:nowrap!important}
 .content-sized-table td[data-column-kind="action"] button:not(.text-link):not(.link-button){width:max-content!important;max-width:100%;white-space:nowrap}
 .content-sized-table td :is(.pill,.document-link){white-space:normal!important;max-width:100%;overflow-wrap:anywhere}
 .intelligent-table td.article-cell{width:auto;min-width:22ch;max-width:48ch}
 .intelligent-table{width:100%}
 .page-heading>.actions{max-width:100%;flex:0 1 auto}
 #modal .popup-actions button{flex:0 0 auto;max-width:100%}
 .view-tabs,.tabs{display:flex;flex-wrap:wrap;gap:.5rem}
 .content .view-tabs button,.content .tabs button{width:max-content!important;flex:0 0 auto}
 .agenda-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1rem;align-items:start}
 .agenda-calendar{margin:0;min-width:0}
 .agenda-priorities{min-width:0}
 .agenda-priorities .agenda-carryover{margin:0 0 1rem;padding:1rem}
 .agenda-priorities .agenda-row{grid-template-columns:6.5rem minmax(0,1fr) auto;gap:.5rem}
 .agenda-priorities .agenda-row>button:not(.text-link),.agenda-priorities .action-menu>summary{width:max-content!important}
 .agenda-calendar .calendar-day{min-height:64px}
 .agenda-calendar .calendar-toolbar{flex-wrap:wrap;gap:.5rem}
 .sumup-metric{width:auto!important;height:auto!important;white-space:normal!important}
}
@media screen and (max-width:1050px){.agenda-layout{grid-template-columns:1fr}}

/* Paired panels stretch equally; small statistical tables stay near their labels. */
@media screen{
 .dashboard-overview{align-items:stretch}
 .dashboard-overview>section{height:100%}
 .statistics-breakdown{width:max-content;max-width:100%;margin-bottom:1.5rem}
 .statistics-breakdown table{width:auto;min-width:0}
 .statistics-breakdown .sort-heading{white-space:nowrap!important;max-width:none!important}
 .statistics-breakdown td[data-column-kind="text"],.statistics-breakdown td[data-column-kind="text"] :is(a,button){white-space:nowrap!important;max-width:none}
}

@media screen{
 table[data-balanced-columns] .sort-heading{max-width:none;text-wrap:wrap}
 .content-sized-table td[data-column-kind="prose"],.content-sized-table td[data-column-kind="prose"] :is(a,button){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .content-sized-table td[data-column-kind="prose"]{max-width:60ch}
 .sumup-supplemental{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:stretch}
 .sumup-supplemental>section{min-width:0}
 .sumup-supplemental .content-sized-table{width:auto;min-width:100%}
 .report-preview{width:210mm;max-width:100%;margin-left:auto;margin-right:auto;padding:12mm}
 .report-preview .table-wrap{max-height:none}
 .report-compact-table table{width:auto;min-width:0}
}
.report-record{margin:1rem 0;padding:1rem;border:1px solid var(--ludo-cdce5ea);border-radius:7px;background:var(--ludo-surface)}
.report-record h3{margin:0 0 .75rem}
.report-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem;margin:0}
.report-record dt{font-size:.8rem;color:var(--ludo-c667b88);font-weight:600}
.report-record dd{margin:.2rem 0 0;white-space:normal;overflow-wrap:anywhere}
.report-record .report-field-wide{grid-column:1/-1}
@media screen and (max-width:1050px){.sumup-supplemental{grid-template-columns:1fr}}
@media print{.report-record{break-inside:avoid;padding:8pt}.report-record dl{gap:6pt 10pt}.report-record dt{font-size:8pt}.report-record dd{font-size:9pt}}

@media screen{.planning-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;width:max-content}.planning-row-actions .text-link{white-space:nowrap!important}}

@media screen{.statistics-breakdown .table-wrap{width:fit-content;max-width:100%}.statistics-breakdown table{width:max-content!important;min-width:0!important}.content-sized-table td[data-column-kind="text"],.content-sized-table td[data-column-kind="text"] :is(a,button){white-space:normal!important;overflow-wrap:anywhere!important}.statistics-breakdown td[data-column-kind="text"],.statistics-breakdown td[data-column-kind="text"] :is(a,button){white-space:nowrap!important;overflow-wrap:normal!important}}

@media screen{.content-sized-table .payment-communication{white-space:normal!important;overflow-wrap:anywhere!important}}

@media screen{.content .action-menu-items,#modal .action-menu-items{width:max-content;min-width:max-content;max-width:calc(100vw - 2rem)}.content .action-menu-items button,#modal .action-menu-items button{width:100%!important;min-width:max-content!important;white-space:nowrap!important;overflow:visible!important}}

.case-reading .case-question{color:#b42318;font-weight:600}.case-answer-choices{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}.case-answer-choices button{width:auto;min-width:0;max-width:100%;white-space:normal}

/* Appearance changes screen surfaces; document paper and print retain the original palette. */
:root{--ludo-surface:#fff;--ludo-on-accent:#fff;--ludo-c243240:#243240;--ludo-cf3f6f8:#f3f6f8;--ludo-cdce5ea:#dce5ea;--ludo-ccad5dc:#cad5dc;--ludo-c667b88:#667b88;--ludo-c526975:#526975;--ludo-c203441:#203441;--ludo-c768693:#768693;--ludo-c6d8593:#6d8593;--ludo-c687e8b:#687e8b;--ludo-c627e8c:#627e8c;--ludo-c526c7c:#526c7c;--ludo-cedf0f3:#edf0f3;--ludo-cedf5f8:#edf5f8;--ludo-ce8f5f8:#e8f5f8;--ludo-c086f8a:#086f8a;--ludo-ceaf6fa:#eaf6fa;--ludo-cf8fafb:#f8fafb;--ludo-cfbfdfe:#fbfdfe;--ludo-ceef2f5:#eef2f5;--ludo-cfff1df:#fff1df;--ludo-c85550b:#85550b;--ludo-c86520b:#86520b;--ludo-cfff5e7:#fff5e7;--ludo-ce5f5ed:#e5f5ed;--ludo-c216341:#216341;--ludo-cf7fafc:#f7fafc;--ludo-cf7fcfd:#f7fcfd;--ludo-ceef7fa:#eef7fa;--ludo-cf3f6f7:#f3f6f7;--ludo-ceaf6f9:#eaf6f9;--ludo-cfff5df:#fff5df;--ludo-cf0eafb:#f0eafb;--ludo-ceaf3fb:#eaf3fb;--ludo-cb2cadd:#b2cadd;--ludo-cdcecf9:#dcecf9;--ludo-c8cabc4:#8cabc4;--ludo-ccfe4f5:#cfe4f5;--ludo-c779fbf:#779fbf;--ludo-cfcebec:#fcebec;--ludo-ce0b8bd:#e0b8bd;--ludo-cf7dce0:#f7dce0;--ludo-cc78f98:#c78f98;--ludo-ceef1f4:#eef1f4;--ludo-ceaf0f4:#eaf0f4;--ludo-cedf7fa:#edf7fa;--ludo-cd7e3e9:#d7e3e9;--ludo-ce2eaf0:#e2eaf0;--ludo-cb7c9d3:#b7c9d3;--ludo-cccc:#ccc;--ludo-c000:#000;--ludo-cfff:#fff;--ludo-cb42336:#b42336;--ludo-cb42338:#b42338;}
@media screen{html[data-theme="dark"]{--ludo-surface:#1b2530;--ludo-on-accent:#fff;--ludo-c243240:#dce6ee;--ludo-cf3f6f8:#111820;--ludo-cdce5ea:#344554;--ludo-ccad5dc:#425669;--ludo-c667b88:#a8bac9;--ludo-c526975:#b1c1ce;--ludo-c203441:#e4edf4;--ludo-c768693:#adbdca;--ludo-c6d8593:#a7bdcc;--ludo-c687e8b:#adbfcc;--ludo-c627e8c:#aec4d3;--ludo-c526c7c:#a8c1d2;--ludo-cedf0f3:#2c3b48;--ludo-cedf5f8:#243747;--ludo-ce8f5f8:#173c49;--ludo-c086f8a:#81d7e9;--ludo-ceaf6fa:#19313e;--ludo-cf8fafb:#1b2936;--ludo-cfbfdfe:#233240;--ludo-ceef2f5:#293846;--ludo-cfff1df:#483725;--ludo-c85550b:#f4ca88;--ludo-c86520b:#f4ca88;--ludo-cfff5e7:#352a1e;--ludo-ce5f5ed:#1d3e32;--ludo-c216341:#8cddb4;--ludo-cf7fafc:#1a2935;--ludo-cf7fcfd:#223642;--ludo-ceef7fa:#1c3543;--ludo-cf3f6f7:#17212a;--ludo-ceaf6f9:#1d3542;--ludo-cfff5df:#40341f;--ludo-cf0eafb:#302743;--ludo-ceaf3fb:#243e53;--ludo-cb2cadd:#496d88;--ludo-cdcecf9:#2e4b63;--ludo-c8cabc4:#6487a3;--ludo-ccfe4f5:#355975;--ludo-c779fbf:#80a6c5;--ludo-cfcebec:#492930;--ludo-ce0b8bd:#87505a;--ludo-cf7dce0:#60343d;--ludo-cc78f98:#b57380;--ludo-ceef1f4:#293541;--ludo-ceaf0f4:#22313e;--ludo-cedf7fa:#223b48;--ludo-cd7e3e9:#3b5162;--ludo-ce2eaf0:#3a4e5e;--ludo-cb7c9d3:#566e80;--ludo-cccc:#465767;--ludo-c000:#e9eff5;--ludo-cfff:#1b2530;--ludo-cb42336:#ff98a8;--ludo-cb42338:#ff98a8;}html[data-theme="dark"] a,html[data-theme="dark"] .text-link,html[data-theme="dark"] .eyebrow{color:#76d6ec}html[data-theme="dark"] .brand img{background:#fff;border-radius:4px}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#93a9bb}html[data-theme="dark"] dialog::backdrop{background:#0009}}
.draft-paper,.report-preview,.report-portrait,.print-preview{--ludo-surface:#fff;--ludo-on-accent:#fff;--ludo-c243240:#243240;--ludo-cf3f6f8:#f3f6f8;--ludo-cdce5ea:#dce5ea;--ludo-ccad5dc:#cad5dc;--ludo-c667b88:#667b88;--ludo-c526975:#526975;--ludo-c203441:#203441;--ludo-c768693:#768693;--ludo-c6d8593:#6d8593;--ludo-c687e8b:#687e8b;--ludo-c627e8c:#627e8c;--ludo-c526c7c:#526c7c;--ludo-cedf0f3:#edf0f3;--ludo-cedf5f8:#edf5f8;--ludo-ce8f5f8:#e8f5f8;--ludo-c086f8a:#086f8a;--ludo-ceaf6fa:#eaf6fa;--ludo-cf8fafb:#f8fafb;--ludo-cfbfdfe:#fbfdfe;--ludo-ceef2f5:#eef2f5;--ludo-cfff1df:#fff1df;--ludo-c85550b:#85550b;--ludo-c86520b:#86520b;--ludo-cfff5e7:#fff5e7;--ludo-ce5f5ed:#e5f5ed;--ludo-c216341:#216341;--ludo-cf7fafc:#f7fafc;--ludo-cf7fcfd:#f7fcfd;--ludo-ceef7fa:#eef7fa;--ludo-cf3f6f7:#f3f6f7;--ludo-ceaf6f9:#eaf6f9;--ludo-cfff5df:#fff5df;--ludo-cf0eafb:#f0eafb;--ludo-ceaf3fb:#eaf3fb;--ludo-cb2cadd:#b2cadd;--ludo-cdcecf9:#dcecf9;--ludo-c8cabc4:#8cabc4;--ludo-ccfe4f5:#cfe4f5;--ludo-c779fbf:#779fbf;--ludo-cfcebec:#fcebec;--ludo-ce0b8bd:#e0b8bd;--ludo-cf7dce0:#f7dce0;--ludo-cc78f98:#c78f98;--ludo-ceef1f4:#eef1f4;--ludo-ceaf0f4:#eaf0f4;--ludo-cedf7fa:#edf7fa;--ludo-cd7e3e9:#d7e3e9;--ludo-ce2eaf0:#e2eaf0;--ludo-cb7c9d3:#b7c9d3;--ludo-cccc:#ccc;--ludo-c000:#000;--ludo-cfff:#fff;--ludo-cb42336:#b42336;--ludo-cb42338:#b42338;color-scheme:light;}
.theme-settings label{max-width:360px}.theme-settings h3{margin-bottom:.7rem}
@media print{:root{--ludo-surface:#fff;--ludo-on-accent:#fff;--ludo-c243240:#243240;--ludo-cf3f6f8:#f3f6f8;--ludo-cdce5ea:#dce5ea;--ludo-ccad5dc:#cad5dc;--ludo-c667b88:#667b88;--ludo-c526975:#526975;--ludo-c203441:#203441;--ludo-c768693:#768693;--ludo-c6d8593:#6d8593;--ludo-c687e8b:#687e8b;--ludo-c627e8c:#627e8c;--ludo-c526c7c:#526c7c;--ludo-cedf0f3:#edf0f3;--ludo-cedf5f8:#edf5f8;--ludo-ce8f5f8:#e8f5f8;--ludo-c086f8a:#086f8a;--ludo-ceaf6fa:#eaf6fa;--ludo-cf8fafb:#f8fafb;--ludo-cfbfdfe:#fbfdfe;--ludo-ceef2f5:#eef2f5;--ludo-cfff1df:#fff1df;--ludo-c85550b:#85550b;--ludo-c86520b:#86520b;--ludo-cfff5e7:#fff5e7;--ludo-ce5f5ed:#e5f5ed;--ludo-c216341:#216341;--ludo-cf7fafc:#f7fafc;--ludo-cf7fcfd:#f7fcfd;--ludo-ceef7fa:#eef7fa;--ludo-cf3f6f7:#f3f6f7;--ludo-ceaf6f9:#eaf6f9;--ludo-cfff5df:#fff5df;--ludo-cf0eafb:#f0eafb;--ludo-ceaf3fb:#eaf3fb;--ludo-cb2cadd:#b2cadd;--ludo-cdcecf9:#dcecf9;--ludo-c8cabc4:#8cabc4;--ludo-ccfe4f5:#cfe4f5;--ludo-c779fbf:#779fbf;--ludo-cfcebec:#fcebec;--ludo-ce0b8bd:#e0b8bd;--ludo-cf7dce0:#f7dce0;--ludo-cc78f98:#c78f98;--ludo-ceef1f4:#eef1f4;--ludo-ceaf0f4:#eaf0f4;--ludo-cedf7fa:#edf7fa;--ludo-cd7e3e9:#d7e3e9;--ludo-ce2eaf0:#e2eaf0;--ludo-cb7c9d3:#b7c9d3;--ludo-cccc:#ccc;--ludo-c000:#000;--ludo-cfff:#fff;--ludo-cb42336:#b42336;--ludo-cb42338:#b42338;color-scheme:light}}

@media screen{html[data-theme="dark"] .nav-group>summary{color:#b7c9d8}html[data-theme="dark"] .agenda-row-date.past,html[data-theme="dark"] .past{color:#ff98a8}}

.mail-copy-row{display:grid;grid-template-columns:6rem minmax(0,1fr) 2.8rem;gap:.5rem;align-items:center;margin:.5rem 0}.mail-copy-row select,.mail-copy-row input,.mail-copy-row button{margin:0;min-width:0;width:100%}.mail-copy-row button{padding:.6rem;font-size:1.3rem}

/* Keep compact article lists sized to their contents; dates and amounts stay whole. */
@media screen{
 .table-wrap:has(> :is(.purchases-table,.costs-table,.ean-table)){width:fit-content;max-width:100%}
 .content-sized-table:is(.purchases-table,.costs-table,.ean-table){width:max-content;table-layout:auto!important}
 .content-sized-table:is(.purchases-table,.costs-table,.ean-table) :is(th,td){overflow-wrap:normal}
 .content-sized-table:is(.purchases-table,.costs-table,.ean-table) td.article-cell{width:28ch;min-width:24ch;max-width:34ch}
 .content-sized-table:is(.purchases-table,.costs-table,.ean-table) td.article-cell :is(a,button){overflow-wrap:normal!important}
 .purchases-table td:nth-child(1),.purchases-table td:nth-child(4),.purchases-table td:nth-child(5),.purchases-table td:nth-child(6){width:1%;white-space:nowrap!important}
 .purchases-table td:nth-child(3){width:26ch;min-width:24ch;max-width:32ch}
 .purchases-table td:nth-child(7){width:25ch;min-width:24ch;white-space:normal!important}
 .purchases-table td:nth-child(8){min-width:16ch}
 .costs-table td:nth-child(2){width:28ch}
 .costs-table td:last-child{min-width:16ch}
 .ean-table td:nth-child(1),.ean-table td:nth-child(3){width:1%;white-space:nowrap!important}
 .ean-table td:nth-child(4){min-width:24ch}
 .ean-table td:last-child{min-width:max-content}
}

@media screen{
 .content-sized-table.costs-table td:nth-child(5){min-width:24ch}
 .content-sized-table.costs-table td:nth-child(6){min-width:20ch}
 .content-sized-table.costs-table td:nth-child(7){min-width:24ch;white-space:normal!important}
 .content-sized-table.costs-table td:nth-child(3) .text-link,.content-sized-table.costs-table td:nth-child(5) .text-link,.content-sized-table.costs-table td:nth-child(6) .text-link{white-space:nowrap!important}
 .table-wrap th:has(.column-resizer){padding-right:16px}
 .column-resizer{position:absolute;top:0;right:0;width:9px;height:100%;cursor:col-resize;touch-action:none;z-index:3;border-right:2px solid transparent}
 .column-resizer:hover,.column-resizer:focus-visible{border-right-color:#099aba;background:#099aba33;outline:none}
 body.resizing-columns{cursor:col-resize;user-select:none}
 .table-wrap table.column-widths-custom{table-layout:fixed!important;width:var(--manual-table-width)!important;min-width:0!important;max-width:none!important}
 .table-wrap table.column-widths-custom :is(th,td){width:auto!important;min-width:0!important;max-width:none!important;overflow-wrap:anywhere;overflow:hidden}
}

@media print{table.column-widths-custom{width:100%!important;table-layout:auto!important}table.column-widths-custom col{width:auto!important}.column-resizer{display:none!important}}

@media screen{.content-sized-table:is(.purchases-table,.costs-table,.ean-table):not(.column-widths-custom) td.article-cell>.text-link{width:28ch;max-width:28ch}.table-wrap table.column-widths-custom td.article-cell>.text-link{width:auto;max-width:100%}}

@media screen{.content-sized-table:is(.purchases-table,.costs-table,.ean-table):not(.column-widths-custom){width:auto!important}.content-sized-table:is(.purchases-table,.costs-table,.ean-table):not(.column-widths-custom) td{width:auto!important}.content-sized-table:is(.purchases-table,.costs-table,.ean-table):not(.column-widths-custom) td.article-cell{width:28ch!important}}

@media print{#detail-print-view table[data-print-stock-list]{width:100%!important;min-width:0!important;table-layout:auto!important;font-size:8pt}#detail-print-view table[data-print-stock-list] :is(th,td){padding:4pt;min-width:0!important;width:auto!important;overflow-wrap:normal}#detail-print-view table[data-print-stock-list] td:nth-child(2){white-space:normal!important}#detail-print-view table[data-print-stock-list] td:not(:nth-child(2)){white-space:nowrap!important}#detail-print-view table[data-print-stock-list] thead{display:table-header-group}#detail-print-view table[data-print-stock-list] tr{break-inside:avoid}}

@media screen{.table-overflow-edge{position:fixed;z-index:1200;width:5px;background:#ef4444;box-shadow:0 0 8px 2px #ef444488;border-radius:3px;pointer-events:none;animation:table-edge-pulse 1.8s ease-in-out infinite}.table-overflow-edge[hidden]{display:none}@keyframes table-edge-pulse{0%,100%{opacity:.6}50%{opacity:1}}}@media(prefers-reduced-motion:reduce){.table-overflow-edge{animation:none}}@media print{.table-overflow-edge{display:none!important}}

@media screen{#content.content{padding-bottom:4.5rem}}

@media screen{.table-wrap th .sort-heading{display:flex!important;align-items:baseline;gap:.25rem;max-width:100%!important;min-width:0;overflow:hidden}.table-wrap th .sort-arrow{flex:0 0 auto}.table-wrap th .sort-label{min-width:0;white-space:normal!important;word-break:normal;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}.table-wrap table.column-widths-custom th{overflow-wrap:normal!important;word-break:normal}}

@media screen{.table-wrap:has(>.ean-table){width:100%;max-width:100%}.content-sized-table.ean-table:not(.column-widths-custom){width:100%;min-width:100%}.content-sized-table.ean-table:not(.column-widths-custom) td.article-cell{width:auto;max-width:none}}

@media screen{.table-overflow-edge{width:3px;background:#d57575;box-shadow:0 0 3px #d5757544;animation:table-edge-soft-pulse 3s ease-in-out infinite}@keyframes table-edge-soft-pulse{0%,100%{opacity:.35}50%{opacity:.65}}}@media(prefers-reduced-motion:reduce){.table-overflow-edge{animation:none;opacity:.55}}

.report-preview{color:var(--ludo-c243240)}
.report-client-checklist{max-height:220px;overflow:auto;padding:.5rem}

.revenue-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.3rem 0}
.revenue-highlights>div{border-left:3px solid #0e96b2;padding:.35rem 1rem;background:var(--ludo-cf7fafc);border-radius:0 8px 8px 0}
.revenue-highlights span,.revenue-highlights small{display:block;color:var(--ludo-c667b88);font-size:.85rem}
.revenue-highlights strong{display:block;font-size:1.6rem;color:var(--ludo-c203441);font-variant-numeric:tabular-nums}
.revenue-legend{display:flex;flex-wrap:wrap;gap:1.2rem;font-size:.85rem;color:var(--ludo-c667b88);margin-bottom:.8rem}
.revenue-legend span{display:flex;align-items:center;gap:.5rem}.legend-bar{width:12px;height:12px;border-radius:3px;background:#087f9e}.legend-line{width:20px;border-top:3px solid #bd8b30}
.stat-grid{stroke:var(--ludo-cdce5ea);stroke-dasharray:3 5;stroke-width:.7}.stat-axis-title{fill:var(--ludo-c667b88);font-size:12px;font-weight:600}
.stat-cumulative{stroke:#bd8b30;stroke-width:3;stroke-linecap:round}.stat-cumulative.stat-gap{stroke-dasharray:4 7;opacity:.65}.stat-point{fill:var(--ludo-surface);stroke:#bd8b30;stroke-width:2.5}
.revenue-period-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem;margin:.5rem 0 1rem}.revenue-period{display:flex;flex-direction:column;gap:.2rem;text-align:left;padding:.65rem!important;background:var(--ludo-cf7fafc)!important;border:1px solid var(--ludo-cdce5ea)!important;border-radius:7px;text-decoration:none!important}.revenue-period span{font-size:.8rem;color:var(--ludo-c667b88)}.revenue-period strong{font-size:.9rem}
@media(max-width:760px){.revenue-highlights{grid-template-columns:1fr}.revenue-highlights strong{font-size:1.4rem}.revenue-story .statistics-chart{min-width:650px}.revenue-story{overflow:auto}}

.case-group-heading{display:flex;align-items:baseline;gap:.35rem 1rem}.case-group-heading>strong{flex:1;min-width:0}.case-group-heading>span{white-space:nowrap}

/* Keep section headings clear of the following table. */
@media screen{.card>h2+.table-wrap,.card>h3+.table-wrap{margin-top:.9rem}}

/* Readable links on the white report preview, including dark mode. */
.report-preview :is(a,.text-link){color:#164b70!important}
.report-preview :is(a,.text-link):hover{color:#0b304d!important}

.date-grid .today-day{outline:1px solid #65c9e0;outline-offset:-3px}

.page-return-arrow{font-size:1.5rem;min-width:2.5rem;padding:.25rem .6rem}
.draft-stock-choices{grid-column:1/-1;color:#163d57;background:#eef5f8;padding:.6rem;margin:.35rem 0}
.draft-stock-choices [data-stock-sources]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.5rem}
.draft-stock-choices label{display:flex;flex-direction:column}
@media print{.draft-stock-choices,.page-return-arrow{display:none!important}}

.modal-return-arrow{font-size:1.3rem;min-width:2.5rem}
@media print{.modal-return-arrow{display:none!important}}

/* The article stock list prints as rows, without the separate count history. */
@page stockListCompact{size:A4 landscape;margin:10mm}
@media print{
 #detail-print-view.stock-list-print{page:stockListCompact;font:8pt/10pt Arial,sans-serif;color:#000;background:#fff}
 #detail-print-view.stock-list-print .page-heading{margin:0 0 5pt;padding:0}
 #detail-print-view.stock-list-print h1{font-size:14pt;margin:0 0 3pt}
 #detail-print-view.stock-list-print p{font-size:8pt;line-height:10pt;margin:4pt 0}
 #detail-print-view.stock-list-print table[data-print-stock-list]{table-layout:fixed!important;font:8pt/10pt Arial,sans-serif}
 #detail-print-view.stock-list-print table[data-print-stock-list] :is(th,td){padding:3pt!important;position:static;vertical-align:top;white-space:normal!important;overflow-wrap:normal;word-break:normal}
 #detail-print-view.stock-list-print table[data-print-stock-list] :is(th,td):nth-child(1){width:8%!important;white-space:nowrap!important}
 #detail-print-view.stock-list-print table[data-print-stock-list] :is(th,td):nth-child(2){width:18%!important}
 #detail-print-view.stock-list-print table[data-print-stock-list] :is(th,td):nth-child(3){width:12%!important;white-space:nowrap!important}
 #detail-print-view.stock-list-print table[data-print-stock-list] :is(th,td):nth-child(n+4){width:auto!important}
 #detail-print-view.stock-list-print table[data-print-stock-list] td:nth-child(n+4){white-space:normal!important}
 #detail-print-view.stock-list-print .column-resize-handle,#detail-print-view.stock-list-print caption{display:none!important}
 #detail-print-view.stock-list-print .print-created{margin-top:5pt}
}

/* Movement confirmation stays beside its explanation; row removal follows quantity. */
@media screen{
 #modal #movement-batch .movement-batch-confirmation{display:flex;flex-direction:row;align-items:flex-start;gap:.55rem;font-weight:400;margin:.75rem 0}
 #modal #movement-batch .movement-batch-confirmation>input{flex:0 0 auto;width:1rem;height:1rem;min-height:0;margin:.25rem 0 0;padding:0}
 #modal #movement-batch .movement-batch-confirmation>span{flex:1;min-width:0}
 #modal #movement-batch .movement-batch-line{grid-template-columns:minmax(0,1fr) minmax(6rem,.45fr) 2.25rem;align-items:end;gap:.5rem 1rem;margin:.65rem 0}
 #modal #movement-batch .movement-batch-line>label{min-width:0;margin:0}
 #modal #movement-batch .movement-batch-line>.movement-batch-remove{width:2.25rem!important;min-width:2.25rem!important;max-width:2.25rem!important;height:36px;padding:0;align-self:end;margin:0}
}
@media screen and (max-width:760px){
 #modal #movement-batch .movement-batch-line{grid-template-columns:minmax(0,1fr) 2.25rem}
 #modal #movement-batch .movement-batch-line>label:first-child{grid-column:1/-1}
}

/* Searchable dropdown choices are a vertical list, not a wrapping button bank. */
@media screen{
 .document-partner-results,.select-suggestions{display:flex;flex-direction:column;gap:0;min-width:0}
 :is(.document-partner-results,.draft-article-popup)>button[role="option"],.select-suggestions>button[data-select-choice]{display:flex!important;height:auto!important;min-height:36px;justify-content:flex-start!important;text-align:left!important;width:100%!important;max-width:100%;min-width:0;white-space:normal!important;border:0;border-bottom:1px solid var(--ludo-ccad5dc);border-radius:0;background:transparent;padding:.6rem .75rem;margin:0;box-shadow:none;font-weight:400;line-height:1.4}
 :is(.document-partner-results,.draft-article-popup)>button[role="option"]:is(:hover,:focus-visible,[aria-selected="true"]),.select-suggestions>button[data-select-choice]:is(:hover,:focus-visible){background:var(--ludo-ce8f5f8);color:var(--ludo-c086f8a)}
}

/* Keep header actions together; navigation icons occupy compact trailing slots. */
@media screen{
 dialog .dialog-heading .popup-actions{flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;margin-left:auto;align-items:center;padding:2px}
 #modal .popup-actions .popup-navigation{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px;padding:0;flex:0 0 36px}
 .page-heading>.actions{flex-wrap:nowrap;max-width:100%;overflow-x:auto;align-items:center}
 .page-heading .page-return-arrow{width:36px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px}
}

@media screen and (max-width:760px){
 #modal .dialog-heading .popup-actions>.popup-action:not(.popup-navigation){width:auto!important;min-width:min-content;max-width:none;flex:1 1 auto;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;height:auto!important;min-height:36px;padding:.45rem .35rem}
}

dialog.session-renewal-dialog{width:min(680px,calc(100vw - 2rem))}.session-renewal-heading{display:flex;align-items:center;gap:1rem}.session-renewal-heading h2{flex:1;margin:0}.session-renewal-heading [data-session-cancel]{width:36px;height:36px;padding:0;flex:0 0 36px}.session-renewal-dialog .actions{justify-content:flex-end}

/* Keep popup navigation visible and expose movement quantities without submitting. */
@media screen{#modal .dialog-heading .popup-actions{flex-wrap:wrap;overflow:visible;flex:1 1 100%;justify-content:flex-end}#modal .dialog-heading .popup-actions>.popup-action:not(.popup-navigation){flex:1 1 10rem;width:auto!important;min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}#modal{max-height:calc(100vh - 24px)}.movement-availability{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.4rem;font-size:.85rem}.movement-availability button{width:auto!important;min-width:0!important;min-height:30px!important;padding:.3rem .55rem!important;flex:0 0 auto}.movement-availability[hidden]{display:none}}

@media screen{#modal .dialog-heading{flex-wrap:wrap}#modal .dialog-heading h2{flex:1 0 100%!important;width:100%;max-width:100%;min-width:0;word-break:normal!important;overflow-wrap:normal!important}#modal .dialog-heading .popup-actions{width:100%;max-width:100%;box-sizing:border-box}.page-heading>.actions{overflow:visible;flex-wrap:wrap}.page-heading .action-menu-items{z-index:30;max-width:calc(100vw - 32px)}}

@media screen{#modal .draft-editor-choices>label,#modal .document-partner-picker{min-width:0;max-width:100%}#modal .document-partner-trigger{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;max-width:100%;width:100%;min-width:0!important;height:auto!important;min-height:38px;line-height:1.4;text-align:left;box-sizing:border-box}}

@media screen{#modal #movement-batch .movement-batch-line{align-items:start}#modal #movement-batch .movement-batch-line>.movement-batch-remove{align-self:start;margin-top:1.5rem}}

.global-search{position:relative;flex:1;min-width:0;max-width:740px}.global-search .search{width:100%;box-sizing:border-box}.global-search-results{position:absolute;top:calc(100% + .5rem);left:0;width:min(760px,calc(100vw - 2rem));max-width:100%;max-height:70vh;overflow:auto;z-index:100;background:var(--ludo-cfff);color:var(--ludo-c243240);border:1px solid var(--ludo-ccad5dc);border-radius:10px;box-shadow:0 12px 35px #0005;padding:1rem;box-sizing:border-box}.global-search-results[hidden]{display:none}.global-search-results h3{font-size:1rem;margin:.8rem 0 .3rem}.global-search-results button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;margin:.25rem 0;padding:.6rem}.global-search-results button span{font-size:.85rem;opacity:.8}.global-search-results p{font-size:.85rem}@media(max-width:760px){.topbar{flex-wrap:wrap}.global-search{flex:1 1 100%;order:3;max-width:none}}

@media screen{#modal .dialog-heading .popup-actions{justify-content:flex-start!important;gap:.5rem}#modal .dialog-heading .popup-actions>.popup-action:not(.popup-navigation){flex:0 0 auto!important;width:max-content!important;min-width:0!important;max-width:100%;white-space:normal!important}#modal .dialog-heading .popup-actions>.popup-navigation{flex:0 0 36px!important;width:36px!important;margin-left:0!important}#modal .dialog-heading .popup-actions>.popup-navigation:not(.popup-navigation~.popup-navigation){margin-left:auto!important}}

@media screen{#modal .dialog-heading .popup-navigation-group{display:inline-flex;gap:.5rem;flex:0 0 auto;margin-left:auto}#modal .dialog-heading .popup-navigation-group>.popup-navigation{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important;margin:0!important}}

@media screen{#modal .dialog-heading .popup-navigation-group>.popup-navigation{border:1px solid currentColor!important;border-radius:8px;box-sizing:border-box;color:var(--ludo-c243240);background:var(--ludo-cfff)}}.mail-result-details{display:grid;grid-template-columns:minmax(5rem,max-content) minmax(0,1fr);gap:.5rem 1rem}.mail-result-details dd{margin:0;overflow-wrap:anywhere}.mail-result-message{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--ludo-ccad5dc);border-radius:8px;padding:1rem}

@media screen{#modal .dialog-heading .popup-actions>.popup-action:not(.popup-navigation){margin-left:0!important;margin-right:0!important}}

/* Search results are full-width rows, including dashboard topbar overrides. */
#app .topbar #global-search-results section{display:flex;flex-direction:column;gap:.35rem;min-width:0}#app .topbar #global-search-results button{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;min-height:52px;white-space:normal;text-align:left;padding:.65rem .8rem;margin:0;line-height:1.4}#app .topbar #global-search-results button strong,#app .topbar #global-search-results button span{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.4}#app .topbar #global-search-results{overflow-x:hidden}#modal .dialog-heading .popup-navigation-group>.popup-navigation{border-color:var(--ludo-cb2cadd)!important}

@media(max-width:760px){#app .topbar .global-search .search{display:block}}

@media screen{#modal .movement-article-controls{display:flex;flex-wrap:wrap;align-items:stretch;gap:.5rem;min-width:0}#modal .movement-article-controls>.document-partner-picker,#modal .movement-article-controls>select:not(.document-partner-value){flex:1 1 12rem;min-width:0;width:auto;max-width:100%}#modal .movement-article-controls>[data-movement-all]{flex:0 0 auto;width:auto!important;min-width:0!important;margin:0;align-self:flex-start}#modal .movement-article-controls>[data-movement-all][hidden]{display:none}}

@media print{[data-commercial-stock-review],.commercial-reservation-internal{display:none!important}}

@media screen{#modal .draft-stock-choices .actions{display:flex!important;flex-wrap:wrap;justify-content:flex-start;gap:.5rem}#modal .draft-stock-choices .actions>button{flex:0 0 auto!important;width:max-content!important;min-width:0!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}}
/* Keep the historical-location checkbox beside its associated label. */
.filters>label.inline-choice{display:flex;flex-direction:row;align-items:center;gap:.5rem;min-width:0;max-width:100%;cursor:pointer}
.filters>label.inline-choice>input[type="checkbox"]{flex:0 0 auto;width:1rem;height:1rem;min-height:0;margin:0}

/* Compact internal stock allocation; customer PDF templates remain separate. */
.draft-stock-compact{padding:.35rem .6rem;margin:.2rem 0}
.draft-stock-compact .draft-stock-main{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .65rem}
.draft-stock-compact [data-stock-selector]{flex:1 1 220px;min-width:0}
.draft-stock-compact [data-stock-selector] select{width:100%;margin:0;min-height:2rem;padding:.2rem .4rem}
.draft-stock-compact [data-stock-selected]{flex:1 1 200px;min-width:0}
.draft-stock-compact [data-stock-selected] p{display:inline;margin:0}
.draft-stock-compact [data-stock-selected] p+p:before{content:" / "}
.draft-stock-compact [data-stock-plan-status]{font-size:.85em}
.draft-stock-compact [data-stock-modify]{padding:.2rem .5rem;min-height:2rem}
.draft-stock-compact .draft-stock-more{margin:0;padding:0;flex:0 1 auto}
.draft-stock-compact .draft-stock-more>summary{cursor:pointer;white-space:nowrap;padding:.2rem .35rem}
.draft-stock-compact .draft-stock-more[open]{flex-basis:100%}
.draft-stock-compact .draft-stock-more .actions{margin:.35rem 0}
.draft-stock-compact [data-stock-split-editor] p{margin:.35rem 0}

#modal .draft-article-search{width:100%;min-width:0;box-sizing:border-box}
#modal .draft-article-search-results{max-height:260px;overflow-y:auto}
#modal .draft-article-search-results p{margin:.35rem .5rem;font-size:.85rem}

/* Invoice reference heading: align label with the reference values; screen only. */
@media screen {
 #modal #draft-entry:has(select[name="kind"] option[value="facture"]:checked) .draft-invoice-columns>[data-sort-draft="sku"]{display:flex;align-items:center;justify-content:flex-start;gap:2pt;padding:2.8pt 2.8pt 2.8pt 8.5pt;text-align:left}
 #modal #draft-entry:has(select[name="kind"] option[value="facture"]:checked) .draft-invoice-columns>[data-sort-draft="sku"]>.sort-arrow{order:1;font-size:8pt;flex:none}
}
.payment-pagination{margin-top:1rem}
@media screen{#modal .dialog-heading .popup-navigation-group>.popup-navigation.classification-later{flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;padding:0 .9rem!important;white-space:nowrap}}

@media screen{#modal [data-settlement-documents] [data-document-choices] table{table-layout:auto;min-width:0;width:100%}#modal [data-settlement-documents] [data-document-choices] :is(th,td):first-child{width:7rem;min-width:7rem;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}}

@media screen{.agenda-collection-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.agenda-collection-actions>.action-menu{width:max-content}.agenda-collection-actions .action-menu-items{right:0;left:auto}}
