@import url('/fonts.css');
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#273c5d;background:#f4f7fc;font-synthesis:none;--ink:#122d59;--muted:#7c8490;--line:#e5e7eb;--brand-blue:#07389e;--brand-navy:#08265e;--brand-red:#e30620;--brand-ice:#a9d8f5;--primary:var(--brand-blue);--soft:#e9eef5;--side:244px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #829fcd;outline-offset:3px}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.boot{height:100vh;display:grid;place-content:center;text-align:center;font-size:24px;letter-spacing:.15em;font-weight:700}.boot span{font-size:13px;color:var(--muted);letter-spacing:0;margin-top:15px;font-weight:400}.sidebar{width:var(--side);position:fixed;inset:0 auto 0 0;background:#08265e;color:#9ea6b4;display:flex;flex-direction:column;z-index:30;padding:29px 18px 15px}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 27px;color:#fff}.brand img{width:38px;height:38px}.brand strong{display:block;font-size:16px;letter-spacing:.035em}.brand small{display:block;font-size:10px;letter-spacing:.16em;color:#929dae;margin-top:5px;text-transform:uppercase}.nav-scroll{overflow:auto;scrollbar-width:thin;flex:1}.nav-group{font-size:9px;letter-spacing:.17em;font-weight:650;text-transform:uppercase;color:#66748a;padding:20px 15px 10px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 14px;margin:3px 0;border-radius:8px;font-size:12px;transition:.15s}.nav-link:hover{background:#212e44;color:#fff}.nav-link.active{background:#deefff;color:#07389e;font-weight:650}.nav-link .dot{width:5px;height:5px;background:#647da5;border-radius:50%;margin-left:auto}.side-footer{margin-top:18px;padding:17px 12px 6px;border-top:1px solid #29364a;font-size:11px;line-height:1.8}.side-footer strong{display:block;color:#cbd2dd;font-weight:500}.side-footer span{color:#8096b9}.workspace{margin-left:var(--side)}.topbar{height:80px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{font-size:12px;color:#7c838f;display:flex;align-items:center;gap:12px}.breadcrumb b{font-weight:500;color:#303d51}.top-right{display:flex;gap:19px;align-items:center}.online{font-size:10px;color:#647084;display:flex;align-items:center;gap:6px}.online:before{content:'';width:6px;height:6px;background:#4f70a5;border-radius:50%}.online.offline{color:#b88531}.online.offline:before{background:#d8a747}.avatar{display:flex;align-items:center;gap:10px;padding-left:20px;border-left:1px solid var(--line)}.avatar-circle{width:34px;height:34px;background:#eaedf1;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;color:#535e6f}.avatar strong{font-size:11px;display:block}.avatar small{font-size:10px;color:var(--muted)}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:#7f8999;padding:7px;border-radius:6px}.icon-button:hover{background:#edeff3;color:var(--primary)}.mobile-toggle{display:none}.main{max-width:1620px;margin:auto;padding:34px 38px 28px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:.15em;color:#6d7c94;text-transform:uppercase;font-weight:600;margin-bottom:8px}h1{font-size:27px;line-height:1.25;letter-spacing:-.85px;margin:0;color:var(--ink);font-weight:650}.subtitle{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.6}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:38px;border-radius:7px;background:#fff;border:1px solid #dce0e6;color:#434e60;padding:9px 13px;font-size:11px;font-weight:600;white-space:nowrap;transition:.15s}.btn:hover{background:#f0f2f6;border-color:#a6b3c9}.btn.primary{color:#fff;background:#07389e;border-color:#07389e;box-shadow:0 3px 6px #21407216}.btn.primary:hover{background:#052c7d}.btn.danger{color:#a7433d;background:#fff4f0;border-color:#efd7d0}.btn.small{min-height:30px;padding:5px 10px;font-size:10px}.btn .icon{width:15px;height:15px}.welcome{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;background:#eaf4fc;border:1px solid #dce1e9;border-radius:11px;padding:23px 27px;margin-bottom:23px;min-height:126px}.welcome h2{font-size:19px;letter-spacing:-.4px;font-weight:600;margin:0 0 8px}.welcome p{font-size:12px;line-height:1.75;margin:0;max-width:500px;color:#6b7585}.welcome-art{display:flex;align-items:center;margin-left:24px;flex-shrink:0}.welcome-art img{width:116px;height:auto;display:block;padding:9px;background:#fff;border-radius:10px;border:1px solid #d7e7f6}.welcome .label{font-size:9px;display:inline-block;background:#d6dde9;color:#4e5e77;padding:5px 8px;border-radius:4px;margin-bottom:10px;font-weight:600;letter-spacing:.05em}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:19px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7d8490}.stat-icon{width:31px;height:31px;background:#edf0f5;border-radius:8px;display:grid;place-items:center;color:#657a9b}.stat:nth-child(2) .stat-icon{background:#edf2f8;color:#7091b0}.stat:nth-child(3) .stat-icon{background:#f9f2e7;color:#b29868}.stat:nth-child(4) .stat-icon{background:#f3edf7;color:#9c7dad}.stat-number{font-size:29px;font-weight:600;letter-spacing:-.8px;line-height:1.2;margin:11px 0}.stat-number small{font-size:10px;color:#8b919a;font-weight:400;letter-spacing:0}.stat-foot{font-size:10px;color:#959aa1}.stat-foot em{font-style:normal;color:#375688;background:#edf0f6;padding:3px 5px;border-radius:4px;margin-right:4px}.grid-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:22px;margin-bottom:23px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.grid-main>.panel{margin:0}.panel-heading{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:13px;margin:0;color:#2d3a4f;font-weight:600;letter-spacing:-.1px}.panel-heading small{font-size:10px;color:#9a9fa7;display:block;margin-top:5px}.panel-body{padding:0 22px 22px}.chart{height:195px;display:flex;position:relative;align-items:stretch;padding:0 8px 20px 34px;gap:15px;border-bottom:1px solid #f0f1f3;background:repeating-linear-gradient(to top,transparent 0,transparent 47px,#f0f1f3 48px,#f0f1f3 49px)}.chart-col{flex:1;display:flex;justify-content:flex-end;align-items:center;flex-direction:column;position:relative;height:100%}.chart-bar{width:60%;max-width:33px;border-radius:4px 4px 0 0;background:#a9d8f5;min-height:2px}.chart-col:last-child .chart-bar{background:#07389e}.chart-label{position:absolute;bottom:-19px;font-size:9px;color:#8d939d}.chart-value{font-size:9px;color:#758195;margin-bottom:5px}.chart-empty{position:absolute;inset:45% 0 auto;text-align:center;font-size:11px;color:#979eaa}.legend{display:flex;align-items:center;gap:7px;justify-content:center;font-size:9px;color:#7f8999;margin-top:20px}.legend:before{content:'';width:7px;height:7px;background:#87c7f0;border-radius:2px}.product-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f1f3;padding:11px 0}.product-row:last-child{border-bottom:0}.product-cube{height:35px;width:35px;background:#edf0f5;border-radius:8px;display:grid;place-items:center;color:#8395b1}.product-row:nth-child(2) .product-cube{background:#eef1f9;color:#8c9ebe}.product-row:nth-child(3) .product-cube{background:#ebeff5;color:#7e8faa}.product-row:nth-child(4) .product-cube{background:#faf2e9;color:#c4aa85}.product-info{flex:1;min-width:0}.product-info strong{font-size:11px;font-weight:500;display:block}.product-info small{font-size:9px;display:block;margin-top:5px;color:#9ca1aa}.product-qty{font-size:17px;font-weight:600;text-align:right}.product-qty small{display:block;font-size:8px;font-weight:400;color:#9da2ab;margin-top:4px}.progress{width:65px;height:3px;border-radius:4px;background:#eaedf2;margin-top:6px}.progress i{display:block;min-width:0;height:3px;background:#8799b7;border-radius:4px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px;white-space:nowrap}thead{background:#f8f9fa;color:#828995;font-size:9px;text-transform:uppercase;letter-spacing:.055em}th{font-weight:500;padding:13px 20px;border-block:1px solid #edeff1}td{padding:15px 20px;border-bottom:1px solid #edeff1;color:#535e70}tr:last-child td{border-bottom:0}td strong{color:#303c50;font-weight:550}td small{display:block;color:#9398a1;font-size:10px;margin-top:4px}.row-actions{display:flex;gap:5px}.badge{font-size:9px;border-radius:5px;padding:5px 8px;font-weight:500;display:inline-flex;align-items:center;gap:5px;background:#edf0f4;color:#4c648a}.badge:before{content:'';height:4px;width:4px;border-radius:50%;background:currentColor}.badge.amber{background:#faf3e6;color:#ac8c45}.badge.blue{background:#edf3f8;color:#7896b8}.badge.red{background:#fbede8;color:#b07362}.badge.gray{background:#eff0f1;color:#7c838d}.empty{text-align:center;padding:40px 20px;color:#9399a3}.empty-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 12px;border-radius:13px;background:#f0f2f5;color:#9ba5b5}.empty strong{display:block;font-size:12px;color:#68717f;font-weight:500}.empty p{font-size:11px;line-height:1.7;margin:7px auto 16px;max-width:370px}.notice{display:flex;align-items:flex-start;gap:10px;padding:14px 17px;background:#edf0f4;border:1px solid #dadfe8;border-radius:8px;font-size:11px;line-height:1.7;color:#656f80;margin-bottom:20px}.notice.warn{background:#fff8e9;border-color:#f2e4c3;color:#9c803d}.notice.error{background:#fff0ec;border-color:#f2d6cb;color:#a96452}.notice .icon{margin-top:1px}.notice a{text-decoration:underline}.stock-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stock-card{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.stock-card .product-cube{width:46px;height:46px;margin-bottom:20px}.stock-card h3{font-size:13px;margin:0 0 7px}.stock-card p{font-size:10px;color:var(--muted);margin:0}.stock-card .stock-total{font-size:34px;font-weight:600;margin:22px 0 8px;letter-spacing:-1px}.stock-total small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}.stock-details{display:flex;justify-content:space-between;padding-top:15px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;margin-top:17px;color:#8a919d}.stock-details b{display:block;color:#525d6f;font-size:12px}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.search{position:relative;min-width:210px}.search .icon{position:absolute;left:12px;top:10px;width:16px}.search input{padding-left:36px}.toolbar input,.toolbar select{height:37px;font-size:11px;background:#fff;border:1px solid #dcdfe5;border-radius:6px;color:#525c6b;padding:8px 12px}.toolbar .search input{padding-left:36px}.toolbar label{font-size:11px;color:#7d8490}.count-label{font-size:10px;color:#8d939d;margin-left:auto}.footer{display:flex;justify-content:space-between;font-size:9px;color:#9aa1ab;line-height:1.7;padding:6px 0}.footer span:first-child{display:flex;gap:6px;align-items:center}.footer .icon{width:12px;height:12px}.tabs{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}.tab{font-size:11px;padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#7b8390}.tab.active{background:#e4e9f1;color:#37517a;border-color:#bec8d7}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.setup-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.setup-step{padding:22px;background:#fff;border:1px solid var(--line);border-radius:9px;display:flex;align-items:flex-start;gap:13px}.step-num{width:28px;height:28px;background:#edf0f6;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#6c7c97;flex-shrink:0}.setup-step strong{display:block;font-size:12px;margin:2px 0 7px}.setup-step p{font-size:10px;color:var(--muted);line-height:1.7;margin:0 0 15px}dialog{border:0;border-radius:14px;padding:0;width:min(740px,calc(100% - 28px));max-height:90vh;box-shadow:0 25px 100px #12213a33;color:var(--ink)}dialog::backdrop{background:#102e3c70;backdrop-filter:blur(3px)}.modal-head{padding:24px 28px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{font-size:18px;margin:0;font-weight:600;letter-spacing:-.4px}.modal-body{padding:24px 28px}.modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:17px 28px;background:#f8f9fa;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500;color:#5c6676}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #dcdfe5;background:#fff;border-radius:6px;padding:10px 11px;color:#29374d;min-height:39px;font-size:12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7b8fae;box-shadow:0 0 0 3px #c9d5e93b}.field textarea{resize:vertical;min-height:70px}.field small{font-size:10px;color:#999ea7;font-weight:400}.field.check{flex-direction:row;align-items:center}.field.check input{width:16px;height:16px;min-height:0;accent-color:var(--primary)}.form-section{grid-column:1/-1;margin-top:4px;padding-top:17px;border-top:1px solid var(--line);font-size:12px;font-weight:600}.qty-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.qty-grid .field{font-size:10px;line-height:1.5}.qty-grid input{font-size:16px;font-weight:500}.form-hint{font-size:11px;line-height:1.8;color:#878e9a;margin:0 0 21px}.form-error{grid-column:1/-1;font-size:12px;color:#af5641;padding:12px;background:#fff1eb;border-radius:6px;margin-bottom:18px}.hidden{display:none!important}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:25px}.detail-grid small{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}.detail-grid strong{font-size:12px;font-weight:500}.detail-total{display:flex;justify-content:space-between;padding:20px 0;font-size:13px;font-weight:600}.timeline{padding:0 20px}.timeline-item{display:flex;gap:14px;border-bottom:1px solid var(--line);padding:15px 0;font-size:11px}.timeline-item small{font-size:9px;color:var(--muted);display:block;margin-top:6px}.timeline-item .icon{color:#8491a6;width:16px}.queue-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px;margin-bottom:12px;font-size:12px}.queue-card p{color:#9b7b4a;font-size:11px;line-height:1.7}.audit-json{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f3f4f6;border-radius:6px;padding:16px;max-height:350px;overflow:auto}#toast{position:fixed;bottom:25px;right:25px;max-width:420px;background:#1d2e49;color:#fff;font-size:12px;line-height:1.6;border-radius:9px;padding:14px 20px;box-shadow:0 10px 40px #15243b30;z-index:100;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#8e4637}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{position:relative;background:#082f80;color:white;padding:60px 70px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.auth-brand:after{content:'';position:absolute;width:500px;height:500px;border:1px solid #313e53;border-radius:50%;right:-230px;bottom:-150px;box-shadow:0 0 0 70px #25324833,0 0 0 140px #25324822}.auth-brand .brand{padding:0}.auth-copy{z-index:1;max-width:450px}.auth-copy .eyebrow{color:#9eb0cd}.auth-copy h1{font-size:43px;line-height:1.15;color:#eef2f8;letter-spacing:-1.8px}.auth-copy p{font-size:14px;line-height:1.9;color:#96a2b5;margin-top:25px;max-width:380px}.auth-bottom{font-size:11px;line-height:1.8;color:#8390a6;z-index:1}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px;background:#fafbfc}.auth-form{width:100%;max-width:350px}.auth-form h2{font-size:27px;letter-spacing:-.7px;margin:0 0 10px}.auth-form .field{margin:19px 0}.auth-form p{font-size:12px;line-height:1.8;color:#8a919b}.auth-form .btn{width:100%;margin-top:8px;height:42px;font-size:12px}.auth-form .muted{font-size:10px;text-align:center;margin-top:23px}.filters-title{font-size:11px;color:#7c8492}.settings-form{max-width:800px}.info-list{list-style:none;padding:0;margin:0}.info-list li{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.info-list b{font-weight:500}.entity-link{color:#315083;font-weight:500;border:none;padding:0;background:none;text-align:left;font-size:inherit;text-decoration:underline;text-decoration-color:#bfc8d7;text-underline-offset:3px}.screen-overlay{display:none}
@media(min-width:1600px){:root{--side:264px}.main{padding-top:45px}.stats{gap:22px}.stat{padding:25px}.nav-link{font-size:13px;padding:13px 15px}.chart{height:240px}}
@media(max-width:1200px){:root{--side:215px}.main{padding:28px 25px}.topbar{padding:0 25px}.stats{gap:12px}.stat{padding:16px}.stat-number{font-size:25px}.grid-main{grid-template-columns:minmax(0,1.3fr) minmax(275px,1fr)}.brand strong{font-size:13px}.brand img{width:33px}.stock-cards{gap:10px}.stock-card{padding:16px}.page-heading{align-items:flex-start}.stock-card h3{font-size:11px}}
@media(max-width:960px){.sidebar{transform:translateX(-100%);transition:.2s;width:244px}.sidebar.open{transform:translateX(0)}.sidebar.open~.screen-overlay{display:block;position:fixed;inset:0;background:#102e3c60;z-index:25}.workspace{margin-left:0}.mobile-toggle{display:inline-flex}.topbar{height:65px}.main{padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.stock-cards{grid-template-columns:repeat(2,1fr)}.auth-brand{padding:40px}.auth-copy h1{font-size:34px}.topbar .breadcrumb span:first-of-type{display:none}}
@media(max-width:640px){.main{padding:22px 16px}.topbar{padding:0 13px}.top-right{gap:5px}.avatar{padding-left:10px}.avatar>div:not(.avatar-circle){display:none}.online{font-size:9px}.breadcrumb{font-size:11px;gap:5px}.page-heading{flex-direction:column;gap:17px;margin-bottom:22px}h1{font-size:25px}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1}.welcome{padding:21px}.welcome-art{display:none}.welcome h2{font-size:18px}.welcome p{font-size:11px}.stats{gap:10px}.stat{padding:15px}.stat-top{font-size:10px;gap:6px}.stat-icon{width:25px;height:25px}.stat-number{font-size:25px}.stat-number small{font-size:9px}.stat-foot{font-size:9px}.grid-main,.two-col,.setup-grid{grid-template-columns:1fr;gap:15px}.grid-main>.panel{margin-bottom:0}.panel-heading{padding:17px}.panel-body{padding:0 17px 17px}.table-scroll{max-width:100%}.stock-cards{gap:10px}.stock-card .stock-total{font-size:29px}.stock-details{font-size:9px}.footer{flex-direction:column;gap:5px}.form-grid{gap:14px;grid-template-columns:1fr}.field.full,.form-section{grid-column:1}.qty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-head{padding:20px}.modal-body{padding:20px}.modal-foot{padding:16px 20px}.detail-grid{grid-template-columns:1fr 1fr}.auth{grid-template-columns:1fr}.auth-brand{padding:25px;min-height:190px}.auth-brand .brand{margin-bottom:32px}.auth-copy h1{font-size:28px;max-width:280px}.auth-copy p,.auth-bottom{display:none}.auth-form-wrap{padding:35px 25px}.auth-form h2{font-size:24px}.count-label{width:100%;margin:0}#toast{bottom:16px;right:16px;left:16px}.search{width:100%}.search input{width:100%}}
@media print{.sidebar,.topbar,.page-heading .actions,.footer,.toolbar,.row-actions,.btn,.notice{display:none!important}.workspace{margin:0}.main{padding:0}.panel,.stat,.stock-card{break-inside:avoid;border-color:#ccc}.table-scroll{overflow:visible}table{white-space:normal;font-size:9px}.stats{grid-template-columns:repeat(4,1fr)}body{background:white}.page-heading h1{font-size:20px}dialog{max-width:none;max-height:none;position:absolute;inset:0}.modal-head button,.modal-foot{display:none}}

/* Identité Le Pingouin : bleu royal, bleu glacier, blanc et accent rouge. */
.sidebar .brand{flex-direction:column;gap:10px;padding:0 8px 12px;flex-shrink:0}
.sidebar .brand img{width:148px;height:auto;display:block;background:#fff;padding:9px;border-radius:9px;border-bottom:3px solid var(--brand-red)}
.brand-caption{font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:#b8d5f6;font-weight:500}
.nav-link.active{box-shadow:inset 3px 0 var(--brand-red)}
.nav-link.active .dot{background:var(--brand-blue)}
.nav-group{color:#91acd4}.sidebar{color:#bdcdea}
.auth-brand{background:linear-gradient(145deg,var(--brand-navy),#07389e);border-top:4px solid var(--brand-red)}
.auth-brand .brand{align-items:flex-start;flex-direction:column;gap:12px;z-index:1;margin-bottom:26px}
.auth-brand .brand img{width:230px;max-width:100%;height:auto;display:block;background:#fff;padding:14px;border-radius:12px}
.auth-copy .eyebrow{color:#b4e1ff}.auth-copy h1{color:#fff}.auth-copy p{color:#c0d7f5}.auth-bottom{color:#bdd4ef}
.auth-form .eyebrow{color:var(--brand-red)}
.welcome{border-left:3px solid var(--brand-blue)}
.welcome .label{background:#d7eafa;color:#245399}
.btn.primary{background:var(--brand-blue);border-color:var(--brand-blue)}
.btn.primary:hover{background:#052c7d;border-color:#052c7d}
.stat:nth-child(3) .stat-icon{background:#fff0f2;color:#c5243a}
.stat:nth-child(4) .stat-icon{background:#edf1fc;color:#4962aa}
.product-row:nth-child(3) .product-cube{background:#eef8fe;color:#4593c3}
.product-row:nth-child(4) .product-cube{background:#f1f3fb;color:#788dbe}
.badge.red,.notice.error,.form-error{color:#b71b30;background:#fff0f2;border-color:#f3cbd1}
.btn.danger{color:#b71b30;background:#fff0f2;border-color:#f3cbd1}
#toast.error{background:#b71b30}
@media(max-width:640px){.auth-brand{padding:22px 25px}.auth-brand .brand{flex-direction:row;align-items:center;margin-bottom:20px;gap:16px}.auth-brand .brand img{width:112px;padding:7px;border-radius:8px}.auth-brand .brand-caption{max-width:110px;line-height:1.8}.auth-copy h1{font-size:26px}.auth-copy .eyebrow{font-size:9px}}
/* Suivi des habitudes d’achat — charte bleu royal et glace. */
.notification-bell{display:flex;align-items:center;gap:5px;text-decoration:none;color:var(--brand-blue);padding:7px;border-radius:8px;background:#eef5ff}.notification-bell span{font-size:11px;font-weight:800}.frequency-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.frequency-controls .tabs{margin:0}.frequency-controls .actions{flex-wrap:wrap}.frequency-reason{margin:6px 0;max-width:320px}.frequency-reason small{white-space:normal;line-height:1.5}.frequency-chart{margin:20px 0;padding:18px;background:#f3f8ff;border:1px solid #dfeaf8;border-radius:14px}.frequency-chart figcaption{font-weight:700;font-size:13px;color:var(--brand-navy)}.frequency-chart figcaption small{font-weight:400;color:#596c86}.frequency-chart svg{width:100%;max-height:230px;margin-top:14px}.frequency-chart svg text{font-size:11px;fill:#526982}.frequency-chart circle{fill:var(--brand-blue);stroke:white;stroke-width:2}.frequency-line{fill:none;stroke:var(--brand-blue);stroke-width:3}.frequency-axis{fill:none;stroke:#c3d6ef;stroke-width:1}.frequency-method{background:white;border:1px solid #dfe6f0;border-radius:12px;padding:18px 22px;font-size:12px;color:#53677f;line-height:1.8;margin:20px 0}.frequency-method summary{font-weight:700;color:var(--brand-navy);cursor:pointer}.frequency-subtitle{font-size:13px;margin-top:24px}.frequency-link{margin-bottom:18px}.frequency-controls .tabs button{white-space:normal}.frequency-controls .tabs{flex-wrap:wrap}.badge.red{background:#ffedf0;color:#be142e}
@media(max-width:700px){.frequency-controls{align-items:stretch}.frequency-controls>.actions{width:100%}.frequency-controls .btn{flex:1}.frequency-chart{padding:12px;margin:16px 0}.notification-bell{padding:6px}}
.frequency-controls .tabs{display:flex;gap:4px;padding:5px;background:#eaf0f9;border-radius:10px;border:1px solid #dce6f3}.frequency-controls .tabs button{border:0;background:transparent;padding:10px 13px;border-radius:7px;color:#566c8c;font-size:11px;font-weight:600;min-height:38px}.frequency-controls .tabs button.active{background:white;color:var(--brand-blue);box-shadow:0 1px 5px #16386316}.frequency-controls .tabs button:hover{color:var(--brand-blue)}.frequency-reason{min-width:175px}
.photo-modal{width:min(1350px,96vw);max-width:96vw}.photo-review-info{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:18px;font-size:12px}.photo-review-page{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);gap:24px;margin-top:25px;padding-top:25px;border-top:1px solid var(--line)}.photo-review-image{align-self:start;position:sticky;top:0;background:#f1f6fc;padding:12px;border-radius:12px}.document-photo{display:block;width:100%;max-height:650px;object-fit:contain;margin-bottom:14px;background:#f2f5f9;border:1px solid #d9e2f0;border-radius:8px}.photo-review-fields h3{font-size:14px;color:var(--brand-navy)}.photo-review-fields fieldset{border:0;padding:0;margin:0;min-width:0}.capture-row{border:1px solid #dce6f4;border-radius:10px;padding:14px;background:#f8faff;margin:16px 0}.capture-row-title{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;font-weight:650;color:var(--brand-blue);margin-bottom:14px}.ocr-text{font-size:12px;margin:20px 0}.ocr-text pre{white-space:pre-wrap;max-height:250px;overflow:auto;background:#f4f7fb;padding:16px}.photo-modal .form-error{white-space:pre-line}.driver-portal{max-width:850px;margin:0 auto;padding:20px}.driver-portal header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:15px 0 28px}.driver-portal header img{width:90px}.driver-portal header h1{font-size:23px}.driver-portal header p{font-size:13px;color:#6a7c95}.driver-portal main>.btn{width:100%;margin:10px 0 24px}.photo-modal .modal-body{max-height:78vh}.photo-review-fields input:disabled,.photo-review-fields select:disabled{color:#31496f;opacity:1}
@media(max-width:750px){.photo-review-page{grid-template-columns:minmax(0,1fr);gap:16px}.photo-review-image{position:static}.document-photo{max-height:350px}.photo-modal{width:98vw;max-width:98vw}.photo-modal .modal-body{padding:14px}.capture-row-title{flex-wrap:wrap}.driver-portal{padding:16px}.driver-portal header img{width:65px}.driver-portal header h1{font-size:21px}}
.photo-modal #modal-form{display:flex;flex-direction:column;max-height:90vh}.photo-modal .modal-head,.photo-modal .modal-foot{flex-shrink:0}.photo-modal .modal-body{overflow:auto;min-height:0;max-height:none;flex:1}.photo-modal .modal-foot{position:sticky;bottom:0;z-index:2}.photo-modal .document-photo{background:white}

/* Livraisons extensibles et récapitulatif du chargement */
#modal.delivery-modal{width:min(1260px,96vw);max-width:1260px}
.delivery-row{border:1px solid #dce3ed;border-radius:10px;padding:14px;margin:12px 0;background:#fff}
.delivery-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.delivery-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.delivery-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.delivery-extra[hidden]{display:none}
.delivery-line-total{align-self:center;font-weight:700}
.delivery-fee{display:grid;grid-template-columns:2fr 1fr 2fr auto;gap:12px;align-items:end;margin-bottom:12px}
.delivery-fee .btn{margin-bottom:2px}
.delivery-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0}
.delivery-totals>div{background:#f1f5fb;border-radius:8px;padding:14px;font-size:12px}
.delivery-totals strong{display:block;margin-top:8px;font-size:17px;color:#07389e}
#delivery-preview{margin-top:24px;border-top:2px solid #dce3ed;padding-top:16px}
@media(max-width:700px){.delivery-fields,.delivery-extra{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-fee{grid-template-columns:1fr 1fr}.delivery-totals{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.delivery-fields,.delivery-extra,.delivery-fee,.delivery-totals{grid-template-columns:1fr}}

.delivery-row-head{gap:8px;flex-wrap:wrap}.delivery-photo-result{margin-top:12px}.delivery-photo-result .document-photo{max-width:100%;max-height:420px;object-fit:contain}.delivery-photo-result summary{cursor:pointer;font-weight:600}.delivery-row-head strong{margin-right:auto}

.delivery-save{margin:18px 0;padding:12px 0}.delivery-save>.btn{width:100%;min-height:48px}.delivery-save .form-error{margin-bottom:12px}

.statement-list{display:grid;gap:12px}.statement-card{border:1px solid var(--line);border-radius:12px;padding:16px;overflow-wrap:anywhere;scroll-margin-top:16px}.statement-card p{margin:8px 0}.statement-card .btn{min-height:44px}.statement-new{border:2px solid var(--brand-blue);background:#f4f8ff}@media(max-width:600px){.statement-card .actions{display:grid;grid-template-columns:1fr 1fr}.statement-card .btn{width:100%;font-size:12px}}

.client-search{position:relative;min-width:0}.client-search input{width:100%;min-height:46px}.client-search-results{max-height:240px;overflow-y:auto;border:1px solid #cbd5e1;border-radius:8px;background:white;margin-top:4px}.client-search-results[hidden]{display:none}.client-search-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f5;background:white;color:#163354;padding:13px 12px;font:inherit;font-size:15px;cursor:pointer}.client-search-results button:hover,.client-search-results button:focus{background:#e8f0ff;outline:2px solid #174aad;outline-offset:-2px}.client-search-empty{padding:12px;color:#64748b}select[data-client-search-ready][hidden]{display:none!important}

.pointer-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.pointer-dashboard-tile{display:flex;align-items:center;gap:16px;min-height:100px;padding:22px;border:1px solid var(--border,#dde3eb);border-radius:14px;background:#f1f6ff;color:#07389e;text-decoration:none;text-align:left;font:inherit;font-size:20px;cursor:pointer}.pointer-dashboard-tile svg{width:32px;height:32px;flex-shrink:0}.pointer-dashboard-tile:hover{background:#e4edff}.pointer-dashboard-tile:focus-visible{outline:3px solid #07389e;outline-offset:3px}

.order-carousel-panel{min-width:0}.order-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;max-width:100%;padding-bottom:12px}.order-carousel:focus-visible{outline:2px solid #0b3c9e;outline-offset:3px}.order-carousel-card{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;border:2px solid #0b3c9e;border-left:8px solid #0b3c9e;border-radius:14px;padding:18px;background:#edf4ff;overflow-wrap:anywhere}.order-carousel-client{display:block;font-size:24px;margin-top:8px}.order-carousel-card .actions{flex-wrap:wrap}.order-carousel-card .btn{white-space:normal}

.order-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;margin-top:16px}.order-filters label{display:flex;flex-direction:column;gap:7px;min-width:0}.order-filters select,.order-filters input{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px;border:1.5px solid #64748b;border-radius:8px;background:#fff;color:#172e51;font:inherit}.orders-responsive{padding:16px;overflow-x:auto}.orders-responsive table{width:100%;border-collapse:collapse;table-layout:fixed}.orders-responsive th,.orders-responsive td{border:1px solid #64748b;padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:normal}.orders-responsive small{display:block;margin-top:5px}.orders-responsive .actions{flex-wrap:wrap}.orders-responsive .btn{white-space:normal}@media(max-width:600px){.orders-responsive{overflow:visible}.orders-responsive table,.orders-responsive tbody{display:block}.orders-responsive thead{display:none}.orders-responsive tr{display:block;border:2px solid #173d76;border-radius:10px;margin-bottom:14px;overflow:hidden;background:white}.orders-responsive td{display:block;border:0;border-bottom:1px solid #94a3b8;width:auto!important;padding:12px;font-size:15px}.orders-responsive td:last-child{border-bottom:0}.orders-responsive td[data-label]:before{content:attr(data-label);display:block;font-weight:700;color:#173d76;font-size:13px;margin-bottom:5px}.order-filters{grid-template-columns:1fr}.order-filters input[type=date]{max-width:100%;min-width:0}}

.order-carousel{cursor:grab}.order-carousel.is-dragging{cursor:grabbing;user-select:none}.order-carousel-navigation{justify-content:space-between}.order-carousel-panel{padding-top:8px}

.order-carousel{align-items:flex-start;padding-bottom:8px}.order-carousel-card{padding:14px;border-left-width:6px;border-radius:12px}.order-carousel-client{font-size:22px;margin-top:5px;line-height:1.2}.order-carousel-card p{margin:10px 0;line-height:1.35;font-size:15px}.order-carousel-card .actions{gap:8px;margin-top:10px}.order-carousel-card .btn{min-height:44px;padding:10px 13px;font-size:14px}.order-carousel-panel>p{margin:8px 0 12px}.order-carousel-navigation{margin-bottom:8px}

.action-finder{margin:0 12px 16px;padding:11px;border:1px solid #ffffff45;border-radius:12px;background:#ffffff12}.action-finder label{display:flex;align-items:center;gap:7px;color:#fff;font-size:12px;font-weight:700;margin-bottom:8px}.action-finder label svg{width:16px;height:16px}.action-finder input{width:100%;box-sizing:border-box;border:1px solid #ffffff70;border-radius:8px;background:#fff;color:#172e51;padding:10px;font-size:13px;min-height:40px}.action-finder-results{max-height:270px;overflow-y:auto;margin-top:8px;background:white;border-radius:8px}.action-finder-results[hidden]{display:none}.action-finder-results button,.action-finder-results a{display:block;width:100%;box-sizing:border-box;text-align:left;font:inherit;font-size:13px;line-height:1.35;padding:11px;color:#173d76;background:white;border:0;border-bottom:1px solid #dde3eb;text-decoration:none;cursor:pointer}.action-finder-results button:hover,.action-finder-results a:hover,.action-finder-results button:focus-visible,.action-finder-results a:focus-visible{background:#edf4ff;outline:2px solid #173d76;outline-offset:-2px}.action-finder-results p{font-size:12px;color:#475569;padding:10px;margin:0}

.pointer-manual-shortcut{margin:22px 0 8px}.pointer-manual-shortcut .btn{font-size:12px;min-height:38px;padding:8px 12px}.pointer-manual-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;position:sticky;top:0;background:white;padding:8px 0;z-index:2}.pointer-manual-controls span{font-size:12px;font-weight:700}.pointer-manual-view{min-width:0}.pointer-manual-view canvas{display:block;max-width:100%;margin:10px auto;border:1px solid #cbd5e1;touch-action:pan-y}.pointer-manual-controls .btn{font-size:12px;padding:8px;min-height:38px}

/* Personal dashboard layout; existing cards keep their own typography and sizes. */
.dashboard-personalize{display:flex;justify-content:flex-end;margin:0 0 18px}
[data-dashboard-block][hidden]{display:none!important}
.grid-main>[data-dashboard-block]>.panel{height:100%;margin-bottom:0}
.dashboard-personalized-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}
.dashboard-personalized-flow>[data-dashboard-block]{grid-column:1/-1;min-width:0;margin-bottom:0}
.dashboard-personalized-flow>[data-dashboard-block="production"],.dashboard-personalized-flow>[data-dashboard-block="cold"]{grid-column:auto}
.dashboard-personalized-flow>[data-dashboard-block]>.panel{margin-bottom:0}
.dashboard-layout-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dde3eb}
.dashboard-layout-row label{flex:1;min-width:0;font-size:13px;line-height:1.5}.dashboard-layout-row label small{display:block;color:#667085}
.dashboard-layout-row input{accent-color:#07389e}.dashboard-layout-row>div{display:flex;gap:5px}
.dashboard-layout-grab{cursor:grab;font-size:24px;color:#61718a;padding:5px;user-select:none}
[data-layout-error]{color:#a32f26}
@media(max-width:640px){.dashboard-personalized-flow{grid-template-columns:1fr;gap:15px}.dashboard-layout-row{flex-wrap:wrap}.dashboard-layout-row>div{width:100%;justify-content:flex-end}.dashboard-personalize .btn{font-size:11px}}
#dashboard-layout-dialog .modal-body{max-height:55vh;overflow-y:auto}
#dashboard-layout-dialog .modal-foot{position:sticky;bottom:0;z-index:3;flex-wrap:wrap}
#dashboard-layout-dialog .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}
