/* Administrative workspace and account profile dialog. */
.shell{max-width:1680px;padding:1.25rem clamp(1rem,3vw,2rem) 3rem}
.shell>header{border-radius:0 0 16px 16px;margin:0 0 1.4rem;padding:.85rem clamp(1rem,3vw,2rem);min-height:68px}
#adminUser{font-size:.86rem;opacity:.9}
#gateMessage{max-width:760px;margin:1.25rem auto;padding:1rem 1.1rem;border:1px solid #e7d8a8;border-radius:12px;background:#fff9e9;color:#69541e}
.shell>h1,#superPanel>h1,#businessPanel>h1{margin:1.6rem 0 1rem;padding:.15rem 0 .8rem;border-bottom:1px solid #dfe7e2}
.admin-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem;align-items:start}
.admin-grid>.card{grid-column:span 6;margin:0;min-width:0;padding:1.3rem}
#businessSettingsForm,#productForm{grid-column:span 6}
#userForm,#registerForm,#feeForm,#stationForm{grid-column:span 4}
.card{border-color:#e2e9e5;border-radius:16px;box-shadow:0 8px 24px rgba(34,56,45,.055)}
.card h2{display:flex;align-items:center;gap:.65rem;margin:0 0 1.15rem;padding-bottom:.8rem;border-bottom:1px solid #edf0ee;font-size:1.08rem;font-weight:720;color:#2e4037}
.admin-grid>.card h2:before{display:inline-grid;place-items:center;flex:0 0 2rem;width:2rem;height:2rem;border:1px solid #dce9e0;border-radius:10px;background:#f0f6f2;color:#356b57;font-size:1rem}
.business-panel .admin-grid>.card:nth-child(1) h2:before{content:"▣"}
.business-panel .admin-grid>.card:nth-child(2) h2:before{content:"▦"}
.business-panel .admin-grid>.card:nth-child(3) h2:before{content:"♙"}
.business-panel .admin-grid>.card:nth-child(4) h2:before{content:"▤"}
.business-panel .admin-grid>.card:nth-child(5) h2:before{content:"◈"}
.business-panel .admin-grid>.card:nth-child(6) h2:before{content:"⌑"}
.platform-admin .admin-grid>.card:nth-child(1) h2:before{content:"◉"}
.platform-admin .admin-grid>.card:nth-child(2) h2:before{content:"▣"}
.admin-grid label{display:grid;gap:.42rem;margin:.9rem 0;color:#46574e;font-size:.84rem;font-weight:650;line-height:1.35}
.admin-grid label small,.admin-grid+small,.admin-grid>.card>small{color:#77847d;font-size:.78rem;font-weight:450;line-height:1.5}
.admin-grid input:not([type=checkbox]):not([type=color]),.admin-grid select,.admin-grid textarea{width:100%;min-height:44px;border:1px solid #d3ddd7;border-radius:10px;background:#fbfcfb;padding:.72rem .82rem;box-shadow:inset 0 1px 2px rgba(30,50,39,.025);transition:border-color .16s,box-shadow .16s,background .16s}
.admin-grid textarea{min-height:112px;resize:vertical;line-height:1.5}
.admin-grid input:hover,.admin-grid select:hover,.admin-grid textarea:hover{border-color:#aebfb4;background:#fff}
.admin-grid input:focus,.admin-grid select:focus,.admin-grid textarea:focus{outline:0;border-color:var(--brand-primary);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-primary) 14%,transparent)}
.admin-grid input[type=file]{min-height:auto;padding:.55rem;background:#f7f9f8;border-style:dashed;cursor:pointer}
.admin-grid input[type=file]::file-selector-button{margin:-.2rem .7rem -.2rem -.2rem;padding:.55rem .75rem;border:0;border-radius:7px;background:#e8f0eb;color:#315e49;font:inherit;font-weight:700;cursor:pointer}
.admin-grid input[type=checkbox]{width:1.08rem;height:1.08rem;margin:0;accent-color:var(--brand-primary)}
.admin-grid label:has(>input[type=checkbox]){display:flex;align-items:center;gap:.65rem;min-height:42px;margin:.55rem 0;padding:.58rem .7rem;border:1px solid #e6ece8;border-radius:9px;background:#f8faf9;font-weight:600}
.admin-grid button,.section-head button,.actions button{min-height:42px;border-radius:10px;padding:.65rem 1rem;box-shadow:0 2px 5px rgba(31,60,43,.1);transition:transform .16s,box-shadow .16s,filter .16s}
.admin-grid button:hover,.section-head button:hover,.actions button:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(31,60,43,.15)}
.admin-grid button:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #d8b869;outline-offset:2px}
.admin-grid button.secondary,.secondary{background:linear-gradient(180deg,#e4efe8 0%,#d5e5da 100%);color:#28563f;border:1px solid #98b6a2;box-shadow:0 2px 6px rgba(31,78,52,.15),inset 0 1px 0 rgba(255,255,255,.8);font-weight:700}
.admin-grid button.secondary:hover,.secondary:hover{background:linear-gradient(180deg,#d7e8dc 0%,#c7ddce 100%);border-color:#7fa38d;box-shadow:0 4px 10px rgba(31,78,52,.2)}
.admin-grid button.secondary:active,.secondary:active{background:#c5dbcc;box-shadow:inset 0 2px 4px rgba(31,78,52,.14)}
.admin-grid #removeBusinessLogo,.admin-grid #removeProductPhoto{margin:0 0 .9rem}
.admin-grid .profile-photo{display:block;width:auto;max-width:150px;max-height:125px;margin:.4rem 0 .6rem;padding:.35rem;border:1px solid #e0e8e3;border-radius:12px;background:#fff}
.color-pair{gap:.7rem;padding:.2rem .7rem .55rem;border:1px solid #e6ece8;border-radius:12px;background:#f8faf9}
.color-pair input[type=color]{height:44px;min-height:44px;border:1px solid #d3ddd7;border-radius:9px;background:white;padding:.25rem}
.admin-grid form>button[type=submit],.admin-grid form>button:not([type]){width:100%;margin-top:.55rem}
.admin-grid form>button.secondary{width:auto}
.stats{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:.9rem;margin:1rem 0 1.3rem}
.stats div{border:1px solid #e2eae5;border-radius:14px;background:linear-gradient(145deg,#fff,#f7faf8);padding:1rem 1.15rem;color:#69776f}
.stats b{font-size:1.8rem;letter-spacing:-.04em}
.section-head{align-items:center}
.table-wrap{border:1px solid #e5ebe7;border-radius:12px;background:#fff}
table{border:0;border-radius:12px;overflow:hidden;min-width:680px}
td,th{padding:.78rem .85rem;border-bottom:1px solid #edf0ee}
th{background:#f4f7f5;color:#52645a;font-size:.74rem;letter-spacing:.06em}
tr:last-child td{border-bottom:0}
td button{min-height:34px!important;border-radius:8px!important;padding:.45rem .75rem!important;font-size:.83rem}
#message{position:sticky;bottom:1rem;z-index:4;width:fit-content;max-width:min(100%,680px);margin:1rem auto;padding:.8rem 1.1rem;border:1px solid #d7e4db;border-radius:12px;background:#f2f8f4;box-shadow:0 8px 24px rgba(28,52,37,.12)}
#logout{display:block;margin:1.2rem auto 0;min-height:42px;padding:.65rem 1.15rem;border-radius:10px}

/* The profile is intentionally a real modal; without these rules it falls into document flow. */
.profile-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:clamp(.75rem,3vw,2rem);background:rgba(19,35,28,.58);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.profile-backdrop[hidden]{display:none!important}
.profile-card{position:relative;width:min(100%,560px);max-height:min(90vh,900px);overflow:auto;margin:auto;padding:clamp(1.1rem,3vw,2rem);border:1px solid rgba(255,255,255,.75);border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(8,22,14,.28);animation:profile-enter .18s ease-out}
.profile-card h2{margin:.2rem 0 .45rem;color:#283b31;font-size:1.45rem;letter-spacing:-.03em}
.profile-card>p{margin:.5rem 0 1rem;padding:.8rem .9rem;border-left:3px solid var(--brand-accent);border-radius:8px;background:#fff9ed;color:#65552f;line-height:1.5}
.profile-card label{display:grid;gap:.45rem;margin:.9rem 0;color:#46574e;font-size:.86rem;font-weight:650}
.profile-card input:not([type=file]){width:100%;min-height:46px;border:1px solid #d1dcd5;border-radius:10px;background:#fbfcfb;padding:.72rem .82rem;transition:border-color .16s,box-shadow .16s}
.profile-card input:focus{outline:0;border-color:var(--brand-primary);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-primary) 14%,transparent)}
.profile-card input[type=file]{width:100%;padding:.65rem;border:1px dashed #cbd9d0;border-radius:10px;background:#f7f9f8}
.profile-card input[type=file]::file-selector-button{margin:-.2rem .7rem -.2rem -.2rem;padding:.55rem .75rem;border:0;border-radius:7px;background:#e8f0eb;color:#315e49;font:inherit;font-weight:700;cursor:pointer}
.profile-card .profile-photo{width:96px;height:96px;margin:.25rem 0 .7rem;border:1px solid #e1e9e4;border-radius:50%;background:#f6f8f6;object-fit:cover}
.profile-card hr{height:1px;margin:1.2rem 0;border:0;background:#e8eeea}
.profile-card button{min-height:44px;padding:.65rem 1rem;border-radius:10px}
.profile-card #profileForm>button[type=submit]{width:100%;margin-top:.7rem}
.profile-card .profile-close{position:absolute;top:0;right:0;z-index:20;display:grid;place-items:center;width:46px;height:36px;min-height:36px;padding:0;border:0;border-left:1px solid #e5e9e6;border-bottom:1px solid #e5e9e6;border-radius:0 16px 0 8px;background:#fff;color:#44534b;font-size:0;box-shadow:none}.profile-card .profile-close::after{content:"×";font:400 23px/1 "Segoe UI",Arial,sans-serif}.profile-card .profile-close:hover{background:#e81123;color:#fff;border-color:#e81123}
@keyframes profile-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}

.platform-admin{--brand-primary:#45584f;--brand-accent:#85a995;--brand-contrast:#fff;background:linear-gradient(180deg,#e9eeeb 0,#f5f7f6 300px)}
.platform-admin header{background:#394a42}
.platform-admin .stats b{color:#426351}
.platform-admin .admin-grid>.card h2:before{border-color:#dce6df;background:#edf2ee;color:#496b57}
@media(max-width:1000px){#userForm,#registerForm,#feeForm,#stationForm{grid-column:span 6}}
@media(max-width:700px){.shell{padding:.75rem .7rem 2rem}.shell>header{margin:0 0 1rem;padding:.75rem;border-radius:0 0 13px 13px}.admin-grid>.card,#businessSettingsForm,#productForm,#userForm,#registerForm,#feeForm,#stationForm{grid-column:1/-1;padding:1rem}.shell>h1,#superPanel>h1,#businessPanel>h1{margin-top:1rem}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div{min-width:0;padding:.85rem}.stats b{font-size:1.5rem}.section-head{align-items:flex-start}.table-wrap{border-radius:10px}.profile-card{max-height:94vh;border-radius:16px}.profile-card .profile-close{position:absolute;top:0;right:0;float:none;width:44px;height:34px;min-height:34px;margin:0}.profile-card h2{padding-right:.5rem}}
@media(max-width:420px){.stats{grid-template-columns:1fr 1fr}.admin-grid label{font-size:.82rem}.profile-card{padding:1rem}.profile-card h2{font-size:1.25rem}}
@media(prefers-reduced-motion:reduce){.profile-card{animation:none}.admin-grid button,.section-head button{transition:none}}
.api-status{margin-left:auto;flex:0 0 auto}.superadmin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:1.45rem 0 1rem}.superadmin-heading h1{margin:.15rem 0 .35rem;border:0;padding:0}.eyebrow{margin:0;color:#76857c;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.section-intro,.business-list-card .section-head p,.plans-area .section-head p{margin:.35rem 0 0;color:#728078;font-size:.9rem}.business-list-card{padding:1.3rem}.business-list-card .section-head{margin-bottom:1rem}.business-list-card .section-head h2{margin:0;padding:0;border:0}.primary-action{display:inline-flex;align-items:center;gap:.45rem;min-height:46px!important;padding:.7rem 1.1rem!important;border-radius:11px!important;background:#347550!important;color:white!important;font-size:.9rem;box-shadow:0 5px 13px rgba(41,105,70,.19)!important}.primary-action span{font-size:1.2rem;line-height:1}.business-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.business-card{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:.9rem;width:100%;min-height:138px;padding:1rem;border:1px solid #e1e9e4;border-radius:15px;background:linear-gradient(145deg,#fff 15%,#f6faf7);color:#293b31;text-align:left;box-shadow:0 4px 13px rgba(31,54,40,.045);transition:transform .16s,border-color .16s,box-shadow .16s}.business-card:hover{transform:translateY(-2px);border-color:#a9c6b3;box-shadow:0 10px 22px rgba(31,70,45,.1);filter:none}.business-card-logo{display:grid;place-items:center;width:60px;height:60px;overflow:hidden;border:1px solid #e2eae4;border-radius:14px;background:#eff5f1;color:#477053}.business-card-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.business-card-logo svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.business-card-info{display:grid;gap:.4rem;min-width:0}.business-card-title{overflow:hidden;color:#293b31;font-size:.98rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.business-card-meta{color:#738078;font-size:.78rem;line-height:1.45}.business-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.45rem;margin-top:.12rem}.business-card-status{display:inline-flex;align-items:center;gap:.35rem;padding:.28rem .52rem;border-radius:99px;background:#edf2ef;color:#5b6960;font-size:.7rem;font-weight:800}.business-card-status:before{width:.42rem;height:.42rem;border-radius:50%;background:#9aa49d;content:""}.business-card-status.active{background:#e9f6ed;color:#286d42}.business-card-status.active:before{background:#42a45e}.business-card-status.suspended{background:#fff3e7;color:#9a5819}.business-card-status.suspended:before{background:#d18a35}.business-card-status.inactive{background:#f1f2f2;color:#68716b}.business-card-status.inactive:before{background:#89918b}.business-card-open{color:#3d7953;font-size:.77rem;font-weight:750}.business-card-grid .empty-state{grid-column:1/-1;padding:2rem;text-align:center;color:#748078}.plans-area{margin-top:1rem}.plan-form{display:grid;grid-template-columns:2fr 1.2fr 1fr auto;align-items:end;gap:.8rem}.plan-form label{margin:0}.plan-form button{min-height:44px}.admin-dialog{width:min(100%,520px)}.admin-dialog>p{margin:0 0 1rem;color:#748078;line-height:1.5}.admin-dialog form>button[type=submit],.admin-dialog form>button:not([type]){width:100%;margin-top:.5rem}.business-detail-dialog{width:min(100%,860px);max-height:94vh}.business-detail-brand{display:flex;align-items:center;gap:1rem;margin:.2rem 0 1.1rem;padding:.3rem 2.8rem .9rem 0;border-bottom:1px solid #edf1ee}.business-detail-brand img,.business-detail-brand>span{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;overflow:hidden;border:1px solid #e3ebe5;border-radius:15px;background:#eff5f1;object-fit:contain;font-size:1.9rem}.business-detail-brand h2{margin:.15rem 0 .25rem;padding:0;border:0;font-size:1.3rem}.business-detail-brand>div>p:last-child{margin:0;color:#748078;font-size:.82rem}.business-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem .9rem}.business-edit-grid .wide-field{grid-column:1/-1}.business-membership-edit{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:.9rem 0;padding:1rem;border:1px solid #e6ece8;border-radius:12px;background:#f8faf9}.business-membership-edit h3{grid-column:1/-1;margin:0;color:#35483d;font-size:.94rem}.business-membership-edit label{margin:.2rem 0}.business-detail-preview{display:block;max-width:120px;max-height:100px;margin:.45rem 0 .7rem;padding:.25rem;border:1px solid #e1e9e4;border-radius:12px;object-fit:contain}.business-payments{margin:1.3rem 0 0;padding-top:1rem;border-top:1px solid #e8eeea}.business-payments h3{margin:0 0 .8rem;color:#35483d}.business-payments #businessPaymentForm>button{margin:.3rem 0 1rem}.business-payment-empty{padding:.85rem;border-radius:10px;background:#f7f9f8;color:#738078;font-size:.84rem}.business-detail-dialog .profile-close{z-index:1}
@media(max-width:1050px){.business-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-form{grid-template-columns:1fr 1fr}.plan-form button{grid-column:1/-1}}
@media(max-width:700px){.superadmin-heading{align-items:flex-start;flex-direction:column}.superadmin-heading button{width:auto}.business-card-grid{grid-template-columns:1fr}.business-list-card{padding:1rem}.business-list-card .section-head{align-items:stretch;flex-direction:column}.primary-action{width:100%;justify-content:center}.business-edit-grid,.business-membership-edit{grid-template-columns:1fr}.business-edit-grid .wide-field,.business-membership-edit h3{grid-column:auto}.business-detail-brand{align-items:flex-start}.business-detail-brand img,.business-detail-brand>span{width:54px;height:54px;flex-basis:54px}.business-detail-dialog{padding:1rem}.plan-form{grid-template-columns:1fr}.plan-form button{grid-column:auto}}

/* Superadmin navigation, payment follow-up and compact analytics. */
.platform-admin .shell{max-width:1680px}.platform-admin header{position:sticky;top:0;z-index:40;border-radius:0 0 18px 18px;box-shadow:0 9px 28px rgba(22,39,30,.16)}
.main-menu-wrap{position:relative;flex:0 0 auto}.main-menu-wrap[hidden]{display:none!important}.main-menu-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:background .16s,transform .16s}.main-menu-toggle:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}.main-menu-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.main-menu{position:absolute;top:calc(100% + 12px);right:0;z-index:80;display:grid;gap:.25rem;width:min(310px,calc(100vw - 2rem));max-height:calc(100vh - 7rem);max-height:calc(100dvh - 7rem);overflow-y:auto;overscroll-behavior:contain;padding:.55rem;border:1px solid #e1e9e4;border-radius:16px;background:#fff;box-shadow:0 18px 45px rgba(15,35,24,.2);animation:menu-enter .14s ease-out}.main-menu[hidden]{display:none!important}.main-menu>button{display:flex;align-items:center;gap:.75rem;width:100%;padding:.72rem;border:0;border-radius:11px;background:transparent;color:#34483c;text-align:left;cursor:pointer}.main-menu>button:hover{background:#f0f6f2}.main-menu>button>span:last-child{display:grid;gap:.15rem}.main-menu strong{font-size:.9rem}.main-menu small{color:#7b8980;font-size:.73rem}.menu-symbol{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#edf4ef;color:#39734e;font-size:1.15rem}.platform-admin .superadmin-heading{align-items:center;margin:1.5rem 0 1rem}.platform-admin .superadmin-heading h1{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.035em}.platform-admin .superadmin-heading .section-intro{font-size:.88rem}.platform-admin #superBusinesses,.platform-admin #superPayments,.platform-admin #superLogsSection,.platform-admin #superReports{scroll-margin-top:95px}.platform-admin #superBusinesses{margin-top:1.25rem}.platform-admin .stats>div{position:relative;min-height:108px;padding:1.1rem 1.2rem;border-radius:15px;box-shadow:0 6px 18px rgba(33,53,41,.04);font-size:.84rem}.platform-admin .stats b{display:inline-block;margin-bottom:.2rem;font-size:1.9rem}.super-payments,.super-reports{margin-top:1rem;padding:1.25rem}.super-payments .section-head,.super-reports .section-head{margin-bottom:.95rem}.super-payments .section-head h2,.super-reports .section-head h2{margin:.15rem 0;padding:0;border:0;color:#30453a;font-size:1.15rem}.super-payments .section-head p:last-child,.super-reports .section-head p:last-child{margin:.25rem 0 0;color:#77847c;font-size:.83rem}.payment-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:.4rem 0 1rem}.payment-overview>div{display:grid;gap:.15rem;padding:.75rem .9rem;border:1px solid #e5ece7;border-radius:12px;background:#f8faf8}.payment-overview strong{color:#355e46;font-size:1.35rem}.payment-overview span{color:#76847b;font-size:.75rem}.payment-rows table{min-width:590px}.payment-open{min-height:34px;padding:.42rem .7rem;border:1px solid #dce8df;border-radius:9px;background:#eef5f0;color:#376248;font-size:.76rem;font-weight:750;white-space:nowrap}.payment-open.soon{border-color:#f0dfbd;background:#fff8eb;color:#8d621c}.payment-open.overdue{border-color:#f0d0ca;background:#fff1ee;color:#9c483c}.report-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.report-chart{min-width:0;padding:1rem;border:1px solid #e5ece7;border-radius:14px;background:linear-gradient(160deg,#fff,#f8faf8)}.report-chart h3{margin:0;color:#3c4e43;font-size:.9rem}.report-chart>div:first-child p{margin:.22rem 0 .8rem;color:#849087;font-size:.73rem}.chart-bars{display:grid;gap:.72rem}.chart-row{display:grid;gap:.3rem}.chart-label{display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:#68766e;font-size:.74rem}.chart-label strong{color:#3a4b40;font-size:.75rem}.chart-track{height:8px;overflow:hidden;border-radius:99px;background:#ebf0ec}.chart-fill{display:block;height:100%;min-width:2px;border-radius:99px;transition:width .35s ease}.chart-fill.green{background:#43845a}.chart-fill.mint{background:#7da88a}.chart-fill.gold{background:#c79b4d}.chart-fill.gray{background:#a4aea7}.chart-fill.red{background:#c86d5d}.platform-admin #superLogsSection{margin-top:1rem;padding:1.2rem}.platform-admin #superLogsSection .section-head h2{font-size:1.05rem}.platform-admin #superLogsSection .section-head p{font-size:.78rem}.platform-admin .business-list-card .section-head h2{font-size:1.12rem}.platform-admin #togglePlans{min-height:44px;border-radius:11px}.platform-admin #message{z-index:1100}
@keyframes menu-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.report-charts{grid-template-columns:1fr 1fr}.report-chart:last-child{grid-column:1/-1}}
@media(max-width:700px){.platform-admin header{position:relative}.main-menu-toggle{width:42px;height:42px}.platform-admin .superadmin-heading{align-items:flex-start}.payment-overview{grid-template-columns:1fr 1fr}.report-charts{grid-template-columns:1fr}.report-chart:last-child{grid-column:auto}.super-payments,.super-reports{padding:.9rem}.payment-rows table{min-width:560px}}
@media(prefers-reduced-motion:reduce){.main-menu,.chart-fill{animation:none;transition:none}}

/* Cash registers, payment settings, print discovery and ticket editor. */
.register-list-card,.print-agent-card{margin:0 0 1rem;padding:1.2rem}.register-list-card .section-head,.print-agent-card .section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .9rem}.register-list-card .section-head h2,.print-agent-card .section-head h2{margin:0;padding:0;border:0;font-size:1.04rem}.register-list-card .section-head p,.print-agent-card .section-head p{margin:.3rem 0 0;color:#7b8980;font-size:.8rem}.register-list-card table{min-width:760px}.register-list-card td small{display:block;margin-top:.25rem;color:#7a887f;font-size:.74rem}.register-empty{padding:1rem;color:#748078}.register-status{display:inline-flex;padding:.28rem .55rem;border-radius:99px;background:#edf1ee;color:#647169;font-size:.72rem;font-weight:750}.register-status.open{background:#e8f5ec;color:#2c7947}.register-edit-button{min-height:34px;padding:.4rem .7rem;font-size:.78rem}.print-agent-card{background:linear-gradient(145deg,#fff,#f7faf8)}.print-agent-card>p{color:#607067;font-size:.85rem;line-height:1.5}.print-agent-card textarea{width:100%;margin:.5rem 0 0;font: .8rem/1.5 ui-monospace,Consolas,monospace}.print-agent-config-actions{display:flex;justify-content:flex-end;margin-top:.6rem}.print-agent-config-actions button{width:auto;min-width:190px}.payment-settings-card{max-width:720px;margin:0;padding:1.3rem}.payment-settings-card h2{margin:0 0 1rem}.payment-settings-card>label{margin:.85rem 0}.register-edit-dialog{width:min(100%,680px)}.register-edit-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:.2rem 1rem}.register-edit-dialog form>label:nth-of-type(3),.register-edit-dialog .user-editor-actions,.register-edit-dialog .form-feedback{grid-column:1/-1}.register-edit-dialog small{display:block;margin:.25rem 0;color:#7b8980;font-weight:450}.ticket-designer{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.2rem 1rem;margin:.8rem 0;padding:1.1rem;border:1px solid #e0e9e3;border-radius:15px;background:linear-gradient(145deg,#fff,#f7faf8)}.ticket-designer-heading,.ticket-preview-wrap,.ticket-designer>small{grid-column:1/-1}.ticket-designer-heading h3{margin:0;color:#344a3d;font-size:1rem}.ticket-designer-heading p{margin:.25rem 0 .6rem;color:#75847b;font-size:.8rem}.ticket-designer>label{margin:.35rem 0}.ticket-option{display:flex;align-items:center;gap:.55rem}.ticket-option input{width:auto}.ticket-preview-wrap{display:grid;grid-template-columns:1fr 220px;align-items:start;gap:1rem;margin:.55rem 0}.ticket-preview-wrap>span{color:#64736a;font-size:.8rem;font-weight:700}.ticket-preview{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:center;gap:.3rem;min-height:180px;padding:1rem .8rem;border:1px dashed #cbd8ce;border-radius:8px;background:#fff;color:#28372e;text-align:center;font: .7rem/1.35 ui-monospace,Consolas,monospace;box-shadow:0 5px 16px #172b2010}.ticket-preview img{max-width:80px;max-height:48px;object-fit:contain}.ticket-preview strong{font-size:.78rem}.ticket-preview small{font-size:.61rem;font-weight:500}.ticket-preview hr{width:100%;border:0;border-top:1px dashed #bbc6be}.ticket-preview-code{font-weight:800;letter-spacing:.06em}.ticket-designer>small{color:#748078;font-size:.76rem;line-height:1.5}.business-view .admin-grid>#businessSettingsForm{grid-column:span 12}.business-view .admin-grid>#businessSettingsForm .ticket-designer{grid-column:1/-1}
@media(max-width:700px){.register-list-card,.print-agent-card{padding:.9rem}.register-edit-dialog form,.ticket-designer{grid-template-columns:1fr}.register-edit-dialog form>label:nth-of-type(3),.register-edit-dialog .user-editor-actions,.register-edit-dialog .form-feedback,.ticket-designer-heading,.ticket-preview-wrap,.ticket-designer>small{grid-column:auto}.ticket-preview-wrap{grid-template-columns:1fr}.ticket-preview{grid-column:1;grid-row:auto;max-width:260px}.print-agent-card .section-head{align-items:flex-start;flex-direction:column}}

.print-agent-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin:.7rem 0}.print-agent-actions>span{color:#718078;font-size:.78rem}.print-agent-download{display:inline-flex;align-items:center;min-height:40px;padding:.55rem .85rem;border-radius:10px;text-decoration:none;font-weight:750}
/* Business admin navigation and landing dashboard. */
.business-panel{max-width:1380px;margin:0 auto}.business-panel>.business-view[hidden]{display:none!important}.business-view{scroll-margin-top:95px}.business-view-heading,.business-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.45rem 0 1rem}.business-view-heading h1,.business-dashboard-heading h1{margin:.12rem 0 .25rem;color:#30453a;font-size:clamp(1.45rem,3vw,1.9rem);letter-spacing:-.03em}.business-view-heading p:last-child,.business-dashboard-heading p:last-child{margin:0;color:#77847c;font-size:.86rem}.business-dashboard .stats{margin:.8rem 0 1rem}.business-dashboard .stats>div{display:grid;align-content:center;gap:.4rem;min-height:110px;padding:1.05rem 1.15rem;border:1px solid #e4ebe6;border-radius:15px;background:linear-gradient(145deg,#fff,#f7faf8);box-shadow:0 6px 18px rgba(33,53,41,.04)}.business-dashboard .stats>div>span{color:#77847c;font-size:.78rem;font-weight:650}.business-dashboard .stats b{color:#315f45;font-size:1.55rem;letter-spacing:-.025em}.business-sales-card{padding:1.15rem 1.2rem;border:1px solid #e4ebe6;border-radius:15px;background:#fff;box-shadow:0 6px 18px rgba(33,53,41,.035)}.business-sales-card h2{margin:0;color:#35483d;font-size:1rem}.business-sales-card>div:first-child p{margin:.25rem 0 .9rem;color:#829087;font-size:.78rem}.business-sales-card .chart-bars{gap:.72rem}.business-view .admin-grid{margin-top:.25rem}.business-view .admin-grid>#businessSettingsForm{grid-column:span 12}.business-view .admin-grid>#productsTable{grid-column:1/-1}.business-stat-loading,.business-stat-error{grid-column:1/-1;padding:1rem;border-radius:12px;background:#f5f8f6;color:#748078}.business-stat-error{color:#a34d40}.business-panel #businessLogsSection{margin-top:1rem;padding:1.2rem}.business-panel #businessLogsSection h2{margin:.1rem 0 .4rem;color:#35483d;font-size:1.05rem}.business-panel #businessLogsSection>p{color:#77847c;font-size:.8rem}
.shell>header .main-menu-wrap{order:2;margin-right:auto}.shell>header .notification-center{order:4}.shell>header .account-menu{order:3}
.business-user-list{margin:1rem 0;padding:1.15rem}.business-user-list h2{margin:.05rem 0 .8rem;color:#35483d;font-size:1rem}.business-user-list table{min-width:520px}
@media(max-width:700px){.business-view-heading,.business-dashboard-heading{align-items:flex-start;flex-direction:column}.business-dashboard-heading button{width:auto}.business-dashboard .stats>div{min-height:94px}.business-view .admin-grid>#businessSettingsForm{grid-column:1/-1}}

/* Notification center, available to admins and store users on web and Cordova. */
.notification-center{position:relative;flex:0 0 auto}.notification-bell{position:relative;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}.notification-bell:hover{background:rgba(255,255,255,.2)}.notification-bell svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.notification-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #3b4e44;border-radius:99px;background:#d36253;color:#fff;font-size:.63rem;font-weight:800}.notification-count[hidden]{display:none!important}.notification-panel{position:absolute;top:calc(100% + 12px);right:0;z-index:90;width:min(365px,calc(100vw - 1.5rem));overflow:hidden;border:1px solid #e1e9e4;border-radius:16px;background:#fff;box-shadow:0 18px 48px rgba(14,35,23,.22);color:#35473c}.notification-panel[hidden]{display:none!important}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.9rem 1rem;border-bottom:1px solid #edf1ee}.notification-panel-head>div{display:grid;gap:.15rem}.notification-panel-head strong{font-size:.95rem}.notification-panel-head small{color:#809087;font-size:.7rem}.notice-read-all{padding:.35rem .5rem;border:0;border-radius:7px;background:#f0f5f1;color:#3e7050;font-size:.7rem;font-weight:750;cursor:pointer}.notification-items{display:grid;max-height:min(55vh,440px);overflow:auto}.notification-item{display:grid;gap:.35rem;width:100%;padding:.85rem 1rem;border:0;border-bottom:1px solid #eff2ef;background:#fff;color:#48574e;text-align:left;cursor:pointer}.notification-item:hover{background:#f8faf8}.notification-item.unread{background:#f4f8f5}.notification-item strong{color:#32483a;font-size:.82rem}.notification-item span{font-size:.77rem;line-height:1.45;white-space:normal}.notification-item small{color:#87938b;font-size:.65rem}.notification-empty{margin:0;padding:1.3rem 1rem;color:#849087;font-size:.8rem;line-height:1.5}.notification-empty.error{color:#a34d40}.notification-send-open{width:calc(100% - 1.2rem);margin:.6rem;padding:.7rem;border:1px solid #dae9de;border-radius:10px;background:#eff6f1;color:#3d754e;font-weight:750;cursor:pointer}.notification-send-open[hidden]{display:none!important}.notification-compose-backdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;overflow:auto;padding:1rem;background:rgba(16,31,23,.62);backdrop-filter:blur(4px)}.notification-compose-backdrop[hidden]{display:none!important}.notification-compose{position:relative;width:min(100%,510px);max-height:94vh;overflow:auto;padding:1.5rem;border:1px solid #e3ebe5;border-radius:19px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.24)}.notification-compose h2{margin:.25rem 0;color:#30453a}.notification-compose>p:not(.eyebrow){color:#77847b;font-size:.84rem;line-height:1.5}.notification-compose label{display:grid;gap:.4rem;margin:.85rem 0;color:#46574e;font-size:.82rem;font-weight:650}.notification-compose input,.notification-compose select,.notification-compose textarea{width:100%;min-height:44px;padding:.65rem .75rem;border:1px solid #d3ddd7;border-radius:9px;background:#fbfcfb;font:inherit}.notification-compose textarea{resize:vertical}.notification-compose form>button{width:100%;min-height:44px;margin-top:.5rem;border:0;border-radius:10px;background:#347550;color:#fff;font-weight:750;cursor:pointer}.notification-compose form>button:disabled{opacity:.6}.notification-compose form>p{min-height:1.2rem;color:#55715e;font-size:.78rem}.notification-compose-close{position:absolute;top:.8rem;right:.8rem;width:34px;height:34px;border:0;border-radius:9px;background:#f1f4f2;color:#56645b;font-size:1.4rem;cursor:pointer}.plan-form{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-form label{margin:.25rem 0}.plan-form label.plan-check{display:flex;align-items:center;gap:.5rem;min-height:42px;margin:0;padding:.5rem .65rem;border:1px solid #e4ebe6;border-radius:9px;background:#f8faf8;color:#526258;font-size:.75rem}.plan-form input[type=checkbox]{width:1rem;height:1rem;accent-color:#43845a}.plan-form .plan-price-note{grid-column:1/-1;margin:0;color:#77847b;font-size:.74rem;line-height:1.45}.plan-form button{min-height:42px}.plan-form button[hidden]{display:none!important}.plan-table{margin:.75rem 0 1rem}.plan-table table{min-width:600px}.plan-table button{min-height:34px;padding:.4rem .7rem;border:1px solid #dce8df;border-radius:8px;background:#eef5f0;color:#376248;font-weight:700}
@media(max-width:700px){.notification-panel{right:-.2rem;width:min(365px,calc(100vw - 1.2rem))}.notification-bell{width:40px;height:40px}.plan-form{grid-template-columns:1fr}.plan-form .plan-price-note{grid-column:auto}.notification-compose{padding:1.2rem}}

.form-feedback{min-height:1.2em;margin:.35rem 0 0;color:#39734e;font-size:.86rem;font-weight:650}.form-feedback.error{color:#a43e35}

.product-editor[hidden]{display:none!important}.product-editor{display:block;margin:0 0 1rem;padding:1.1rem 1.2rem}.product-editor-heading,.products-list-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.product-editor-heading h2,.products-list-heading h2{margin:.1rem 0;color:#35483d;font-size:1.05rem}.product-editor-heading .secondary{width:auto;min-height:38px}.product-editor-close{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.55rem .9rem!important;border:1px solid #d6ded9!important;border-radius:999px!important;background:#f5f8f6!important;color:#45584d!important;font-weight:750}.product-editor-close span{font-size:1.35rem;line-height:.8}.product-editor-close:hover{background:#e8f0eb!important;color:#173f31!important}.product-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem 1rem;margin:1rem 0}.product-edit-grid label{display:grid;align-content:start;gap:.35rem;color:#48574e;font-size:.8rem;font-weight:650}.product-edit-grid small{align-self:center;color:#78857d;font-size:.74rem}.product-edit-grid .product-check{display:flex;align-items:center;gap:.5rem;min-height:44px}.product-edit-grid input[type=checkbox]{width:1rem;height:1rem;accent-color:#43845a}.product-edit-grid img[hidden]{display:none!important}.product-editor-actions{display:flex;justify-content:flex-end}.product-editor-actions button{width:auto;min-width:170px}.products-list-card{padding:1.1rem 1.2rem}.products-list-heading{margin-bottom:.9rem}.products-list-heading p{margin:.25rem 0 0;color:#7b877f;font-size:.78rem}.products-search{display:grid;grid-template-columns:auto minmax(180px,320px);align-items:center;gap:.6rem;color:#536258;font-size:.78rem;font-weight:650}.products-pagination{display:flex;align-items:center;justify-content:center;gap:.8rem;margin-top:1rem}.products-pagination button{width:auto;min-height:38px}.products-pagination button:disabled{opacity:.48;cursor:not-allowed}.products-pagination span{min-width:110px;color:#59685e;text-align:center;font-size:.8rem;font-weight:700}
@media(max-width:700px){.product-edit-grid{grid-template-columns:1fr}.product-editor,.products-list-card{padding:.9rem}.product-editor-heading,.products-list-heading{align-items:stretch;flex-direction:column}.products-search{grid-template-columns:1fr}.product-editor-actions button{width:100%}.products-pagination{gap:.45rem}.products-pagination button{padding:.5rem .65rem}}
.product-photo-field{display:grid;align-content:start;justify-items:start;gap:.55rem;min-width:0;margin:.75rem 0;color:#48574e;font-size:.8rem;font-weight:650}.product-photo-label{display:block}.product-photo-choose{display:inline-flex;align-items:center;gap:.55rem;min-height:42px;padding:.6rem .9rem;border:1px solid #b9d3c2;border-radius:10px;background:linear-gradient(135deg,#f7fbf8,#eaf3ed);color:#286344;font-size:.84rem;font-weight:750;box-shadow:0 3px 10px rgba(39,92,59,.08)}.product-photo-choose:hover{border-color:#76a987;background:#e5f1e9;filter:none}.product-photo-choose span{font-size:1.15rem}.product-photo-field small{color:#77867c;font-size:.74rem;font-weight:450;line-height:1.4}.product-photo-preview{display:block;width:132px;height:132px;margin:.2rem 0;padding:.3rem;border:1px solid #dce7df;border-radius:14px;background:#f7faf8;object-fit:contain;box-shadow:0 4px 14px rgba(31,54,40,.08)}.product-photo-field #removeProductPhoto{width:auto;min-height:36px;padding:.45rem .75rem;font-size:.78rem}.product-photo-editor-card{width:min(100%,520px)}.product-photo-editor-card .crop-zoom{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.3rem .65rem}.product-photo-editor-card .crop-zoom input{grid-column:1/-1;width:100%;accent-color:#347550}.product-photo-editor-card output{font-weight:750;color:#347550}.image-upload-field{display:grid;justify-items:start;align-content:start;gap:.55rem;min-width:0;margin:.7rem 0;color:#48574e;font-size:.84rem;font-weight:650}.image-upload-field small{color:#77867c;font-size:.75rem;font-weight:450;line-height:1.4}.business-logo-preview{display:block;width:140px;height:110px;margin:.25rem 0;padding:.3rem;border:1px solid #dce7df;border-radius:12px;background:#fff;object-fit:contain}/* Article editor modal: compact responsive form with its own scroll area. */
.product-edit-backdrop{z-index:1250;padding:clamp(.55rem,2vw,1.25rem)}.product-edit-dialog{width:min(100%,1240px);max-height:min(92dvh,920px);padding:clamp(1rem,2.5vw,1.65rem)}.product-edit-dialog .product-editor{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.product-edit-dialog .product-editor-heading{position:sticky;top:calc(-1 * clamp(1rem,2.5vw,1.65rem));z-index:2;margin:calc(-1 * clamp(1rem,2.5vw,1.65rem)) calc(-1 * clamp(1rem,2.5vw,1.65rem)) .8rem;padding:clamp(1rem,2.5vw,1.65rem);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #edf1ee}.product-edit-dialog .product-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem;margin:1rem 0 1.2rem}.product-edit-dialog .product-edit-grid>small{align-self:end;padding:.7rem 0}.product-edit-dialog .product-photo-field{margin:.15rem 0}@media(max-width:700px){.product-edit-backdrop{align-items:flex-end;padding:.4rem}.product-edit-dialog{width:100%;max-height:94dvh;border-radius:20px 20px 12px 12px;padding:1rem}.product-edit-dialog .product-editor-heading{top:-1rem;margin:-1rem -1rem .6rem;padding:1rem}.product-edit-dialog .product-edit-grid{grid-template-columns:1fr;gap:.8rem;margin:.8rem 0 1rem}.product-edit-dialog .product-editor-actions button{width:100%}}
.product-edit-dialog .product-form-section{min-width:0;margin:.9rem 0;padding:.9rem 1rem 1rem;border:1px solid #e4ebe6;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfcfb)}.product-edit-dialog .product-form-section legend{padding:0 .45rem;color:#39704d;font-size:.83rem;font-weight:800;letter-spacing:.015em}.product-edit-dialog .product-form-section .product-edit-grid{margin:.15rem 0 0;gap:.85rem 1rem}.product-edit-dialog .product-form-section .product-edit-grid>small{align-self:end;padding:.6rem 0;color:#718078;font-size:.75rem;line-height:1.4}.product-edit-dialog .product-photo-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-items:start;gap:.45rem .8rem;padding:.7rem .8rem;border:1px dashed #d5e2d9;border-radius:12px;background:#f8fbf9}.product-edit-dialog .product-photo-field .product-photo-label,.product-edit-dialog .product-photo-field small{grid-column:1}.product-edit-dialog .product-photo-field .product-photo-choose{grid-column:2;grid-row:1/3;grid-row:1/3}.product-edit-dialog .product-photo-field .product-photo-preview{grid-column:1;width:96px;height:96px;margin:.15rem 0}.product-edit-dialog .product-photo-field #removeProductPhoto{grid-column:2;grid-row:3;min-height:36px}.product-edit-dialog .product-check{align-self:end;min-height:44px;padding:.65rem .75rem;border:1px solid #e5ece7;border-radius:10px;background:#f6f9f7}.product-edit-dialog .product-editor-actions{position:sticky;bottom:calc(-1 * clamp(1rem,2.5vw,1.65rem));z-index:2;margin:1rem calc(-1 * clamp(1rem,2.5vw,1.65rem)) calc(-1 * clamp(1rem,2.5vw,1.65rem));padding:1rem clamp(1rem,2.5vw,1.65rem);border-top:1px solid #edf1ee;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}@media(max-width:700px){.product-edit-dialog .product-form-section{margin:.75rem 0;padding:.75rem}.product-edit-dialog .product-form-section .product-edit-grid{grid-template-columns:1fr}.product-edit-dialog .product-photo-field{grid-template-columns:1fr auto}.product-edit-dialog .product-photo-field .product-photo-choose{grid-column:2;grid-row:1/3}.product-edit-dialog .product-check{align-self:stretch}.product-edit-dialog .product-editor-actions{bottom:-1rem;margin:1rem -1rem -1rem;padding:.8rem 1rem}}
.product-pricing-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}.product-pricing-top label,.product-fixed-fields label{display:grid;align-content:start;gap:.35rem;color:#48574e;font-size:.8rem;font-weight:650}.product-fixed-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-fixed-fields[hidden],.volume-pricing-panel[hidden]{display:none!important}.volume-pricing-panel>p{margin:.1rem 0 .8rem;color:#718078;font-size:.78rem;line-height:1.5}.volume-tier-rows{display:grid;gap:.65rem}.volume-tier-row{display:grid;grid-template-columns:74px repeat(3,minmax(0,1fr)) auto;align-items:end;gap:.55rem;padding:.75rem;border:1px solid #e1eae4;border-radius:12px;background:#f8fbf9}.volume-tier-row strong{align-self:center;color:#39704d;font-size:.78rem}.volume-tier-row label{display:grid;gap:.3rem;margin:0;color:#58675e;font-size:.7rem;font-weight:650}.volume-tier-row input{width:100%;min-height:40px;padding:.55rem .6rem}.volume-tier-remove{width:auto;min-height:40px;padding:.55rem .7rem;font-size:.72rem}.volume-tier-add{width:auto;margin-top:.7rem;padding:.55rem .8rem;font-size:.78rem}.product-edit-dialog .product-fixed-fields{margin:.65rem 0 0}.product-form-section .product-pricing-top{gap:.7rem 1rem}@media(max-width:700px){.product-pricing-top,.product-fixed-fields{grid-template-columns:1fr!important}.volume-tier-row{grid-template-columns:1fr 1fr;gap:.55rem}.volume-tier-row strong{grid-column:1/-1}.volume-tier-row label:nth-of-type(3){grid-column:1}.volume-tier-remove{grid-column:2;justify-self:end}}
.admin-login-card{width:min(100%,460px);margin:clamp(2rem,8vh,5.5rem) auto;padding:clamp(1.25rem,4vw,2rem)}.admin-login-card h1{margin:.2rem 0 .45rem}.admin-login-intro{margin:.35rem 0 1.2rem;color:#718078;font-size:.9rem;line-height:1.5}.admin-login-card form{display:grid;gap:.1rem}.admin-login-card form>button{min-height:46px;margin-top:.35rem}.admin-login-card #adminLoginError{min-height:1.25rem;margin:.5rem 0 0;font-size:.84rem}.admin-login-card[hidden]{display:none!important}
.product-list-photo-cell{width:64px;text-align:center!important}.product-list-thumbnail{display:inline-grid;width:48px;height:48px;place-items:center;border:1px solid #dce7df;border-radius:11px;background:#f5f8f6;object-fit:cover;vertical-align:middle}.product-list-thumbnail-empty{padding:10px;color:#789182}.product-list-thumbnail-empty svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.low-stock-guidance{max-width:560px;margin:.45rem 0 0;color:#738178;font-size:.74rem;line-height:1.45}#lowStockTable table{min-width:900px}#lowStockTable th{white-space:normal;line-height:1.35}#lowStockTable td:nth-child(6){color:#286344}
.user-editor-dialog{width:min(100%,900px);max-height:min(92dvh,880px);padding:clamp(1rem,2.6vw,1.7rem);overflow:auto}.user-editor-dialog h2{margin:.2rem 0 .35rem}.user-editor-intro{margin:.2rem 0 1rem;color:#748178;font-size:.82rem;line-height:1.5}.user-editor-dialog #userForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem 1.1rem}.user-editor-dialog #userForm>label{align-content:start}.user-editor-dialog #userForm small{color:#78867e;font-size:.72rem;font-weight:450;line-height:1.4}.user-prefix-preview{display:grid;align-content:center;gap:.25rem;min-height:66px;margin:.75rem 0;padding:.7rem .85rem;border:1px solid #dfebe3;border-radius:11px;background:#f5f9f6}.user-prefix-preview span{color:#77847b;font-size:.68rem}.user-prefix-preview strong{color:#286344;font-size:.92rem;letter-spacing:.02em;overflow-wrap:anywhere}.user-active-check{display:flex!important;align-items:center;gap:.5rem;min-height:45px;padding:.55rem .7rem;border:1px solid #e2eae5;border-radius:10px;background:#f7faf8}.user-active-check input{width:1rem;height:1rem;accent-color:#347550}.user-editor-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:.65rem;margin-top:.6rem;padding-top:.9rem;border-top:1px solid #edf1ee}.user-editor-actions button{width:auto;min-width:140px}.user-editor-actions button[hidden]{display:none!important}.user-editor-dialog #userFormMessage{grid-column:1/-1}.user-row-actions{white-space:nowrap}.user-row-actions button{width:auto;min-height:34px;padding:.42rem .65rem;font-size:.72rem}.user-owner-badge{display:inline-block;margin:.2rem;padding:.18rem .42rem;border-radius:99px;background:#edf5ef;color:#438054;font-size:.62rem;font-weight:750;white-space:nowrap}.business-user-list .products-list-heading{align-items:end;margin-bottom:.9rem}.business-user-list .products-list-heading h2{margin-bottom:.2rem}@media(max-width:700px){.user-editor-dialog{width:100%;max-height:94dvh}.user-editor-dialog #userForm{grid-template-columns:1fr;gap:0}.user-prefix-preview,.user-editor-actions,.user-editor-dialog #userFormMessage{grid-column:1}.user-editor-actions{flex-direction:column-reverse}.user-editor-actions button{width:100%}.business-user-list .products-list-heading{align-items:stretch}.user-row-actions{white-space:normal}.user-row-actions button{margin:.12rem}}

/* Shared controls for searchable, sortable 50-row catalog lists. */
.table-list-toolbar{display:flex;align-items:end;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin:.8rem 0}.table-list-toolbar .products-search{min-width:min(100%,300px);margin:0}.table-list-count{color:#718078;font-size:.76rem}.table-list-pagination{margin:.8rem 0 0}.table-sort-button{display:inline-flex;align-items:center;gap:.3rem;width:auto;min-height:30px;padding:.2rem .3rem;border:0;background:transparent;color:inherit;font:inherit;font-weight:750;white-space:normal;cursor:pointer}.table-sort-button span{color:#43835d}.table-sort-button:hover{color:#26764f}.business-list-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:.8rem;margin:.9rem 0 1rem}.business-list-controls .products-search{margin:0}.business-sort-buttons{display:flex;align-items:center;justify-content:flex-end;gap:.35rem;flex-wrap:wrap;color:#76837b;font-size:.72rem}.business-sort-buttons button{width:auto;min-height:34px;padding:.4rem .65rem;border:1px solid #dfe9e2;border-radius:9px;background:#f7faf8;color:#43574b;font-size:.7rem;font-weight:700;cursor:pointer}.business-sort-buttons button[aria-pressed="true"]{border-color:#74a787;background:#eaf4ed;color:#286344}.business-list-controls .products-pagination{grid-column:1/-1;margin:.1rem 0 0}.business-list-controls .products-pagination button{width:auto}.business-list-controls .products-pagination button:disabled,.table-list-pagination button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.business-list-controls{grid-template-columns:1fr}.business-sort-buttons{justify-content:flex-start}.business-list-controls .products-pagination{grid-column:1}.table-list-toolbar{align-items:stretch}.table-list-toolbar .products-search{min-width:100%}.table-list-pagination{flex-wrap:wrap}}
.user-list-photo-cell{width:62px;text-align:center!important}.user-list-thumbnail{display:inline-grid;width:42px;height:42px;place-items:center;border:1px solid #dce7df;border-radius:50%;background:#f4f8f5;object-fit:cover;vertical-align:middle}.user-list-thumbnail-empty{padding:8px;color:#6f8d79}.user-list-thumbnail-empty svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.user-row-actions{display:flex;align-items:center;gap:.35rem;min-width:155px}.user-icon-action{display:inline-grid;flex:0 0 34px;width:34px!important;min-width:34px;min-height:34px!important;height:34px;padding:.45rem!important;place-items:center;border:1px solid #dbe7de;border-radius:9px;background:#f8fbf9;color:#356e4c;cursor:pointer}.user-icon-action:hover{border-color:#8bb69a;background:#eaf4ed}.user-icon-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.user-icon-action.danger{color:#a44743}.user-icon-action.danger:hover{border-color:#d6a09d;background:#fff3f2}.user-icon-action:disabled{opacity:.38;cursor:not-allowed;filter:grayscale(1)}.user-password-dialog{width:min(100%,560px);padding:clamp(1.2rem,3vw,1.8rem)}.user-password-dialog h2{margin:.2rem 0 .7rem}.user-password-note{padding:.9rem 1rem;border:1px solid #dce8df;border-radius:12px;background:#f6faf7;color:#4e6055;font-size:.86rem;line-height:1.6}.user-password-dialog .user-editor-actions{justify-content:flex-end}.user-password-dialog .user-editor-actions button{width:auto}@media(max-width:700px){.user-row-actions{min-width:0;gap:.2rem}.user-icon-action{flex-basis:31px;width:31px!important;min-width:31px;min-height:31px!important;height:31px;padding:.35rem!important}.user-list-thumbnail{width:36px;height:36px}}

.resources-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;margin-top:1.2rem}.resource-card{display:grid;grid-template-columns:56px 1fr;gap:.35rem .9rem;align-items:center;padding:1.2rem;border:1px solid #dce8e0;border-radius:16px;background:linear-gradient(145deg,#fff,#f4f8f5);color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(24,58,48,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.resource-card:hover,.resource-card:focus-visible{transform:translateY(-2px);border-color:#7eb497;box-shadow:0 12px 28px rgba(24,58,48,.12)}.resource-icon{grid-row:1/4;display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#e8f2ec;color:#1e6b50;font-size:1.5rem}.resource-card strong{color:#183a30}.resource-card small{color:#64736a;line-height:1.5}.resource-card b{color:#1e6b50;font-size:.9rem}.print-agent-resource-note{margin:.8rem 0;color:#64736a;font-size:.9rem}

.product-tax-included-note{margin:.15rem 0 .5rem;padding:.7rem .85rem;border-left:3px solid #34815f;border-radius:.45rem;background:#f2f8f4;color:#41584d;font-size:.92rem;line-height:1.45}
.android-resource-card{grid-template-rows:auto auto auto auto auto}.android-resource-card .resource-icon{grid-row:1/6}.resource-download{justify-self:start;display:inline-flex;align-items:center;min-height:40px;padding:.55rem .9rem;border-radius:10px;background:#267052;color:#fff;font-weight:750;text-decoration:none}.resource-download:hover,.resource-download:focus-visible{background:#1b5e42;color:#fff}.resource-integrity a{color:#1e6b50;font-weight:700;text-underline-offset:2px}

.business-report-card{padding:1.1rem 1.2rem}.business-report-toolbar{display:grid;gap:1rem}.business-report-types{display:flex;gap:.4rem;padding:.3rem;border:1px solid #e1e9e3;border-radius:12px;background:#f4f8f5}.business-report-types button{width:auto;min-width:110px;min-height:40px;padding:.55rem .9rem;border:0;border-radius:9px;background:transparent;color:#56665c;font-weight:750}.business-report-types button[aria-selected="true"]{background:#fff;color:#236544;box-shadow:0 2px 8px rgba(28,66,43,.1)}.business-report-filters{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap}.report-date-filter{display:grid;gap:.3rem;min-width:145px;color:#536258;font-size:.74rem;font-weight:700}.report-date-filter[hidden]{display:none!important}.business-report-filters .products-search{grid-template-columns:1fr;gap:.3rem;min-width:min(100%,230px);margin:0}.business-report-filters button{width:auto;min-height:42px;white-space:nowrap}.report-pdf-action,.report-excel-action{border:1px solid #cbdcd0!important;background:#f3f8f5!important;color:#286344!important}.report-pdf-action:hover,.report-excel-action:hover{background:#e7f1ea!important}.report-period-hint{margin:.85rem 0;color:#78857d;font-size:.76rem}.report-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:.8rem 0 1rem}.report-summary-tile{display:grid;gap:.35rem;min-width:0;padding:.9rem;border:1px solid #e0e9e3;border-radius:12px;background:linear-gradient(145deg,#fff,#f5f9f6)}.report-summary-tile span{color:#77847b;font-size:.7rem;font-weight:650}.report-summary-tile strong{color:#24583c;font-size:1.12rem;overflow-wrap:anywhere}.report-summary-tile small{color:#829087;font-size:.68rem}.report-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0 0 1rem}.report-extra-grid>section{min-width:0;padding:.85rem;border:1px solid #e1e9e3;border-radius:12px;background:#fbfdfb}.report-extra-grid h3{margin:0 0 .55rem;color:#40564a;font-size:.82rem}.report-payment-list{display:grid;gap:.35rem}.report-payment-list>div{display:flex;justify-content:space-between;gap:.6rem;padding:.35rem 0;border-bottom:1px solid #edf1ee;color:#68766d;font-size:.72rem}.report-payment-list strong{color:#315e43;white-space:nowrap}.report-payment-list p{margin:.2rem 0;color:#839087;font-size:.75rem}.report-table{min-width:0}.report-table table{min-width:900px}.report-table td{white-space:nowrap}
@media(max-width:800px){.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.business-report-filters>*{flex:1 1 140px}.business-report-filters button{flex:1 1 180px}}
@media(max-width:560px){.business-report-card{padding:.8rem}.business-report-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.business-report-types button{min-width:0;padding:.5rem .3rem}.business-report-filters{align-items:stretch;flex-direction:column}.business-report-filters>*{width:100%;flex:auto}.report-date-filter{grid-template-columns:55px 1fr;align-items:center}.report-extra-grid{grid-template-columns:1fr}.report-summary-tile{padding:.7rem}.report-summary-tile strong{font-size:1rem}}
@media print{body.report-print-mode .shell,body.report-print-mode .site-footer{display:none!important}body.report-print-mode #reportPrintRoot{display:block!important}}

/* Supplier invoices and inventory receipts. */
.purchase-list-card{padding:1.15rem 1.25rem}.purchase-dialog{width:min(100%,1160px);max-height:min(94dvh,1000px);overflow:auto;padding:clamp(1rem,2.4vw,1.7rem)}.purchase-dialog>h2,.purchase-detail-dialog>h2{margin:.2rem 0 .4rem;color:#29483a}.purchase-intro{margin:.25rem 0 1rem;color:#738178;font-size:.84rem;line-height:1.5}.purchase-header-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem 1rem;padding:1rem;border:1px solid #e3ebe5;border-radius:14px;background:#f8fbf9}.purchase-header-grid label,.purchase-line-main label,.purchase-margin-panel label{display:grid;align-content:start;gap:.35rem;min-width:0;color:#48574e;font-size:.77rem;font-weight:700}.purchase-header-grid input,.purchase-line-main input,.purchase-margin-panel input{width:100%;min-width:0}.purchase-lines-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.2rem 0 .7rem}.purchase-lines-heading h3{margin:0;color:#35483d;font-size:.98rem}.purchase-lines-heading p{margin:.2rem 0 0;color:#78857d;font-size:.76rem}.purchase-lines-heading button{width:auto;white-space:nowrap}.purchase-lines{display:grid;gap:.75rem}.purchase-line{position:relative;display:grid;gap:.7rem;padding:.9rem;border:1px solid #dfe9e2;border-radius:14px;background:linear-gradient(145deg,#fff,#f9fbfa)}.purchase-line-main{display:grid;grid-template-columns:minmax(230px,2fr) minmax(100px,.7fr) minmax(170px,1.15fr) auto;align-items:end;gap:.75rem}.purchase-line-main label small{color:#7b877f;font-size:.68rem;font-weight:450}.purchase-product-search{position:relative}.purchase-results{position:absolute;top:calc(100% + .25rem);left:0;right:0;z-index:20;display:grid;max-height:250px;overflow:auto;border:1px solid #ceded3;border-radius:11px;background:#fff;box-shadow:0 12px 32px rgba(26,53,39,.16)}.purchase-results[hidden]{display:none!important}.purchase-product-result{display:grid;gap:.18rem;width:100%;min-height:52px;padding:.55rem .7rem;border:0;border-bottom:1px solid #edf1ee;border-radius:0;background:#fff;color:#334b3d;text-align:left;cursor:pointer}.purchase-product-result:hover{background:#f1f7f3;filter:none}.purchase-product-result strong{font-size:.78rem}.purchase-product-result small,.purchase-no-results{color:#718078;font-size:.7rem}.purchase-no-results{padding:.8rem}.purchase-remove-line{width:auto;min-height:42px;white-space:nowrap}.purchase-line-total{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.45rem .65rem;border-radius:9px;background:#f1f6f2;color:#69766e;font-size:.73rem}.purchase-line-total strong{color:#286344;font-size:.9rem}.purchase-margin-panel{display:grid;gap:.45rem;padding:.75rem .85rem;border:1px solid #edcf95;border-left:3px solid #cb8d32;border-radius:10px;background:#fff9eb;color:#614b2e;font-size:.76rem;line-height:1.45}.purchase-margin-panel[hidden]{display:none!important}.purchase-margin-panel strong{font-size:.8rem}.purchase-margin-panel>span{color:#786b59}.purchase-margin-panel>label{max-width:350px}.purchase-margin-panel input{background:#fff}.purchase-margin-tier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem}.purchase-margin-tier-grid label{padding:.55rem;border:1px solid #efdfc2;border-radius:9px;background:rgba(255,255,255,.65)}.purchase-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1rem 0 .4rem}.purchase-totals>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:52px;padding:.7rem .8rem;border:1px solid #e1e9e3;border-radius:11px;background:#f7faf8;color:#66746b;font-size:.76rem}.purchase-totals strong{color:#2f5140;font-size:.9rem}.purchase-totals #purchaseDifference.matched,.purchase-totals #purchaseDifferenceRow.matched strong{color:#2e8151}.purchase-totals #purchaseDifferenceRow:not(.matched) strong{color:#a14b3f}.purchase-total-hint{margin:.4rem 0;padding:.65rem .8rem;border-radius:9px;background:#fff4e5;color:#775a2f;font-size:.76rem}.purchase-total-hint.matched{background:#edf7ef;color:#2e7550}.purchase-form-actions{position:sticky;bottom:-1.7rem;display:flex;justify-content:flex-end;gap:.6rem;margin:1rem calc(-1 * clamp(1rem,2.4vw,1.7rem)) calc(-1 * clamp(1rem,2.4vw,1.7rem));padding:.85rem clamp(1rem,2.4vw,1.7rem);border-top:1px solid #e8eee9;background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}.purchase-form-actions button{width:auto;min-width:140px}.purchase-form-actions #purchaseSubmit{min-width:260px}.purchase-detail-dialog{width:min(100%,1080px);max-height:min(92dvh,900px);overflow:auto;padding:clamp(1rem,2.4vw,1.65rem)}.purchase-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:1rem 0}.purchase-detail-meta span{display:grid;gap:.25rem;padding:.7rem;border:1px solid #e2eae4;border-radius:10px;background:#f7faf8;color:#718078;font-size:.7rem}.purchase-detail-meta strong{color:#304a3a;font-size:.82rem;overflow-wrap:anywhere}.purchase-detail-recorded{color:#718078;font-size:.75rem}
@media(max-width:820px){.purchase-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-line-main{grid-template-columns:minmax(0,1.5fr) minmax(100px,.65fr) minmax(150px,1fr)}.purchase-remove-line{grid-column:3;justify-self:end}.purchase-totals>div{align-items:flex-start;flex-direction:column;justify-content:center}}
@media(max-width:600px){.purchase-dialog,.purchase-detail-dialog{width:100%;max-height:95dvh;padding:1rem}.purchase-header-grid,.purchase-line-main,.purchase-totals,.purchase-detail-meta{grid-template-columns:1fr}.purchase-line-main{align-items:stretch}.purchase-remove-line{grid-column:1;justify-self:end}.purchase-lines-heading{align-items:stretch;flex-direction:column}.purchase-lines-heading button{width:100%}.purchase-totals>div{align-items:center;flex-direction:row}.purchase-form-actions{bottom:-1rem;flex-direction:column-reverse;margin:1rem -1rem -1rem;padding:.8rem 1rem}.purchase-form-actions button,.purchase-form-actions #purchaseSubmit{width:100%;min-width:0}}
.session-idle-warning{position:fixed;z-index:9999;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:min(720px,calc(100vw - 24px));padding:11px 16px;border:1px solid #e1b84c;border-radius:14px;background:#fff8df;color:#4e3a11;box-shadow:0 10px 30px #20382f33;font-size:14px}.session-idle-warning[hidden]{display:none}.session-idle-icon{font-size:21px;color:#a87609}.session-idle-warning button{flex:none;border:0;border-radius:9px;background:#376e58;color:#fff;padding:8px 12px;font-weight:700;cursor:pointer}.membership-current-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px}.membership-current-grid>div{display:flex;flex-direction:column;gap:7px;padding:16px;border-radius:14px;background:#f4f7f5}.membership-current-grid small{color:#66746e}.membership-current-grid strong{font-size:17px;color:#284a3d}.membership-status.suspended,.membership-warning{color:#9a4f20}.membership-request-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.membership-request-form h2,.membership-request-form #membershipRequestMessage{grid-column:1/-1}.membership-request-form label{display:flex;flex-direction:column;gap:6px}.membership-request-form textarea{min-height:84px;resize:vertical}.membership-request-form button[type=submit]{justify-self:start}.membership-history{margin-top:20px}.membership-requests-admin{padding:18px 20px;border-top:1px solid #dfe8e3}.membership-requests-admin .section-head{margin-top:0}.membership-requests-admin table{min-width:950px}.membership-requests-admin td:last-child{white-space:nowrap}@media(max-width:620px){.session-idle-warning{align-items:flex-start;flex-wrap:wrap;font-size:13px}.membership-request-form{grid-template-columns:1fr}.membership-request-form h2,.membership-request-form #membershipRequestMessage{grid-column:1}.membership-request-form button[type=submit]{width:100%}}
.membership-transfer{overflow:hidden;border-color:#d5e7dc;background:linear-gradient(135deg,#f0f8f2,#fff 68%)}.membership-transfer-heading{display:flex;align-items:flex-start;gap:14px}.membership-transfer-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;background:#dcefe3;color:#287352;font-size:1.25rem;font-weight:800}.membership-transfer-heading .eyebrow{margin:0 0 3px}.membership-transfer-heading h2{margin:0 0 6px;color:#214a39}.membership-transfer-heading p:last-child{margin:0;color:#64776b;line-height:1.5}.membership-bank-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.membership-bank-details>div{padding:13px 15px;border:1px solid #e1ebe4;border-radius:11px;background:#fff}.membership-bank-details dt{margin-bottom:5px;color:#718078;font-size:.74rem;font-weight:700}.membership-bank-details dd{margin:0;color:#254737;font-weight:750}.membership-bank-details .membership-clabe dd{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.05rem;letter-spacing:.045em}.membership-payment-note,.membership-cfdi-note{color:#586c60;font-size:.86rem;line-height:1.55}.membership-whatsapp-link{display:inline-flex;align-items:center;gap:8px;margin:4px 0 8px;padding:11px 15px;border-radius:10px;background:#138c58;color:#fff;font-size:.87rem;font-weight:750;text-decoration:none}.membership-whatsapp-link:hover{background:#0e7448}.membership-cfdi-note{margin-bottom:0}.membership-cfdi-option{display:flex!important;align-items:center;gap:9px;align-self:center;color:#40594a!important}.membership-cfdi-option input{width:18px;height:18px;accent-color:#318463}.membership-cfdi-help{align-self:center;margin:0;color:#718078;font-size:.78rem;line-height:1.45}.membership-payment-error{padding:5px}.membership-payment-error h2{margin:0 0 6px}.membership-payment-error p{margin:0;color:#68786f}@media(max-width:620px){.membership-bank-details{grid-template-columns:1fr}.membership-transfer-heading{gap:10px}.membership-whatsapp-link{display:flex;justify-content:center;text-align:center}.membership-cfdi-option,.membership-cfdi-help{grid-column:1}}

.mp-checkout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.8fr);align-items:center;gap:22px;margin:16px 0;border:1px solid #cfe4d6;background:linear-gradient(125deg,#f0faf4,#fff);box-shadow:0 8px 24px rgba(34,83,57,.06)}.mp-checkout h2{margin:.1rem 0 .4rem;color:#24563d}.mp-checkout p{color:#65766c;line-height:1.55}.mp-checkout form{display:grid;gap:12px}.mp-checkout form label{display:grid;gap:7px;color:#40594a;font-size:.86rem;font-weight:700}.mp-checkout select{min-height:46px;padding:10px 12px;border:1px solid #ccdbd1;border-radius:10px;background:#fff;color:#273b30}.mp-checkout #mercadopagoCheckoutMessage{min-height:1.3em;margin:0;font-size:.85rem}@media(max-width:700px){.mp-checkout{grid-template-columns:1fr;gap:10px}}

/* Support ticket center */
.support-ticket-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.support-ticket-form>div:first-child{grid-column:1/-1}.support-ticket-form>label:nth-of-type(3){grid-column:1/-1}.support-ticket-form textarea,.support-ticket-reply-form textarea{min-height:100px;resize:vertical}.support-ticket-form button[type=submit]{justify-self:start}.support-ticket-form [role=status]{align-self:center;margin:0}.support-tickets,.super-tickets{margin-top:18px}.support-ticket-thread{margin-top:22px;padding:20px;border:1px solid #d7e4dc;border-radius:16px;background:#f8fbf9}.support-thread-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid #dce7e0}.support-thread-head>div{display:grid;gap:5px}.support-thread-head small,.ticket-last-message{display:block;color:#65776d;font-size:.86rem;margin-top:4px}.support-thread-messages{display:grid;gap:12px;max-height:440px;overflow:auto;padding:16px 2px}.support-message{max-width:min(88%,760px);padding:13px 16px;border:1px solid #dce7e0;border-radius:14px;background:white}.support-message.from-superadmin{justify-self:end;background:#eaf5ef;border-color:#cee4d6}.support-message header{display:flex;justify-content:space-between;gap:18px;color:#42645a;font-size:.82rem}.support-message time{color:#77877e}.support-message p{margin:9px 0 0;line-height:1.5;overflow-wrap:anywhere}.support-ticket-reply-form{display:grid;gap:12px;border-top:1px solid #dce7e0;padding-top:16px}.support-ticket-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.support-ticket-controls label{min-width:min(100%,260px)}.support-ticket-controls button{margin-left:auto}.ticket-status{display:inline-flex;padding:5px 10px;border-radius:99px;background:#edf2ef;color:#43574c;font-size:.82rem;font-weight:700;white-space:nowrap}.ticket-status.status-open{background:#e4f2e9;color:#226c40}.ticket-status.status-in_progress{background:#e8f1ff;color:#2455a4}.ticket-status.status-waiting_customer{background:#fff4dc;color:#8a5a00}.ticket-status.status-resolved,.ticket-status.status-closed{background:#edf0ee;color:#68736c}.ticket-search{margin:4px 0 14px auto;max-width:420px}.super-tickets .table-wrap{max-height:65vh;overflow:auto}.super-tickets td:first-child{min-width:220px}.super-tickets td:nth-child(2){min-width:150px}
@media(max-width:700px){.support-ticket-form{grid-template-columns:1fr}.support-ticket-form>div:first-child,.support-ticket-form>label:nth-of-type(3){grid-column:auto}.support-thread-head{align-items:flex-start;flex-direction:column}.support-message{max-width:100%}.support-ticket-controls{align-items:stretch;flex-direction:column}.support-ticket-controls button{margin-left:0}}
.register-printer-refresh{min-height:34px;margin:.4rem 0;padding:.4rem .7rem;font-size:.78rem}
/* Cash register status cards on the business dashboard */
.register-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.register-status-card{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid #dbe7e1;border-radius:16px;background:#fbfdfc}.register-status-card.is-open{border-color:#a8d8b5;background:#f3fbf5}.register-status-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;max-width:48px;max-height:48px;overflow:hidden;border-radius:14px;background:#edf5f0;color:#347253}.register-status-icon svg,.register-status-icon img{display:block;width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;object-fit:contain;overflow:hidden}.register-status-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.register-status-info{display:grid;gap:4px;min-width:0;flex:1}.register-status-info strong,.register-status-info small{overflow-wrap:anywhere}.register-status-info small{color:#687c71}.register-status-light{width:12px;height:12px;flex:0 0 12px;border-radius:50%;background:#a9b5af;box-shadow:0 0 0 4px #e8eeea}.register-status-light.on{background:#26a35b;box-shadow:0 0 0 4px #d8f2df}.register-status-card .secondary{white-space:nowrap}.cyber-auto-register-note{padding:10px 12px;border-left:3px solid #438268;background:#f3f8f5;color:#52685c}@media(max-width:640px){.register-status-card{flex-wrap:wrap}.register-status-info{flex-basis:calc(100% - 80px)}.register-status-card .secondary{margin-left:60px;flex:1}}
.customer-invoices-card{margin-top:1rem}.customer-invoices-card .business-view-heading{align-items:center}.user-editor-dialog{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto}.user-editor-dialog form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.user-editor-dialog form>label,.user-editor-dialog form>.user-editor-actions,.user-editor-dialog form>.form-feedback{grid-column:1/-1}.user-editor-dialog form label{min-width:0}.user-editor-dialog form input,.user-editor-dialog form select,.user-editor-dialog form textarea{width:100%;box-sizing:border-box}@media(max-width:640px){.user-editor-dialog form{grid-template-columns:1fr}.user-editor-dialog form>label,.user-editor-dialog form>.user-editor-actions,.user-editor-dialog form>.form-feedback{grid-column:1}.customer-invoices-card .business-view-heading{align-items:flex-start;flex-direction:column}}

.business-backup-settings{margin-top:1rem}.backup-directory-status{overflow-wrap:anywhere;background:#f3f7f4;padding:.65rem .8rem;border-radius:.7rem}.business-backup-history{max-height:20rem;overflow:auto;margin:.8rem 0}.business-backup-history .table-wrap{max-width:100%}.business-backup-settings [hidden]{display:none!important}

.platform-agent-diagnostics{margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid #e5ece7}.agent-diagnostic-detail{margin-top:1rem;padding:1rem;border:1px solid #dbe6df;border-radius:14px;background:#f8faf8}.agent-log-excerpt{max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:1rem;border-radius:10px;background:#17231c;color:#e4eee7;font:12px/1.5 Consolas,monospace}.platform-agent-diagnostics td small{display:block;max-width:360px;white-space:normal;color:#76837a}

.super-agent-fleet .stats{margin:1rem 0}.agent-state-pill{display:inline-flex;align-items:center;padding:.32rem .62rem;border-radius:999px;font-size:.75rem;font-weight:750;white-space:nowrap}.agent-state-pill.online{background:#e7f6ed;color:#267744}.agent-state-pill.offline,.agent-state-pill.disabled{background:#edf0ee;color:#758078}.print-agent-card-list{display:grid;gap:1rem;margin-top:1rem}.print-agent-card{padding:1rem;border:1px solid #dde7e0;border-left:5px solid #929b95;border-radius:15px;background:#f2f4f2}.print-agent-card.online{border-left-color:#31a46c;background:#f8fcf9}.print-agent-card.disabled{border-left-color:#abb2ad}.print-agent-card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.print-agent-card-head h4{margin:.2rem 0;color:#2f4337}.print-agent-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:1rem 0}.print-agent-meta>div{display:grid;gap:.25rem;padding:.65rem;border-radius:10px;background:#fff}.print-agent-meta small,.fleet-agent-printers small,.fleet-error-list small{color:#78857c;font-size:.72rem}.print-agent-meta strong{font-size:.83rem;overflow-wrap:anywhere}.fleet-agent-printers,.fleet-agent-errors{margin-top:1rem}.fleet-agent-printers h5,.fleet-agent-errors h5{margin:.6rem 0}.fleet-agent-errors table,.fleet-agent-printers table{min-width:680px}.fleet-error-list{display:grid;gap:.55rem}.fleet-error-list article{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem;border:1px solid #e3e9e5;border-radius:11px;background:#fff}.fleet-error-list article p{margin:.3rem 0 0}.fleet-error-list article small{display:block}.super-agent-fleet .section-head{align-items:center}@media(max-width:800px){.print-agent-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-error-list article{align-items:flex-start;flex-direction:column}}@media(max-width:500px){.print-agent-meta{grid-template-columns:1fr}.print-agent-card{padding:.75rem}.print-agent-card-head{align-items:flex-start;flex-direction:column}}

.cyber-report-group{margin:1rem 0;padding:1rem;border:1px solid #d8e5dc;border-left:5px solid #34795a;border-radius:16px;background:#fbfdfb}.cyber-report-group>.section-head{padding-bottom:.8rem;border-bottom:1px solid #e3ebe5}.cyber-report-group>h4{margin:1rem 0 .45rem;color:#355746}.cyber-terminal-reports{margin:.7rem 0 1rem 1rem;padding:.7rem;border-left:3px solid #a5c8b2;background:#f5f9f6;border-radius:0 12px 12px 0}.cyber-terminal-reports h5{margin:.2rem 0 .6rem;color:#527260}@media(max-width:700px){.cyber-report-group{padding:.7rem}.cyber-terminal-reports{margin-left:.35rem;padding:.45rem}}

.language-picker{order:5;display:flex;align-items:center;gap:.35rem;margin-left:.65rem;color:#fff}.language-picker select{max-width:132px;padding:.45rem 1.8rem .45rem .6rem;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:.82rem}.language-picker option{color:#263b33;background:#fff}.language-picker select:focus-visible{outline:2px solid #c7e7d8;outline-offset:2px}.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}.language-request-card{width:min(620px,calc(100vw - 2rem));max-height:min(88vh,800px);overflow:auto}.super-language-requests table{width:100%;border-collapse:collapse}.super-language-requests th,.super-language-requests td{padding:.65rem;text-align:left;border-bottom:1px solid #e4ebe6}.language-status-actions{display:flex;gap:.35rem;flex-wrap:wrap}.language-status-actions button{padding:.4rem .55rem;font-size:.8rem}@media(max-width:700px){.language-picker{order:5;margin-left:auto}.language-picker select{max-width:104px;padding:.38rem .35rem}.shell>header{gap:.35rem}.super-language-requests table{min-width:680px}}
.business-currency-settings{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1fr);gap:12px 18px;align-items:end;padding:16px;border:1px solid #d8e4dd;border-radius:16px;background:#f7faf8}.business-currency-settings>small{grid-column:1/-1}.currency-auto-option{margin:0;min-height:48px}@media(max-width:640px){.business-currency-settings{grid-template-columns:1fr}.business-currency-settings>small{grid-column:auto}}
.language-picker{display:flex!important;align-items:center;justify-content:center;gap:.45rem;margin:0 0 0 auto!important;padding:.28rem .38rem;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;min-width:0}.language-picker .language-globe{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;color:#e0c36e}.language-picker .language-globe svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.language-picker select{appearance:none;display:block;width:auto;min-width:88px;max-width:150px;padding:.38rem 1.5rem .38rem .42rem;border:0;border-radius:7px;background-color:transparent;color:inherit;font:inherit;font-size:.78rem;font-weight:650;line-height:1.2;cursor:pointer}.language-picker option{color:#263b33;background:#fff}.language-picker select:focus-visible{outline:2px solid #ead47d;outline-offset:2px}.language-picker select{background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 7px) 50%,calc(100% - 3px) 50%;background-size:4px 4px,4px 4px;background-repeat:no-repeat}.language-picker .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:700px){.language-picker{margin-left:auto!important;padding:.2rem .3rem;gap:.28rem}.language-picker select{min-width:78px;max-width:112px;font-size:.76rem}.language-picker .language-globe{flex-basis:18px;width:18px;height:18px}}

/* Crop frame with visible trim guides; format selector supports square, landscape and portrait logos. */
.product-photo-editor-card .crop-format{display:grid;grid-template-columns:auto minmax(150px,1fr);align-items:center;gap:.7rem;margin:.65rem auto;color:#46574e;font-size:.86rem;text-align:left}
.product-photo-editor-card .crop-format select{width:100%;min-height:40px;padding:.5rem .65rem}
.image-crop-frame{position:relative;display:grid;place-items:center;width:fit-content;max-width:100%;max-height:52dvh;margin:.8rem auto;border:3px solid #fff;border-radius:5px;background:#f2f5f3;box-shadow:0 0 0 2px #39734e,0 8px 24px rgba(27,48,35,.15);overflow:hidden}
.image-crop-frame canvas{display:block;width:auto;height:auto;max-width:100%;max-height:52dvh;background:#fff;touch-action:none;cursor:grab}
.image-crop-frame canvas:active{cursor:grabbing}
.crop-guides{position:absolute;inset:0;pointer-events:none;border:1px solid rgba(255,255,255,.95);box-shadow:inset 0 0 0 1px rgba(22,47,34,.25);background-image:linear-gradient(to right,transparent 32.9%,rgba(255,255,255,.66) 33.15%,transparent 33.4%,transparent 66.1%,rgba(255,255,255,.66) 66.35%,transparent 66.6%),linear-gradient(to bottom,transparent 32.9%,rgba(255,255,255,.66) 33.15%,transparent 33.4%,transparent 66.1%,rgba(255,255,255,.66) 66.35%,transparent 66.6%)}
@media(max-width:520px){.product-photo-editor-card .crop-format{grid-template-columns:1fr;gap:.25rem}.image-crop-frame,.image-crop-frame canvas{max-height:45dvh}}

.user-permission-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:12px;border:1px solid #dfe8e2;border-radius:12px;background:#f7faf8}.user-permission-fields legend{padding:0 .35rem;font-weight:700;color:#365d4a}.user-permission-fields label{display:flex;align-items:center;gap:8px;margin:0}.user-permission-fields input[type=checkbox]{width:auto;min-height:0}.user-permission-fields small{grid-column:1/-1;color:#65736c}@media(max-width:600px){.user-permission-fields{grid-template-columns:1fr}}
.workshop-dialog{width:min(1120px,calc(100vw - 28px));max-width:1120px;max-height:min(90vh,900px);overflow:auto;padding:clamp(20px,3vw,34px);border-radius:22px}.workshop-dialog .modal-heading{position:static;z-index:2;background:#fff;padding:8px 52px 16px 0;border-bottom:1px solid #e3ebe6}.workshop-modal-toolbar,.workshop-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,250px) auto;gap:14px;align-items:end;margin:20px 0}.workshop-orders{min-height:160px}.workshop-order-list{display:grid;gap:8px}.workshop-order-row{width:100%;display:grid;grid-template-columns:42px minmax(180px,1fr) auto auto;gap:14px;align-items:center;text-align:left;padding:14px;border:1px solid #dce7e0;border-radius:14px;background:#fff;color:#263c34;cursor:pointer}.workshop-order-row:hover{border-color:#428969;background:#f7fbf8}.workshop-order-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eaf4ee;color:#327452;font-size:24px}.workshop-order-main{display:grid;gap:4px;min-width:0}.workshop-order-main small,.workshop-detail p{color:#64776d;overflow-wrap:anywhere}.workshop-order-total{font-weight:750}.workshop-status{white-space:nowrap;border-radius:999px;padding:6px 10px;background:#edf3ef;font-size:.82rem;font-weight:700}.status-ready{background:#e1f4e8;color:#176b3e}.status-delivered{background:#e9edf3;color:#435267}.status-awaiting_approval,.status-awaiting_parts{background:#fff3d8;color:#795413}.status-in_repair,.status-diagnosing{background:#e5f0fb;color:#275f91}.workshop-form-heading{display:flex;gap:16px;align-items:center;margin:14px 0 20px}.workshop-form-heading>div{flex:1}.workshop-form-heading h3{margin:0}.workshop-form-heading p{margin:5px 0;color:#6b7e74}.workshop-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workshop-form-grid label,.workshop-modal-toolbar label,.workshop-toolbar label{display:grid;gap:6px}.workshop-wide{grid-column:1/-1}.workshop-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.workshop-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.workshop-detail-grid article,.workshop-extra,.workshop-history{border:1px solid #e1e9e4;border-radius:15px;padding:16px;margin:12px 0;background:#fbfdfb}.workshop-detail h4{margin:4px 0 12px}.workshop-detail p{margin:8px 0}.workshop-check{display:flex!important;align-items:center;gap:10px}.workshop-history ol{padding-left:22px}.workshop-history li{margin:7px 0}.workshop-history time{color:#76867f;font-size:.88rem}.workshop-empty,.workshop-error{padding:24px;border:1px dashed #cadbd0;border-radius:14px;color:#64776d}.workshop-error{color:#9a2930;background:#fff4f4}.workshop-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.workshop-stats>div{display:grid;gap:8px}.workshop-stats b{font-size:1.6rem;color:#246a4a}@media(max-width:760px){.workshop-dialog{width:calc(100vw - 14px);max-height:94vh;padding:18px}.workshop-modal-toolbar,.workshop-toolbar,.workshop-form-grid,.workshop-detail-grid{grid-template-columns:1fr}.workshop-wide{grid-column:auto}.workshop-order-row{grid-template-columns:38px 1fr auto}.workshop-order-total{grid-column:2}.workshop-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-form-heading{align-items:flex-start;flex-wrap:wrap}}

/* Native-window close controls aligned to the outer modal edge. */
.modal-card{position:relative}
.modal-card .modal-heading>button.secondary{position:absolute;top:0;right:0;z-index:20;display:grid;place-items:center;width:46px;height:36px;min-height:36px;padding:0;border:0;border-left:1px solid #e5e9e6;border-bottom:1px solid #e5e9e6;border-radius:0 16px 0 8px;background:#fff;color:transparent;font-size:0;box-shadow:none}
.modal-card .modal-heading>button.secondary::after{content:"×";color:#44534b;font:400 23px/1 "Segoe UI",Arial,sans-serif}
.modal-card .modal-heading>button.secondary:hover{background:#e81123;border-color:#e81123}
.modal-card .modal-heading>button.secondary:hover::after{color:#fff}

.workshop-documents{margin:14px 0;padding:16px;border:1px solid #e1e9e4;border-radius:15px;background:#fbfdfb}.workshop-document-actions{display:flex;gap:8px;flex-wrap:wrap}.workshop-photo-upload{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:end;margin:14px 0}.workshop-photo-upload label{display:grid;gap:6px}.workshop-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.workshop-photo-grid figure{margin:0;padding:6px;border:1px solid #e1e9e4;border-radius:10px;background:#fff}.workshop-photo-grid img{width:100%;height:120px;object-fit:contain}.workshop-photo-grid figcaption{font-size:.78rem;color:#65776d}.workshop-print-backdrop{z-index:1300}.workshop-print-dialog{position:relative;width:min(560px,calc(100vw - 24px));max-height:88vh;overflow:auto;padding:28px}.workshop-print-dialog h3{margin:.2rem 0 .5rem}.workshop-print-dialog>p{color:#65776d}.workshop-print-dialog label{display:grid;gap:6px;margin:14px 0}.workshop-print-dialog .modal-icon-close{top:0;right:0}@media(max-width:760px){.workshop-photo-upload{grid-template-columns:1fr}.workshop-document-actions>*{flex:1 1 100%}}

/* All modal headings stay visible as a coordinated title bar while the form scrolls. */
.profile-card>h2[id$="Title"]{position:sticky;top:calc(-1 * clamp(20px,3vw,34px));z-index:12;display:block;margin:calc(-1 * clamp(20px,3vw,34px)) calc(-1 * clamp(20px,3vw,34px)) 1rem!important;padding:1rem 64px .8rem clamp(20px,3vw,34px);border-bottom:1px solid #d9e5dc;background:linear-gradient(135deg,#edf5ef,#f7faf8);color:#294b39;box-shadow:0 5px 12px #183b2810}
.profile-card .business-detail-brand{position:sticky;top:-28px;z-index:12;margin:-28px -28px 1rem;padding:18px 64px 14px 28px;border-bottom:1px solid #d9e5dc;border-radius:22px 22px 0 0;background:linear-gradient(135deg,#edf5ef,#f7faf8);box-shadow:0 5px 12px #183b2810}
.profile-card .workshop-dialog>.modal-heading{position:sticky;top:-34px;z-index:12;margin:-34px -34px 16px;padding:18px 64px 14px 34px;border-radius:22px 22px 0 0;background:linear-gradient(135deg,#edf5ef,#f7faf8);box-shadow:0 5px 12px #183b2810}
.profile-card .modal-heading h2{color:#294b39}
.modal-card .modal-heading{position:sticky;top:0;z-index:12;margin:0 0 14px;padding:12px 60px 10px 14px;border-bottom:1px solid #d9e5dc;border-radius:14px;background:linear-gradient(135deg,#edf5ef,#f7faf8)}
@media(max-width:760px){.profile-card .business-detail-brand{top:-18px;margin:-18px -18px 1rem;padding:14px 58px 12px 18px}.profile-card .workshop-dialog>.modal-heading{top:-18px;margin:-18px -18px 16px;padding:14px 58px 12px 18px}.profile-card>h2[id$="Title"]{padding-right:58px}}

/* Compact desktop toolbox for business administrators; phone and Cordova keep the menu. */
.business-toolbox[hidden]{display:none!important}
.business-toolbox{display:none}
@media(min-width:1100px){.business-admin-desktop-nav .business-toolbox{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;margin:-.72rem 0 1.05rem;padding:.48rem .58rem;border:1px solid #e1eae4;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbf9);box-shadow:0 5px 16px rgba(23,53,39,.06)}.business-admin-desktop-nav .main-menu-wrap{display:none!important}.business-toolbox-item{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:flex-start;gap:0;flex:0 0 40px;width:40px;min-width:40px;height:38px;min-height:38px;padding:4px 7px;overflow:hidden;border:1px solid transparent;border-radius:10px;background:transparent;color:#3b5848;font-size:.76rem;font-weight:700;line-height:1.1;text-decoration:none;white-space:nowrap;cursor:pointer;transition:flex-basis .18s ease,width .18s ease,padding .18s ease,background .15s,border-color .15s,box-shadow .15s}.business-toolbox-item:hover,.business-toolbox-item:focus-visible,.business-toolbox-item.is-current{justify-content:flex-start;gap:.42rem;flex:0 0 max-content;width:max-content;max-width:260px;padding-left:.55rem;padding-right:.72rem;border-color:#d8e6dc;background:#edf5ef;box-shadow:0 3px 10px rgba(23,53,39,.1);outline:none}.business-toolbox-item.is-current{border-color:#c6dfce;background:linear-gradient(145deg,#eaf5ed,#dcefe2);color:#205c3b;box-shadow:0 0 0 2px rgba(65,133,89,.13),0 4px 12px rgba(23,53,39,.1)}.business-toolbox-icon{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:8px;background:#e8f2eb;color:#34724e;font-size:.98rem}.business-toolbox-label{display:inline-block;max-width:0;overflow:hidden;opacity:0;white-space:nowrap;transition:max-width .18s ease,opacity .12s ease}.business-toolbox-item:hover .business-toolbox-label,.business-toolbox-item:focus-visible .business-toolbox-label,.business-toolbox-item.is-current .business-toolbox-label{max-width:220px;opacity:1}.business-toolbox-register{margin-right:.28rem;border-color:#d5e7da;background:#eaf5ee;color:#205c3b}.business-toolbox-register .business-toolbox-icon{background:#d5ecdd;color:#1d6a3d}.business-toolbox .language-picker{display:inline-flex;align-items:center;gap:.45rem;flex:0 0 176px;width:176px;height:38px;min-height:38px;margin:0 0 0 auto;padding:0 .6rem;border:1px solid #dce8df;border-radius:10px;background:#f6faf7;color:#365747}.business-toolbox .language-picker select{min-width:0;width:100%;padding:.35rem 1.5rem .35rem .25rem;border:0;background:transparent;color:inherit;font-size:.78rem;font-weight:700;white-space:nowrap}.business-toolbox-item[hidden]{display:none!important}.business-toolbox-item:focus-visible{outline:2px solid #34724e;outline-offset:2px}}
@media(prefers-reduced-motion:reduce){.business-toolbox-item,.business-toolbox-label{transition:none!important}}
@media(max-width:1099px){.business-toolbox{display:none!important}}

/* Final compact business navigation: CSS alone keeps names hidden until hover/current. */
@media(min-width:1100px){
.business-admin-desktop-nav .business-toolbox{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:5px!important;overflow-x:auto;scrollbar-width:none;margin:-.35rem 0 .8rem!important;padding:.48rem .58rem!important;background:linear-gradient(180deg,#fff,#f8fbf9)!important;border:1px solid #e1eae4!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(23,53,39,.06)!important}
.business-admin-desktop-nav .business-toolbox::-webkit-scrollbar{display:none}
.business-admin-desktop-nav .business-toolbox-item{box-sizing:border-box;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:4px 7px!important;gap:0!important;overflow:hidden!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#3b5848!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important}
.business-admin-desktop-nav .business-toolbox-item:hover,.business-admin-desktop-nav .business-toolbox-item:focus-visible,.business-admin-desktop-nav .business-toolbox-item.is-current{flex:0 0 max-content!important;width:max-content!important;min-width:40px!important;max-width:260px!important;gap:.42rem!important;padding-left:.55rem!important;padding-right:.72rem!important;border-color:#c6dfce!important;background:linear-gradient(145deg,#eaf5ed,#dcefe2)!important;color:#205c3b!important;box-shadow:0 0 0 2px rgba(65,133,89,.13),0 4px 12px rgba(23,53,39,.1)!important}
.business-admin-desktop-nav .business-toolbox-item>span:not(.business-toolbox-icon){display:inline-block!important;flex:0 0 auto!important;width:auto!important;max-width:0!important;opacity:0!important;visibility:hidden!important;overflow:hidden!important;white-space:nowrap!important}
.business-admin-desktop-nav .business-toolbox-item:hover>span:not(.business-toolbox-icon),.business-admin-desktop-nav .business-toolbox-item:focus-visible>span:not(.business-toolbox-icon),.business-admin-desktop-nav .business-toolbox-item.is-current>span:not(.business-toolbox-icon){max-width:220px!important;opacity:1!important;visibility:visible!important}
.business-admin-desktop-nav .business-toolbox-icon{display:grid!important;place-items:center!important;flex:0 0 25px!important;width:25px!important;height:25px!important;padding:0!important;border-radius:8px!important;background:#e8f2eb!important;color:#34724e!important;font-size:.98rem!important}
.business-admin-desktop-nav .business-toolbox-register{margin:0!important}
.business-admin-desktop-nav .business-toolbox>.language-picker{box-sizing:border-box;order:20!important;display:flex!important;flex:0 0 176px!important;width:176px!important;min-width:176px!important;height:38px!important;min-height:38px!important;margin:0 0 0 auto!important;padding:0 .6rem!important;border:1px solid #dce8df!important;border-radius:10px!important;background:#f6faf7!important;color:#365747!important}
.business-admin-desktop-nav .business-toolbox>.language-picker select{min-width:0!important;width:100%!important;max-width:none!important;padding:.35rem 1.5rem .35rem .25rem!important;border:0!important;background-color:transparent!important;color:#365747!important;font-size:.78rem!important;font-weight:700!important}
}
@media(max-width:1099px){.business-toolbox{display:none!important}}

@media(min-width:1100px){.business-admin-desktop-nav .business-toolbox .business-toolbox-item[hidden]{display:none!important}}

/* Compact mobile dashboard: show key figures in a balanced two-column grid. */
@media(max-width:700px){.business-dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:.65rem 0 .85rem}.business-dashboard .stats>div{min-height:78px;padding:.7rem .75rem;border-radius:13px;gap:.3rem}.business-dashboard .stats>div>span{font-size:.72rem;line-height:1.25}.business-dashboard .stats b{font-size:1.25rem;line-height:1.15}.business-dashboard .business-stat-loading,.business-dashboard .business-stat-error{grid-column:1/-1}}
@media(max-width:340px){.business-dashboard .stats{grid-template-columns:1fr}.business-dashboard .stats>div{min-height:68px}}
/* Android WebView text scaling can otherwise inflate dashboard tiles. */
@media(max-width:700px){body.cordova-entry-mode .business-dashboard .stats>div{min-height:76px;padding:.65rem .7rem}body.cordova-entry-mode .business-dashboard .stats>div>span{font-size:.72rem!important}body.cordova-entry-mode .business-dashboard .stats b{font-size:1.2rem!important}}
.business-settings-card{display:block;min-width:0}.settings-tablist{position:sticky;top:0;z-index:8;display:flex;gap:.45rem;overflow-x:auto;padding:.65rem;margin:-.2rem -.2rem 1rem;background:rgba(255,255,255,.96);border:1px solid var(--line,#dce7e1);border-radius:14px;box-shadow:0 6px 18px rgba(20,55,42,.08);scrollbar-width:thin}.settings-tab{flex:0 0 auto;min-height:42px;padding:.65rem 1rem;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink,#234338);font-weight:700;cursor:pointer}.settings-tab:hover{background:#eef5f1}.settings-tab.is-active{background:#28634e;color:#fff;box-shadow:0 4px 12px rgba(27,89,66,.2)}.settings-tab-panel[hidden]{display:none!important}.settings-tab-panel{min-width:0;animation:settings-panel-in .18s ease-out}@keyframes settings-panel-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}.food-service-setting{border-color:#b9d9c8;background:linear-gradient(135deg,#f5fbf7,#fff)}.food-order-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:.8rem;margin:.7rem 0;background:#f3f8f5;border:1px solid #dce9e1;border-radius:12px}.food-order-controls[hidden]{display:none!important}.food-order-controls label:last-child{grid-column:1/-1}@media(max-width:700px){.settings-tablist{top:0;margin:0 0 .8rem;padding:.5rem}.settings-tab{min-height:40px;padding:.55rem .8rem}.food-order-controls{grid-template-columns:1fr}.food-order-controls label:last-child{grid-column:auto}}

/* Configuración guiada de comida y entregas */
.food-module-options[hidden],.food-delivery-settings[hidden]{display:none!important}.food-module-options{display:grid;gap:1rem;margin:.75rem 0 0;padding:1rem;border:1px solid #dce9e1;border-radius:14px;background:#fff}.food-delivery-settings{display:grid;gap:.8rem;padding:1rem;border:1px solid #b9d9c8;border-radius:12px;background:#f4faf6}.food-setup-hint{margin:0;padding:.8rem 1rem;border-left:4px solid #328364;border-radius:8px;background:#eaf5ee;color:#38564a}.food-location-grid{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:.75rem}.food-location-grid button{min-height:44px}.food-register-notifications{min-width:0;margin:.2rem 0 0;padding:1rem;border:1px solid #dce7e1;border-radius:12px}.food-register-notifications>p,.food-no-registers{margin:.2rem 0 .7rem;color:#607368}.food-register-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:.55rem}.food-register-choice{display:flex;align-items:center;gap:.65rem;padding:.7rem .8rem;border:1px solid #dce7e1;border-radius:10px;background:#fff;cursor:pointer}.food-register-choice input{width:auto;margin:0;accent-color:#278361}.food-register-choice span{display:grid;gap:.15rem}.food-register-choice small{color:#718077}@media(max-width:680px){.food-location-grid{grid-template-columns:1fr}.food-location-grid button{width:100%}.food-register-options{grid-template-columns:1fr}}
.food-map-hint{margin:.1rem 0 -.35rem;color:#607368;font-size:.8rem}.food-location-map{width:100%;height:300px;min-height:240px;overflow:hidden;border:1px solid #cfded4;border-radius:14px;background:#edf3ef;box-shadow:0 5px 16px rgba(23,61,44,.08);z-index:0}.food-location-map .leaflet-container{width:100%;height:100%;font:inherit}.food-location-map .leaflet-control-attribution{font-size:10px}@media(max-width:680px){.food-location-map{height:250px;min-height:220px;border-radius:11px}}
/* Folder style for business settings tabs */
.settings-tablist{position:sticky;top:0;z-index:8;display:flex;align-items:flex-end;gap:.2rem;overflow-x:auto;padding:.55rem .6rem 0;margin:-.2rem -.2rem 1.1rem;background:linear-gradient(180deg,#f4f8f5 0%,#e8f0eb 100%);border:1px solid var(--line,#dce7e1);border-bottom:3px solid #28634e;border-radius:14px 14px 0 0;box-shadow:none;scrollbar-width:thin}
.settings-tab{position:relative;flex:0 0 auto;min-height:42px;padding:.65rem 1rem;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:transparent;color:var(--ink,#234338);font-weight:700;cursor:pointer;white-space:nowrap}
.settings-tab:hover{background:#e8f1eb;border-color:#d3e1d8}
.settings-tab.is-active{z-index:1;margin-bottom:-3px;background:#fff;color:#215b45;border:1px solid #28634e;border-bottom:3px solid #fff;border-radius:10px 10px 0 0;box-shadow:0 -3px 9px rgba(20,55,42,.08)}
.settings-tab-panel{padding:.25rem .2rem .5rem;min-width:0;animation:settings-panel-in .18s ease-out}
.settings-tab-panel[hidden]{display:none!important}
@media(max-width:700px){.settings-tablist{top:0;gap:.15rem;padding:.45rem .45rem 0;margin:0 0 .85rem;border-radius:12px 12px 0 0}.settings-tab{min-height:40px;padding:.6rem .8rem;font-size:.92rem}.settings-tab-panel{padding:.15rem 0 .35rem}}

/* Clearly connected folder tabs: the active sheet merges into its content panel. */
#businessSettingsForm .settings-tablist{display:flex;align-items:flex-end;gap:.2rem;overflow-x:auto;overscroll-behavior-inline:contain;padding:.55rem .55rem 0;margin:-.2rem -.2rem 1rem;border:1px solid #d7e4dc;border-bottom:3px solid #28634e;border-radius:13px 13px 0 0;background:linear-gradient(#f5f8f6,#e8f0eb);box-shadow:none;scrollbar-width:thin}
#businessSettingsForm .settings-tab{position:relative;flex:0 0 auto;min-height:42px;padding:.65rem 1rem;border:1px solid transparent;border-bottom:0;border-radius:9px 9px 0 0;background:transparent;color:#345445;font-weight:700;white-space:nowrap;box-shadow:none}
#businessSettingsForm .settings-tab:hover{background:#e4eee8;border-color:#cfdfd4}
#businessSettingsForm .settings-tab.is-active{z-index:1;margin:0 0 -3px!important;background:#fff!important;color:#215b45!important;border:1px solid #28634e!important;border-bottom:3px solid #fff!important;border-radius:9px 9px 0 0!important;box-shadow:0 -3px 8px rgba(20,55,42,.07)!important}
#businessSettingsForm .settings-tab:focus-visible{outline:2px solid #4b9470;outline-offset:-3px}
#businessSettingsForm .settings-tab-panel{padding:.35rem .2rem .6rem;min-width:0}
#businessSettingsForm .settings-tab-panel[hidden]{display:none!important}
@media(max-width:700px){#businessSettingsForm .settings-tablist{top:0;gap:.12rem;padding:.45rem .45rem 0;margin:0 0 .85rem;border-radius:11px 11px 0 0}#businessSettingsForm .settings-tab{min-height:40px;padding:.58rem .78rem;font-size:.92rem}#businessSettingsForm .settings-tab-panel{padding:.2rem 0 .45rem}}

/* Secondary tabs keep each optional business module in its own focused view. */
#businessSettingsForm .module-settings-tabs{display:flex;align-items:center;gap:.4rem;overflow-x:auto;overscroll-behavior-inline:contain;padding:.45rem;margin:0 0 1rem;border:1px solid #d6e3da;border-radius:12px;background:#f1f6f2;scrollbar-width:thin}
#businessSettingsForm .module-settings-tab{flex:0 0 auto;min-height:38px;padding:.55rem .9rem;border:1px solid transparent;border-radius:9px;background:transparent;color:#426052;font-weight:700;white-space:nowrap;cursor:pointer}
#businessSettingsForm .module-settings-tab:hover{background:#e4eee7}
#businessSettingsForm .module-settings-tab.is-active{border-color:#9ac5aa;background:#fff;color:#1f684b;box-shadow:0 2px 7px rgba(24,72,51,.1)}
#businessSettingsForm .module-settings-tab:focus-visible{outline:2px solid #4b9470;outline-offset:2px}
#businessSettingsForm .module-settings-panel[hidden]{display:none!important}
#businessSettingsForm .module-settings-panel{min-width:0;animation:settings-panel-in .16s ease-out}
@media(max-width:700px){#businessSettingsForm .module-settings-tabs{flex-wrap:wrap;overflow:visible;gap:.3rem;padding:.35rem;margin-bottom:.75rem}#businessSettingsForm .module-settings-tab{flex:1 1 calc(50% - .3rem);min-width:0;min-height:40px;padding:.58rem .55rem;font-size:.9rem;white-space:normal;line-height:1.2}}

/* Mobile density and module tabs: keep the page compact without shrinking touch targets. */
@media(max-width:700px){
  body{font-size:15px;line-height:1.42}
  .shell{padding:.5rem .65rem 2.8rem}
  .shell>header{box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;gap:.32rem;min-height:54px;margin:0 0 .85rem;padding:.42rem .55rem;border-radius:0 0 13px 13px}
  .shell>header .brand-lockup{order:1;flex:1 1 auto;min-width:0}
  .shell>header .brand-logo{width:auto;height:27px;max-width:min(88px,22vw);object-fit:contain}
  .shell>header .main-menu-wrap{order:2;flex:0 0 auto}
  .shell>header .main-menu-toggle{width:36px;height:36px;min-width:36px;min-height:36px;padding:8px}
  .shell>header .register-picker{order:3;flex:0 1 94px;min-width:0}
  .shell>header .register-picker-toggle{min-height:36px;gap:.25rem;padding:.25rem .35rem;font-size:.72rem}
  .shell>header .register-picker-toggle svg{width:16px;height:16px;flex:0 0 16px}
  .shell>header .language-picker{order:4;position:relative;display:flex!important;flex:0 0 58px!important;width:58px!important;min-width:58px!important;height:36px!important;min-height:36px!important;gap:3px!important;margin:0!important;padding:0 5px!important;overflow:hidden;border-radius:9px!important}
  .shell>header .language-picker .language-globe{display:grid;place-items:center;flex:0 0 15px;width:15px;height:15px}
  .shell>header .language-picker .language-globe svg{width:15px;height:15px}
  .shell>header .language-picker .language-short-label{display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;font-size:.72rem;font-weight:750;line-height:1;pointer-events:none}
  .shell>header .language-picker select{position:absolute;inset:0;width:100%!important;max-width:none!important;min-width:0!important;height:100%;margin:0;padding:0!important;opacity:.015;font-size:16px!important;cursor:pointer}
  .shell>header .account-menu{order:5;flex:0 0 34px}
  .shell>header .user-avatar-button{width:34px;height:34px;min-width:34px;min-height:34px;flex-basis:34px}
  .shell>header .user-avatar,.shell>header .user-avatar-fallback{width:28px;height:28px}
  .shell>header .notification-center{order:6;flex:0 0 auto}
  .shell>header .notification-center button{width:36px;height:36px;min-width:36px;min-height:36px;padding:7px}
  #businessSettingsForm .module-settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.28rem;min-width:0;max-height:none;overflow:hidden;padding:.32rem;margin:0 0 .65rem;overscroll-behavior:initial;scrollbar-width:none}
  #businessSettingsForm .module-settings-tabs::-webkit-scrollbar{display:none}
  #businessSettingsForm .module-settings-tab{box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:.45rem .38rem;font-size:.82rem;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
  #businessSettingsForm .settings-tablist{gap:.1rem;max-width:100%;padding:.35rem .35rem 0;overflow-x:auto;overflow-y:hidden}
  #businessSettingsForm .settings-tab{min-height:38px;padding:.48rem .62rem;font-size:.84rem}
  .shell>h1,#superPanel>h1,#businessPanel>h1{margin:1rem 0 .7rem;padding-bottom:.55rem;font-size:1.45rem;line-height:1.2}
  .card{padding:.8rem;border-radius:13px}
  .card h2{margin-bottom:.75rem;padding-bottom:.58rem;font-size:1rem;line-height:1.25}
  .admin-grid{gap:.7rem}
  .admin-grid>.card{padding:.9rem}
  .admin-grid label{gap:.32rem;margin:.68rem 0;font-size:.8rem;line-height:1.3}
  .admin-grid label small,.admin-grid+small,.admin-grid>.card>small{font-size:.74rem;line-height:1.4}
  .admin-grid input:not([type=checkbox]):not([type=color]),.admin-grid select,.admin-grid textarea{min-height:42px;padding:.62rem .7rem;font-size:.92rem}
  .admin-grid button,.section-head button,.actions button{min-height:42px;padding:.58rem .8rem;font-size:.88rem}
  .table-wrap{font-size:.82rem}
  .site-footer,.site-footer-inner{font-size:.72rem}
}

/* Keep the hamburger glyph optically centered inside the compact header control. */
.shell>header .main-menu-toggle{box-sizing:border-box;display:grid;place-items:center;align-content:center;justify-content:center;padding:0!important;line-height:0}
.shell>header .main-menu-toggle svg{display:block;width:22px;height:22px;margin:0;flex:none;overflow:visible}
#businessSettingsForm .settings-tablist{z-index:3}
@media(max-width:380px){
  .shell{padding-right:.48rem;padding-left:.48rem}
  .shell>header{gap:.24rem;padding-right:.4rem;padding-left:.4rem}
  .shell>header .brand-logo{max-width:19vw}
  .shell>header .register-picker{flex-basis:80px}
  .shell>header .register-picker-toggle{font-size:.67rem}
  .shell>header .language-picker{flex-basis:52px!important;width:52px!important;min-width:52px!important}
  #businessSettingsForm .settings-tab{padding-right:.48rem;padding-left:.48rem;font-size:.8rem}
  .modal-heading h2{font-size:1rem}
}

/* Public QR menu setup */
.menu-qr-settings .ticket-designer-heading p,.menu-qr-note{color:var(--muted,#687b73)}.menu-qr-workspace{display:grid;grid-template-columns:minmax(220px,300px) minmax(280px,1fr);gap:1.5rem;align-items:center;margin-top:1.25rem;padding:1.25rem;border:1px solid #dce8e1;border-radius:18px;background:#f8fbf9}.menu-qr-preview{display:grid;place-items:center;min-height:250px;padding:1rem;border:1px solid #e1eae5;border-radius:16px;background:white}.menu-qr-preview canvas,.menu-qr-preview img{display:block;max-width:100%;height:auto}.menu-qr-preview p{margin:.6rem 0 0;color:#718078;text-align:center}.menu-qr-controls{display:grid;gap:.85rem}.menu-qr-actions{display:flex;flex-wrap:wrap;gap:.65rem}.menu-qr-settings button:disabled{opacity:.48;cursor:not-allowed}@media(max-width:720px){.menu-qr-workspace{grid-template-columns:1fr}.menu-qr-preview{min-height:210px}}

/* Configuración de promociones */
.promotion-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,1.15fr);gap:1.25rem;align-items:start}.promotion-editor,.promotion-list-panel{min-width:0;padding:1rem;border:1px solid #dce7e0;border-radius:16px;background:#fff}.promotion-editor>label,.promotion-editor .promotion-type-fields>label{display:grid;gap:.4rem;margin:.8rem 0}.promotion-type-fields{margin:.8rem 0;padding:.8rem;border-radius:12px;background:#f4f8f5}.promotion-type-fields[hidden]{display:none}.promotion-weekdays,.promotion-products{min-width:0;margin:1rem 0;padding:.85rem;border:1px solid #dce7e0;border-radius:12px}.promotion-weekdays>div{display:flex;flex-wrap:wrap;gap:.5rem}.promotion-weekdays label{display:flex;align-items:center;gap:.3rem;padding:.35rem .55rem;border-radius:9px;background:#f0f5f1}.promotion-weekdays input{width:auto}.promotion-products-list{display:grid;gap:.4rem;max-height:250px;overflow:auto;margin-top:.6rem}.promotion-product-choice{display:grid!important;grid-template-columns:auto minmax(0,1fr) 82px;align-items:center;gap:.6rem;padding:.45rem .55rem;border-bottom:1px solid #edf1ee}.promotion-product-choice>input[type=checkbox]{width:auto}.promotion-product-choice span{min-width:0}.promotion-product-choice small{display:block;overflow:hidden;color:#68796f;text-overflow:ellipsis}.promotion-required-quantity{width:100%;padding:.4rem}.promotion-list-panel{overflow:hidden}.promotion-list-panel .table-wrap{max-height:520px;overflow:auto}.promotion-settings .user-editor-actions{display:flex;justify-content:flex-end;gap:.6rem}.promotion-list-panel small{display:block;color:#68796f}
@media(max-width:900px){.promotion-layout{grid-template-columns:1fr}.promotion-list-panel .table-wrap{max-height:360px}}

/* Touch-friendly minimum target size for panel controls and navigation. */
@media (pointer:coarse), (max-width:760px){
 body.platform-admin button,body.business-panel button,body.platform-admin input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]),body.business-panel input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]),body.platform-admin select,body.business-panel select{min-height:44px!important}
 body.platform-admin input[type=checkbox],body.business-panel input[type=checkbox],body.platform-admin input[type=radio],body.business-panel input[type=radio]{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important}
 .main-menu .keyboard-shortcuts-tip{padding:.65rem .25rem;color:#66776d;font-size:.75rem}
}

/* Logged-in workspace header spans the viewport; keep the workspace content centered. */
body:not(.public-landing-active):not(.public-login-active) .shell{padding-top:0}
body:not(.public-landing-active):not(.public-login-active) .shell>header.pos-header{position:sticky;top:0;z-index:60;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:0;margin-top:0;margin-bottom:1rem;padding:.8rem max(1rem,calc((100vw - 1240px)/2));border-radius:0 0 16px 16px}
@media(max-width:700px){body:not(.public-landing-active):not(.public-login-active) .shell{padding:0 .7rem 2rem}body:not(.public-landing-active):not(.public-login-active) .shell>header.pos-header{width:calc(100% + 1.4rem);max-width:none;margin-left:-.7rem;margin-bottom:.75rem;padding:.65rem .7rem;border-radius:0 0 13px 13px}}

/* Admin pages use the same rounded header treatment while the header itself bleeds to the viewport edges. */
body:not(.public-landing-active):not(.public-login-active) .shell>header:not(.pos-header){position:sticky;top:0;z-index:60;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:0;margin-top:0;margin-bottom:1.4rem;padding:.85rem max(1rem,calc((100vw - 1240px)/2));border-radius:0 0 16px 16px}
@media(max-width:700px){body:not(.public-landing-active):not(.public-login-active) .shell>header:not(.pos-header){width:calc(100% + 1.4rem);max-width:none;margin-left:-.7rem;margin-bottom:1rem;padding:.75rem;border-radius:0 0 13px 13px}}

/* Reserve space for the fixed cashier toolbox so it never covers sale controls. */
#pos:not([hidden]){padding-right:96px}
@media(max-width:760px){#pos:not([hidden]){padding-right:60px}}
@media(max-width:380px){#pos:not([hidden]){padding-right:56px}}

#businessSettingsSubmit[hidden]{display:none!important}

/* The generic profile card is intentionally narrow; supplier invoices need the full workspace. */
#purchaseModal{padding:6px}
#purchaseModal>.profile-card.purchase-dialog{width:min(calc(100vw - 12px),1320px);max-width:1320px;max-height:calc(100dvh - 12px);}

.purchase-line-main .purchase-cost-field{gap:.35rem}.purchase-line-main .purchase-cost-heading{display:flex;align-items:center;justify-content:space-between;gap:.4rem;min-width:0;min-height:18px}.purchase-line-main .purchase-cost-heading small{display:inline-flex;align-items:center;flex:none;padding:2px 7px;border:1px solid #dce9e0;border-radius:999px;background:#edf5f0;color:#486957;font-size:.63rem;line-height:1.2;font-weight:700;white-space:nowrap}

/* Purchase details: near-full-screen, fixed title bar and independently scrollable table body. */
#purchaseDetailModal{padding:clamp(8px,1.5vw,18px)}
#purchaseDetailModal>.purchase-detail-dialog{display:flex;flex-direction:column;width:min(1560px,calc(100vw - 36px));height:auto;min-height:250px;max-height:calc(100dvh - 24px);padding:0!important;overflow:hidden!important;border-radius:20px}
#purchaseDetailModal .purchase-detail-dialog>.modal-heading{position:relative!important;top:auto!important;flex:0 0 auto;margin:0!important;padding:.8rem 72px .75rem clamp(18px,2vw,30px)!important;border-radius:20px 20px 0 0}
#purchaseDetailModal .purchase-detail-dialog>.modal-heading h2{margin:.12rem 0!important}
#purchaseDetailModal .purchase-detail-body{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:clamp(14px,2vw,28px);scrollbar-gutter:stable}
#purchaseDetailModal .purchase-detail-meta{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 1rem}
#purchaseDetailModal .purchase-detail-body .table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #e1e9e4;border-radius:12px}
#purchaseDetailModal .purchase-detail-body table{min-width:980px;margin:0}
#purchaseDetailModal .purchase-detail-recorded{margin:.8rem 0 0}
@media(max-width:700px){#purchaseDetailModal{padding:6px}#purchaseDetailModal>.purchase-detail-dialog{width:calc(100vw - 12px);height:auto;min-height:min(55dvh,420px);max-height:calc(100dvh - 18px);border-radius:16px}#purchaseDetailModal .purchase-detail-dialog>.modal-heading{padding:.7rem 60px .65rem 16px!important;border-radius:16px 16px 0 0}#purchaseDetailModal .purchase-detail-body{padding:12px}#purchaseDetailModal .purchase-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}#purchaseDetailModal .purchase-detail-meta span{padding:.55rem}}
/* Large legacy dialogs keep the shared title bar visible while their body scrolls. */
.notification-compose-backdrop{padding:clamp(8px,2vw,20px)}
.notification-compose{display:flex;flex-direction:column;width:min(100%,680px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border-radius:20px}
.notification-compose>.modal-heading{position:relative;flex:0 0 auto;margin:0!important;padding:.8rem 66px .75rem 1.25rem!important;border-radius:20px 20px 0 0}
.notification-compose-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:1rem 1.25rem 1.25rem}
.notification-compose-body>p{color:#77847b;font-size:.84rem;line-height:1.5}
.notification-compose .modal-heading>.modal-icon-close{position:absolute;top:0;right:0;width:54px;height:100%;border-radius:0 20px 0 0}
@media(max-width:700px){.notification-compose{max-height:calc(100dvh - 16px);border-radius:16px}.notification-compose>.modal-heading{padding:.7rem 60px .65rem 1rem!important;border-radius:16px 16px 0 0}.notification-compose-body{padding:.8rem 1rem 1rem}}
.workshop-print-dialog{display:flex;flex-direction:column;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 24px);padding:0!important;overflow:hidden!important;border-radius:20px}
.workshop-print-dialog>.modal-heading{position:relative!important;top:auto!important;flex:0 0 auto;margin:0!important;padding:.8rem 66px .75rem 1.25rem!important;border-radius:20px 20px 0 0}
.workshop-print-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:1rem 1.25rem 1.25rem}
.workshop-print-body>p{color:#65776d}
.workshop-print-dialog>.modal-heading>.modal-icon-close{position:absolute;top:0;right:0;width:54px;height:100%;border-radius:0 20px 0 0}
@media(max-width:760px){.workshop-print-dialog{max-height:calc(100dvh - 16px);border-radius:16px}.workshop-print-dialog>.modal-heading{padding:.7rem 60px .65rem 1rem!important;border-radius:16px 16px 0 0}.workshop-print-body{padding:.8rem 1rem 1rem}}

.text-case-warning{margin:.55rem 0 0;padding:.75rem .9rem;border-left:3px solid #c98b27;border-radius:8px;background:#fff7e8;color:#654d26;font-size:.8rem;line-height:1.5}.text-case-warning[hidden]{display:none!important}

#businessTypeSuggestion{display:block;min-height:1.2em;margin-top:.4rem;color:#547365;font-size:.82rem}
