:root{--brand:#9B6BFF;--brand-ink:#211137;--brand-deep:#6841B6;--brand-soft:#F3EDFF;--ink:#151b18;--muted:#748078;--line:#e5e9e6;--paper:#f4f6f3;--green:#1d7051;--green-soft:#e7f3eb;--red:#b72e36;--red-soft:#fff0f0;--amber:#96611f;--amber-soft:#fff5e3;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--brand);outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}button{border:0}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #dbe1dc;border-radius:11px;background:#fff;color:var(--ink);min-height:46px}input[type=checkbox]{width:20px;min-height:20px}input[type=file]{font-size:13px;padding:10px}textarea{min-height:86px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}.checkbox{flex-direction:row;align-items:center;font-weight:500}small,.muted{color:var(--muted)}small{font-size:12px;line-height:1.5}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#eef1ee;padding:3px 5px;border-radius:4px;overflow-wrap:anywhere}.icon{height:20px;width:20px;display:inline-block;vertical-align:middle;flex-shrink:0}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.hidden{display:none!important}.row{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:16px}.subtle{font-size:13px;color:var(--muted);line-height:1.6}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;min-height:44px;padding:11px 16px;background:var(--brand);color:var(--brand-ink);font-weight:650;font-size:13px;line-height:1.35}.button.light{background:#fff;border:1px solid var(--line);color:var(--ink)}.button.ghost{background:transparent;color:var(--muted)}.button.green{background:var(--green);color:#fff}.button.red{background:var(--red-soft);color:var(--red)}.button.small{min-height:36px;padding:8px 11px;font-size:12px}.button.wide{width:100%}.circle-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink)}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:7px;background:#eef1ef;font-size:10px;line-height:1.4;font-weight:750;letter-spacing:.3px;white-space:nowrap}.badge.green{background:var(--green-soft);color:var(--green)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.amber{background:var(--amber-soft);color:var(--amber)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;font-weight:800;color:var(--muted)}
.shell{display:grid;grid-template-columns:215px 1fr;min-height:100vh}.sidebar{background:#111814;color:#fff;padding:29px 23px;position:fixed;inset:0 auto 0 0;width:215px;display:flex;flex-direction:column;gap:38px;z-index:10}.brand{display:flex;align-items:center;gap:10px}.brand img{width:38px;height:38px;border-radius:11px;filter:none;opacity:1}.brand strong{font-size:21px;letter-spacing:-.9px}.brand .domain{display:block;color:#85948b;font-size:10px;margin-top:4px;letter-spacing:.3px}.sidebar .eyebrow{color:#7e8e84}.nav-item{margin-top:15px;display:flex;align-items:center;gap:10px;background:#24372c;color:#edf6ef;padding:14px 13px;border-radius:11px;font-size:13px;font-weight:650}.nav-foot{margin-top:auto;border-top:1px solid #2c3a30;padding-top:20px;font-size:11px;line-height:1.9;color:#96a89c}.sidebar-tag{display:flex;gap:8px;align-items:center;color:#c7d8cd;font-size:11px}.workspace{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px}.topbar .brand{display:none}.top-title{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.top-title b{font-weight:600;color:var(--ink)}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#e9efe9;font-size:12px;font-weight:750}.user-name{font-size:12px;font-weight:650}.user-role{font-size:10px;color:var(--muted);margin-top:3px}.content{max-width:1450px;margin:auto;padding:34px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.heading h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:7px 0}.heading p{color:var(--muted);font-size:13px}.switch{display:flex;background:#e8eee8;border-radius:11px;padding:4px;gap:2px}.switch button{padding:10px 13px;border-radius:8px;background:transparent;color:#7d8880;font-size:12px;font-weight:650}.switch button.selected{background:#fff;box-shadow:0 2px 5px #172d1412;color:var(--ink)}.switch .selected.available{background:var(--green);color:white}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 18px;min-width:0}.stat .row{justify-content:space-between;margin-bottom:10px;font-size:11px;color:var(--muted)}.stat .icon{width:17px;height:17px;color:#87988c}.stat strong{font-size:27px;font-weight:650;letter-spacing:-1px}.stat small{font-size:11px;margin-left:6px}.stat.dark{background:var(--ink);color:#fff;border-color:var(--ink)}.stat.dark .row,.stat.dark .icon{color:#b4c0b8}.drivers{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:20px}.driver-chip{padding:13px 16px;border-radius:12px;background:#fff;border:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.driver-chip b{font-size:12px}.driver-chip small{display:block;font-size:10px;margin-top:3px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin:6px 0 23px}.tab{background:transparent;color:var(--muted);padding:12px 1px;border-bottom:2px solid transparent;font-size:13px;font-weight:650;display:flex;align-items:center;gap:8px}.tab.on{color:var(--ink);border-color:var(--ink)}.tab .icon{width:17px;height:17px}.count{padding:2px 7px;background:#e6ebe6;border-radius:5px;font-size:10px}.toolbar{display:flex;justify-content:space-between;gap:13px;margin-bottom:20px;align-items:center}.toolbar input{max-width:290px;background:white;font-size:12px;min-height:40px}.toolbar select{width:auto;min-width:145px;min-height:40px;padding:9px 28px 9px 10px;font-size:12px}.filter-store{display:flex;gap:5px;flex-wrap:wrap}.filter-store button{font-size:11px;background:transparent;padding:9px 13px;border-radius:9px;color:var(--muted);min-height:38px;font-weight:650}.filter-store button.on{background:#fff;border:1px solid var(--line);color:var(--ink)}.orders-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.order-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}.order-card .order-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:5px;flex-wrap:wrap}.order-number{font-size:13px;font-weight:750;letter-spacing:-.3px}.store{font-size:9px;letter-spacing:.6px;background:#f1f3f0}.customer{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;font-size:15px;font-weight:650;margin:8px 0 11px;letter-spacing:-.3px}.customer a{font-size:12px;font-weight:500;letter-spacing:0;color:var(--green)}.detail-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.5;color:#626e65;margin-top:8px}.detail-line .icon{width:16px;height:16px;margin-top:1px;color:#8f9a92}.detail-line span{overflow-wrap:anywhere}.products{font-size:11px;color:var(--muted);background:#f7f9f6;padding:10px 12px;margin-top:14px;border-radius:9px;line-height:1.6}.payment-box{background:var(--red-soft);border:1px solid #f6e4e4;border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;margin-top:15px;color:var(--red)}.payment-box .eyebrow{font-size:9px;letter-spacing:.8px;color:inherit}.payment-box strong{font-size:23px;font-weight:700;letter-spacing:-.6px}.payment-box p{font-size:10px;margin-top:4px}.payment-box.paid{background:#eff7f1;color:var(--green);border-color:#e2eee5}.payment-box.pending{background:var(--amber-soft);border-color:#f3e9d5;color:var(--amber)}.card-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);padding:14px 0 12px;gap:10px}.card-bottom b{color:var(--ink);font-size:14px;margin-left:5px}.card-bottom span:last-child{font-size:10px;max-width:60%;text-align:right}.card-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}.card-actions .button{flex:1;white-space:nowrap;font-size:12px;padding:10px}.card-actions .button.full{flex-basis:100%}.contact-row{display:grid;grid-template-columns:1.3fr 1.18fr 1fr;gap:6px;flex-wrap:nowrap;margin-top:10px;container-type:inline-size}.contact-row .button{min-width:0;min-height:42px;font-size:11px;padding:7px 5px;gap:4px;white-space:nowrap}.contact-row .button span{min-width:0;overflow:hidden;text-overflow:ellipsis}.contact-row .icon{width:16px;height:16px;flex:0 0 16px}.contact-disabled{opacity:.45;cursor:not-allowed}.notice{padding:13px 15px;border:1px solid #e6dcbd;background:#fff9ec;border-radius:11px;font-size:12px;color:#8a672a;line-height:1.65;margin-bottom:17px}.notice.green{background:var(--green-soft);color:var(--green);border-color:#d3e5d8}.notice.red{background:var(--red-soft);color:var(--red);border-color:#efd5d5}.notice b{font-weight:700}.empty{display:flex;min-height:240px;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:10px;background:white;border:1px dashed #d8dfd7;border-radius:var(--radius);padding:30px}.empty .icon{width:36px;height:36px;color:#829187}.empty h3{font-size:18px;letter-spacing:-.4px}.empty p{font-size:12px;color:var(--muted);max-width:360px;line-height:1.7}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding-top:25px;font-size:12px;color:var(--muted)}
.panel{background:white;padding:23px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px}.panel h2{font-size:16px;letter-spacing:-.4px;margin-bottom:5px}.section-title{font-size:14px;letter-spacing:-.2px;margin-bottom:15px}.report-toolbar{display:flex;gap:13px;align-items:end;flex-wrap:wrap;margin-bottom:23px}.report-toolbar label{max-width:190px;flex:1;min-width:130px}.report-toolbar input{font-size:12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;color:var(--muted);font-weight:650;letter-spacing:.3px;padding:13px 10px;background:#f7f9f6}td{padding:14px 10px;border-top:1px solid var(--line);line-height:1.5}td:last-child,th:last-child{text-align:right}.table-wrap{overflow-x:auto;margin-top:15px}.balance-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}.balance-card{border:1px solid var(--line);border-radius:12px;padding:17px;display:flex;flex-direction:column;gap:13px}.balance-card .row{font-size:12px}.balance-card .row.total{font-weight:700;border-top:1px solid var(--line);padding-top:12px}.report-subheading{margin-top:24px;margin-bottom:12px;font-size:14px}.link{color:var(--green);text-decoration:underline;text-underline-offset:3px;background:none;font-size:12px;padding:0}.receipt{display:flex;gap:8px;flex-wrap:wrap}.receipt a{font-size:12px;color:var(--green);border:1px solid var(--line);border-radius:8px;padding:10px}.mono{font-family:ui-monospace,SFMono-Regular,monospace}.break{overflow-wrap:anywhere}.history{list-style:none;padding:0;margin:12px 0}.history li{border-left:2px solid #dbe4dc;padding:1px 0 15px 15px;margin-left:4px;font-size:12px}.history small{display:block;font-size:10px;margin-top:4px}.setup-layout{max-width:680px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fieldset{border:1px solid var(--line);border-radius:12px;padding:18px;margin-top:2px}.fieldset h3{font-size:14px;margin-bottom:15px}
.boot{display:grid;place-content:center;justify-items:center;gap:12px;min-height:100vh;color:var(--muted)}.boot h1{font-size:27px;color:var(--ink);letter-spacing:-1px}.boot p{font-size:13px}/* Auth layout 1.2.1: content stays in normal flow, decoration has its own row. */
.auth-page{display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);min-height:100vh;min-height:100svh;background:#fff;color:#18181b;--muted:#62626b;--line:#e6e3eb}
.auth-hero{--auth-pad:clamp(32px,4.5vw,72px);background:#fff;color:#18181b;border-right:1px solid #eeeaf4;padding:var(--auth-pad) var(--auth-pad) 0;display:grid;grid-template-rows:auto minmax(min-content,1fr) clamp(145px,25vh,225px);row-gap:32px;min-width:0;position:relative;overflow:hidden}
.auth-hero>.brand{position:relative;z-index:1;min-width:0}
.auth-pitch{align-self:center;position:relative;z-index:1;min-width:0;max-width:500px;padding:24px 0 0}
.auth-pitch h1{margin:0;font-size:clamp(36px,3.8vw,58px);line-height:1.14;letter-spacing:-1.9px;font-weight:650;overflow-wrap:normal;text-wrap:balance}
.auth-pitch p{margin:24px 0 0;max-width:450px;color:#57525f;font-size:clamp(18px,1.55vw,22px);line-height:1.55;font-weight:450;overflow-wrap:normal;text-wrap:pretty}
.auth-art{align-self:stretch;position:relative;min-width:0;margin-left:calc(-1 * var(--auth-pad));margin-right:calc(-1 * var(--auth-pad));overflow:hidden;pointer-events:none;isolation:isolate}
.auth-art::after{content:"";position:absolute;width:560px;height:560px;right:-185px;top:40px;border:76px solid var(--brand);border-radius:50%;background:transparent;box-shadow:0 0 0 28px #9B6BFF12,0 0 0 57px #9B6BFF08;pointer-events:none}
.auth-main{display:flex;align-items:center;justify-content:center;min-width:0;padding:clamp(32px,5vw,76px);position:relative}
.auth-card{position:relative;z-index:1;width:100%;max-width:400px;min-width:0}
.auth-card.wide{max-width:640px}
.auth-card h2{font-size:30px;line-height:1.2;letter-spacing:-.85px;margin:9px 0 20px}
.auth-card>p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:26px}
.auth-card form{display:flex;flex-direction:column;gap:20px;min-width:0}
.auth-card .brand{display:none}
.auth-page .brand img{filter:none}
.auth-page .brand strong{font-size:25px;line-height:1.2;letter-spacing:-1px}
.auth-page label{font-size:13px;line-height:1.5;gap:9px}
.auth-page input{min-height:50px;border-color:#ded9e5;padding:13px 15px}
.auth-page .button{min-height:50px;border:1px solid transparent;background:var(--brand);color:var(--brand-ink);font-size:14px;font-weight:700}
.auth-page .button.light{background:#fff;border-color:var(--line);color:var(--ink)}
.auth-page .button:hover:not(:disabled){box-shadow:0 4px 16px #9B6BFF26}
.login-heading{margin-bottom:28px}
.login-heading h2{margin:0}
.initial-icon{width:47px;height:47px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;margin-bottom:20px;color:var(--brand-deep);background:#fff}
.inline-error{font-size:12px;color:var(--red);line-height:1.6;margin-top:3px}
.inline-error:empty{display:none}
.auth-mobile-pitch{display:none}
.setup-help{font-size:12px;line-height:1.6;padding:12px 14px;background:#faf8fe;border:1px solid #e7def8;border-radius:10px}
.setup-help summary{cursor:pointer;font-weight:650}
.setup-help p{margin-top:9px;color:#62626b}
#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;transition:.18s;padding:13px 22px;background:#151e18;color:white;box-shadow:0 5px 25px #0002;border-radius:12px;z-index:300;max-width:min(550px,92vw);width:max-content;font-size:13px;line-height:1.5;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}#toast.error{background:#943039}dialog{width:min(620px,calc(100% - 30px));max-height:90vh;border:1px solid var(--line);border-radius:22px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 90px #0003}dialog::backdrop{background:#15201b88;backdrop-filter:blur(4px)}.modal-head{padding:21px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modal-head h2{font-size:18px;letter-spacing:-.5px;line-height:1.35;margin:0;min-width:0;overflow-wrap:anywhere}.modal-body{padding:23px 24px}.modal-body h3{font-size:14px;line-height:1.5}.modal-body .payment-box{margin:0}.modal-body form{display:flex;flex-direction:column;gap:17px}.modal-body .customer{font-size:19px}.modal-body .detail-line{font-size:13px}.modal-foot{border-top:1px solid var(--line);padding:17px 24px;display:flex;gap:9px;justify-content:flex-end;background:white}.modal-head .circle-btn{border:0;flex:0 0 38px}.preview-summary{padding:13px;background:#f4f7f2;border-radius:10px;font-size:12px;line-height:1.6}.copy-secret{display:block;width:100%;min-height:55px;background:#f1f5f0;user-select:all;margin-top:12px}.settings-store{border:1px solid var(--line);border-radius:13px;padding:18px}.settings-store .button{margin-top:12px}.print-title{display:none}
@media(min-width:1550px){.orders-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.shell{grid-template-columns:180px 1fr}.sidebar{width:180px;padding:27px 17px}.sidebar .brand strong{font-size:18px}.content{padding:26px}.topbar{padding:0 26px}.toolbar{flex-wrap:wrap}.toolbar .row{flex:1;justify-content:flex-end}.order-card{padding:17px}.stats{gap:10px}.stat{padding:14px}.stat strong{font-size:24px}.stat .row{font-size:10px}.heading h1{font-size:27px}}
@media(max-width:820px){.sidebar{display:none}.shell{display:block}.workspace{width:100%}.topbar{height:71px;padding:0 21px}.topbar .brand{display:flex}.topbar .brand strong{font-size:21px}.top-title,.user-name,.user-role{display:none}.content{padding:26px 21px}.auth-page{grid-template-columns:1fr}.auth-hero{display:none}.auth-main{padding:30px 23px;min-height:100vh}.auth-card .brand{display:flex;margin-bottom:55px}.auth-card .brand strong{font-size:26px}.auth-card .initial-icon{display:none}.auth-card{max-width:420px}.heading{margin-bottom:20px}.heading h1{font-size:29px}.panel{padding:19px}}
@media(max-width:570px){.content{padding:24px 16px 40px}.topbar{padding:0 16px}.topbar .row{gap:7px}.topbar .brand img{width:32px;height:32px}.topbar .brand strong{font-size:19px}.topbar .circle-btn{min-width:35px;min-height:36px;border:none}.topbar .avatar{display:none}.heading{gap:13px;align-items:flex-start;flex-wrap:wrap}.heading h1{font-size:30px}.heading p{font-size:12px}.heading .switch{width:100%;justify-content:stretch}.heading .switch button{flex:1}.heading .button{font-size:12px;padding:9px 11px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.stat{padding:14px 16px;border-radius:13px}.stat .row{font-size:11px;margin-bottom:7px}.stat strong{font-size:25px}.drivers{gap:9px}.driver-chip{padding:11px}.driver-chip .avatar{display:none}.driver-chip b{font-size:11px}.driver-chip .badge{font-size:8px;padding:4px 6px}.driver-chip small{font-size:9px}.tabs{margin-top:0;gap:28px}.toolbar{display:block}.toolbar .row{margin-top:11px;gap:9px}.toolbar input{max-width:none;min-width:0}.toolbar select{min-width:123px;max-width:145px;font-size:11px}.orders-grid{grid-template-columns:1fr;gap:15px}.order-card{padding:19px;border-radius:16px}.customer{font-size:16px}.detail-line{font-size:12px}.payment-box strong{font-size:25px}.filter-store button{font-size:12px;padding:9px 12px}.card-actions .button{min-height:43px}.balance-list{grid-template-columns:1fr}.panel{padding:17px}.two-cols{grid-template-columns:1fr}.report-toolbar label{min-width:110px}.report-toolbar .button{flex:1}.report-toolbar{gap:9px}.auth-main{padding:30px 21px}.auth-card .brand{margin-bottom:43px}.modal-head{padding:18px}.modal-body{padding:20px 18px}.modal-foot{padding:16px 18px}.modal-head h2{font-size:17px}dialog{width:calc(100% - 18px);border-radius:17px;max-height:94dvh}.modal-body input,.modal-body select,.modal-body textarea,.auth-card input{font-size:16px}.report-toolbar input{font-size:13px}.card-bottom{font-size:11px}.card-bottom span:last-child{font-size:11px}.contact-row a{min-height:37px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.heading,.tabs,.toolbar,.report-toolbar,.button,.circle-btn,#toast,dialog,.no-print{display:none!important}.shell{display:block}.workspace,.content{padding:0}.content{max-width:none}.stats{grid-template-columns:repeat(4,1fr)}.print-title{display:block;margin:15px 0}.panel,.balance-card,.stat{break-inside:avoid;border-color:#ccc;box-shadow:none}.report-toolbar input{border:none}.report-toolbar{display:block}.table-wrap{overflow:visible}body{background:white;font-size:11px}.panel{padding:12px}a{color:inherit}.orders-grid{display:none}table{font-size:10px}.balance-list{grid-template-columns:1fr 1fr}}

/* v1.1: one contact row on mobile; identity editor stays inside administration. */
.settings-team{display:flex;flex-direction:column;gap:14px}.settings-team h3{display:flex;align-items:center;gap:8px}
.team-list{display:flex;flex-direction:column;gap:10px}.team-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px}
.team-row>.row{min-width:0}.team-row b{font-size:13px;overflow-wrap:anywhere}.team-row small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.team-row .button{white-space:nowrap;flex-shrink:0}
.profile-banner{display:flex;align-items:flex-start;gap:12px;padding:15px;background:var(--green-soft);border-radius:12px;color:var(--green)}.profile-banner .icon{flex-shrink:0}.profile-banner b{font-size:13px}.profile-banner p{font-size:12px;line-height:1.65;margin-top:4px}
.profile-documents{border-top:1px solid var(--line);padding-top:19px;display:flex;flex-direction:column;gap:14px}.profile-documents>h3{display:flex;align-items:center;gap:9px}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.document-card{border:1px dashed var(--line);padding:14px;border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:13px}.document-card .row{gap:6px;flex-wrap:wrap}.document-card b{font-size:13px}.document-card input[type=file]{max-width:100%;font-size:12px}.document-current small{font-size:10px}.check-label{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:500}.check-label input{flex:0 0 18px;padding:0;width:18px;height:18px;min-height:18px}
@container (max-width:275px){.contact-row .button{font-size:10px;padding:7px 3px;gap:3px}.contact-row .icon{width:14px;height:14px;flex-basis:14px}}
@media(max-width:570px){.team-row{padding:12px 10px}.team-row .avatar{display:none}.team-row .button{font-size:11px;padding:9px}.document-grid{grid-template-columns:1fr}.profile-banner{padding:13px}.contact-row .button{min-height:44px}}
@media print{.profile-documents,.profile-banner,.settings-team{display:none!important}}


/* Compact auth on phones/tablets; long forms scroll naturally. */
@media(max-width:820px){
 .auth-page{display:block;min-height:100svh;overflow-x:clip}
 .auth-hero{display:none}
 .auth-main{min-height:100vh;min-height:100svh;padding:36px 24px 40px;overflow:hidden;align-items:center}
 .auth-main::before{content:"";position:absolute;right:-128px;top:-154px;width:270px;height:270px;border:38px solid var(--brand);border-radius:50%;box-shadow:0 0 0 16px #9B6BFF12;pointer-events:none}
 .auth-card,.auth-card.wide{max-width:480px}
 .auth-card>.brand{display:flex;margin:0 0 34px}
 .auth-card .brand strong{font-size:24px}
 .auth-card .initial-icon{display:none}
 .auth-mobile-pitch{display:block;margin:0 0 32px;padding:0}
 .auth-mobile-pitch h1{margin:0;font-size:clamp(28px,6.5vw,36px);line-height:1.17;letter-spacing:-1px;font-weight:650;text-wrap:balance}
 .auth-mobile-pitch p{margin:14px 0 0;font-size:17px;line-height:1.5;color:#57525f;text-wrap:pretty}
 .auth-card h2{font-size:25px;line-height:1.25}
 .login-heading{margin-bottom:24px}
 .login-heading h2{margin:0}
 .auth-card input{font-size:16px}
}
@media(max-width:360px){.auth-main{padding:28px 20px 32px}.auth-card>.brand{margin-bottom:28px}.auth-mobile-pitch{margin-bottom:28px}.auth-mobile-pitch h1{font-size:28px}.auth-mobile-pitch p{font-size:16px}.auth-main::before{right:-158px}}
@media(prefers-reduced-motion:no-preference){.auth-page .button{transition:box-shadow .15s ease}}
/* 1.3.0: purple identity, compact responsive controls and store-separated print. */
:root{--ink:#201c29;--muted:#746e7e;--line:#e8e4ee;--paper:#f7f6fa}
.sidebar{background:#211137}.sidebar .nav-item{background:#382254;color:#f6f0ff}.sidebar .eyebrow,.nav-foot,.sidebar-tag{color:#d2bff8}.nav-foot{border-color:#49325f}.brand .domain{color:#8b8197}.avatar,.count{background:var(--brand-soft)}.tab.on{border-color:var(--brand);color:var(--brand-deep)}.button.green,.switch .selected.available{background:var(--brand);color:var(--brand-ink)}.customer a{color:var(--brand-deep)}.switch{background:#eee8f6}.button:hover:not(:disabled){filter:brightness(.97)}
.recovery-link{display:block;margin:18px auto 0;background:none;color:var(--brand-deep);min-height:44px;font-size:13px;text-decoration:underline}.recovery-note{margin-top:22px}.auth-card form{display:grid;gap:18px}.auth-card form .inline-error:empty{display:none}.sound-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}.sound-row p{flex:1;min-width:180px;font-size:12px;color:var(--muted)}
.filter-store{display:block;min-width:150px;max-width:320px;flex:1}.filter-store label{width:100%}.filter-store select{width:100%;max-width:100%}.toolbar{align-items:end;flex-wrap:wrap}.toolbar>input{min-width:180px;flex:1}.toolbar>select{max-width:240px;flex:1}.report-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}.report-toolbar label{flex:1;min-width:145px;max-width:240px}.report-toolbar input{min-width:0;width:100%;max-width:100%}.report-toolbar .button{min-height:46px}
.store-summaries,.billing-grid,.settlement-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}.store-summary,.bill-card,.settlement-item{border:1px solid var(--line);border-radius:13px;padding:18px;min-width:0;background:#fff}.store-summary h3,.delivery-group h3{font-size:16px;margin-bottom:14px}.summary-pairs{display:grid;gap:10px}.summary-pairs>span{display:flex;justify-content:space-between;gap:12px;font-size:13px}.summary-pairs b{white-space:nowrap}.bill-card p,.settlement-item p{font-size:13px;color:var(--muted);margin:10px 0}.bill-card .button{width:100%;margin-top:16px}.delivery-group{margin-top:24px}.receivable-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.receivable-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.receivable-row b{font-size:13px}.delivery-store-charge{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #d6c2ff;background:var(--brand-soft);border-radius:10px;color:#4d2585;font-size:12px;line-height:1.55;margin-top:12px}.order-card>.notice{margin-top:10px}.balance-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}.balance-card .row{padding:7px 0}.balance-card .total{margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}.balance-card .button{margin-top:12px;width:100%}.settings-account{background:var(--brand-soft);padding:15px;border-radius:12px;margin-bottom:20px}.settings-account p{margin:8px 0}.settings-store,.settings-admin{min-width:0;overflow-wrap:anywhere}.settings-store .row,.settings-admin .row{flex-wrap:wrap}.settings-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:24px 0 16px}.settings-section-head h3{margin:0}.modal-body h3{overflow-wrap:anywhere}.modal-body .two-cols>*{min-width:0}.modal-body .row>div{min-width:0}.modal-body .row>div>p{overflow-wrap:anywhere}#print-report{display:none}
@media(max-width:650px){.content{padding:20px 14px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}.toolbar .filter-store{grid-column:1/-1;max-width:none}.toolbar>input{grid-column:1/-1;max-width:none;min-width:0}.toolbar>select{grid-column:1/-1;max-width:none;width:100%}.filter-store{max-width:none}.report-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-toolbar label{min-width:0;max-width:none}.report-toolbar input{min-width:0;font-size:14px;padding:10px 7px}.report-toolbar .button{min-width:0;padding:10px 7px;font-size:12px}.report-toolbar [data-action=print]{grid-column:1/-1}.stats{gap:10px}.stat{padding:14px 12px}.stat strong{font-size:24px}.stat .row{font-size:10px;gap:5px}.drivers{grid-template-columns:1fr}.heading{align-items:start;flex-wrap:wrap;margin-bottom:18px}.heading h1{font-size:27px}.heading .switch{width:100%}.switch button{flex:1}.panel{padding:17px}.panel h2{font-size:18px}.balance-list{grid-template-columns:1fr}.modal-head{padding:18px}.modal-body{padding:18px}.modal-body .row.spread{flex-wrap:wrap}.settings-section-head{flex-wrap:wrap}.store-summaries,.billing-grid,.settlement-history{grid-template-columns:1fr}.delivery-group .table-wrap{overflow-x:auto}.delivery-group table{min-width:450px}.topbar{padding:0 14px}.topbar>.row{gap:5px}.topbar .user-info{display:none}.modal-body .button{max-width:100%}.settings-store .row .button{flex:1}.badge{max-width:100%;overflow-wrap:anywhere}.print-summary{gap:10px}}
@media print{body{background:white!important;color:black!important}.sidebar,.topbar,.heading,.tabs,.drivers,.stats,.toolbar,.sound-row,.report-screen,.nav-foot,dialog,#toast{display:none!important}.shell,.workspace,.content{display:block!important;margin:0!important;padding:0!important;max-width:none!important;min-height:0!important}#print-report{display:block!important}.print-store{break-after:page;page-break-after:always;font:12px/1.5 Arial,sans-serif}.print-store:last-child{break-after:auto;page-break-after:auto}.print-store header{border-bottom:2px solid #333;margin-bottom:18px;padding-bottom:12px}.print-store h1{font-size:22px}.print-store h2{font-size:19px;margin:6px 0}.print-store h3{font-size:14px;margin:20px 0 10px}.print-summary{display:flex;justify-content:space-between;gap:20px;margin:15px 0}.print-store table{width:100%;border-collapse:collapse;min-width:0!important;table-layout:auto}.print-store td,.print-store th{padding:8px 6px;border-bottom:1px solid #bbb;text-align:left;font-size:11px;white-space:normal!important}.print-store tr{break-inside:avoid}.print-store footer{margin-top:25px;border-top:1px solid #bbb;padding-top:12px;color:#555}.print-store p{margin:7px 0}a[href]:after{content:none!important}@page{size:A4;margin:15mm}}
/* The three filters are real labelled grid items, never a compressed search field. */
.toolbar{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(160px,1fr) minmax(160px,1fr);align-items:end}.toolbar label{min-width:0}.toolbar input,.toolbar select{width:100%;min-width:0;max-width:none;min-height:44px;font-size:13px}.store-select-label{min-width:0;max-width:320px}.report-screen>.store-select-label{margin-bottom:12px}.report-delivery-row{display:grid;grid-template-columns:1fr 1.3fr .8fr 1.1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.report-delivery-row>div{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:12px}.report-delivery-row small{font-size:10px}.report-delivery-row .badge{align-self:start}.report-delivery-row>.button{justify-self:end}.settings-store,.admin-card{border:1px solid var(--line);border-radius:13px;padding:18px}.settings-store p{margin:10px 0;font-size:13px}.settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}.team-list{display:grid;gap:12px;margin:16px 0}.team-row{border:1px solid var(--line);border-radius:12px;padding:12px}.team-row small{display:block;margin-top:4px}
@media(max-width:650px){.toolbar{grid-template-columns:1fr 1fr;gap:12px}.toolbar .search-label{grid-column:1/-1}.toolbar .store-select-label,.toolbar .state-label{grid-column:auto;max-width:none}.toolbar input,.toolbar select{font-size:13px;padding:10px}.report-toolbar{grid-template-columns:1fr 1fr}.report-toolbar [data-action=report-filter]{grid-column:1/-1}.report-screen>.store-select-label{max-width:none}.report-delivery-row{grid-template-columns:1fr 1fr;gap:12px}.report-delivery-row>.button{grid-column:1/-1;justify-self:stretch}.settings-actions .button{flex:1 1 130px}.settings-store,.admin-card{padding:14px}.topbar .row .user-name,.topbar .row .user-role{display:none}}
/* 1.4: settings remain within the two workspaces; usable on narrow phones. */
.integration-entry{border:1px solid #e2d8fa;border-radius:15px;padding:18px;background:#f8f5ff;display:flex;gap:18px;justify-content:space-between;align-items:center}
.provider-card{border:1px solid #e6e0ef;border-radius:15px;padding:18px;background:#fff;min-width:0}
.provider-card h3,.integration-entry h3{display:flex;gap:9px;align-items:center;margin:0 0 8px}
.provider-card .settings-actions{margin:15px 0;gap:8px}
.integration-list input,.integration-list textarea{max-width:100%;min-width:0}
#modal-form textarea[name=web],#modal-form textarea[name=service_account]{font:13px/1.55 ui-monospace,monospace;word-break:break-all;overflow-wrap:anywhere}
.team-row .settings-actions{justify-content:flex-end;flex-wrap:wrap}
.team-row>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.integration-entry{display:block;padding:16px}.integration-entry>.button{width:100%;margin-top:12px}.provider-card{padding:15px}.provider-card .settings-actions>.button{flex:1 1 160px;min-height:44px}.team-row{align-items:flex-start;flex-wrap:wrap}.team-row .settings-actions{width:100%;justify-content:flex-start}.team-row small{overflow-wrap:anywhere}}

.profile-banner{background:var(--brand-soft);color:var(--brand-deep)}

/* 1.4.2: explicit master-only removal; destructive color does not replace branding. */
.button.danger.light{background:#fff6f5;color:#9a2922;border:1px solid #edc5c1}
.button.danger.light:hover{background:#ffedea}
.button.danger-solid{background:#ad3028;color:#fff;border:1px solid #ad3028}
.button.danger-solid:hover{background:#8f241e}
.removal-target{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #edc5c1;background:#fff8f7;border-radius:12px;margin-bottom:18px;min-width:0}
.removal-target>div{min-width:0}.removal-target h3{margin:5px 0;overflow-wrap:anywhere}.removal-target p{margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.removal-target .eyebrow{font-size:11px;color:#9a2922}.danger-icon{display:flex;color:#9a2922;flex:none}.danger-icon .icon{width:26px;height:26px}
.removal-description{line-height:1.6}.removal-warning{background:#fff8ef;border-color:#ebd7b3}.removal-warning ul{padding-left:20px;line-height:1.6;margin:10px 0 0}.removal-warning li{margin:8px 0}
.removal-ack{align-items:flex-start;line-height:1.45}.removal-ack input{flex:none}
@media(max-width:600px){.settings-actions{min-width:0;flex-wrap:wrap}.settings-actions>.button{white-space:normal;text-align:center;min-height:42px}.removal-target{gap:10px;padding:13px}.removal-target h3{font-size:18px}.removal-target .eyebrow{letter-spacing:.05em}}

/* 1.4.2: readable empty states and actionable, protected removals. */
.empty-orders{gap:14px;padding:clamp(24px,4vw,40px) 20px;min-height:270px}
.empty-orders>svg.icon{color:var(--brand);width:36px;height:36px}
.empty-orders h3{font-size:clamp(18px,2.3vw,22px);line-height:1.35;max-width:560px;overflow-wrap:break-word}
.empty-orders p{font-size:14px;line-height:1.65;max-width:490px}
.empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:4px;width:100%}
.empty-actions .button{min-height:44px;white-space:normal;line-height:1.4;max-width:100%;justify-content:center}
.empty-actions .icon{height:19px;width:19px;color:inherit;flex-shrink:0}
.filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 18px;padding:0 2px;color:var(--muted);font-size:13px}
.filter-summary>span{display:flex;align-items:center;gap:7px}
.filter-summary .button{min-height:40px}
.removal-next{display:flex;flex-direction:column;gap:10px}
.removal-next .button{min-height:46px;white-space:normal;justify-content:center}
.removal-next .icon{flex-shrink:0}
button[aria-busy="true"]{cursor:wait}
@media(max-width:430px){.empty-orders{padding:26px 16px}.empty-actions .button{width:100%}.filter-summary{flex-wrap:wrap}.filter-summary .button{min-height:44px}.removal-next .button{width:100%}}

/* EnvioWOO 1.5: update/notification controls do not overlap names or mobile actions. */
[hidden]{display:none!important}.circle-btn{position:relative}.notification-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:12px;background:#9B6BFF;color:#20162F;font-size:11px;line-height:18px;font-weight:800}.notification-count:empty{display:none}.apk-update{padding:14px 22px;background:#f1eaff;border-bottom:1px solid #d1baff;display:flex;align-items:center;justify-content:space-between;gap:16px;font:inherit;color:#251735}.apk-update p{font-size:13px;line-height:1.5;margin:4px 0 0}.apk-update-actions,.notice-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.notice-actions{margin:18px 0}.notice-help{max-width:650px}.notice-help p{line-height:1.65}.notice-actions a,.apk-update-actions a{text-decoration:none}.sound-row{flex-wrap:wrap}.topbar .circle-btn{flex-shrink:0}@media(max-width:600px){.apk-update{align-items:flex-start;flex-direction:column;padding:14px 16px}.apk-update-actions{width:100%}.apk-update-actions .button{flex:1;white-space:nowrap}.notice-actions>.button{width:100%;justify-content:center}.sound-row .subtle{width:100%}.sound-row .button{flex:1;justify-content:center}}@media print{.apk-update,.notification-count{display:none!important}}

/* EnvioWOO 1.5.3 · Pedidos externos de cada tienda */
.manual-order-preview{border:1px solid #d8c7ff;border-radius:14px;background:#f9f6ff;padding:16px;display:grid;gap:10px;margin:16px 0;color:#302243}
.manual-order-preview .row{gap:12px;flex-wrap:wrap;line-height:1.45}
.manual-order-preview strong{font-size:20px;color:#54329f}
.manual-order-preview p{margin:2px 0 0;font-size:12px;line-height:1.5}
#modal-form textarea[name=item_lines]{min-height:94px;line-height:1.6}
@media(max-width:640px){.heading .row.wrap{width:100%;gap:8px}.heading .row.wrap .button{flex:1 1 140px;min-height:44px;justify-content:center}.manual-order-preview{padding:13px}.manual-order-preview strong{font-size:18px}}

/* EnvioWOO 1.5.4: resumen y acceso independiente para registrar un envío externo. */
.sidebar .nav-button{width:100%;border:0;text-align:left;cursor:pointer;transition:background-color .16s ease;color:#f6f0ff;}
.sidebar .nav-button .icon{width:20px;height:20px;}
.sidebar .nav-button.nav-active{background:#382254;}
.sidebar .nav-button:hover,.sidebar .nav-button:focus-visible{background:#523577;}
.sidebar .nav-button.nav-add{margin-top:7px;background:var(--brand);color:var(--brand-ink);font-weight:750;}
.sidebar .nav-button.nav-add:hover,.sidebar .nav-button.nav-add:focus-visible{background:#b38bff;}
.mobile-add-shipment{display:none;}
@media(max-width:820px){.mobile-add-shipment{display:inline-flex;}}
@media print{.mobile-add-shipment{display:none!important}}

/* 1.5.7: Contraste del acceso Agregar envío (lateral y cabecera móvil). */
.sidebar .nav-button.nav-add,.sidebar .nav-button.nav-add:hover,.sidebar .nav-button.nav-add:focus-visible,.button.green.mobile-add-shipment,.button.green.mobile-add-shipment:hover,.button.green.mobile-add-shipment:focus-visible{color:#fff;}

/* Enlace de afiliación desde la pantalla de acceso, sin afectar el formulario. */
.auth-card a.recovery-link{display:block;margin-top:12px;text-align:center;color:#7940d8;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* 1.5.7: cards de pedidos y entregas a ancho completo en pantallas pequeñas. */
@media(max-width:900px){
 .orders-grid{grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0}
 .order-card{width:100%;max-width:none;min-width:0;box-sizing:border-box}
 .orders-grid>*{min-width:0}
}
@media(max-width:570px){
 .content{padding-left:12px;padding-right:12px}
 .orders-grid{gap:12px}
 .order-card{padding:15px 13px}
 .order-card .card-actions{display:flex;flex-wrap:wrap;gap:8px}
 .order-card .card-actions>.button{min-width:0;flex:1 1 128px}
 .order-card .detail-line,.order-card .products{overflow-wrap:anywhere}
}

/* 1.5.9: puntos de salida certificados por tienda, formulario táctil */
.pickup-point-row{padding:15px;margin:10px 0;border:1px solid #dfd5ed;border-radius:12px;background:#fbf9ff;display:grid;gap:10px}
.pickup-point-row .two-cols{align-items:end}.pickup-point-row .remove-pickup-point{justify-self:end;font-size:11px}.manual-order-preview{overflow-wrap:anywhere}
@media(max-width:640px){.pickup-point-row .remove-pickup-point{justify-self:stretch;width:100%}.manual-order-preview .row{display:flex;flex-wrap:wrap}}

/* Agregar envío: zona de salida y campos de cobro según tipo de entrega. */
.manual-amounts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.manual-amounts-grid>label{min-width:0;width:100%}
.manual-amounts-grid input{min-width:0;width:100%}
.manual-amounts-grid .manual-field-heading{display:flex;flex-direction:column;justify-content:flex-start;min-height:3.25em;line-height:1.35}
.manual-amounts-grid .manual-field-heading small{font-size:11px;font-weight:500;color:#696074;line-height:1.3}
.manual-amounts-grid.agency-selected{grid-template-columns:minmax(0,1fr)}
.manual-form-actions{justify-content:flex-end}
.manual-origin-block{margin:0;min-width:0}
.manual-origin-block .two-cols>label{min-width:0}
.sidebar .nav-button.nav-multi{margin-top:7px;border:1px solid #7858a0;color:#fff;background:#352048}
.sidebar .nav-button.nav-multi:hover{background:#523577}
.mobile-multi-shipment{display:none}
.multi-intro{margin:0 0 18px;line-height:1.6;color:var(--muted)}
.multi-deliveries-section{margin-top:22px;min-width:0}
.multi-deliveries-section h3{margin:0}
.multi-draft-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:14px 0;padding:12px;border:1px solid #e5dcef;border-radius:12px;background:#faf7ff}
.multi-draft-tools label{min-width:0}
.multi-draft-tools [role=status]{grid-column:1/-1;min-height:1em}
.multi-stop{min-width:0;border:1px solid #ded4ed;border-radius:14px;margin:18px 0;padding:16px;background:#fff;display:grid;gap:14px}
.multi-stop legend{font-size:16px;font-weight:800;padding:0 8px;color:#513575}
.multi-stop-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.multi-stop-head>.row{flex-wrap:nowrap}
.multi-stop.is-collapsed>:not(legend):not(.multi-stop-head){display:none}
.multi-stop .two-cols{align-items:start;min-width:0}
.multi-stop label,.multi-stop input,.multi-stop textarea,.multi-stop select{min-width:0;max-width:100%}
.multi-stop .multi-paid-wrap{display:grid;gap:12px;padding:13px;border:1px solid #e5dcef;border-radius:10px;background:#faf7ff}
.multi-stop-summary{margin:0;padding:11px 12px;border-radius:9px;background:#f7f4fb;line-height:1.6}
.multi-total{margin:18px 0 0}
.multi-route-note{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e1d4f6;background:#faf7ff;border-radius:10px;padding:11px 12px;margin:12px 0;font-size:12px;line-height:1.5}
.multi-route-note .link{flex-shrink:0}
.badge.multi-badge{background:#eee6fc;color:#6434aa;white-space:normal}
.multi-route-stops{display:grid;gap:12px;margin:18px 0}
.multi-route-stop{border:1px solid #e4ddec;border-radius:12px;padding:14px;min-width:0}
.multi-route-stop p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.multi-route-stop .row{gap:10px;flex-wrap:wrap}
.multi-stop .button:disabled{opacity:.5;cursor:not-allowed}
.quick-reject-panel{padding:14px;border:1px solid #e4d8ee;background:#fbf8ff;border-radius:12px;margin-top:12px;display:grid;gap:12px;font-size:13px}
.quick-reject-options{display:flex;flex-wrap:wrap;gap:8px}
.quick-reject-options .button{flex:1 1 135px;justify-content:center;white-space:normal;min-height:40px}
.quick-reject-custom{display:grid;gap:10px}
.quick-reject-custom textarea{width:100%;min-width:0}
.quick-reject-panel>.link{justify-self:end}
.service-scope{margin:28px auto 12px;max-width:850px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6;padding:0 12px}
@media(max-width:820px){.mobile-multi-shipment{display:inline-flex}}
@media(max-width:570px){.multi-stop{padding:12px;gap:12px}.multi-stop-head{align-items:flex-start}.multi-stop-head .subtle{max-width:45%;overflow-wrap:anywhere}.multi-draft-tools{grid-template-columns:minmax(0,1fr) auto}.multi-draft-tools .button{padding-inline:10px}.multi-route-note{align-items:flex-start}.multi-route-stop{padding:12px}.multi-deliveries-section>.row{flex-wrap:wrap;gap:8px}.multi-total strong{font-size:19px}}
@media print{.mobile-multi-shipment{display:none!important}}
@media(max-width:570px){
 .manual-amounts-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .manual-amounts-grid .manual-field-heading{min-height:0}
}
.badge[data-state="accepted"]{background:#15803d;color:#fff}
.badge[data-state="picked_up"]{background:#facc15;color:#422006}
.order-card .order-head .order-number + .badge.store{background:#b91c1c;color:#fff}
/* iOS standalone: reserve the system safe area once, outside the app layout. */
:root{--ew-safe-top:env(safe-area-inset-top,0px);--ew-safe-right:env(safe-area-inset-right,0px);--ew-safe-bottom:env(safe-area-inset-bottom,0px);--ew-safe-left:env(safe-area-inset-left,0px)}
@media screen{
 body{padding:var(--ew-safe-top) var(--ew-safe-right) var(--ew-safe-bottom) var(--ew-safe-left)}
 .shell,.auth-page,.auth-main,.boot{min-height:calc(100vh - var(--ew-safe-top) - var(--ew-safe-bottom));min-height:calc(100svh - var(--ew-safe-top) - var(--ew-safe-bottom))}
 .sidebar{top:var(--ew-safe-top);bottom:var(--ew-safe-bottom);left:var(--ew-safe-left)}
 dialog{inset:var(--ew-safe-top) var(--ew-safe-right) var(--ew-safe-bottom) var(--ew-safe-left);margin:auto;width:min(620px,calc(100vw - var(--ew-safe-left) - var(--ew-safe-right) - 30px));max-height:min(90vh,calc(100vh - var(--ew-safe-top) - var(--ew-safe-bottom) - 24px));max-height:min(90dvh,calc(100dvh - var(--ew-safe-top) - var(--ew-safe-bottom) - 24px))}
 #toast{bottom:calc(25px + var(--ew-safe-bottom));max-width:min(550px,calc(100vw - var(--ew-safe-left) - var(--ew-safe-right) - 30px))}
}
@media screen and (max-width:570px){dialog{width:min(620px,calc(100vw - var(--ew-safe-left) - var(--ew-safe-right) - 18px));max-height:min(94vh,calc(100vh - var(--ew-safe-top) - var(--ew-safe-bottom) - 24px));max-height:min(94dvh,calc(100dvh - var(--ew-safe-top) - var(--ew-safe-bottom) - 24px))}}
.photo-picker{display:grid;gap:10px;padding:14px;border:1px solid #dfd6ec;border-radius:12px;background:#faf8fd;min-width:0}
.photo-picker-label{font-size:14px;font-weight:700;line-height:1.5}
.photo-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.photo-picker-actions .button{justify-content:center;white-space:normal;padding:10px 12px;min-height:44px;line-height:1.4}
.photo-picker-status{margin:0;line-height:1.5;overflow-wrap:anywhere}
.photo-picker-preview{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:9px;background:#eee9f3;justify-self:center}
.photo-camera{display:grid;gap:10px;min-width:0}
.photo-camera video{display:block;width:100%;max-height:320px;aspect-ratio:4/3;object-fit:contain;border-radius:9px;background:#17121f}
.photo-picker [hidden]{display:none!important}
@media(max-width:380px){.photo-picker{padding:11px}.photo-picker-actions{gap:8px}.photo-picker-actions .button{padding:10px 8px;font-size:12px}}

/* Driver actions stay beside the route labels, without a second toolbar. */
.driver-heading-copy{flex:1;min-width:0}
.driver-sound[aria-pressed="true"]{background:var(--green-soft);border-color:#a9cfba;color:var(--green)}
.driver-heading-eyebrow,.driver-heading-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.driver-heading-eyebrow .button,.driver-heading-title .button{flex-shrink:0}
.driver-heading-title h1{min-width:0}
@media(max-width:820px){
 .content:has(>.driver-heading){padding-top:8px}
 .driver-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:14px}
 .driver-heading-copy{width:100%}
 .driver-heading>.switch{width:100%}
 .driver-heading>.switch button{flex:1}
 .driver-heading-eyebrow,.driver-heading-title{gap:10px}
 .driver-heading-eyebrow .button,.driver-heading-title .button{font-size:12px;min-height:40px;padding:9px 11px}
 .driver-heading-title{margin:0}
 .driver-heading-title h1{margin:5px 0}
 .driver-heading-copy p{margin-top:4px;margin-bottom:0;font-size:12px;line-height:1.35;max-inline-size:100%;overflow-wrap:anywhere}
 .driver-greeting-extra{display:none}
}
@media(max-width:360px){
 .driver-heading-eyebrow .eyebrow{letter-spacing:1.2px;font-size:9px}
 .driver-heading-eyebrow .button,.driver-heading-title .button{font-size:11px;padding:8px 9px;gap:5px}
 .driver-heading-title h1{font-size:25px}
}

/* Keep report content in the viewport, including long store names and references. */
@media screen{
 .report-screen{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .report-screen .balance-card{min-width:0}
 .report-screen .row>*,.report-screen .summary-pairs>span>*{min-width:0;max-width:100%}
 .report-screen .badge{white-space:normal;overflow-wrap:anywhere}
}
@media screen and (max-width:650px){
 .report-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-toolbar input,.report-screen .store-select-label select{min-width:0;max-width:100%}
 .report-screen .balance-list,.report-screen .store-summaries,.report-screen .billing-grid,.report-screen .settlement-history{grid-template-columns:minmax(0,1fr)}
 .report-screen .balance-card .row,.report-screen .bill-card .row,.report-screen .settlement-item .row,.report-screen .panel>.row{flex-wrap:wrap}
 .report-screen .balance-card .row>b{flex-shrink:1}
 .report-screen .summary-pairs b{flex-shrink:0}
 .report-screen .stat strong{display:block;max-width:100%;overflow-wrap:anywhere;font-size:clamp(18px,6vw,24px)}
 .report-screen .receivable-row{flex-wrap:wrap}
 .report-screen .receivable-row>div{flex-basis:100%}
 .report-screen .report-delivery-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-screen .summary-pairs>span{flex-wrap:wrap}
}

/* Report controls reflow inside the page; native date fields keep a readable iOS size. */
@media screen{
 .report-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;flex:0 1 350px}
 .report-toolbar .report-date-range label{min-width:0;max-width:none}
 .report-filter-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;min-width:0;flex:1}
 .report-toolbar .report-filter-actions .store-select-label{min-width:0;max-width:320px;flex:1 1 160px}
}
@media screen and (max-width:820px){
 html.report-mode,html.report-mode body{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
 html.report-mode .content{min-width:0;overflow-wrap:anywhere}
 html.report-mode .report-screen{touch-action:pan-y pinch-zoom}
}
@supports(overflow:clip){
 @media screen and (max-width:820px){html.report-mode,html.report-mode body{overflow-x:clip}}
}
@media screen and (max-width:650px){
 .report-toolbar{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:18px}
 .report-toolbar label{font-size:12px;gap:4px}
 .report-date-range{inline-size:100%;max-inline-size:100%;grid-template-columns:48% 48%;column-gap:2%;justify-content:center}
 .report-toolbar .report-date-range>label{min-inline-size:0;inline-size:100%;max-inline-size:100%;margin:0}
 .report-toolbar .report-date-range input[type="date"]{box-sizing:border-box;min-inline-size:0;inline-size:100%;max-inline-size:100%;-webkit-appearance:none;appearance:none}
 .report-filter-actions{gap:8px}
 .report-toolbar .report-filter-actions .store-select-label{flex:1 1 150px;max-width:none}
 .report-toolbar input,.report-toolbar select{display:block;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;padding:8px;font-size:16px}
 .report-toolbar input::-webkit-date-and-time-value{min-width:0;text-align:left}
 .report-toolbar .report-filter-actions .button{min-height:44px;padding:9px 12px;flex:0 0 auto;font-size:13px}
 .report-filter-actions>a.button{flex:1 0 100%;justify-content:center}
}

/* Safari focuses editable fields without automatic zoom at a readable 16px. */
@media screen and (max-width:820px){
 :root input:not([type="file"]),:root select,:root textarea{font-size:16px}
}

/* Keep courier availability visible without pushing orders below the fold. */
.drivers-panel{margin:0 0 16px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.drivers-toggle{width:100%;min-height:48px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.drivers-toggle:hover{background:#faf8fe}
.drivers-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.drivers-title{display:flex;align-items:center;gap:10px;min-width:0;font-size:12px;font-weight:700}
.drivers-count{padding:4px 8px;border-radius:7px;background:#fce3e5;color:#9b2330;font-size:11px;font-weight:650;white-space:nowrap}
.drivers-count.none{background:var(--red-soft);color:var(--red)}
.drivers-toggle-label{flex:none;color:var(--brand-deep);font-size:11px;font-weight:700;white-space:nowrap}
.drivers-toggle-label span{display:inline-grid;place-items:center;width:16px;font-size:15px}
.drivers-panel .drivers{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px;margin:0;padding:0 10px 10px}
.drivers-panel .driver-chip{min-width:0;min-height:48px;padding:8px 10px;border-radius:9px;gap:8px}
.drivers-panel .driver-chip .row{min-width:0;gap:7px}
.drivers-panel .driver-chip .avatar{width:27px;height:27px;flex:none;font-size:10px}
.drivers-panel .driver-chip .row>div:last-child{min-width:0}
.drivers-panel .driver-chip b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.drivers-panel .driver-chip small{margin-top:1px;font-size:9px}
.drivers-panel .driver-chip .badge{flex:none;font-size:9px;padding:4px 7px;white-space:nowrap}
@media(max-width:650px){.drivers-title{flex-wrap:wrap;gap:4px 8px}.drivers-panel .drivers{grid-template-columns:1fr}.drivers-panel .driver-chip .avatar{display:grid}.drivers-panel .driver-chip .badge{font-size:9px}}
.bulk-actions{margin:8px 0 12px;gap:8px;align-items:center}.bulk-order-wrap{min-width:0}.bulk-order-wrap .order-card{height:calc(100% - 34px)}.bulk-order-choice{display:flex;align-items:center;gap:6px;min-height:30px;font-size:12px;font-weight:700;color:var(--brand-deep);cursor:pointer}.bulk-order-choice input{width:17px;height:17px;accent-color:#9160f7}.zone-search{margin:5px 0 6px!important;width:100%}.multi-free-wrap,.multi-courier-fee-wrap{margin-top:8px}
.manual-order-dialog{width:min(850px,calc(100vw - 30px))}.manual-order-dialog .modal-body{padding:16px 20px}.manual-order-dialog .modal-body form{gap:11px}.manual-section{display:grid;gap:10px;padding:0 0 12px;border-bottom:1px solid #eee7f5}.manual-section h3,.manual-summary h3{font-size:13px;color:#583399;margin:0;letter-spacing:.01em}.manual-section .two-cols{gap:10px}.manual-section label{min-width:0}.manual-section label input,.manual-section label select,.manual-section label textarea{width:100%;min-width:0}.manual-section textarea{resize:vertical}.manual-draft-picker{min-width:0}.manual-draft-picker [role=status]{display:block;font-size:11px;margin-top:3px}.manual-origin-head{display:flex;align-items:end;gap:12px}.manual-origin-head .manual-origin-block{flex:1}.manual-origin-head .link{white-space:nowrap;margin-bottom:9px}.manual-origin-block strong{font-size:12px}.manual-origin-block label{margin-top:3px}.manual-origin-block .two-cols{align-items:end}.manual-help{display:inline-block;position:relative;margin-left:5px;font-weight:400}.manual-help summary{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#eee4ff;color:#593399;cursor:pointer;list-style:none;font-size:11px;font-weight:800}.manual-help small{position:absolute;left:0;top:22px;width:min(280px,65vw);padding:9px;background:#fff;border:1px solid #d8c7ff;border-radius:9px;box-shadow:0 8px 24px #0002;z-index:4;line-height:1.4}.manual-free-switch{padding:8px 10px;border:1px solid #e2d5f5;border-radius:10px;background:#fcfaff}.manual-order-dialog .manual-amounts-grid{gap:10px}.manual-order-dialog .manual-field-heading{min-height:0}.manual-order-dialog #manual-rate-help{display:block;font-size:11px;margin-top:3px;font-weight:400}.manual-order-dialog .manual-order-preview{display:block;margin:0;padding:10px 12px}.manual-summary{display:grid;gap:7px}.manual-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}.manual-summary-grid span,.manual-summary-due,.manual-summary-store{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5}.manual-summary-grid b,.manual-summary-due strong,.manual-summary-store b{white-space:nowrap}.manual-summary-due{border-top:1px solid #d8c7ff;padding-top:7px;margin-top:7px;font-size:14px}.manual-summary-store{color:#593399;margin-top:7px}.manual-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}.manual-order-dialog .manual-form-actions{position:sticky;bottom:-16px;background:#fff;padding:10px 0 0;border-top:1px solid #eee7f5;gap:8px;z-index:3}.manual-order-dialog .manual-form-actions .button{min-height:40px}.zone-select-hidden{display:none!important}label:has(.zone-combo-input){position:relative}.zone-combo-list{position:absolute;top:100%;left:0;right:0;max-height:205px;overflow-y:auto;background:#fff;border:1px solid #d7c4ef;border-radius:10px;box-shadow:0 12px 28px #0002;z-index:20;padding:4px}.zone-combo-list[hidden]{display:none}.zone-combo-option{display:block;width:100%;padding:9px;text-align:left;background:#fff;border:0;border-radius:7px;font:inherit;color:inherit;cursor:pointer}.zone-combo-option:hover,.zone-combo-option:focus{background:#f2eaff}
@media(max-width:570px){.manual-order-dialog{width:calc(100vw - var(--ew-safe-left) - var(--ew-safe-right) - 18px)}.manual-order-dialog .modal-body{padding:13px 14px}.manual-order-dialog .manual-section .two-cols,.manual-order-dialog .manual-amounts-grid,.manual-summary-grid{grid-template-columns:minmax(0,1fr)}.manual-order-dialog .modal-body form{gap:10px}.manual-origin-head{align-items:start;flex-wrap:wrap}.manual-origin-head .link{margin:0}.manual-order-dialog .manual-form-actions{bottom:-13px}.manual-order-dialog .manual-form-actions .button{flex:1 1 auto;min-width:0;font-size:12px}}
.multi-dialog{width:min(920px,calc(100vw - 30px))}.multi-dialog .modal-body{padding:16px 20px}.multi-dialog .modal-body form{gap:12px}.multi-general{display:grid;gap:10px;padding-bottom:12px;border-bottom:1px solid #eee7f5}.multi-general h3{margin:0;font-size:13px;color:#583399}.multi-general .two-cols{gap:10px}.multi-general label,.multi-general input,.multi-general select{min-width:0;width:100%}.multi-origin-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #e9def5;border-radius:10px;background:#fcfaff}.multi-origin-line div{min-width:0}.multi-origin-line b{font-size:12px}.multi-origin-line .subtle{font-size:11px}.multi-origin-line .button{flex:none}.multi-dialog #multi-pickup-registered{display:flex;align-items:end;gap:8px}.multi-dialog #multi-pickup-registered.hidden{display:none}.multi-dialog #multi-pickup-registered label{flex:1}.multi-deliveries-section{margin-top:3px}.multi-deliveries-section>.row{margin-bottom:5px}.multi-stop{margin:8px 0;padding:10px 12px;gap:9px}.multi-stop legend{font-size:13px}.multi-stop-head{min-height:35px}.multi-head-text{display:grid;gap:2px;min-width:0;line-height:1.35}.multi-head-text b{font-size:13px}.multi-head-text .subtle{font-size:11px;overflow-wrap:anywhere}.multi-stop-head>.row{gap:4px}.multi-stop-head .button{padding:5px 7px;min-height:30px}.multi-stop.is-collapsed{padding-block:7px}.multi-stop .two-cols{gap:9px}.multi-stop .multi-paid-wrap{padding:8px}.multi-stop-summary{padding:7px 9px;font-size:11px}.multi-more-details{border-top:1px solid #eee7f5;padding-top:6px}.multi-more-details summary{cursor:pointer;color:#593399;font-size:12px;font-weight:700}.multi-more-details label{margin-top:8px}.multi-total{margin:3px 0 0;padding:10px 12px}.multi-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin-top:7px}.multi-summary-grid span{display:flex;justify-content:space-between;gap:8px;font-size:12px}.multi-summary-grid b{white-space:nowrap}.multi-dialog .manual-form-actions{position:sticky;bottom:-16px;background:#fff;padding:10px 0 0;border-top:1px solid #eee7f5;z-index:3}.multi-dialog .manual-form-actions .button{min-height:40px}
@media(max-width:570px){.multi-dialog{width:calc(100vw - var(--ew-safe-left) - var(--ew-safe-right) - 18px)}.multi-dialog .modal-body{padding:13px 14px}.multi-general .two-cols,.multi-stop .two-cols,.multi-summary-grid{grid-template-columns:minmax(0,1fr)}.multi-stop-head{align-items:flex-start;flex-wrap:wrap}.multi-stop-head>.row{width:100%;justify-content:flex-end}.multi-stop-head .button{font-size:12px}.multi-origin-line{align-items:flex-start;flex-wrap:wrap}.multi-dialog #multi-pickup-registered{flex-wrap:wrap}.multi-dialog #multi-pickup-registered .button{width:100%}.multi-dialog .manual-form-actions{bottom:-13px}.multi-dialog .manual-form-actions .button{flex:1 1 auto;min-width:0;font-size:12px}}

/* Keep bulk selection and free-delivery controls on one readable line. */
.bulk-order-choice{flex-direction:row;justify-content:flex-start;padding:0 4px}
.bulk-order-choice input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0}
.manual-order-dialog .manual-section label.checkbox input[type=checkbox],.multi-stop label.checkbox input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;padding:0}
.manual-order-dialog .manual-amounts-grid{align-items:start}
.manual-order-dialog .manual-free-switch,.multi-stop .multi-free-wrap{flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
.manual-origin-head .manual-origin-block strong{display:block;padding:10px 12px;border:1px solid #e9def5;border-radius:10px;background:#fcfaff;font-size:13px}
.bulk-order-wrap .order-card{height:100%}
.bulk-order-wrap:has(.bulk-order-choice) .order-card{height:calc(100% - 34px)}

.manual-label-title{display:flex;align-items:center;gap:6px;min-height:20px}.manual-label-title .manual-help{margin:0;line-height:1}.manual-label-title .manual-help summary{width:16px;height:16px}

/* Settlement amounts follow the store's perspective: negative means payable. */
.settlement-card{gap:10px;min-width:0}.settlement-card>.row{padding:0;gap:10px;flex-wrap:wrap}.settlement-card>.row>b{min-width:0;overflow-wrap:anywhere}.settlement-balance{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:12px 0 0;line-height:1.3;min-width:0}.settlement-balance>span{font-size:14px;overflow-wrap:anywhere}.settlement-balance>strong{font-size:30px;font-weight:750;letter-spacing:-.6px;font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}.settlement-collect .settlement-balance>strong{color:#147249}.settlement-pay .settlement-balance>strong{color:#a33240}.settlement-clear .settlement-balance>strong{color:var(--muted)}.settlement-card .button{margin-top:auto;min-height:42px}.settlement-card .subtle{margin:0}.settlement-payment-details{display:grid;gap:5px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.preview-summary .settlement-balance{padding-top:10px}.preview-summary .settlement-balance>span{font-weight:600}

.billing-panel .billing-grid{margin-top:15px}.billing-plan-price{display:flex;flex-direction:column;gap:4px;margin-top:15px}.billing-plan-price strong{font-size:27px;letter-spacing:-.5px}.billing-plan-price span{font-size:12px;color:var(--muted)}.billing-contact{overflow-wrap:anywhere}.bill-overdue{border-color:#e8bfc3;background:#fffafa}.billing-notice-state{font-size:11px!important}.billing-panel .bill-card .button+.button{margin-top:8px}.billing-panel .bill-card .row{flex-wrap:wrap}.login-remember{font-size:13px;gap:9px}.login-remember input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0}
.registration-entry{margin-top:-6px}.auth-card .driver-registration-form{gap:13px}.registration-intro{margin-bottom:18px!important}.driver-registration-form .two-cols{gap:12px}.driver-registration-form label{min-width:0}.driver-registration-form input{width:100%;min-width:0}.registration-status{margin-bottom:18px}.driver-registration-admin{min-width:0}.registration-panel-heading{gap:10px;flex-wrap:wrap;align-items:center}.registration-panel-heading h3{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0}.registration-panel-heading>.link{font-size:12px}.registration-list{display:grid;gap:8px;max-height:320px;overflow:auto;margin-top:12px}.registration-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 12px;background:#faf8fd;border:1px solid var(--line);border-radius:11px;min-width:0}.registration-person{display:grid;gap:3px;min-width:0;flex:1}.registration-person b,.registration-person small{overflow-wrap:anywhere}.registration-person small{font-size:11px;color:var(--muted)}.registration-actions{display:flex;gap:6px;flex-wrap:wrap}.registration-actions .button{min-height:36px}.registration-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:9px;width:100%;font-size:12px}.registration-confirm>span{flex:1;min-width:140px}
@media(max-width:570px){.driver-registration-form .two-cols{grid-template-columns:minmax(0,1fr)}.registration-actions{width:100%}.registration-actions .button{flex:1}.registration-panel-heading h3{font-size:14px}.registration-row{padding:9px 10px}.registration-list{max-height:300px}}

/* Compact reports: real pending counts, native keyboard/touch disclosures. */
.report-section{min-width:0;margin:0 0 12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.report-section>summary{display:flex;align-items:center;gap:12px;padding:14px 16px;list-style:none;cursor:pointer;min-height:66px;border-radius:14px;touch-action:manipulation}
.report-section>summary::-webkit-details-marker{display:none}
.report-section>summary::marker{content:''}
.report-section>summary:hover{background:#faf8fe}
.report-section>summary:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.report-section-title{display:grid;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}
.report-section-title strong{font-size:14px;line-height:1.3}
.report-section-title small{font-size:11px;line-height:1.25}
.report-section-count{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:155px;padding:5px 8px;border-radius:8px;background:#f0f2f1;color:#626e66;font-size:11px;line-height:1.25;text-align:center;overflow-wrap:anywhere}
.report-section-count b{font-size:14px;font-variant-numeric:tabular-nums}
.report-section-count.has-pending{background:#fff1d8;color:#835113}
.report-section-chevron{width:16px;flex:none;color:var(--brand-deep);font-size:20px;text-align:center;transition:transform .15s}
.report-section[open]>summary .report-section-chevron{transform:rotate(180deg)}
.report-section[open]>summary{border-radius:14px 14px 0 0;border-bottom:1px solid var(--line)}
.report-section-content{padding:16px;min-width:0}
.report-section-content>.subtle{margin-bottom:12px}
.report-section-content>.panel{border:0;padding:0;margin:0;border-radius:0}
.report-section-content>.panel>.row:first-child{display:none}
.report-section-content .delivery-group:first-child{margin-top:0}
/* Keep report filter edits independent from the currently displayed results. */
.report-screen .report-toolbar{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);align-items:end;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:8px}
.report-screen .report-date-range{min-width:0;max-width:100%;align-self:start}
.report-screen .report-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.report-screen .report-toolbar label,.report-screen .report-toolbar .report-filter-actions .store-select-label{min-width:0;max-width:none;width:100%;margin:0}
.report-screen .report-toolbar select,.report-screen .report-toolbar input{width:100%;min-width:0;max-width:100%;height:44px;font-size:14px}
.report-filter-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;grid-column:1/-1}
.report-filter-buttons .button{min-width:0;min-height:42px}
.report-pending{margin:7px 0 12px;line-height:1.5}
.report-applied{font-size:12px;line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere}
.report-daily-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.report-day{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.report-day header,.report-day-driver{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-size:12px}
.report-day header{background:#f5f0ff;color:var(--brand-deep)}
.report-day header span{font-size:11px;flex:none}
.report-day-driver+ .report-day-driver{border-top:1px solid var(--line)}
.report-day-driver span{min-width:0;overflow-wrap:anywhere}
.report-day-driver b{font-variant-numeric:tabular-nums;flex:none}
.report-screen .report-delivery-row{grid-template-columns:1.1fr 1.2fr 1.2fr .65fr 1fr auto}
@media(max-width:820px){.report-screen .report-toolbar{grid-template-columns:minmax(0,1fr)}.report-screen .report-date-range{grid-template-columns:48% 48%;column-gap:2%;justify-content:center;width:100%}.report-screen .report-toolbar input,.report-screen .report-toolbar select{font-size:16px}.report-screen .report-delivery-row{grid-template-columns:repeat(2,minmax(0,1fr))}.report-screen .report-delivery-row>.button{grid-column:1/-1;justify-self:stretch}}
@media(max-width:420px){.report-screen .report-toolbar{padding:10px;gap:10px}.report-screen .report-filter-actions{grid-template-columns:minmax(0,1fr);gap:8px}.report-filter-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.report-filter-buttons .button{padding:10px 7px;font-size:12px}.report-filter-buttons>a{grid-column:1/-1}.report-daily-list{grid-template-columns:minmax(0,1fr)}}
/* Native month fields and long select options must not widen store forms. */
.store-edit-form,.store-edit-form>*{min-width:0;max-width:100%}
.store-edit-form label{min-width:0;overflow-wrap:anywhere}
.store-edit-form .two-cols{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}
.store-edit-form input:not([type=checkbox]),.store-edit-form select,.store-edit-form textarea{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%}
.store-edit-form input[type=month]{min-inline-size:0;inline-size:100%;max-inline-size:100%;appearance:none;-webkit-appearance:none}
.store-edit-form input::-webkit-date-and-time-value{min-width:0;text-align:left}
.store-edit-form .pickup-point-row{min-width:0;max-width:100%;margin-inline:0}
.store-edit-form .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.store-edit-form .checkbox input{width:20px;min-width:20px;flex:0 0 20px;margin:0}
dialog:has(.store-edit-form) .modal-body{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){
 .report-section>summary{gap:8px;padding:12px;min-height:64px}
 .report-section-title strong{font-size:13px}
 .report-section-count{max-width:105px;font-size:10px;padding:5px 7px}
 .report-section-content{padding:12px}
 .store-edit-form .two-cols{grid-template-columns:minmax(0,1fr)}
 .store-edit-form .pickup-point-row{padding:11px}
 .store-edit-form .manual-form-actions,.store-edit-form .manual-form-actions .button{width:100%}
}
/* An offer remains visible even when audio/push is unavailable or a form is open. */
.offer-alert{position:fixed;z-index:290;inset:auto max(16px,var(--ew-safe-right,0px)) calc(18px + var(--ew-safe-bottom,0px)) auto;display:flex;align-items:center;gap:14px;width:min(450px,calc(100vw - 32px));padding:15px 16px;border:1px solid #c2a1ff;border-left:5px solid #7138d5;border-radius:15px;background:#faf5ff;color:#2c174e;box-shadow:0 8px 28px #27144830;box-sizing:border-box}
.offer-alert-copy{display:grid;gap:4px;min-width:0;flex:1}.offer-alert-copy b{font-size:15px;line-height:1.35}.offer-alert-copy span{font-size:12px;line-height:1.45}.offer-alert .button{flex:0 0 auto;min-height:42px;white-space:nowrap}.offer-alert-in-dialog{position:sticky;inset:auto 0 0;width:100%;max-width:100%;border-radius:0;border-width:1px 0 0 5px;box-shadow:0 -4px 18px #27144812;z-index:5;margin:0}
@media(max-width:380px){.offer-alert:not(.offer-alert-in-dialog){gap:8px;padding:12px}.offer-alert .button{padding:9px;font-size:12px}.offer-alert-copy b{font-size:14px}}
@media print{.offer-alert{display:none!important}}

/* Integration headers share the modal and settings heading layout. */
.integration-context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0}
.integration-context p{margin:0;flex:1 1 180px;font-size:12px;line-height:1.5}
.integration-list .notice{margin:0}
.provider-card .provider-heading{margin:0 0 12px;align-items:center;flex-wrap:wrap;gap:8px 12px}
.provider-card .provider-heading h3{margin:0;min-width:0;flex:1;line-height:1.5}
.provider-card .provider-heading h3 .icon{flex:0 0 18px}
.provider-card .provider-heading .badge{flex:0 0 auto;max-width:100%}
@media(max-width:570px){.integration-context{gap:10px}.integration-context p{flex-basis:100%}.provider-card .provider-heading{gap:8px}.provider-card .provider-heading h3{font-size:14px}}

/* Collected courier orders keep the status beside the client, without a spare row. */
.order-card.courier-picked-up .order-head{margin-bottom:6px}
.order-card .customer-with-status{gap:4px 8px;margin:4px 0 8px;min-width:0}
.customer-with-status .customer-identity{flex:1 1 170px;min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.5}
.customer-with-status .customer-name{vertical-align:middle}
.customer-with-status .customer-identity>.badge{font-size:9px;line-height:1.3;padding:3px 6px;vertical-align:middle;letter-spacing:.1px}
.customer-with-status>a{flex:0 0 auto;max-width:100%;white-space:nowrap}
