:root{--ink:#1c2c43;--muted:#748092;--navy:#123458;--blue:#2463c5;--blue-soft:#eaf1fd;--green:#16816c;--green-soft:#e7f5ef;--amber:#b07925;--amber-soft:#fff5e5;--line:#e6ebf1;--bg:#f6f8fb;--white:#fff;--radius:14px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9ec4ff;outline-offset:2px}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:650;letter-spacing:-1px;line-height:1.25}h2{font-size:16px;font-weight:650;letter-spacing:-.25px}h3{font-size:14px}svg{vertical-align:middle}.ico{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted{color:var(--muted)}.small{font-size:12px}.bold{font-weight:650}.mono{font-variant-numeric:tabular-nums}.positive{color:var(--green)}.negative{color:#b14e51}.nowrap{white-space:nowrap}.text-right{text-align:right}.boot{padding:100px;text-align:center}.boot strong{font-size:35px;color:var(--navy)}.boot p{margin-top:12px;color:var(--muted)}
.layout{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--white);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;padding:31px 18px 18px;z-index:30}.brand{padding:0 14px 27px}.brand-word{font-size:29px;font-weight:800;letter-spacing:1.6px;color:var(--navy);line-height:1.2}.brand-word span{color:var(--blue)}.brand-caption{font-size:10px;color:#8b96a7;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;margin-top:6px}.nav-title{font-size:10px;font-weight:650;letter-spacing:1.5px;color:#9aa3b1;padding:13px 14px 9px}.nav-button{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;text-align:left;padding:11px 13px;margin:2px 0;border-radius:9px;color:#647186;font-size:13px;font-weight:500;transition:background .15s}.nav-button:hover{background:#f5f7fb}.nav-button.active{background:var(--blue-soft);color:#2057ad;font-weight:650}.nav-button .count{margin-left:auto;background:#fff;padding:1px 6px;border-radius:5px;font-size:10px;color:var(--amber)}.sidebar-bottom{margin-top:auto;padding-top:23px}.support-card{background:#f6f8fc;border:1px solid var(--line);border-radius:11px;padding:13px;margin:6px 3px 18px}.support-card .ico{color:var(--blue);margin-bottom:7px}.support-card strong{display:block;font-size:12px;margin-bottom:4px}.support-card p{font-size:11px;color:var(--muted);line-height:1.6}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:17px 7px 0}.avatar{height:34px;width:34px;display:grid;place-items:center;border-radius:50%;background:#e9eff9;color:#305c98;font-size:11px;font-weight:700}.profile-info{min-width:0;flex:1}.profile-info strong{font-size:12px;display:block}.profile-info span{font-size:10px;color:var(--muted)}.icon-button{background:transparent;border:0;border-radius:7px;padding:6px;color:var(--muted)}.icon-button:hover{background:var(--blue-soft);color:var(--blue)}
.workspace{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#ffffffd9;padding:0 36px;gap:20px}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.breadcrumbs strong{font-weight:500;color:var(--ink)}.header-right{display:flex;align-items:center;gap:19px}.search{display:flex;align-items:center;gap:8px;background:#f7f9fc;border:1px solid var(--line);border-radius:8px;padding:7px 10px;width:238px;color:#91a0b2}.search input{border:0;background:transparent;outline:none;width:100%;font-size:12px;color:var(--ink)}.search kbd{font-size:10px;background:#fff;border:1px solid var(--line);padding:0 5px;border-radius:4px}.status{font-size:11px;display:flex;align-items:center;gap:6px;color:var(--green);white-space:nowrap}.status:before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}.status.off{color:var(--amber)}.top-date{font-size:11px;color:var(--muted);white-space:nowrap}.content{max-width:1580px;margin:auto;padding:30px 36px 36px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;font-weight:650;color:var(--blue);margin-bottom:6px}.page-description{color:var(--muted);font-size:12px;margin-top:9px}.head-actions{display:flex;gap:9px;align-items:center}.btn{border:1px solid #dfe6ee;border-radius:8px;background:#fff;padding:9px 13px;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;box-shadow:0 1px 2px #102f4b03}.btn:hover{background:#f4f7fb}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 6px #2463c51c}.btn.primary:hover{background:#1c55ac}.btn.small-btn{padding:6px 9px;font-size:11px}.btn.danger{color:#b34b52;border-color:#f1d7d9}.btn.flat{border:none;background:transparent;box-shadow:none;color:var(--blue)}.btn .ico{width:16px;height:16px}.notice{display:flex;align-items:flex-start;gap:10px;background:#f0f5fc;border:1px solid #e1eafa;border-radius:9px;padding:10px 13px;margin-bottom:22px;color:#637894;font-size:11px}.notice .ico{height:16px;width:16px;color:var(--blue);margin-top:1px}.notice strong{color:#305579;font-weight:650}.notice.amber{background:var(--amber-soft);border-color:#f1e1c4;color:#9e762e}.notice.amber .ico,.notice.amber strong{color:#9e762e}
.shop-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}.shop-card{background:white;border:1px solid var(--line);border-radius:12px;padding:17px;text-align:left;transition:.15s;position:relative}.shop-card:hover{border-color:#b5cdee;box-shadow:0 4px 18px #16407d08}.shop-card.selected{border-color:#7da9e5;box-shadow:0 0 0 1px #7da9e522}.shop-top{display:flex;align-items:center;justify-content:space-between}.shop-symbol{border:1px solid #e2eaf6;background:#f3f7fe;color:var(--blue);height:36px;width:36px;display:grid;place-items:center;border-radius:10px}.shop-bzv .shop-symbol{background:#f0f8f5;color:var(--green);border-color:#deede7}.shop-pn2 .shop-symbol{background:#f6f2fc;color:#8b68b6;border-color:#ece5f5}.shop-card h3{font-size:13px;font-weight:650;margin-top:12px}.shop-info{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:10px;margin-top:3px}.shop-info .sep{width:3px;height:3px;background:#c5ccd6;border-radius:50%}.shop-number{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f5;margin-top:14px;padding-top:12px}.shop-number strong{font-weight:650;font-size:16px;letter-spacing:-.5px}.shop-number span{font-size:10px;color:var(--muted)}.tag{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:5px;font-size:10px;font-weight:550;white-space:nowrap;background:#f1f4f8;color:#748092}.tag.green{background:var(--green-soft);color:var(--green)}.tag.amber{background:var(--amber-soft);color:#a17124}.tag.blue{background:var(--blue-soft);color:var(--blue)}.tag.red{background:#fbeef0;color:#b35a65}.scopebar{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}.scopebar h2{font-size:14px}.scopebar .muted{font-size:11px}.scope-pill{font-size:11px;background:white;border:1px solid var(--line);padding:5px 10px;border-radius:6px;color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:23px}.metric{background:white;border:1px solid var(--line);border-radius:11px;padding:17px 17px 15px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.metric-top .ico{width:16px;height:16px;color:#8c9ab0}.metric-value{font-size:26px;letter-spacing:-.9px;font-weight:650;margin-top:11px;color:var(--navy);line-height:1.1}.metric-value small{font-size:11px;font-weight:500;color:var(--muted);margin-left:4px;letter-spacing:0}.metric-foot{font-size:10px;color:#9aa4b1;margin-top:9px;display:flex;align-items:center;gap:5px}.metric-foot .dot{height:5px;width:5px;border-radius:50%;background:var(--green)}.columns{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0;margin-bottom:20px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px;border-bottom:1px solid var(--line);gap:12px}.panel-head h2{font-size:13px}.panel-head span{font-size:11px}.panel-body{padding:18px}.chart{display:block;width:100%;height:180px}.chart-label{font-size:9px;fill:#9aa5b4;font-family:Inter,"Segoe UI",Arial,sans-serif}.chart-grid{stroke:#eef1f5;stroke-dasharray:3 4}.chart-path{stroke:var(--blue);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-fill{fill:url(#chart-gradient)}.chart-note{display:flex;justify-content:space-between;padding:0 6px 3px;font-size:10px;color:var(--muted)}.legend{display:flex;align-items:center;gap:6px}.legend:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--blue)}.quick-list{padding:8px 15px}.quick-item{padding:13px 0;display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf1f5}.quick-item:last-child{border:0}.quick-icon{height:31px;width:31px;border-radius:8px;background:#f0f5ff;color:var(--blue);display:grid;place-items:center}.quick-icon .ico{width:16px;height:16px}.quick-detail{flex:1;min-width:0}.quick-detail strong{font-size:11px;font-weight:550;display:block}.quick-detail p{font-size:10px;color:var(--muted);margin-top:3px}.quick-item .sum{font-size:11px;font-weight:600}.panel-footer{background:#fcfdfe;border-top:1px solid var(--line);padding:10px 17px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.alerts{padding:4px 17px}.alert-row{padding:14px 0;border-bottom:1px solid #edf0f5}.alert-row:last-child{border:0}.alert-row .line{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.alert-row strong{font-size:11px;font-weight:550}.alert-row p{font-size:10px;color:var(--muted)}.alert-row .row-actions{margin-top:10px;display:flex;gap:8px}.soft-panel{padding:16px 18px;background:#f0f5fc;border-color:#dfe9f7}.soft-panel h3{font-size:12px;color:#395b84;margin-bottom:7px}.soft-panel p{font-size:11px;color:#7b8ca3;line-height:1.7}.footer-info{color:#9ba4b2;font-size:10px;display:flex;justify-content:space-between;gap:10px;padding:6px 2px}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;white-space:nowrap}.table th{font-size:9px;text-transform:uppercase;letter-spacing:.75px;color:#9ba6b4;font-weight:550;text-align:left;background:#fcfdfe;padding:11px 17px;border-bottom:1px solid var(--line)}.table td{padding:14px 17px;border-bottom:1px solid #f0f2f6;font-size:11px;vertical-align:middle}.table tr:last-child td{border:0}.table tbody tr:hover{background:#fafcfe}.table td strong{font-size:11px;font-weight:550}.table td small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.table .numeric{text-align:right;font-variant-numeric:tabular-nums;font-weight:550}.product-cell{display:flex;align-items:center;gap:10px}.product-icon{height:32px;width:32px;display:grid;place-items:center;border-radius:8px;background:#f0f4f9;color:#7b8ca5}.product-icon .ico{height:17px;width:17px}.toolbar{padding:12px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.toolbar select,.scope-select{background:white;border:1px solid var(--line);border-radius:7px;font-size:11px;padding:7px 11px;max-width:240px;color:#64748b}.toolbar .note{font-size:11px;color:var(--muted)}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty .ico{height:30px;width:30px;color:#b2bfd0;margin-bottom:10px}.empty h3{font-size:13px;margin-bottom:6px;color:#61718b}.empty p{font-size:11px;max-width:380px;margin:auto}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.location-card{background:white;border:1px solid var(--line);border-radius:12px;padding:19px}.location-card h3{margin:10px 0 4px}.location-card p{font-size:11px;color:var(--muted)}.location-card .btn{margin-top:17px}.audit-item{padding:15px 19px;display:flex;align-items:flex-start;gap:13px;border-bottom:1px solid var(--line)}.audit-item:last-child{border:0}.audit-time{width:44px;color:#8e9cae;font-size:10px;padding-top:3px}.audit-item .bubble{height:28px;width:28px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue)}.audit-item .bubble .ico{width:13px;height:13px}.audit-item .audit-detail{flex:1}.audit-item strong{font-size:11px;font-weight:550}.audit-item p{font-size:10px;color:var(--muted);margin-top:4px}.user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.user-card{border:1px solid var(--line);background:white;border-radius:12px;padding:20px}.user-card-head{display:flex;gap:11px;align-items:center}.user-card-head strong{font-size:13px}.user-card p{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.7}.user-card .actions{margin-top:15px;display:flex;gap:8px}.permission-note{font-size:11px;line-height:1.8;color:#69809c;margin-top:20px}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-hero{background:#14375d;color:white;padding:70px 64px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:350px;height:350px;border:1px solid #ffffff15;border-radius:50%;right:-100px;bottom:-70px;box-shadow:0 0 0 55px #ffffff03,0 0 0 110px #ffffff03}.login-hero .brand-word{color:white;margin-bottom:64px}.login-hero .brand-word span{color:#8fc2ff}.login-hero h1{font-size:39px;line-height:1.25;letter-spacing:-1.4px;max-width:450px}.login-hero p{color:#a7bfdc;font-size:14px;line-height:1.9;max-width:390px;margin-top:20px}.login-points{display:flex;gap:26px;margin-top:48px;color:#c3d5e9;font-size:11px}.login-points strong{color:white;display:block;font-size:25px;margin-bottom:4px}.login-box{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:45px}.login-inner{width:100%;max-width:360px}.login-inner h2{font-size:24px;margin-bottom:9px}.login-inner>p{color:var(--muted);font-size:12px;margin-bottom:24px}.demo-login{display:flex;width:100%;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);background:white;border-radius:10px;margin:9px 0;text-align:left}.demo-login:hover{border-color:#a9c7ed;background:#f8fbff}.demo-login .details{flex:1}.demo-login strong{font-size:12px;display:block}.demo-login small{font-size:10px;color:var(--muted)}.login-foot{font-size:10px!important;line-height:1.8;margin-top:22px;color:#98a1af!important}
dialog{border:0;padding:0;border-radius:15px;box-shadow:0 24px 90px #0c213c3b;max-width:min(92vw,700px);width:700px;max-height:90vh;color:var(--ink);background:white}dialog::backdrop{background:#122b4566;backdrop-filter:blur(3px)}.dialog-head{padding:22px 25px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-head h2{font-size:18px;letter-spacing:-.5px}.dialog-head p{font-size:11px;color:var(--muted);margin-top:5px}.dialog-body{padding:20px 25px;overflow:auto;max-height:65vh}.dialog-foot{padding:15px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#fcfdfe}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:550;color:#66768d}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;padding:9px 11px;border:1px solid #dce4ee;border-radius:7px;background:white;color:var(--ink);font-size:12px;min-height:38px}.field textarea{resize:vertical;min-height:70px}.field small{font-size:10px;color:#96a1b0;font-weight:400}.form-section{margin:20px 0 12px;font-size:12px;font-weight:650;color:var(--navy)}.form-note{background:#f4f7fc;border-radius:8px;padding:11px 13px;font-size:11px;color:#6c809a;line-height:1.7;margin-top:15px}.form-error{color:#b2464e;font-size:12px;line-height:1.6;padding-top:13px}.sale-line{display:grid;grid-template-columns:2fr .65fr .65fr 30px;gap:9px;align-items:end;margin-bottom:11px}.line-remove{height:38px;border:1px solid var(--line);border-radius:6px;background:white;color:#8c9aab}.line-label{font-size:10px;color:#8c9aae}.line-summary{display:flex;justify-content:space-between;align-items:center;background:#f6f9ff;border:1px solid #e4edfc;padding:12px;border-radius:8px;margin-top:13px;font-size:12px}.line-summary strong{color:var(--navy);font-size:18px}.detail-block{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:5px 0 18px}.detail-field small{display:block;color:#929faf;font-size:10px;margin-bottom:3px}.detail-field strong{font-size:12px}.invoice-brand{font-size:25px;color:var(--navy);font-weight:800;margin-bottom:20px}.paper-image{display:block;max-width:100%;max-height:60vh;margin:auto;object-fit:contain}.upload-zone{border:1px dashed #b5c9e4;border-radius:11px;background:#f8fbff;padding:25px;text-align:center}.upload-zone .ico{height:28px;width:28px;color:var(--blue);margin-bottom:8px}.upload-zone input{font-size:11px;max-width:100%;margin-top:12px}.upload-zone strong{display:block;font-size:12px}.upload-zone p{font-size:10px;color:var(--muted);margin-top:5px}.queue-item{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:12px}.queue-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(30px);opacity:0;pointer-events:none;transition:.2s;background:#183b60;color:white;padding:12px 20px;border-radius:10px;box-shadow:0 8px 24px #112e4933;font-size:12px;z-index:100;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.mobile-menu{display:none}.mobile-shade{display:none}
@media(min-width:1500px){.content{padding-top:34px}.metrics{gap:18px}.metric{padding:21px}.metric-value{font-size:30px}.columns{grid-template-columns:minmax(0,1fr) 310px}.shop-card{padding:20px}}
@media(max-width:1150px){.sidebar{width:204px;padding-left:13px;padding-right:13px}.layout{grid-template-columns:204px 1fr}.content{padding:25px}.topbar{padding:0 25px}.columns{grid-template-columns:minmax(0,1fr) 250px;gap:15px}.search{width:190px}.top-date{display:none}.metric-value{font-size:23px}.shop-card{padding:14px}.metrics{gap:10px}.metric{padding:14px}.head-actions .btn{padding:8px 10px}h1{font-size:25px}}
@media(max-width:940px){.columns{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.dashboard-aside .soft-panel{grid-column:1/-1}.header-right{gap:12px}.search{width:185px}.cards-grid{grid-template-columns:repeat(2,1fr)}.metrics{grid-template-columns:repeat(2,1fr)}.login-hero{padding:45px}.login-hero h1{font-size:31px}.login-box{padding:30px}}
@media(max-width:700px){.layout{display:block}.sidebar{transform:translateX(-100%);width:232px;transition:transform .2s}.sidebar.open{transform:translateX(0);z-index:90}.mobile-shade.open{display:block;position:fixed;inset:0;background:#162d4b66;z-index:89}.workspace{width:100%}.topbar{height:63px;padding:0 17px;gap:10px}.breadcrumbs{font-size:11px;gap:7px}.breadcrumbs .ico{width:13px;height:13px}.header-right{gap:10px}.search{display:none}.mobile-menu{display:inline-flex;border:0;background:none;padding:3px;color:var(--ink)}.content{padding:22px 17px}.page-head{align-items:flex-start;margin-bottom:20px}.page-description{font-size:11px;max-width:240px;line-height:1.6}.head-actions{gap:7px;flex-direction:column;align-items:flex-end}.head-actions .btn{font-size:10px;padding:8px 10px}.head-actions .btn .ico{width:13px;height:13px}.head-actions .secondary-mobile{display:none}h1{font-size:24px}.eyebrow{font-size:9px}.notice{font-size:10px;line-height:1.6;margin-bottom:17px}.shop-cards{gap:9px;grid-template-columns:1fr;margin-bottom:19px}.shop-card{display:grid;grid-template-columns:40px 1fr 95px;align-items:center;padding:13px;gap:11px}.shop-top{display:contents}.shop-top .tag{display:none}.shop-card h3{margin-top:0;font-size:12px}.shop-info{font-size:9px}.shop-number{border:0;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-end}.shop-number strong{font-size:14px}.shop-number span{font-size:9px}.shop-symbol{height:34px;width:34px}.metrics{gap:10px;margin-bottom:17px}.metric{padding:14px 12px}.metric-value{font-size:24px}.metric-top{font-size:10px}.metric-foot{font-size:9px}.dashboard-aside{display:block}.panel-head{padding:14px 15px}.panel-head h2{font-size:12px}.panel-body{padding:14px}.table td{padding:12px 14px}.table th{padding:11px 14px}.footer-info{flex-direction:column;gap:4px}.scopebar{gap:10px}.scopebar h2{font-size:12px}.scopebar .muted{font-size:10px}.scope-pill{font-size:9px}.cards-grid,.user-grid{grid-template-columns:1fr}.dialog-head{padding:20px}.dialog-body{padding:18px 20px}.dialog-foot{padding:14px 20px}.form-grid{gap:12px}.field{font-size:10px}.sale-line{grid-template-columns:1.7fr .7fr .7fr 26px;gap:6px}.sale-line .field select{padding:9px 5px;font-size:11px}.sale-line input{padding:9px 6px}.login-screen{grid-template-columns:1fr}.login-hero{padding:35px 30px 31px}.login-hero .brand-word{margin-bottom:28px;font-size:25px}.login-hero h1{font-size:27px;max-width:300px}.login-hero p{font-size:12px;line-height:1.8;margin-top:13px}.login-points{margin-top:23px;gap:27px}.login-points strong{font-size:20px}.login-box{padding:30px 25px}.login-inner h2{font-size:21px}.scope-select{max-width:170px}.detail-block{gap:12px}dialog{max-width:95vw}.status{font-size:10px}.panel-footer{font-size:10px}}
@media print{body{background:white}#app,#toast{display:none!important}#modal-root{display:block}dialog{position:static;display:block;border:0;box-shadow:none;max-width:100%;width:100%;max-height:none;padding:0;margin:0}dialog::backdrop{display:none}.dialog-body{overflow:visible;max-height:none}.dialog-head .icon-button,.dialog-foot,.no-print{display:none!important}.table-wrap{overflow:visible}}

/* Garder les commandes du profil accessibles sur les écrans courts. */
.stock-toolbar{flex-wrap:wrap;align-items:flex-end}.stock-place-selector{display:grid;gap:7px;flex:1;min-width:0;max-width:460px;font-size:11px;font-weight:600;color:var(--ink)}.stock-place-selector select{width:100%;min-width:0}.stock-toolbar>.note{white-space:normal}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.sidebar .brand,.sidebar-bottom{flex-shrink:0}
@media(max-height:780px){.support-card{display:none}.sidebar-bottom{padding-top:12px}}

.cash-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:16px}.cash-filters .field{margin:0}@media(max-width:700px){.cash-filters{grid-template-columns:1fr 1fr}.cash-filters .field:last-child{grid-column:1/-1}}

[hidden]{display:none!important}.form-grid>.full{grid-column:1/-1}.delivery-line{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(140px,1fr);gap:16px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.delivery-line strong{font-size:12px}.delivery-line small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.delivery-line .field{min-width:0}@media(max-width:500px){.delivery-line{grid-template-columns:minmax(0,1fr) minmax(105px,.8fr);gap:10px}.dialog-foot{flex-wrap:wrap}}

.statement-dialog{width:1120px;max-width:95vw}.statement-dialog .dialog-body{max-height:68vh}.statement-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:22px}.statement-filter-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}.statement-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.statement-heading h3{font-size:23px;margin:6px 0}.statement-heading p,.statement-period{font-size:12px;color:var(--muted);line-height:1.7}.statement-period{margin:9px 0 18px}.statement-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;margin:0 0 18px;font-size:11px;color:var(--muted)}.statement-summary strong{color:var(--ink)}.statement-dialog .table{font-size:11px}.statement-dialog .table td:first-child{min-width:95px}.statement-dialog .table td:nth-child(2){min-width:230px}.statement-record summary{color:var(--blue);cursor:pointer;font-size:10px;margin-top:6px}.statement-record p{color:var(--muted);line-height:1.6;font-size:10px;margin-top:4px}
@media(max-width:700px){.statement-filters{grid-template-columns:1fr 1fr;gap:12px}.statement-filters>.field:first-child{grid-column:1/-1}.statement-filter-actions{flex-wrap:wrap}.statement-heading h3{font-size:20px}.statement-summary{grid-template-columns:1fr}.statement-dialog .metric-value{font-size:21px}.statement-dialog .dialog-body{padding:18px 15px}}
@media print{.statement-dialog .dialog-body{max-height:none;overflow:visible;padding:12px 0}.statement-dialog{max-width:100%;width:100%}.statement-dialog .metrics{grid-template-columns:repeat(4,1fr)}.statement-dialog .metric{padding:10px}.statement-dialog .metric-value{font-size:20px}.statement-dialog .table td{padding:8px 6px;font-size:9px;white-space:normal}.statement-dialog .table th{padding:8px 6px;font-size:8px}.statement-dialog .table td:nth-child(2){min-width:0}.statement-dialog tr{break-inside:avoid}.statement-dialog .table thead{display:table-header-group}}

.paper-dialog{width:1150px;max-width:95vw}.paper-workspace{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:24px;align-items:start}.paper-preview{background:#f4f7fc;border:1px solid var(--line);padding:15px;border-radius:10px;position:sticky;top:0}.paper-preview .paper-image{max-height:48vh;object-fit:contain;border-radius:5px;margin:10px auto}.paper-preview p,.paper-new p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:10px}.paper-entry{min-width:0}.paper-info{display:flex;justify-content:space-between;gap:15px}.paper-info h3{font-size:20px;margin:12px 0 6px;overflow-wrap:anywhere}.paper-info p{font-size:11px;color:var(--muted);line-height:1.7}.paper-counts{display:flex;flex-wrap:wrap;gap:8px 18px;background:#f5f9ff;border:1px solid #e0eaf9;padding:13px;border-radius:8px;margin:17px 0;font-size:11px}.paper-counts strong{color:var(--blue)}.paper-counts span{color:var(--muted)}.paper-new{border-top:1px solid var(--line);margin-top:20px;padding-top:5px}.paper-new .field{margin-bottom:12px}.paper-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;color:var(--ink)}.paper-check input{width:18px;height:18px;flex-shrink:0;margin-top:2px}.paper-dialog .dialog-foot{flex-wrap:wrap}.paper-entry .table td{padding:12px;font-size:11px}
@media(max-width:850px){.paper-workspace{grid-template-columns:1fr;gap:18px}.paper-preview{position:static}.paper-preview .paper-image{max-height:34vh}.paper-info{flex-wrap:wrap}.paper-dialog .dialog-foot .btn{font-size:10px;padding:8px}.paper-dialog .form-grid{grid-template-columns:1fr}.paper-dialog .form-grid .full{grid-column:auto}}


.inventory-dialog{width:1120px;max-width:95vw}.inventory-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.inventory-heading h3{font-size:24px;margin:12px 0 7px;overflow-wrap:anywhere}.inventory-heading p,.inventory-heading small{font-size:12px;color:var(--muted);line-height:1.8}.inventory-heading>div:last-child{display:flex;flex-direction:column;gap:3px;text-align:right}.inventory-heading strong{font-size:13px}.inventory-dialog .table td{padding:14px 13px}.inventory-dialog .table input{min-width:112px;max-width:160px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;font:inherit;background:#fff;color:var(--ink)}.inventory-dialog .table input:focus{outline:2px solid #93bfff;outline-offset:1px}.inventory-dialog .dialog-foot{flex-wrap:wrap}.inventory-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:310px;overflow-y:auto;margin:15px 0;padding:2px}.inventory-products label{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:12px;cursor:pointer}.inventory-products label:has(input:checked){border-color:#8bb4ef;background:#f3f8ff}.inventory-products input{width:17px;height:17px;flex-shrink:0;margin-top:1px;accent-color:var(--blue)}.inventory-products strong{display:block;font-size:12px;line-height:1.5}.inventory-products small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
@media(max-width:700px){.inventory-heading{flex-direction:column;gap:12px}.inventory-heading>div:last-child{text-align:left}.inventory-heading h3{font-size:21px}.inventory-products{grid-template-columns:1fr}.inventory-dialog .dialog-body{padding:18px 15px}.inventory-dialog .dialog-foot .btn{font-size:11px;padding:9px 12px}.inventory-dialog .table td{padding:12px 10px}}


.photo-assistant{border:1px solid #cfdef3;border-radius:12px;padding:17px;margin-bottom:23px;background:#f8fbff}.photo-assistant-head strong{font-size:15px;color:var(--navy)}.photo-assistant-head p,.photo-local-note{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0 12px}.photo-choices,.photo-reader-tools{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.photo-choices label{position:relative;cursor:pointer}.photo-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;bottom:0;left:10px}.photo-reader-image{display:block;max-height:270px;max-width:100%;object-fit:contain;margin:15px auto;background:#eef3fa;border-radius:6px}.photo-reader-status{font-size:12px;line-height:1.7;color:var(--navy);margin:12px 0;overflow-wrap:anywhere}.photo-progress{width:100%;height:9px;accent-color:var(--blue)}.photo-text-details{margin:12px 0}.photo-text-details summary{font-size:12px;color:var(--blue);cursor:pointer}.photo-text-details .field{margin:15px 0 10px}.photo-reader-text{min-height:170px;font-size:12px}.photo-proposals>strong{font-size:13px;display:block;margin-top:16px}.photo-proposal{border:1px solid var(--line);background:#fff;border-radius:9px;padding:12px;margin-top:10px;display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.photo-proposal>div{min-width:0}.photo-proposal strong{font-size:12px;display:block}.photo-proposal small{font-size:10px;display:block;color:var(--muted);white-space:pre-wrap;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.photo-amount{font-size:15px;color:var(--navy);font-weight:700;display:block;margin-top:5px}.photo-warning{font-size:11px;line-height:1.7;color:#8e5a10;margin:8px 0}.photo-confirm,.photo-duplicate{margin-top:16px;background:#fff;border-radius:8px;padding:11px;border:1px solid #d8e4f4}.photo-duplicate{background:#fff8e9;border-color:#ecd1a0}.paper-entry .photo-assistant{padding:13px}.photo-proposal .btn{flex-shrink:0;font-size:10px;padding:8px 10px}
@media(max-width:600px){.photo-assistant{padding:13px;margin-bottom:18px}.photo-choices .btn,.photo-reader-tools .btn{font-size:11px;padding:10px 12px}.photo-proposal{display:block}.photo-proposal .btn{margin-top:9px}.photo-reader-image{max-height:230px}.photo-local-note{font-size:10px}.dialog-body .form-grid{grid-template-columns:1fr}.dialog-body .form-grid .full{grid-column:auto}}

.photo-region-note{padding:9px 12px;border-radius:7px;background:#e7f0fd;color:#235b9a;font-size:11px;line-height:1.7}.photo-focus-dialog{width:1000px;max-width:96vw;max-height:96dvh;overflow:auto}.photo-focus-head{padding:18px 22px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.photo-focus-head h2{font-size:20px}.photo-focus-head p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px}.photo-focus-tools{display:flex;flex-wrap:wrap;gap:8px;padding:13px 22px 0}.photo-focus-tools .btn{font-size:12px;padding:9px 12px}.photo-focus-tools [aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:white}.photo-focus-help{margin:10px 22px;font-size:12px;color:var(--navy);line-height:1.6}.photo-focus-scroll{height:55vh;min-height:200px;overflow:auto;padding:14px;background:#e5ebf3;overscroll-behavior:contain}.photo-focus-stage{position:relative;overflow:hidden;margin:auto;line-height:0}.photo-focus-stage.selecting{touch-action:none;cursor:crosshair}.photo-focus-image{display:block;max-width:none;max-height:none;user-select:none;pointer-events:none}.photo-region-box{position:absolute;border:3px solid #2366cb;background:#4b8afa14;box-shadow:0 0 0 9999px #0b203e66;pointer-events:none}.photo-focus-edges{padding:12px 22px;font-size:12px;color:var(--navy)}.photo-focus-edges summary{cursor:pointer}.photo-edge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin-top:12px}.photo-edge-grid label{display:flex;flex-direction:column;gap:8px;font-weight:600}.photo-edge-grid input{width:100%;accent-color:var(--blue);padding:6px 0}.photo-focus-foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;padding:14px 22px;border-top:1px solid var(--line);background:#fcfdfe}.photo-focus-foot .btn{font-size:12px;padding:10px 14px}
@media(max-width:600px){.photo-focus-dialog{max-width:100vw;width:100vw;max-height:100dvh;border-radius:0}.photo-focus-head{padding:14px}.photo-focus-head h2{font-size:19px}.photo-focus-tools{padding:10px 14px 0;gap:6px}.photo-focus-tools .btn{padding:9px 10px;font-size:11px}.photo-focus-help{margin:10px 14px}.photo-focus-scroll{height:48vh}.photo-focus-edges{padding:12px 14px}.photo-edge-grid{gap:10px 16px}.photo-focus-foot{padding:12px 14px;gap:7px}.photo-focus-foot .btn{font-size:11px;padding:10px}.photo-focus-foot .primary{flex-grow:1}}
@media print{.photo-focus-dialog{display:none!important}}

.photo-reading-summary{font-size:12px;line-height:1.6;color:var(--navy);margin:8px 0 12px}.photo-line-number{font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:#6a7f9a;display:block;margin-bottom:6px}.photo-line-meta{font-size:11px;color:var(--muted);line-height:1.8;margin-top:8px;overflow-wrap:anywhere}.photo-existing{margin:11px 0;background:#fff6e4;border:1px solid #ecd39e;border-radius:8px;padding:10px 12px}.photo-existing strong{color:#825410}.photo-existing p{font-size:11px;line-height:1.7;color:#825410;margin-top:5px}

.purchase-line{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:12px;align-items:end;margin-bottom:14px}.purchase-line .btn{margin-bottom:4px}.signature-records{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.signature-record{border:1px solid var(--line);border-radius:9px;padding:15px;break-inside:avoid}.signature-record strong{font-size:13px}.signature-record p{font-size:13px;margin-top:10px}.signature-record small{font-size:10px;color:var(--muted)}.signature-image{display:block;width:100%;height:110px;margin:10px 0}.signature-pad{border:2px dashed #94b5df;border-radius:10px;background:#fff;height:190px;width:100%;touch-action:none;overflow:hidden;cursor:crosshair;margin:12px 0}.signature-drawing{height:100%;width:100%;pointer-events:none}.offline-panel{padding:28px;max-width:850px}.offline-panel h2{font-size:26px;margin:12px 0}.offline-panel h3{margin-top:24px}.offline-panel p,.offline-panel li{font-size:14px;line-height:1.9;margin:12px 0}.offline-panel ol{padding-left:23px}.dialog-foot{flex-wrap:wrap}
@media(max-width:600px){.purchase-line{grid-template-columns:minmax(0,1fr) 95px}.purchase-line .btn{grid-column:1/-1;justify-self:end}.signature-records{grid-template-columns:1fr}.offline-panel{padding:20px}.signature-pad{height:170px}.dialog-foot .btn{font-size:11px;padding:10px 12px}}
@media print{.signature-records{grid-template-columns:1fr 1fr}.signature-record{border-color:#999}.signature-image{height:90px}}

/* Focused depot workflow: large targets, visible delivery states, no stock totals exposed. */
.pilot-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:8px 0 24px}.pilot-intro h2{font-size:30px;letter-spacing:-.8px;margin:10px 0}.pilot-intro p{color:#607187;margin:0;line-height:1.6}.pilot-state{padding:10px 15px;border-radius:30px;font-size:12px;font-weight:700;white-space:nowrap;border:1px solid #d5dfe9;background:#f1f5f9;color:#4b6076}.pilot-state.ready{background:#edf8f3;color:#17634d;border-color:#c3e4d4}.pilot-state.waiting{background:#fff5e5;color:#8c580e;border-color:#f0d9ae}.pilot-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.pilot-action{min-height:152px;padding:24px;text-align:left;background:#fff;border:1px solid #dbe3ec;border-radius:16px;cursor:pointer;display:grid;grid-template-columns:50px 1fr;gap:9px 18px;align-items:center;box-shadow:0 3px 12px #16355605;color:#183653;font:inherit}.pilot-action:hover{border-color:#2867a9;background:#f7faff}.pilot-action:focus-visible{outline:3px solid #3e88d0;outline-offset:3px}.pilot-action-icon{grid-row:span 2;width:48px;height:48px;background:#eaf2fc;border-radius:14px;display:grid;place-items:center;font-size:29px;color:#1d5d9b}.pilot-action strong{font-size:20px;align-self:end}.pilot-action>span:last-child{font-size:13px;color:#64748b;align-self:start}.pilot-receipt{padding:16px 20px;background:#eef7f5;border-left:4px solid #278167;border-radius:9px;margin-bottom:20px;line-height:1.5}.pilot-record{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #e9eef3}.pilot-record:last-child{border-bottom:0}.pilot-record p{margin:6px 0;color:#40566c}.pilot-record small{color:#65778a;line-height:1.6}.pilot-record strong{font-size:15px}.pilot-empty{display:flex;align-items:center;gap:18px;padding:20px 0}.pilot-empty>span{border-radius:50%;background:#eff4f8;width:44px;height:44px;display:grid;place-items:center;color:#337357;font-size:22px;flex-shrink:0}.pilot-empty p{margin:7px 0 0;color:#687a8b;font-size:13px;line-height:1.6}.pilot-footnote,.pilot-form-note{font-size:13px;color:#5a6e83;line-height:1.75}.pilot-form-note{background:#f1f5fa;border-radius:10px;padding:15px;margin-top:18px}.queue-item button{margin:10px 8px 0 0}.queue-item small{display:block}.field input,.field select{min-height:46px}
@media(max-width:700px){.pilot-intro{display:block}.pilot-intro h2{font-size:26px}.pilot-state{display:inline-block;margin-top:16px}.pilot-actions{grid-template-columns:1fr;gap:12px}.pilot-action{min-height:112px;padding:20px}.pilot-record{align-items:flex-start;flex-direction:column;gap:10px}.pilot-record .tag{align-self:flex-start}.pilot-intro p{font-size:14px}.pilot-footnote{padding:0 3px}}

.account-selector{display:block;padding:12px 20px;color:#183e67;font-size:13px;font-weight:700}.account-selector select{display:block;width:100%;margin-top:8px;padding:12px 8px;border:1px solid #cad6e5;border-radius:10px;background:#f5f8fe;color:#173b65}.debt-photo-list{display:flex;flex-wrap:wrap;gap:12px}.debt-photo-list figure{margin:8px 0;max-width:160px}.debt-photo-list img{width:100%;max-height:180px;object-fit:contain}.debt-photos{margin-top:20px;padding-top:16px;border-top:1px solid #e1e7ef}.debt-photos .photo-choices{display:flex;gap:12px;flex-wrap:wrap}
.transfer-list{display:grid;gap:20px;padding:20px}.transfer-card{border:1px solid #e1e7ee;border-radius:16px;padding:20px;min-width:0}.transfer-card>.panel-head{padding:0 0 12px;flex-wrap:wrap;gap:10px}.transfer-card>p{line-height:1.8}.transfer-card .row-actions{flex-wrap:wrap;gap:10px}.transfer-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) 38px;gap:12px;align-items:end;margin:16px 0}.transfer-line .line-remove{margin-bottom:8px}.transfer-receipt{padding:16px 0;border-bottom:1px solid #e1e7ee}.transfer-receipt p{line-height:1.6}.transfer-card .table-wrap{margin:12px 0}@media(max-width:600px){.transfer-list{padding:12px}.transfer-card{padding:14px}.transfer-line{grid-template-columns:minmax(0,1fr) 38px}.transfer-line .field:first-child{grid-column:1/-1}.transfer-card .row-actions .btn{flex:1 1 100%}.transfer-card>.panel-head{align-items:flex-start}}

/* Private owner inventory; quantities remain readable on narrow screens. */
.inventory-scopes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.inventory-scopes .btn{white-space:normal;text-align:center;min-height:50px}.inventory-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.inventory-stock-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.inventory-stock-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.inventory-stock-heading h2{font-size:16px}.inventory-stock-heading small{color:var(--muted)}.inventory-by-shop>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.inventory-by-shop strong{text-align:right;font-variant-numeric:tabular-nums}.inventory-stock-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.inventory-stock-values dt{color:var(--muted);font-size:12px}.inventory-stock-values dd{margin:6px 0 0;font-weight:650;font-size:19px;font-variant-numeric:tabular-nums}.inventory-incomplete{font-size:13px;color:var(--amber)}.inventory-incomplete small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.inventory-transit{font-size:12px;color:var(--muted);margin:12px 0 16px}@media(max-width:750px){.inventory-scopes{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-stock-grid{grid-template-columns:1fr}.inventory-stock-card{padding:16px}.inventory-stock-values dd{font-size:17px}.inventory-by-shop{font-size:13px}}

.inventory-login-shortcut{background:#edf4ff;border-color:#adc9ef;margin:16px 0 20px}.inventory-login-shortcut:hover{background:#e2eeff;border-color:#739dd5}.inventory-login-shortcut .avatar{background:#dbeaff;color:#245faf}.inventory-login-shortcut strong{color:#234f86}.inventory-login-shortcut small{display:block;line-height:1.5;margin-top:4px}

/* Consistent phone forms: readable controls, fixed actions and optional panels. */
@media screen{
 dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}
 dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}
 .dialog-head,.dialog-foot{flex-shrink:0}.dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain}
 .dialog-foot{flex-wrap:wrap;gap:10px}.dialog-foot .btn{min-height:44px}
 .shop-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .shop-choice-grid .btn{min-height:58px;white-space:normal;line-height:1.4;text-align:center;padding:14px;background:#f3f7ff;color:#235799;border:1px solid #b8cdeb;box-shadow:none}
 .shop-choice-grid .btn:hover{background:#e4efff;border-color:#547fbc}
 .operation-dialog .dialog-head{padding:16px 18px 13px;gap:12px}
 .operation-dialog .dialog-head h2{font-size:19px;line-height:1.25}
 .operation-dialog .dialog-head p{font-size:12px;line-height:1.45}
 .operation-dialog .dialog-head .icon-button{flex:0 0 38px;min-height:38px}
 .operation-dialog .dialog-body{max-height:none;padding:13px 18px;flex:1 1 auto}
 .operation-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
 .operation-dialog .form-grid>.full{grid-column:1/-1}
 .operation-dialog .field{min-width:0;font-size:12px;line-height:1.35;gap:5px}
 .operation-dialog .field input,.operation-dialog .field select,.operation-dialog .field textarea{min-width:0;max-width:100%;min-height:44px;font-size:14px;padding:9px;border-radius:9px}
 .operation-dialog .field input[type=datetime-local]{font-size:12px;padding:8px 4px}
 .operation-dialog .field small{font-size:11px;color:#64758b;line-height:1.35}
 .operation-dialog .field textarea{min-height:70px}
 .operation-dialog .form-grid+.form-grid{margin-top:12px}
 .operation-dialog .form-note{font-size:12px;line-height:1.5;padding:9px 10px;margin-top:11px}
 .operation-dialog .form-section{margin:7px 0 12px}
 .operation-dialog .pilot-form-note{padding:10px 12px;margin-top:12px;font-size:12px;line-height:1.5}
 .operation-dialog .dialog-foot{padding:10px 18px 12px}
 .dialog-author{flex-basis:100%;font-size:11px;line-height:1.4;color:#66768d}
 .form-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;padding:9px 16px;background:#f5f8fc;border-bottom:1px solid var(--line);flex-shrink:0}
 .form-tab{border:1px solid transparent;background:transparent;color:#52677e;font-weight:650;font-size:13px;min-height:40px;padding:6px;border-radius:8px}
 .form-tab[aria-selected=true]{background:#fff;color:#235fae;border-color:#c8daf2;box-shadow:0 2px 6px #193a6410}
 .form-tab:focus-visible{outline:3px solid #8ab5eb;outline-offset:1px}
 .form-panel{min-width:0}.form-panel>.form-grid:last-child{margin-bottom:0}
 .operation-dialog .form-error:empty{display:none}.operation-dialog form>.form-error{flex-shrink:0;padding:9px 18px;background:#fff2f2;border-top:1px solid #f0d1d1;max-height:100px;overflow:auto}
 .operation-dialog .debt-photos{margin-top:0;padding-top:0;border-top:0}
 .operation-dialog .debt-photos h3{font-size:14px}.operation-dialog .debt-photos .form-note:empty{display:none}
 .operation-dialog .debt-photos .photo-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
 .operation-dialog .debt-photos .photo-choices .btn{min-height:44px;justify-content:center;white-space:normal;font-size:12px}
 .operation-dialog .debt-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .operation-dialog .debt-photo-list figure{min-width:0;max-width:none}.operation-dialog .debt-photo-list img{height:90px;object-fit:contain}
 .operation-dialog .photo-optional{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}
 .operation-dialog #debt-note{font-size:12px;color:#31577c}
 @media(max-width:600px){
  dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);border-radius:16px}
  .shop-choice-grid{grid-template-columns:1fr;gap:12px}
  .shop-choice-grid .btn{min-height:52px;justify-content:flex-start;text-align:left;padding:12px 16px;font-size:14px}
  .shop-choice-dialog .dialog-head{padding:18px 18px 14px}.shop-choice-dialog .dialog-body{padding:16px 18px}
  .operation-dialog .dialog-body{padding:12px 14px}.operation-dialog .dialog-head{padding:14px 14px 12px}
  .operation-dialog .dialog-head h2{font-size:18px}.operation-dialog .dialog-head p{font-size:12px}
  .operation-dialog .dialog-foot{padding:9px 14px 12px;gap:8px}
  .operation-dialog .dialog-foot>.btn{font-size:13px;padding:9px 12px}
  .operation-dialog .dialog-foot>.primary{flex:1;justify-content:center;white-space:normal;line-height:1.35}
  .operation-dialog .form-grid{gap:10px}
  .operation-dialog .inventory-products{max-height:none;grid-template-columns:1fr}
  .operation-dialog .sale-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
  .operation-dialog .sale-line>.field:first-child{grid-column:1/-1}
  .operation-dialog .line-remove{height:44px}
  .operation-dialog .line-summary{margin:0;padding:9px;font-size:12px}
  .operation-dialog .transfer-line{margin:8px 0 14px}
 }
 @media(max-width:340px){.operation-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.operation-dialog .form-grid>.full{grid-column:auto}}
}

/* One article at a time; quantities are never hidden behind a horizontal table. */
@media screen{
 .guided-inventory-dialog{width:620px}
 .guided-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:12px}
 .guided-toolbar .btn{white-space:normal;min-height:40px;text-align:left}
 .guided-progress{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#62758c;margin-bottom:14px}
 .guided-progress strong{color:#244d7a}.guided-progress span{white-space:nowrap}
 .guided-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
 .guided-search .guided-camera{min-height:44px;max-width:130px;white-space:normal;line-height:1.3;font-size:12px;color:#235fae;background:#edf4ff;border-color:#b9cfee}
 .guided-hint{font-size:11px;color:#64758b;line-height:1.45;margin:8px 0 14px}
 .guided-product-label{margin-bottom:14px}
 .guided-count-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}
 .guided-theory{display:flex;flex-direction:column;justify-content:center;gap:8px;background:#f2f6fb;border:1px solid #e0e7f0;border-radius:12px;padding:12px}
 .guided-theory span{font-size:12px;color:#586e88}.guided-theory strong{font-size:20px;color:#1c426b;font-variant-numeric:tabular-nums}
 .operation-dialog .guided-count-grid input{height:54px;font-size:22px;font-weight:650;border:2px solid #8fb2df;background:#fbfdff}
 .guided-difference{display:block;min-height:42px;padding:11px 13px;border-radius:9px;background:#f2f5f9;color:#65758a;font-size:14px;font-weight:650;margin-top:12px}
 .guided-difference[data-tone=ok]{background:#eaf6ef;color:#216d43}
 .guided-difference[data-tone=missing]{background:#fff0f0;color:#a9323b}
 .guided-difference[data-tone=extra],.guided-difference[data-tone=warning]{background:#fff4e2;color:#8c5917}
 .guided-stale{font-size:12px;line-height:1.5;color:#97551c;margin-top:9px}
 .guided-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 2px}
 .guided-controls .btn{min-height:44px;font-size:13px}.guided-controls span{font-size:11px;color:#62758c}
 @media(max-width:600px){
  .content,.panel,.dashboard-main,.dashboard-aside{min-width:0;max-width:100%}
  .page-head{flex-wrap:wrap}.head-actions{flex-wrap:wrap;flex-direction:row;align-items:center}
  .header-right{min-width:0}.breadcrumbs>strong{display:none}
  .guided-inventory-dialog{width:calc(100vw - 20px)}
  .guided-theory strong{font-size:18px}.guided-theory{padding:10px}
 }
}

.inventory-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.inventory-review-card{padding:15px;border:1px solid #dce5ef;border-radius:12px;background:#fbfdff;min-width:0}
.inventory-review-card h3{font-size:15px;line-height:1.4}.inventory-review-card>small{font-size:12px;color:#6a7e94}
.inventory-review-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.inventory-review-card dt{font-size:12px;color:#62758b}.inventory-review-card dd{margin:4px 0 0;font-size:15px;font-weight:650}
.inventory-review-card p{font-size:11px;line-height:1.5;color:#62758b;margin-top:8px}
@media(max-width:600px){.inventory-review-list{grid-template-columns:1fr}.inventory-dialog .table{white-space:normal}.inventory-dialog .table td{min-width:120px}.inventory-dialog .inventory-heading{flex-wrap:wrap}}
.inventory-session-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}
.inventory-session-card{min-width:0;border:1px solid #dde6f0;border-radius:12px;padding:16px}
.inventory-session-card h3{font-size:15px;margin-top:12px}.inventory-session-card p{font-size:12px;line-height:1.6;color:#62758b;margin-top:5px}
.inventory-session-card>.btn{margin-top:14px;min-height:44px;color:#245da8;width:100%}
.inventory-session-card .tag{white-space:normal;line-height:1.5}
@media(max-width:700px){.inventory-session-list{grid-template-columns:1fr;padding:12px}.panel-head{flex-wrap:wrap;gap:10px}}

/* Saving feedback stays separate from official stock. */
.inventory-save-state{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#edf3fb;color:#35526f;font-size:.82rem;line-height:1.4}
.inventory-save-state span{flex:1;min-width:160px}
.inventory-pending{background:#fff6df;color:#74500c}
.inventory-conflict{background:#fff0ed;color:#973926}
.queue-readings{margin:8px 0;padding:8px;background:#f4f7fb;border-radius:8px;overflow-wrap:anywhere}
.queue-readings p{margin:4px 0;font-size:.88rem}

/* Separate entry for a configured shared server; no demo data migration. */
.connection-entry{border:1px solid #bdd2ec;background:#f0f6ff;margin:18px 0;}
.connection-summary{display:flex;gap:14px;align-items:center;margin-bottom:22px;}
.connection-summary p{margin:0;line-height:1.5;}
#server-connection-form .btn,#server-saved>.btn{width:100%;min-height:48px;}
#server-connection-form input{min-width:0;width:100%;font-size:16px;}
#server-feedback:not(:empty){padding:12px 0;line-height:1.5;color:#174c87;}
.server-address{overflow-wrap:anywhere;}
#server-saved{margin-top:18px;}
.connection-summary .avatar{flex:0 0 40px;width:40px;height:40px;}

.report-periods{display:flex;gap:8px;flex-wrap:wrap}.report-periods .btn{min-height:40px}
.cash-person-toolbar{flex-wrap:wrap;align-items:flex-end}.cash-person-toolbar .field{margin:0;min-width:0}.cash-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-filters input,.cash-filters select{min-width:0;max-width:100%}.cash-mode-toolbar,.cash-export-toolbar{justify-content:flex-start;flex-wrap:wrap}@media(max-width:700px){.cash-filters{grid-template-columns:1fr}.cash-filters .field:last-child{grid-column:auto}}

/* Historical documents: readable receipts and a final balance review. */
.legacy-history,.legacy-batch{min-width:0}.legacy-history .form-grid,.legacy-batch .form-grid{margin-bottom:12px}.legacy-receipt{border:1px solid var(--border,#d8e0e9);border-radius:16px;padding:16px;margin:14px 0}.legacy-receipt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.legacy-note{margin-top:20px}.legacy-review{border:1px solid #7296c3;border-radius:16px;background:var(--surface,#f1f6fc);padding:20px;margin-top:22px}.legacy-review dl>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--border,#d8e0e9)}.legacy-review dd{margin:0;white-space:nowrap;font-weight:700}.legacy-review dt{min-width:0}.legacy-history .check-line,.legacy-batch .check-line{display:flex;align-items:flex-start;gap:10px;margin-top:12px}.legacy-history .check-line input,.legacy-batch .check-line input{width:20px;min-width:20px;height:20px;margin-top:2px}.legacy-history [hidden],.legacy-batch [hidden]{display:none!important}@media(max-width:440px){.legacy-review{padding:12px}.legacy-review dl>div{flex-wrap:wrap;gap:5px}.legacy-receipt{padding:12px}}

@media(max-width:540px){html:has(.legacy-dialog[open]){overflow:hidden}.legacy-dialog .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px 8px}.legacy-dialog .dialog-head>div{grid-column:1;min-width:0}.legacy-dialog .dialog-head>.icon-button{grid-column:2;grid-row:1}.legacy-dialog .dialog-head>[data-action="go-assistant"]{grid-column:1/-1;justify-self:start;min-height:32px;padding:4px 0}.legacy-dialog .dialog-head h2{line-height:1.25}.legacy-dialog .dialog-head p{margin-bottom:0}}
/* The private inventory has an explicit entry from the management home. */
.inventory-home-entry{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:17px 20px;margin:0 0 20px;background:#fff;border:1px solid #cbddec;border-radius:15px;color:#153854;cursor:pointer;font:inherit}
.inventory-home-entry>span:nth-child(2){flex:1}
.inventory-home-entry strong{display:block;font-size:17px}
.inventory-home-entry small{display:block;margin-top:4px;color:#6b7e91;font-size:13px}
.inventory-home-icon{display:grid;place-items:center;width:44px;height:44px;background:#eaf3fb;color:#0a61a8;border-radius:13px}
.route-back{white-space:nowrap}
