
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142c46;background:#f3f6fb;font-synthesis:none;--bg:#f3f6fb;--panel:#fff;--text:#142c46;--muted:#6b7d91;--line:#e1e8f0;--blue:#0863cf;--soft:#eaf3ff;--green:#14825d;--red:#c44145;--shadow:0 8px 30px #15325107;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:var(--panel);color:var(--text);padding:11px 16px;border-radius:9px;font-weight:600;transition:background .15s}button:hover{background:var(--soft)}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.primary{background:var(--blue);border-color:var(--blue);color:white}button.danger{color:var(--red)}a{color:var(--blue);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:27px;letter-spacing:-.7px;margin-bottom:8px}h2{font-size:17px;margin-bottom:20px}h3{font-size:14px}small,.muted{color:var(--muted);font-size:12px}.eyebrow{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1.7px;margin-bottom:9px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:16px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:22px;box-shadow:var(--shadow);min-width:0}.card h2:last-child{margin-bottom:0}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#0c2035;color:#c3d0df;padding:25px 16px;display:flex;flex-direction:column;z-index:30;overflow:auto}.brand{display:flex;align-items:center;gap:11px;margin:0 8px 26px;color:white;letter-spacing:.8px;font-size:14px}.brand img{width:38px;height:38px;object-fit:contain;background:white;border-radius:8px;padding:3px}.brand small{display:block;color:#8ca5bd;font-size:9px;letter-spacing:1.7px;margin-top:5px}.sidebar nav{display:grid;gap:3px}.nav-link{display:flex;align-items:center;gap:11px;border:0;background:transparent;text-align:left;color:#afc0d3;padding:10px 12px;font-size:12px;font-weight:500;width:100%}.nav-link:hover{background:#162f49}.nav-link.active{background:#0863cf;color:white}.nav-icon{font-size:16px;min-width:20px}.nav-code{margin-left:auto;color:#6e90b1;font-size:9px}.sidebar .foot{margin-top:auto;padding:24px 10px 0;border-top:1px solid #20354b;font-size:11px;color:#7c99b5}.workspace{margin-left:244px}.topbar{position:sticky;top:0;z-index:20;height:75px;border-bottom:1px solid var(--line);background:var(--panel);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:12px}.avatar{width:35px;height:35px;border-radius:50%;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-size:13px;font-weight:700}.content{max-width:1600px;margin:auto;padding:32px}.page-head{margin-bottom:25px}.status{font-size:11px;color:var(--green);display:flex;align-items:center;gap:7px}.status:before{content:'';height:6px;width:6px;border-radius:50%;background:currentColor}.status.warn{color:#b57c18}.pill{display:inline-flex;padding:5px 8px;border-radius:5px;background:var(--soft);color:var(--blue);font-size:10px;font-weight:650}.pill.good{background:#e5f6ef;color:#17835d}.pill.bad{background:#fff0ed;color:#bb4f37}.pill.warn{background:#fff5dc;color:#9d7118}.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi{padding:19px}.kpi small{display:block;margin-bottom:14px}.kpi strong{font-size:24px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.kpi:first-child{border-top:3px solid var(--blue)}.kpi:nth-child(2) strong{color:var(--green)}.kpi:nth-child(3) strong{color:#cc7c22}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:left}th{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:650;background:var(--bg)}td,th{padding:14px 13px;border-bottom:1px solid var(--line)}td .sub{display:block;font-size:10px;color:var(--muted);margin-top:5px}td button{padding:6px 9px;font-size:11px}tr:last-child td{border-bottom:0}.num{text-align:right;font-variant-numeric:tabular-nums}.empty{padding:45px 15px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar label{min-width:140px;flex:1}.toolbar input,.toolbar select{margin-top:0}.notice{padding:13px 15px;background:var(--soft);border:1px solid #c7e0ff;color:var(--blue);border-radius:9px;font-size:12px;line-height:1.6;margin-bottom:18px}.notice.warn{background:#fff7e6;border-color:#f2dfb6;color:#996d20}.notice.error{background:#fff0ed;border-color:#f0c6c3;color:var(--red)}.alert-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:15px 0}.alert-item:last-child{border:0}.alert-item strong{display:block;font-size:12px;margin-bottom:5px}.bar-row{display:grid;grid-template-columns:75px 1fr 95px;gap:12px;align-items:center;font-size:11px;margin:20px 0}.bar-track{background:var(--bg);height:8px;border-radius:20px;overflow:hidden}.bar-fill{background:var(--blue);height:100%;border-radius:20px}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick button{padding:22px 10px;display:grid;gap:13px;text-align:center;font-size:13px}.quick button span{font-size:25px;color:var(--blue)}label{display:block;font-size:12px;font-weight:600;color:var(--text)}input,select,textarea{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--panel);color:var(--text);min-height:44px}textarea{min-height:100px;resize:vertical}input[type=checkbox]{display:inline-block;width:17px;min-height:17px;margin:0 7px 0 0;vertical-align:middle}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.fields .wide{grid-column:1/-1}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.steps{display:flex;gap:7px;margin-bottom:24px}.step{flex:1;color:var(--muted);font-size:10px;text-align:center;padding:10px 2px;border-bottom:3px solid var(--line)}.step.active{color:var(--blue);border-color:var(--blue);font-weight:700}.step b{display:block;margin-bottom:7px;font-size:13px}.invoice-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.summary{align-self:start;position:sticky;top:96px}.summary .total{font-size:32px;font-weight:750;letter-spacing:-1px;margin:18px 0 5px}.summary .row{font-size:12px;margin:13px 0}.summary hr{border:0;border-top:1px solid var(--line);margin:18px 0}.summary button{width:100%;margin-top:15px}.list-item{padding:16px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border:0}.list-button{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;margin:8px 0;font-size:12px}.list-button small{display:block;margin-top:5px}.total-inline{font-weight:750;font-size:19px;color:var(--blue)}.bottom-nav{display:none}.mobile-menu{display:none}.login-wrap{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:#0c2035;color:white;padding:10vw 8vw;display:flex;flex-direction:column;justify-content:center}.login-brand img{width:150px;max-height:120px;object-fit:contain;background:white;border-radius:16px;padding:12px;margin-bottom:60px}.login-brand h1{font-size:46px;line-height:1.15;max-width:440px}.login-brand p{color:#8ea8c2;line-height:1.8;font-size:15px}.login-panel{display:flex;align-items:center;justify-content:center;padding:30px}.login-card{width:100%;max-width:390px}.login-card h1{font-size:29px}.login-card form{display:grid;gap:21px;margin:30px 0 22px}.login-card details{margin-top:30px;font-size:12px;color:var(--muted)}.login-card details form{margin-top:16px;gap:12px}.login-card .mobile-logo{display:none}dialog{width:min(680px,calc(100% - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:16px;padding:27px;color:var(--text);background:var(--panel);box-shadow:0 25px 100px #0004}dialog::backdrop{background:#061a3180;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.dialog-head h2{margin:0}.dialog-head button{padding:6px 10px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#102b45;color:white;border-radius:10px;padding:14px 22px;z-index:100;width:max-content;max-width:90vw;font-size:12px;box-shadow:0 10px 45px #0003;display:none}#toast.show{display:block}#splash{position:fixed;inset:0;z-index:200;background:var(--panel);display:flex;align-items:center;justify-content:center;flex-direction:column;animation:splash-out .4s 1.5s forwards;pointer-events:none}#splash img{width:180px;opacity:0;animation:reveal .5s .85s forwards}#splash p{font-size:11px;color:var(--muted);margin-top:22px;opacity:0;animation:reveal .5s 1s forwards}.splash-orbit{display:flex;gap:14px;position:absolute;animation:orbit 1s forwards}.splash-orbit i{height:21px;width:21px;border-radius:50%;background:#1388d5;animation:bounce .45s alternate 2}.splash-orbit i:nth-child(2){background:#eecc18;animation-delay:.1s}.splash-orbit i:nth-child(3){background:#d74449;animation-delay:.2s}@keyframes bounce{to{transform:translateY(-25px)}}@keyframes orbit{70%{transform:rotate(180deg);opacity:1}100%{transform:rotate(360deg) scale(.3);opacity:0}}@keyframes reveal{to{opacity:1}}@keyframes splash-out{to{opacity:0;visibility:hidden}}.sync-item{overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:14px 0}.checklist{display:flex;gap:15px;flex-wrap:wrap}.checklist label{font-weight:400}.report-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.report-totals strong{display:block;font-size:21px;margin-top:10px}.print-frame{position:fixed;left:-10000px;width:800px;height:1000px;border:0}.search-results{max-height:290px;overflow:auto}.error-text{color:var(--red);font-size:12px;line-height:1.5}.user-label{line-height:1.5}.user-label strong{font-size:12px}.user-label small{display:block}.section-gap{margin-top:20px}
@media(prefers-color-scheme:dark){:root{--bg:#091525;--panel:#102137;--text:#dbe7f4;--muted:#92a5bc;--line:#25394f;--blue:#4b9cff;--soft:#183655;--shadow:none;color-scheme:dark}.sidebar{background:#07111e}.notice{border-color:#27507a}.notice.warn{background:#352d1b;color:#f0cc79;border-color:#655124}.notice.error{background:#3b242d;color:#f6a2a8;border-color:#643846}.pill.good{background:#183b32;color:#75d5af}.pill.bad{background:#422c30;color:#f8a69b}.pill.warn{background:#42391f;color:#e7c676}button.primary{background:#0874e9;color:white;border-color:#0874e9}.login-brand{background:#07111e}}
@media(min-width:1500px){.content{padding:40px}.sidebar{width:260px}.workspace{margin-left:260px}}
@media(max-width:1150px){.sidebar{width:215px}.workspace{margin-left:215px}.content{padding:24px}.kpis{grid-template-columns:repeat(3,1fr)}.grid.three{grid-template-columns:1fr 1fr}.invoice-layout{grid-template-columns:1fr 250px}.topbar{padding:0 24px}.kpi strong{font-size:21px}}
@media(max-width:780px){h1{font-size:23px}.sidebar{display:none;inset:65px 0 72px 0;width:auto}.sidebar.open{display:flex}.workspace{margin-left:0}.topbar{height:65px;padding:0 16px}.topbar .context-name{display:none}.mobile-menu{display:block;padding:7px 10px}.content{padding:22px 16px 100px}.grid,.grid.three{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{padding:15px}.kpi strong{font-size:22px}.kpis .kpi:last-child{grid-column:1/-1}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:35;display:flex;justify-content:space-around;background:var(--panel);border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom))}.bottom-nav button{border:0;border-radius:5px;background:transparent;padding:3px 8px;min-width:54px;color:var(--muted);display:grid;gap:5px;font-size:10px;font-weight:500}.bottom-nav button span{font-size:20px}.bottom-nav button.active{color:var(--blue);background:var(--soft)}.card{padding:18px;border-radius:11px}.invoice-layout{grid-template-columns:1fr}.summary{position:static}.steps{gap:2px}.step{font-size:9px}.quick{grid-template-columns:repeat(3,1fr)}.quick button{padding:18px 7px;font-size:11px}.login-wrap{display:block}.login-brand{display:none}.login-panel{min-height:100dvh;padding:30px}.login-card .mobile-logo{display:block;width:120px;max-height:100px;object-fit:contain;margin:0 auto 42px;background:white;border-radius:10px;padding:8px}.fields{gap:15px}.toolbar{gap:10px}.toolbar label{min-width:120px}.page-head .row{align-items:start}.report-totals{grid-template-columns:1fr 1fr}.topbar .status{max-width:135px;font-size:10px}.user-label strong{font-size:11px}.user-label small{font-size:9px}.avatar{width:30px;height:30px}#toast{bottom:87px}.table-wrap{margin:0 -5px}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition:none!important}#splash{display:none}}
@media print{.sidebar,.topbar,.bottom-nav,.toolbar,button,#toast,#splash{display:none!important}.workspace{margin:0}.content{padding:0}.card{box-shadow:none;border:0}.table-wrap{overflow:visible}body{background:white;color:black}}
/* Splash : trois rebonds décalés, puis une rotation commune et le logo. */
#splash{animation:splash-out .4s 3.5s forwards}#splash img{width:88px;height:88px;object-fit:contain;animation:reveal .6s 2.8s forwards}#splash p{animation:reveal .6s 3s forwards}.splash-orbit{animation:orbit-final 1.5s 1.4s both}.splash-orbit i{background:#f5ca16;animation:ball-bounce .5s 0s both}.splash-orbit i:nth-child(2){background:#e53c42;animation-delay:.45s}.splash-orbit i:nth-child(3){background:#1388d5;animation-delay:.9s}@keyframes ball-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-36px)}}@keyframes orbit-final{0%{transform:rotate(0);opacity:1}75%{transform:rotate(360deg);opacity:1}100%{transform:rotate(420deg) scale(.25);opacity:0}}.login-panel{background-image:radial-gradient(#1876d20b 1px,transparent 1px);background-size:20px 20px}.login-card input{border-radius:24px}.login-card button.primary{border-radius:26px}.login-card .mobile-logo{width:88px;height:88px;object-fit:contain}fieldset{border:1px solid var(--line);border-radius:12px}input[type=checkbox]{width:auto;display:inline-block;margin:8px}.login-brand img{width:104px;height:104px;object-fit:contain}.login-brand h1{font-size:clamp(28px,4vw,46px)}@media(prefers-color-scheme:dark){body,.login-panel{background-color:#081426}.login-brand{background:#081426}#splash{background:#081426}}@media(prefers-reduced-motion:reduce){#splash{display:none}}

body{color:var(--text)}@media(prefers-color-scheme:dark){:root{color:var(--text);--text:#e4edf7;--muted:#9ab0c7}h1,h2,h3{color:var(--text)}}

[data-layout=dashboard]{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}@media(max-width:780px){[data-layout=dashboard]{grid-template-columns:minmax(0,1fr)}}

/* Cotech mobile — rythme, confort tactile et identité commune. */
:root{--bg:#f6f8fc;--panel:#fff;--text:#172d47;--muted:#73849a;--line:#e8edf5;--blue:#0865df;--soft:#edf4ff;--shadow:0 5px 24px #122d5606;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-tap-highlight-color:transparent}
body{background:var(--bg);text-rendering:optimizeLegibility}.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}button{min-height:44px;touch-action:manipulation;border-radius:13px;transition:transform .16s,background .16s,box-shadow .16s}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80b5ff;outline-offset:3px}button.primary{background:#0865df;border-color:#0865df;box-shadow:0 7px 16px #0865df20}button.primary:hover{background:#0756bf}.card{border-radius:22px;border-color:var(--line);box-shadow:var(--shadow)}h1{letter-spacing:-1px;font-weight:750}h2{letter-spacing:-.35px}input,select,textarea{min-height:50px;border-radius:14px;background:var(--bg);font-size:15px;border-color:var(--line);transition:border-color .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0865df0c}input::placeholder{color:#9aa8b9}label{font-size:12px;line-height:1.5}.eyebrow{font-size:10px;letter-spacing:1.5px}.empty{padding:40px 20px;line-height:1.8;background:var(--bg);border-radius:17px;margin:8px 0}.notice{border-radius:15px}.pill{border-radius:20px;padding:6px 10px}.brand img{padding:4px;width:42px;height:42px;border-radius:13px}.nav-icon .icon{width:20px;height:20px}.nav-link{border-radius:12px;min-height:45px}.nav-link.active{box-shadow:0 6px 20px #0001}.sidebar .foot{line-height:1.8}.sidebar-dismiss{display:none}.topbar{padding-top:env(safe-area-inset-top);height:calc(76px + env(safe-area-inset-top))}.topbar> .row{flex-wrap:nowrap}.avatar{border-radius:13px;width:38px;height:38px;background:var(--soft)}.topbar button[data-action=logout]{border:0;padding:9px;background:transparent}.topbar button[data-action=sync-panel]{border:0;background:var(--bg);border-radius:30px;padding:10px 12px}.kpi{position:relative;overflow:hidden;min-height:112px;border-top:0!important}.kpi:after{content:'';position:absolute;right:-12px;bottom:-27px;border:16px solid var(--soft);border-radius:50%;width:55px;height:55px;pointer-events:none}.kpi small{position:relative;z-index:1;font-size:11px;margin-bottom:13px}.kpi strong{position:relative;z-index:1;font-size:25px;letter-spacing:-.8px}.quick button{border:1px solid var(--line);border-radius:18px;min-height:108px;align-content:center;background:var(--panel);gap:12px}.quick button span{width:44px;height:44px;display:grid;place-items:center;background:var(--soft);border-radius:14px;margin:auto}.quick button .icon{width:24px;height:24px}.alert-item{gap:13px;padding:17px 0}.alert-item>button{border:0;background:var(--bg);border-radius:50%;width:38px;min-height:38px;padding:0}.alert-item strong{font-size:13px}.bar-track{height:7px}.bar-fill{transition:width .5s ease-out}.page-head{align-items:flex-start}.page-head>button{background:var(--panel);font-size:12px}.welcome-card{position:relative;isolation:isolate;overflow:hidden;padding:25px 26px;background:#0865df;color:#fff;border-radius:25px;margin-bottom:20px;box-shadow:0 12px 25px #0865df17}.welcome-card:after{content:'';z-index:-1;position:absolute;width:190px;height:190px;right:-78px;top:-65px;border:30px solid #ffffff12;border-radius:50%}.welcome-card h2{color:#fff;font-size:25px;line-height:1.3;max-width:280px;margin:10px 0;letter-spacing:-.7px}.welcome-card p{color:#d9e9ff;line-height:1.6;font-size:13px;margin:0}.welcome-card .eyebrow{color:#c8deff}.welcome-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.welcome-chips span{border:1px solid #ffffff30;background:#ffffff0d;border-radius:25px;padding:7px 11px;font-size:11px}.welcome-chips .icon{width:14px;height:14px;margin-right:5px}.login-wrap{background:var(--panel)}.login-panel{position:relative;isolation:isolate;background-color:var(--panel);background-image:radial-gradient(#0865df0b .8px,transparent .8px);background-size:22px 22px}.login-panel:before{content:'';position:absolute;z-index:-1;width:180px;height:180px;right:-95px;top:95px;border:35px solid var(--soft);border-radius:50%;opacity:.55}.login-card{max-width:390px;padding:0}.login-card h1{font-size:34px;margin:8px 0 10px;letter-spacing:-1.2px}.login-card>p.muted{font-size:14px;line-height:1.7}.login-card .mobile-logo{width:82px;height:82px;max-height:none;border:1px solid var(--line);border-radius:22px;padding:10px;box-shadow:0 8px 20px #172d4706;margin-bottom:32px}.login-card input{background:var(--bg);border-radius:15px;min-height:55px;padding:16px;font-size:15px}.login-card label{font-weight:650}.login-card #login-form{margin:30px 0 20px;gap:21px}.login-card button.primary{min-height:55px;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:15px}.login-card button.primary .icon{width:19px}.login-card details{border-top:1px solid var(--line);padding-top:22px;font-size:11px;margin-top:28px}.login-card details summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}.login-card details summary .icon{width:16px;height:16px}.login-card details p{line-height:1.8}.login-card details input{min-height:46px;font-size:13px}.login-help{display:flex;gap:7px;align-items:center;justify-content:center;font-size:12px!important;margin:0}.login-help .icon{width:15px;height:15px}.login-footer{text-align:center;font-size:10px!important;letter-spacing:.4px;margin-top:28px!important}.password-wrap{position:relative}.password-wrap input{padding-right:58px}.password-eye{position:absolute;right:6px;top:6px;bottom:6px;min-height:40px;width:44px;padding:0;border:0;background:transparent;color:var(--muted);display:grid;place-items:center}.password-eye .icon{width:20px;height:20px}.login-brand{background:#081b34;position:relative;overflow:hidden}.login-brand:after{content:'';position:absolute;right:-140px;bottom:-100px;width:400px;height:400px;border:70px solid #ffffff06;border-radius:50%}.login-brand h1{color:#fff}.login-brand p{color:#a9bed6}.login-brand .eyebrow{color:#8eb6e7}.login-brand img{border-radius:20px;margin-bottom:42px}.steps{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:10px 7px;gap:3px}.step{border-bottom:0;border-radius:12px;padding:10px 3px;font-size:10px}.step b{width:24px;height:24px;border-radius:50%;background:var(--bg);display:grid;place-items:center;margin:0 auto 7px;font-size:11px}.step.active{background:var(--soft)}.step.active b{background:var(--blue);color:white}.summary{border-radius:22px}.summary .total{font-size:35px}.list-button{min-height:64px;border-radius:16px;padding:14px;text-align:left;gap:10px}.list-button small{line-height:1.6;font-size:11px}.list-item strong{line-height:1.5}.form-actions button{min-height:48px}dialog{border-radius:25px;padding:25px;box-shadow:0 25px 100px #08142630}dialog::backdrop{background:#07162c85;backdrop-filter:blur(6px)}#modal-body>.row{margin-bottom:22px;flex-wrap:nowrap}#modal-body>.row h2{margin:0;font-size:20px}#modal-body>.row button{border:0;background:var(--bg);min-width:40px;border-radius:50%;font-size:23px;padding:4px}.content #view{animation:page-enter .25s ease-out}#toast{border-radius:17px;line-height:1.7;box-shadow:0 10px 35px #08142625}@keyframes page-enter{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){.topbar{height:calc(70px + env(safe-area-inset-top));padding-left:18px;padding-right:18px;gap:8px}.topbar .user-label{display:none}.topbar .avatar{display:none}.topbar button[data-action=logout]{display:none}.topbar .mobile-menu{border:0;background:var(--bg);padding:9px;min-height:40px}.topbar> .row{gap:8px}.topbar #shop-filter{max-width:155px;border:0!important;background:transparent;font-size:13px!important;font-weight:650;padding:8px 2px!important;min-width:80px!important}.topbar .status{max-width:125px;font-size:9px;line-height:1.4}.topbar button[data-action=sync-panel]{padding:9px 10px;min-height:36px}.content{padding:24px 20px calc(112px + env(safe-area-inset-bottom))}.page-head{gap:12px;flex-wrap:nowrap;margin-bottom:23px}.page-head h1{font-size:27px;line-height:1.2;margin-top:7px}.page-head .eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.8}.page-head .muted{font-size:11px;line-height:1.6;margin:8px 0 0}.page-head>button{font-size:10px;min-height:38px;padding:9px 11px;flex-shrink:0}.card{padding:19px;border-radius:21px}.kpis{gap:11px;margin-bottom:20px}.kpi{padding:17px;min-height:111px}.kpis .kpi:last-child{grid-column:auto}.kpis .kpi:last-child:nth-child(odd){grid-column:1/-1;min-height:90px}.kpi strong{font-size:24px}.quick{gap:10px}.quick button{font-size:11px;font-weight:600;padding:17px 8px;min-height:109px}.welcome-card{padding:23px;border-radius:23px}.welcome-card h2{font-size:24px}.bottom-nav{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:23px;padding:7px 5px;box-shadow:0 8px 35px #142e5012;min-height:67px}.bottom-nav button{min-width:0;min-height:51px;flex:1;padding:7px 2px;border-radius:16px;font-size:9px;gap:5px;font-weight:600;align-content:center}.bottom-nav button span{font-size:20px;display:flex;justify-content:center}.bottom-nav button .icon{width:21px;height:21px}.bottom-nav button.active{background:var(--soft)}.sidebar{top:0;bottom:0;z-index:60;width:min(325px,88vw);padding:calc(24px + env(safe-area-inset-top)) 18px 28px;border-right:1px solid var(--line);box-shadow:50vw 0 0 50vw #08142666}.sidebar.open{animation:drawer-enter .22s ease-out}.sidebar nav{gap:4px}.sidebar-dismiss{display:block;position:absolute;right:12px;top:calc(17px + env(safe-area-inset-top));background:#ffffff10;border:0;color:white;min-width:36px;min-height:36px;font-size:22px;padding:0}.sidebar .brand{padding-right:20px}.sidebar .brand img{width:38px;height:38px}.sidebar .brand{font-size:12px}.login-panel{padding:calc(36px + env(safe-area-inset-top)) 28px calc(26px + env(safe-area-inset-bottom));align-items:center;min-height:100dvh;overflow:hidden}.login-card .mobile-logo{margin-left:0;margin-right:0;margin-bottom:34px}.login-card .eyebrow{font-size:9px;margin-bottom:9px}.login-card h1{font-size:34px}.login-card>p.muted{font-size:13px}.login-footer{margin-top:25px!important}.fields{gap:17px}.table-wrap{margin:0;overflow:visible}table{white-space:normal;table-layout:fixed}thead{display:none}tbody{display:grid;gap:12px}tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 12px;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:17px}td{display:block;border:0;padding:0;font-size:12px;overflow-wrap:anywhere;min-width:0;line-height:1.55}td:before{content:attr(data-label);display:block;color:var(--muted);font-size:8px;letter-spacing:.6px;text-transform:uppercase;margin-bottom:5px}td:first-child,td:last-child{grid-column:1/-1}td:first-child{font-weight:650;font-size:13px}td:first-child:before,td[data-label='']:before{display:none}td button{min-height:37px;font-size:11px;padding:8px 11px;margin:2px 4px 0 0;background:var(--panel)}.bar-row{grid-template-columns:62px minmax(30px,1fr) 75px;gap:8px;font-size:10px}dialog{width:calc(100% - 20px);max-height:88dvh;padding:23px;border-radius:25px}.steps{margin-bottom:20px}.step{font-size:8px}.summary .total{font-size:31px}@keyframes drawer-enter{from{transform:translateX(-20px);opacity:.5}to{transform:translateX(0);opacity:1}}}
@media(max-width:360px){.content{padding-left:15px;padding-right:15px}.login-panel{padding-left:24px;padding-right:24px}.topbar{padding-left:13px;padding-right:13px}.kpi strong{font-size:22px}.quick button{font-size:10px}.topbar #shop-filter{max-width:123px}}
@media(prefers-color-scheme:dark){:root{--bg:#081426;--panel:#101f35;--text:#edf3fc;--muted:#94a9c3;--line:#21344e;--blue:#66a7ff;--soft:#172f50;--shadow:none}.login-wrap,.login-panel{background-color:#081426}.login-panel{background-image:radial-gradient(#8db9f410 .8px,transparent .8px)}.login-panel:before{opacity:.2}.login-card .mobile-logo{background:white;border-color:white}.welcome-card{background:#0c4fae;box-shadow:none}.welcome-card h2{color:white}button.primary{background:#176ce0;border-color:#176ce0;color:white}.bottom-nav{background:#101f35;box-shadow:0 10px 30px #0003}.login-brand{background:#081426}.quick button{background:var(--panel)}.sidebar{background:#081426}.steps .step.active b{background:#176ce0}.login-card h1{color:var(--text)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}#splash{display:none!important}}
@media print{tbody,tbody tr,td{display:revert}thead{display:table-header-group}td:before{display:none}.welcome-card,.sidebar-dismiss{display:none}.card{box-shadow:none}}

.agency-card{overflow:hidden;border:0;box-shadow:0 12px 25px #0865df17}.agency-card h1{color:white}.agency-mark{display:grid;place-items:center;width:65px;height:65px;border:1px solid #ffffff30;border-radius:20px;background:#ffffff12}.agency-mark .icon{width:35px;height:35px}@media(max-width:780px){body:has(.sidebar.open){overflow:hidden}}
