/* Adaptation commune à toutes les pages, après le thème des maquettes. */
.entry-form-layout .card>div[style*="display:flex"]{flex-wrap:wrap}#fill-estimate>div:first-child{flex-wrap:wrap}#fill-estimate>div:first-child>strong{font-size:clamp(26px,5vw,40px)!important;overflow-wrap:anywhere}#fill-estimate>div:first-child>strong small{white-space:nowrap}
.activity-chart-wrap{overflow-x:auto!important;overflow-y:hidden;padding-top:4px}.activity-chart-wrap .chart{margin-bottom:40px;padding-top:32px;background:none}.activity-chart-wrap .chart:before{content:'';position:absolute;left:32px;right:4px;top:32px;bottom:0;background:repeating-linear-gradient(to top,#e9edf5 0,#e9edf5 1px,transparent 1px,transparent 20%);pointer-events:none}.activity-chart-wrap .chart-axis{top:32px}.activity-chart-wrap .chart-column{flex-shrink:0}
html{scrollbar-gutter:stable}body{min-width:280px}img,svg{max-width:100%}input,select,textarea{min-width:0;max-width:100%}button{max-width:100%}.main>*{min-width:0}.main{overflow-x:clip}.stack,.split>* ,.entry-form-layout>*,.batch-layout>*,.profile-layout>*,.calendar-layout>*,.grid-2>*,.grid-bottom>*{min-width:0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.heading>div:first-child{min-width:0}.heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%;min-width:0}.heading-actions select{min-width:0;max-width:100%}.card-head{flex-wrap:wrap}.card-head h2{min-width:0}.line-row{flex-wrap:wrap}.line-row strong,.detail-row strong{overflow-wrap:anywhere}.stat-value{font-size:clamp(22px,2.1vw,32px);white-space:normal;overflow-wrap:anywhere}.stat-sub{overflow-wrap:anywhere}.tint .big{font-size:clamp(25px,2.5vw,34px);overflow-wrap:anywhere}.chart-column{min-width:0}.chart-bar{flex-shrink:1}.legend{flex-wrap:wrap}.file-drop{overflow-wrap:anywhere}.file-drop input{max-width:100%}.notice span{min-width:0;overflow-wrap:anywhere}.search-input{width:min(100%,340px)}.table-wrap,.week-scroll,.month-scroll{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.tabs{max-width:100%;overscroll-behavior-x:contain}.settings-block .setting-row{grid-template-columns:minmax(0,1fr) minmax(150px,215px)}.password-card{padding-inline:clamp(20px,5vw,80px)}.footer-actions{flex-wrap:wrap}.footer-actions button{white-space:normal}.security-card>div:last-child{min-width:0}.profile-photo>div:last-child{min-width:0}.journey-point{min-width:0;overflow-wrap:anywhere}.auth-form{min-width:0}.auth-art{width:100%;height:auto;aspect-ratio:724/912}.recovery-card{min-width:0}.map-tag{max-width:44%;overflow-wrap:anywhere}.map-attribution{max-width:98%}.report-row{grid-template-columns:minmax(90px,130px) minmax(0,1fr) 80px}.batch-layout{grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.entry-form-layout{grid-template-columns:minmax(0,1.32fr) minmax(0,1fr)}.split{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}.stores-layout{grid-template-columns:minmax(0,2.7fr) minmax(240px,1fr)}.profile-layout{grid-template-columns:minmax(0,1.27fr) minmax(0,1fr)}
@media(max-width:1250px){.batch-layout{grid-template-columns:1fr}.batch-summary{position:static}.entry-form-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.calendar-layout{grid-template-columns:1fr}.calendar-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.heading{align-items:flex-start;flex-wrap:wrap}.heading-actions{justify-content:flex-start}.auth-form{padding:30px clamp(24px,3vw,45px)}.auth-form h1{font-size:clamp(30px,3.4vw,45px)}.stores-layout{grid-template-columns:minmax(0,1fr) 260px}.chart-bar span{font-size:9px}}
@media(max-width:1050px){.split,.entry-form-layout,.profile-layout,.stores-layout{grid-template-columns:1fr}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-block{grid-template-columns:1fr}.heading-actions{gap:9px}.heading-actions button{white-space:normal}.auth-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.auth-form>.intro{font-size:16px}.card-head .legend{width:100%}.table-wrap table{min-width:650px}.summary-pair{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}}
@media(max-width:800px){:root{--sidebar:0px;--header:62px}.app-header,.dashboard-layout .app-header{display:flex;padding:0 15px;gap:10px}.app-header .logo{width:auto;font-size:26px}.header-end{gap:12px}.header-end .profile-name,.header-end .help-header,.tagline{display:none}.menu-toggle{display:inline-flex;min-width:40px;min-height:42px;padding:7px;background:transparent;color:var(--navy)}.sidebar,.dashboard-layout .sidebar{top:var(--header);width:min(285px,85vw);transform:translateX(-100%);z-index:30;box-shadow:8px 0 25px #12214022}.sidebar.open{transform:translateX(0)}.dashboard-layout .sidebar-brand{display:none}.sidebar nav a{font-size:14px;padding:12px 15px}.main,.dashboard-layout .main{margin-left:0;padding:calc(var(--header) + 20px) 20px 30px}.menu-open{overflow:hidden}.menu-open:after{content:'';position:fixed;inset:var(--header) 0 0;background:#10213c66;z-index:20}.side-note{margin-top:20px}.auth-main{grid-template-columns:1fr;max-width:650px;margin:auto}.auth-art{display:none}.auth-form{padding:34px;border:1px solid var(--line);border-radius:18px}.auth-header{height:74px;padding:0 24px}.auth-nav{display:none}.recovery-page{min-height:calc(100dvh - 74px)}.auth-form h1{font-size:36px}.heading{gap:14px}.heading h1{font-size:32px}.heading p{font-size:14px}.stat-value{font-size:27px}.calendar-toolbar{flex-wrap:wrap;justify-content:center}.calendar-toolbar .segments{margin-right:auto}.calendar-totals{flex-wrap:wrap;gap:12px;justify-content:flex-start}.calendar-totals>span{flex:1 1 40%}.calendar-side{grid-template-columns:1fr 1fr}.profile-photo{flex-wrap:wrap}.notification{display:none}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-description p{max-width:none}}
@media(max-width:600px){html{scrollbar-gutter:auto}.main,.dashboard-layout .main{padding-inline:14px}.heading h1{font-size:29px}.heading-actions{width:100%;display:flex;align-items:stretch}.heading-actions>button,.heading-actions>select{flex:1 1 150px;width:auto;min-height:44px}.heading-actions>button{white-space:normal;padding:10px 12px}.card{padding:16px}.card-head{gap:12px}.card-head>button{min-height:42px}.card-head>input{flex-basis:100%;max-width:none;margin-left:0}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{display:block;padding:14px;min-height:140px}.stat .bubble{width:36px;height:36px;margin-bottom:10px}.stat .bubble svg{width:22px;height:22px}.stat-label{font-size:12px}.stat-sub{font-size:11px}.stat-value{font-size:25px;line-height:1.3;margin-block:5px}.cumulative{align-items:flex-start;font-size:12px;padding:13px;gap:9px}.cumulative strong{min-width:0}.grid-2,.grid-bottom,.split,.entry-form-layout,.batch-layout,.profile-layout,.stores-layout{grid-template-columns:minmax(0,1fr)}.summary-pair{grid-template-columns:minmax(0,1fr)}.summary-pair .tint.mint .big{font-size:30px}.summary-pair .tint.mint a{margin-top:12px!important}.form-grid,.form-grid.three,.form-grid.four{grid-template-columns:minmax(0,1fr);gap:0}.radio-cards{grid-template-columns:1fr}.field{margin-bottom:16px}input,select,textarea{font-size:16px;min-height:46px}.check input,.radio-card input{min-height:20px;width:20px;height:20px}.password-wrap input{padding-right:45px}.eye-button{min-width:40px;min-height:40px;top:3px}.eye-button svg{width:21px;height:21px}.check{align-items:flex-start;font-size:13px;line-height:1.6}.check input{margin-top:2px}.field label{font-size:13px}.footer-actions{gap:10px;display:grid;grid-template-columns:1fr}.footer-actions button{width:100%;min-height:46px}.footer-actions .button-danger{order:3}.card-head h2{font-size:18px;line-height:1.4}.card-head h2 svg{width:21px;height:21px}.calendar-side{grid-template-columns:1fr}.calendar-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:12px}.calendar-toolbar .segments{grid-column:1/-1;justify-self:stretch;display:flex;margin:0}.calendar-toolbar .segments button{flex:1;min-height:42px}.calendar-toolbar h2{text-align:center;font-size:16px}.calendar-toolbar>button:last-child{grid-column:1/-1;min-height:42px}.calendar-totals{padding:12px;font-size:11px}.calendar-totals svg{width:17px;height:17px}.weekdays{gap:5px;flex-wrap:wrap}.weekday-check{flex:1 0 20%;font-size:12px;padding:9px 4px}.weekday-check input{margin-top:8px}.calendar-toolbar+.calendar-totals{margin-top:0}.week-grid{min-width:690px}.month-grid{min-width:700px}.week-scroll,.month-scroll{border-radius:8px;outline-offset:3px}.settings-block{gap:20px}.settings-block .setting-row{grid-template-columns:1fr;gap:6px;margin-bottom:18px}.settings-block input,.settings-block select{font-size:16px;min-height:44px}.settings-description{gap:12px}.settings-description .bubble{width:42px;height:42px}.settings-description h2{font-size:19px}.profile-photo{gap:15px;align-items:flex-start}.profile-photo .avatar{width:72px;height:72px}.security-card{gap:12px}.security-card .bubble{width:38px;height:38px}.security-card .bubble svg{width:23px;height:23px}.security-card h2{font-size:18px}.security-card button{white-space:normal}.password-card{padding:24px 18px;margin-top:20px}.password-card h2{font-size:23px}.password-card>p{font-size:13px}.password-card .help{margin-left:0!important}.password-card .footer-actions{margin-top:20px}.journey{flex-direction:column;align-items:stretch;gap:12px}.journey-point{width:100%;padding:14px;font-size:13px}.journey-middle{font-size:12px}.journey-middle hr{margin:7px 0}.detail-row{flex-wrap:wrap;gap:8px;font-size:13px}.detail-row>span{flex-basis:calc(100% - 40px)}.detail-row>strong{max-width:100%;padding-left:28px;text-align:left}.timeline .detail-row>strong{padding-left:0}.map{height:205px}.map.large{height:220px}.map-tag{font-size:10px;padding:6px;max-width:42%}.map-attribution{font-size:8px}.address-card{padding:13px;gap:10px}.address-card .icon-button{min-width:36px}.report-row{grid-template-columns:minmax(0,1fr) 75px;gap:9px}.report-row>.progress{grid-row:2;grid-column:1/-1}.report-row>strong:last-child{text-align:right}.chart{height:190px;padding-left:24px;gap:6px;margin-bottom:32px}.chart-column{gap:2px}.chart-bar span{font-size:8px;top:-17px}.chart-bar.teal span{top:-29px}.chart-column>small{font-size:9px}.legend{font-size:10px;gap:8px}.tint .line-row{gap:8px}.total-panel>div:first-child{min-width:0}.total-panel .big{font-size:37px}.tabs button{font-size:13px;padding:12px 16px;min-width:110px}.file-drop{padding:15px}.file-drop input{font-size:12px}.auth-header{height:68px;padding:0 18px}.auth-header .logo{font-size:27px}.auth-main{padding:0 12px 20px}.auth-form{min-height:calc(100dvh - 88px);padding:28px 22px}.auth-form h1{font-size:32px}.auth-form .form-grid{grid-template-columns:1fr}.auth-form>.intro{font-size:16px;margin-bottom:25px}.auth-form .field{margin-bottom:20px}.auth-form .check{font-size:13px;align-items:flex-start}.recovery-page{min-height:calc(100dvh - 68px);padding:16px 12px}.recovery-card{padding:26px 22px;min-height:0;border:1px solid var(--line)}.recovery-card h1{font-size:28px}.recovery-card>p{font-size:16px;margin-bottom:28px}.recovery-card>.bubble{width:90px;height:90px}.recovery-card label{font-size:14px}.recovery-card .auth-divider{margin-top:25px}.form-message{overflow-wrap:anywhere}.tint h2,.tint .big{overflow-wrap:anywhere}dialog{padding:20px 17px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}dialog h2{font-size:22px}.toast{right:12px;left:12px;bottom:12px;max-width:none}
/* Les tableaux deviennent des fiches lisibles sans défilement de page. */
.table-wrap{overflow:visible}.table-wrap table.mobile-cards{display:block;min-width:0!important;width:100%}.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.mobile-cards tbody{display:grid;gap:12px;width:100%}.mobile-cards tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;padding:10px;gap:4px 12px;background:white}.mobile-cards td{display:block;border:0;padding:7px 2px;min-width:0;font-size:12px;overflow-wrap:anywhere}.mobile-cards td:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:4px;font-weight:500}.mobile-cards td:last-child{grid-column:1/-1}.mobile-cards .empty-cell{grid-column:1/-1;text-align:center;padding:20px}.mobile-cards .empty-cell:before{display:none}.mobile-cards .store-cell{align-items:flex-start;gap:8px}.store-cell strong{white-space:normal}#store-results td:nth-child(2){min-width:0}.mobile-cards .store-cell .bubble{width:29px;height:29px}.mobile-cards td .icon-button{width:38px;min-height:38px;margin-right:5px}.payment-allocation{min-width:570px!important}.table-wrap:has(.payment-allocation){overflow:auto}.payment-allocation td{font-size:12px}.payment-allocation input[type=number]{font-size:16px;min-width:86px;min-height:42px}.table-wrap:has(.mobile-cards){overflow:visible}}
@media(max-width:360px){.main,.dashboard-layout .main{padding-inline:10px}.stats{gap:8px}.stat{padding:11px}.stat-value{font-size:22px}.stat-label{font-size:11px}.card{padding:13px}.app-header .logo{font-size:23px}.header-end .avatar{width:33px;height:33px}.app-header{gap:5px;padding-inline:10px}.auth-form{padding:24px 17px}.heading-actions>button,.heading-actions>select{flex-basis:100%}.money-detail output{font-size:21px}.line-row.total{align-items:flex-start}.profile-photo>div:last-child{width:100%}}
