:root{
  --sys-primary:#FF7A1A;
  --sys-primary-dark:#E8650A;
  --sys-primary-soft:rgba(255,122,26,.12);
  --sys-primary-faint:#FFF5EC;
  --sys-bg:#F4F6FA;
  --sys-surface:#FFFFFF;
  --sys-surface-2:#FFFFFF;
  --sys-surface-3:#F1F3F8;
  --sys-border:#E6E9F0;
  --sys-text:#2F3342;
  --sys-muted:#7A8194;
  --sys-dim:#A0A6B5;
  --sys-sidebar:#2E3A57;
  --sys-sidebar-deep:#263149;
  --sys-sidebar-text:#F7F8FC;
  --sys-sidebar-muted:#B8C0D1;
  --sys-success:#22A06B;
  --sys-danger:#E5484D;
  --sys-info:#2F80ED;
  --sys-violet:#7C67D8;
  --sys-shadow:0 12px 32px rgba(39,48,73,.08);
  --sys-shadow-lg:0 24px 70px rgba(39,48,73,.13);
}

html[data-ui="pos"],
html[data-theme="dark"]{
  --sys-bg:#0E0F12;
  --sys-surface:#17181D;
  --sys-surface-2:#1E2027;
  --sys-surface-3:#262832;
  --sys-border:#2B2E38;
  --sys-text:#F2F2F4;
  --sys-muted:#9A9CA8;
  --sys-dim:#6C6E7A;
  --sys-shadow:0 18px 50px rgba(0,0,0,.28);
  --sys-shadow-lg:0 30px 90px rgba(0,0,0,.4);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;background:var(--sys-bg);color:var(--sys-text);font-family:'Inter',sans-serif;transition:background .2s,color .2s}
h1,h2,h3,h4,h5,h6,.system-brand strong,.btn{font-family:'Poppins',sans-serif}
a{text-decoration:none}

.btn-primary{
  --bs-btn-bg:var(--sys-primary);
  --bs-btn-border-color:var(--sys-primary);
  --bs-btn-hover-bg:var(--sys-primary-dark);
  --bs-btn-hover-border-color:var(--sys-primary-dark);
  --bs-btn-active-bg:var(--sys-primary-dark);
  --bs-btn-active-border-color:var(--sys-primary-dark);
  font-weight:700;border-radius:10px;padding:.74rem 1.15rem;
  box-shadow:0 8px 20px rgba(255,122,26,.2)
}
.btn-outline-secondary{
  --bs-btn-color:var(--sys-text);--bs-btn-border-color:var(--sys-border);
  --bs-btn-hover-bg:var(--sys-surface-3);--bs-btn-hover-border-color:var(--sys-border);
  --bs-btn-hover-color:var(--sys-text);font-weight:700;border-radius:10px;padding:.74rem 1.15rem
}
.form-label{font-weight:700;font-size:.79rem;color:var(--sys-text);margin-bottom:.45rem}
.form-control,.form-select{
  background:var(--sys-surface-2);border:1px solid var(--sys-border);color:var(--sys-text);
  border-radius:10px;min-height:48px;padding:.72rem .9rem;font-size:.88rem;box-shadow:none
}
.form-control::placeholder{color:var(--sys-dim)}
.form-control:focus,.form-select:focus{
  background:var(--sys-surface-2);color:var(--sys-text);border-color:var(--sys-primary);
  box-shadow:0 0 0 3px var(--sys-primary-soft)
}
.form-control.is-invalid{background-image:none;border-color:var(--sys-danger)}
.invalid-feedback,.field-error{display:block;color:var(--sys-danger);font-size:.76rem;margin-top:.35rem}
.system-alert{
  border:1px solid var(--sys-border);border-radius:12px;background:var(--sys-surface-2);color:var(--sys-text);
  display:flex;align-items:center;gap:10px;padding:12px 15px
}
.system-alert.alert-success{border-color:rgba(34,160,107,.3)}
.system-alert.alert-success i{color:var(--sys-success)}
.system-alert.alert-danger{border-color:rgba(229,72,77,.32)}
.system-alert.alert-danger i{color:var(--sys-danger)}
.eyebrow,.step-label{display:inline-block;color:var(--sys-primary);font-size:.68rem;font-weight:800;letter-spacing:1.45px;text-transform:uppercase}

.system-brand{display:flex;align-items:center;gap:11px;color:inherit}
.system-brand:hover{color:inherit}
.system-brand .brand-symbol{
  width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,var(--sys-primary),var(--sys-primary-dark));
  display:grid;place-items:center;color:#fff;font-size:1.15rem;box-shadow:0 8px 18px rgba(255,122,26,.28)
}
.system-brand strong{display:block;line-height:1;font-size:1.02rem;font-weight:800;letter-spacing:.8px}
.system-brand small{display:block;font-size:.54rem;font-weight:700;letter-spacing:1.6px;margin-top:4px}

/* Cadastro e autenticação: base clara inspirada no Mofi */
.system-auth-body{overflow-x:hidden;background:var(--sys-bg)}
.registration-shell{min-height:100vh;display:grid;grid-template-columns:350px 1fr;background:var(--sys-bg)}
.registration-aside{
  position:relative;padding:34px 34px 28px;color:var(--sys-sidebar-text);
  background:radial-gradient(circle at 12% 7%,rgba(255,122,26,.22),transparent 29%),linear-gradient(160deg,var(--sys-sidebar),var(--sys-sidebar-deep) 72%);
  display:flex;flex-direction:column;overflow:hidden;box-shadow:8px 0 35px rgba(38,49,73,.08)
}
.registration-aside:after{content:"";position:absolute;width:300px;height:300px;border:55px solid rgba(255,122,26,.05);border-radius:50%;right:-170px;bottom:-100px}
.registration-aside .system-brand{color:#fff}
.registration-aside .system-brand small{color:var(--sys-sidebar-muted)}
.auth-brand{position:relative;z-index:1}
.registration-intro{margin-top:78px;position:relative;z-index:1}
.registration-intro h1{font-size:2.05rem;line-height:1.2;margin:14px 0 15px;font-weight:800;color:#fff}
.registration-intro p{color:var(--sys-sidebar-muted);line-height:1.7;font-size:.92rem}
.wizard-progress{list-style:none;padding:0;margin:46px 0 30px;position:relative;z-index:1}
.wizard-progress:before{content:"";position:absolute;left:18px;top:20px;bottom:28px;width:1px;background:rgba(255,255,255,.13)}
.wizard-progress li{display:flex;align-items:center;gap:13px;position:relative;margin-bottom:24px;color:var(--sys-sidebar-muted)}
.wizard-progress li>span{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);font-size:.78rem;font-weight:800;z-index:1}
.wizard-progress li strong,.wizard-progress li small{display:block}
.wizard-progress li strong{font-size:.83rem;color:#DCE1EC}
.wizard-progress li small{font-size:.68rem;margin-top:3px;color:#AAB3C5}
.wizard-progress li.active>span,.wizard-progress li.done>span{background:var(--sys-primary);border-color:var(--sys-primary);color:#fff;box-shadow:0 5px 15px rgba(255,122,26,.3)}
.wizard-progress li.active strong,.wizard-progress li.done strong{color:#fff}
.wizard-progress li.done>span{font-size:0}
.wizard-progress li.done>span:after{content:"✓";font-size:.85rem}
.aside-security{margin-top:auto;display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid rgba(255,122,26,.26);background:rgba(255,122,26,.09);border-radius:13px;position:relative;z-index:1}
.aside-security>i{color:var(--sys-primary);font-size:1.1rem}
.aside-security strong,.aside-security small{display:block}
.aside-security strong{font-size:.76rem;color:#fff}
.aside-security small{font-size:.65rem;line-height:1.45;color:var(--sys-sidebar-muted);margin-top:3px}
.registration-content{padding:26px 5.5vw 36px;min-width:0;background:var(--sys-bg)}
.registration-topline{display:flex;justify-content:space-between;color:var(--sys-muted);font-size:.78rem;margin-bottom:42px}
.registration-topline a{color:var(--sys-primary);font-weight:700}
.registration-content form{max-width:1040px;margin:0 auto;background:#fff;border:1px solid var(--sys-border);border-radius:18px;padding:28px;box-shadow:var(--sys-shadow)}
.wizard-panel{display:none;animation:fadePanel .25s ease}
.wizard-panel.active{display:block}
@keyframes fadePanel{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.wizard-heading{margin-bottom:27px}
.wizard-heading h2{font-size:1.72rem;font-weight:800;margin:8px 0;color:var(--sys-text)}
.wizard-heading p{color:var(--sys-muted);font-size:.88rem;margin:0}
.business-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-height:500px;overflow:auto;padding:2px 5px 8px 2px}
.business-card{position:relative;display:flex;gap:13px;align-items:flex-start;min-height:135px;padding:17px;background:#fff;border:1px solid var(--sys-border);border-radius:15px;cursor:pointer;transition:.18s}
.business-card:hover{border-color:rgba(255,122,26,.55);transform:translateY(-2px);box-shadow:var(--sys-shadow)}
.business-card.selected{border-color:var(--sys-primary);background:linear-gradient(150deg,var(--sys-primary-faint),#fff 62%);box-shadow:0 0 0 2px rgba(255,122,26,.08)}
.business-card input{position:absolute;opacity:0}
.business-icon{width:43px;height:43px;border-radius:12px;background:var(--sys-primary-soft);color:var(--sys-primary);display:grid;place-items:center;font-size:1.14rem;flex:none}
.business-content{min-width:0}
.business-content strong,.business-content small,.business-content em{display:block}
.business-content strong{font-size:.85rem;margin-bottom:5px;color:var(--sys-text)}
.business-content small{font-size:.69rem;line-height:1.45;color:var(--sys-muted)}
.business-content em{margin-top:9px;font-style:normal;color:var(--sys-primary);font-size:.61rem;font-weight:700;text-transform:capitalize}
.business-check{position:absolute;right:10px;top:10px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--sys-primary);color:#fff;font-size:.7rem;opacity:0;transform:scale(.7)}
.business-card.selected .business-check{opacity:1;transform:scale(1)}
.wizard-actions{display:flex;align-items:center;justify-content:space-between;margin-top:30px;padding-top:20px;border-top:1px solid var(--sys-border)}
.wizard-actions .btn{display:flex;align-items:center;gap:8px}
.step-dots{display:flex;gap:6px}.step-dots span{width:7px;height:7px;border-radius:50%;background:#D8DCE5;transition:.2s}
.step-dots span.active{width:24px;border-radius:10px;background:var(--sys-primary)}
.password-field{position:relative}.password-field .toggle-password{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:none;background:transparent;color:var(--sys-muted);z-index:3}
.password-field .form-control{padding-right:42px}
.completion-summary{display:flex;align-items:flex-start;gap:13px;border:1px solid rgba(255,122,26,.25);background:var(--sys-primary-faint);border-radius:13px;padding:15px}
.completion-summary>i{color:var(--sys-primary);font-size:1.3rem}.completion-summary strong,.completion-summary small{display:block}
.completion-summary strong{font-size:.82rem}.completion-summary small{color:var(--sys-muted);font-size:.72rem;line-height:1.5;margin-top:3px}

/* Login */
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}
.login-visual{position:relative;padding:38px 6vw;color:#fff;background:radial-gradient(circle at 28% 27%,rgba(255,122,26,.28),transparent 34%),linear-gradient(145deg,var(--sys-sidebar),var(--sys-sidebar-deep));display:flex;flex-direction:column;overflow:hidden}
.login-visual:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;border:90px solid rgba(255,255,255,.025);right:-160px;bottom:-180px}
.login-visual .system-brand{color:#fff}.login-visual .system-brand small{color:var(--sys-sidebar-muted)}
.login-message{max-width:640px;margin:auto 0;position:relative;z-index:1}
.login-message h1{font-size:3.1rem;line-height:1.14;font-weight:800;margin:15px 0 20px;color:#fff}
.login-message p{font-size:1rem;line-height:1.75;color:var(--sys-sidebar-muted);max-width:580px}
.login-modules{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:34px}
.login-modules span{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);padding:13px 15px;border-radius:12px;font-size:.78rem;font-weight:700}
.login-modules i{color:var(--sys-primary);margin-right:8px}
.login-form-side{display:grid;place-items:center;padding:35px;background:var(--sys-bg)}
.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--sys-border);padding:36px;border-radius:20px;box-shadow:var(--sys-shadow-lg)}
.login-card h2{font-size:1.75rem;font-weight:800;margin:8px 0}.login-card>p{color:var(--sys-muted);font-size:.86rem;margin-bottom:25px}
.input-with-icon{position:relative}.input-with-icon>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--sys-primary);z-index:2}
.input-with-icon>.form-control{padding-left:42px}.input-with-icon.password-field .toggle-password{right:10px}
.auth-link{color:var(--sys-primary);font-size:.75rem;font-weight:700}.login-submit{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px}
.login-help{display:flex;gap:9px;border-top:1px solid var(--sys-border);margin-top:25px;padding-top:20px;color:var(--sys-muted);font-size:.7rem;line-height:1.5}.login-help i{color:var(--sys-success);font-size:1rem}

/* Aplicação administrativa: Mofi claro + laranja */
.system-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}
.system-sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;color:var(--sys-sidebar-text);background:linear-gradient(180deg,var(--sys-sidebar),var(--sys-sidebar-deep));padding:18px 14px;display:flex;flex-direction:column;z-index:100;transition:.2s;box-shadow:6px 0 25px rgba(38,49,73,.09)}
.system-sidebar .system-brand{padding:4px 10px 20px;color:#fff}.system-sidebar .system-brand small{color:var(--sys-sidebar-muted)}
.tenant-card{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:11px;margin-bottom:18px}
.tenant-icon{width:36px;height:36px;border-radius:10px;background:rgba(255,122,26,.17);color:var(--sys-primary);display:grid;place-items:center}
.tenant-card div{min-width:0}.tenant-card small,.tenant-card strong,.tenant-card div>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tenant-card small{font-size:.58rem;color:#929CB0;text-transform:uppercase;letter-spacing:.8px}.tenant-card strong{font-size:.75rem;margin:2px 0;color:#fff}.tenant-card div>span{font-size:.61rem;color:var(--sys-sidebar-muted)}
.system-nav{overflow-y:auto;padding-right:3px}.nav-section{display:block;font-size:.56rem;color:#8F99AD;font-weight:800;letter-spacing:1.4px;margin:16px 11px 7px}
.system-nav a{display:flex;align-items:center;gap:12px;color:#C3CAD8;font-size:.77rem;font-weight:700;padding:10px 12px;border-radius:9px;margin-bottom:3px;transition:.15s}
.system-nav a i{font-size:.98rem;width:18px}.system-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.system-nav a.active{background:var(--sys-primary);color:#fff;box-shadow:0 8px 18px rgba(255,122,26,.26)}
.system-nav a em{font-style:normal;font-size:.52rem;margin-left:auto;border:1px solid currentColor;border-radius:4px;padding:1px 4px;opacity:.8}
.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 9px;border-top:1px solid rgba(255,255,255,.09)}
.status-dot{width:8px;height:8px;border-radius:50%;background:#35C784;box-shadow:0 0 0 4px rgba(53,199,132,.13)}
.sidebar-footer strong,.sidebar-footer small{display:block}.sidebar-footer strong{font-size:.67rem;color:#fff}.sidebar-footer small{font-size:.57rem;color:#96A0B4;margin-top:2px}
.system-main{grid-column:2;min-width:0}
.system-topbar{height:82px;background:#fff;border-bottom:1px solid var(--sys-border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:80;box-shadow:0 4px 18px rgba(39,48,73,.035)}
.page-heading h1{font-size:1.12rem;font-weight:800;margin:0;color:var(--sys-text)}.page-heading span{font-size:.64rem;color:var(--sys-muted)}
.topbar-actions{display:flex;align-items:center;gap:10px}.global-search{position:relative;width:270px}.global-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--sys-dim)}
.global-search input{width:100%;height:42px;border:1px solid transparent;background:#F4F6FA;border-radius:22px;color:var(--sys-text);padding:0 14px 0 40px;font-size:.73rem}
.global-search input:focus{outline:none;border-color:rgba(255,122,26,.45);background:#fff;box-shadow:0 0 0 3px var(--sys-primary-soft)}
.icon-button{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid transparent;background:#F4F6FA;color:#60687A;display:grid;place-items:center}
.icon-button:hover{color:var(--sys-primary);background:var(--sys-primary-faint)}
.notification-count{position:absolute;right:-2px;top:-2px;min-width:16px;height:16px;border-radius:10px;background:var(--sys-primary);color:#fff;display:grid;place-items:center;font-size:.52rem;font-weight:800}
.sidebar-trigger{display:none}.user-menu{display:flex;align-items:center;gap:9px;margin-left:5px;padding-left:12px;border-left:1px solid var(--sys-border)}
.user-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,var(--sys-primary),var(--sys-primary-dark));color:#fff;display:grid;place-items:center;font-weight:800}
.user-menu strong,.user-menu small{display:block}.user-menu strong{font-size:.7rem}.user-menu small{font-size:.58rem;color:var(--sys-muted);margin-top:2px}
.logout-button{border:none;background:transparent;color:var(--sys-dim);padding:5px}.logout-button:hover{color:var(--sys-danger)}
.system-content{padding:25px 26px 32px}
.welcome-strip{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;margin-bottom:24px;border:1px solid #F1E4D9;background:linear-gradient(120deg,#FFF8F2,#fff 60%);border-radius:17px;box-shadow:var(--sys-shadow)}
.welcome-strip:before{content:"";position:absolute;width:245px;height:245px;border-radius:50%;background:radial-gradient(circle,rgba(255,122,26,.13),rgba(255,122,26,0) 67%);right:13%;top:-105px}
.welcome-strip:after{content:"";position:absolute;width:130px;height:130px;border-radius:28px;transform:rotate(25deg);border:24px solid rgba(255,122,26,.045);right:5%;bottom:-75px}
.welcome-strip h2{font-size:1.55rem;font-weight:800;margin:6px 0}.welcome-strip p{color:var(--sys-muted);font-size:.79rem;margin:0}
.welcome-actions{display:flex;gap:9px;position:relative;z-index:1}.welcome-actions .btn{white-space:nowrap;display:flex;align-items:center;gap:8px}
.metric-card,.system-card{background:#fff;border:1px solid var(--sys-border);border-radius:15px;box-shadow:0 8px 24px rgba(39,48,73,.045)}
.metric-card{display:flex;align-items:center;gap:13px;padding:17px;height:100%;transition:.18s}.metric-card:hover{transform:translateY(-2px);box-shadow:var(--sys-shadow)}
.metric-icon{width:47px;height:47px;border-radius:13px;display:grid;place-items:center;font-size:1.15rem;flex:none}
.metric-icon.orange{background:var(--sys-primary-soft);color:var(--sys-primary)}.metric-icon.green{background:rgba(34,160,107,.11);color:var(--sys-success)}
.metric-icon.blue{background:rgba(47,128,237,.1);color:var(--sys-info)}.metric-icon.violet{background:rgba(124,103,216,.1);color:var(--sys-violet)}
.metric-card small,.metric-card strong,.metric-card em{display:block}.metric-card small{font-size:.62rem;color:var(--sys-muted)}
.metric-card strong{font-family:'Poppins';font-size:1.08rem;margin:3px 0;color:var(--sys-text)}.metric-card em{font-size:.58rem;color:var(--sys-dim);font-style:normal}
.system-card{padding:20px}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-heading h3{font-size:.94rem;font-weight:800;margin:4px 0 0}
.progress-label{font-size:.63rem;font-weight:700;color:var(--sys-primary);background:var(--sys-primary-faint);padding:5px 9px;border-radius:20px}
.setup-list{border-top:1px solid var(--sys-border)}.setup-item{display:flex;align-items:center;gap:12px;padding:14px 3px;border-bottom:1px solid var(--sys-border)}
.setup-item>span{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;background:#F3F5F9;color:var(--sys-muted)}.setup-item.completed>span{background:rgba(34,160,107,.1);color:var(--sys-success)}
.setup-item>div{flex:1}.setup-item strong,.setup-item small{display:block}.setup-item strong{font-size:.72rem}.setup-item small{font-size:.61rem;color:var(--sys-muted);margin-top:3px}
.setup-item button,.setup-item em{border:1px solid var(--sys-border);background:#F7F8FB;color:var(--sys-text);border-radius:8px;padding:6px 10px;font-size:.6rem;font-weight:700;font-style:normal}
.setup-item button:hover{border-color:var(--sys-primary);color:var(--sys-primary);background:var(--sys-primary-faint)}
.setup-item.completed em{background:rgba(34,160,107,.08);border-color:rgba(34,160,107,.18);color:var(--sys-success)}
.business-profile{display:flex;align-items:center;gap:12px;padding:14px;background:#F8F9FC;border:1px solid var(--sys-border);border-radius:12px;margin-bottom:12px}
.profile-icon{width:45px;height:45px;border-radius:12px;background:var(--sys-primary-soft);color:var(--sys-primary);display:grid;place-items:center;font-size:1.15rem}
.business-profile strong,.business-profile small{display:block}.business-profile strong{font-size:.74rem}.business-profile small{font-size:.62rem;color:var(--sys-muted);margin-top:3px}
.profile-row{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid var(--sys-border);font-size:.65rem}.profile-row span{color:var(--sys-muted)}.profile-row strong{text-transform:capitalize}
.module-cloud{display:flex;flex-wrap:wrap;gap:8px}.module-cloud span{display:flex;align-items:center;gap:6px;background:#F7F8FB;border:1px solid var(--sys-border);padding:7px 9px;border-radius:8px;font-size:.62rem;font-weight:700}.module-cloud i{color:var(--sys-primary)}

/* POS: área exclusivamente escura e independente */
.pos-body{min-height:100vh;background:var(--sys-bg);color:var(--sys-text)}
.pos-shell{min-height:100vh;background:var(--sys-bg)}
.pos-topbar{height:68px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--sys-surface);border-bottom:1px solid var(--sys-border);position:sticky;top:0;z-index:50}
.pos-topbar .system-brand{color:#fff}.pos-topbar .system-brand small{color:var(--sys-muted)}
.pos-company{flex:1;min-width:0;display:flex;align-items:center;gap:12px;margin-left:24px;padding-left:24px;border-left:1px solid var(--sys-border)}
.pos-company i{width:36px;height:36px;border-radius:10px;background:var(--sys-primary-soft);color:var(--sys-primary);display:grid;place-items:center}.pos-company strong,.pos-company small{display:block}.pos-company strong{font-size:.76rem}.pos-company small{font-size:.61rem;color:var(--sys-muted);margin-top:2px}
.pos-actions{display:flex;align-items:center;gap:9px}.pos-actions .btn{padding:.62rem .92rem;font-size:.7rem;display:flex;align-items:center;gap:7px}.pos-user{display:flex;align-items:center;gap:8px;padding-left:12px;border-left:1px solid var(--sys-border)}
.pos-user .user-avatar{border-radius:10px}.pos-user strong,.pos-user small{display:block}.pos-user strong{font-size:.69rem}.pos-user small{font-size:.57rem;color:var(--sys-muted)}
.pos-content{padding:24px}
.pos-profile-hero{display:flex;align-items:center;gap:16px;padding:24px;background:linear-gradient(135deg,var(--sys-primary-soft),var(--sys-surface));border:1px solid rgba(255,122,26,.25);border-radius:16px;margin-bottom:22px}
.pos-hero-icon{width:62px;height:62px;border-radius:16px;background:var(--sys-primary);color:#fff;display:grid;place-items:center;font-size:1.7rem}
.pos-profile-hero h2{font-size:1.4rem;margin:4px 0}.pos-profile-hero p{color:var(--sys-muted);font-size:.75rem;margin:0}
.profile-badge{margin-left:auto;color:#45D491;font-size:.68rem;font-weight:700;background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.2);padding:8px 11px;border-radius:20px}
.pos-body .system-card{background:var(--sys-surface);border-color:var(--sys-border);box-shadow:none}
.empty-feature{text-align:center;padding:55px 25px}.empty-feature>i{font-size:2.5rem;color:var(--sys-primary)}.empty-feature h3{font-size:1.1rem;margin:15px 0 8px}.empty-feature p{color:var(--sys-muted);font-size:.76rem;max-width:600px;margin:0 auto}
.feature-tags{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:20px}.feature-tags span{background:var(--sys-surface-3);border:1px solid var(--sys-border);border-radius:20px;padding:6px 11px;font-size:.6rem;font-weight:700}

.simple-error{min-height:100vh;display:grid;place-content:center;text-align:center;padding:30px}.simple-error>span{font-family:'Poppins';font-size:6rem;font-weight:900;color:var(--sys-primary);line-height:1}.simple-error h1{font-size:1.6rem}.simple-error p{color:var(--sys-muted)}.simple-error .btn{justify-self:center}

@media(max-width:1100px){
  .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.registration-shell{grid-template-columns:300px 1fr}.registration-aside{padding:28px 24px}.global-search{display:none}
}
@media(max-width:900px){
  .registration-shell{display:block}.registration-aside{min-height:auto}.registration-intro{margin-top:40px}.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:30px 0 10px}.wizard-progress:before{display:none}.wizard-progress li{display:block;margin:0;text-align:center}.wizard-progress li>span{margin:0 auto 7px}.wizard-progress li small{display:none}.aside-security{display:none}.registration-content{padding:24px}.registration-content form{padding:22px}
  .login-shell{grid-template-columns:1fr}.login-visual{min-height:420px}.login-message h1{font-size:2.35rem}.system-shell{display:block}.system-sidebar{transform:translateX(-100%);box-shadow:var(--sys-shadow-lg)}.system-sidebar.open{transform:translateX(0)}.system-main{margin-left:0}.sidebar-trigger{display:grid}.system-content{padding:20px}.welcome-strip{align-items:flex-start;flex-direction:column}.topbar-actions .user-menu>div{display:none}.pos-company{display:none}
}
@media(max-width:640px){
  .business-grid{grid-template-columns:1fr;max-height:none}.registration-content{padding:16px}.registration-content form{padding:18px}.registration-topline{margin-bottom:20px}.registration-topline>span{display:none}.wizard-heading h2{font-size:1.45rem}.wizard-actions .step-dots{display:none}.wizard-actions{gap:10px}.wizard-actions .btn{flex:1;justify-content:center}
  .login-visual{padding:28px 22px}.login-message h1{font-size:2rem}.login-modules{grid-template-columns:1fr}.login-form-side{padding:20px 14px}.login-card{padding:25px 20px}.system-topbar{padding:0 15px}.system-content{padding:15px}.welcome-actions{width:100%;flex-direction:column}.welcome-actions .btn{justify-content:center}.page-heading span{display:none}
  .pos-topbar{padding:0 12px}.pos-topbar .system-brand span:last-child{display:none}.pos-actions .btn span{display:none}.pos-user>div{display:none}.pos-content{padding:14px}.pos-profile-hero{align-items:flex-start;flex-wrap:wrap}.profile-badge{margin-left:0}
}

/* ============================================================
   BANKENE ERP 1.2 — fidelidade visual ao Mofi
   Administrativo claro; somente elementos primários em laranja.
   ============================================================ */
:root{
  --theme-default:#FF7A1A;
  --theme-secondary:#48A3D7;
  --sys-primary:#FF7A1A;
  --sys-primary-dark:#E8650A;
  --sys-primary-soft:rgba(255,122,26,.10);
  --sys-primary-faint:#FFF6EF;
  --sys-bg:#F5F6FA;
  --sys-border:#E9ECF3;
  --sys-text:#2B2F3A;
  --sys-muted:#777E90;
  --sys-sidebar:#2F3B59;
  --sys-sidebar-deep:#2F3B59;
}
.system-auth-body,.system-app-body{font-family:'Outfit',sans-serif}
.system-auth-body h1,.system-auth-body h2,.system-auth-body h3,.system-auth-body h4,.system-auth-body h5,.system-auth-body h6,.system-auth-body .system-brand strong,.system-auth-body .btn,
.system-app-body h1,.system-app-body h2,.system-app-body h3,.system-app-body h4,.system-app-body h5,.system-app-body h6,.system-app-body .system-brand strong,.system-app-body .btn{font-family:'Outfit',sans-serif}

/* Neutraliza o roxo nativo do Mofi sem alterar as cores funcionais. */
.btn-primary,.btn-primary:hover,.btn-primary:focus,.btn-primary:active,
.btn-primary.disabled,.btn-primary:disabled{
  background:#FF7A1A !important;border-color:#FF7A1A !important;color:#fff !important;
}
.btn-primary:hover,.btn-primary:active{background:#E8650A !important;border-color:#E8650A !important}
.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(255,122,26,.2) !important}
.bg-primary{background-color:#FF7A1A !important}.text-primary,.font-primary{color:#FF7A1A !important}
.border-primary{border-color:#FF7A1A !important}.badge-primary{background-color:#FF7A1A !important}
.btn-outline-primary{color:#FF7A1A !important;border-color:#FF7A1A !important}
.btn-outline-primary:hover{background:#FF7A1A !important;color:#fff !important}

/* Cadastro com a estrutura visual do painel Mofi. */
.system-auth-body{background:#F5F6FA;overflow-x:hidden}
.mofi-registration.registration-shell{
  min-height:100vh;display:grid;grid-template-columns:255px minmax(0,1fr);background:#F5F6FA;
}
.mofi-registration .registration-aside{
  position:fixed;inset:0 auto 0 0;width:255px;padding:22px 16px 18px;background:#2F3B59;
  color:#fff;box-shadow:none;display:flex;flex-direction:column;overflow-y:auto;z-index:100;
}
.mofi-registration .registration-aside:after{display:none}
.mofi-registration .system-brand{padding:2px 8px 22px;border-bottom:1px solid rgba(255,255,255,.09)}
.mofi-registration .system-brand .brand-symbol{
  width:39px;height:39px;border-radius:9px;background:#FF7A1A;box-shadow:none;font-size:1rem;
}
.mofi-registration .system-brand strong{font-size:1.08rem;letter-spacing:.3px}
.mofi-registration .system-brand small{font-size:.53rem;color:#AEB7CA;letter-spacing:1.3px}
.setup-menu-title{font-size:.66rem;font-weight:700;letter-spacing:1.3px;color:#9DA7BA;margin:24px 11px 10px}
.mofi-registration .wizard-progress{margin:0;padding:0;list-style:none}
.mofi-registration .wizard-progress:before{display:none}
.mofi-registration .wizard-progress li{
  display:flex;align-items:center;gap:11px;margin:0 0 6px;padding:11px 10px;border-radius:7px;color:#C8CEDA;
  transition:.18s;background:transparent;
}
.mofi-registration .wizard-progress li>span{
  width:31px;height:31px;min-width:31px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);
  color:#BEC6D5;font-size:.72rem;box-shadow:none;
}
.mofi-registration .wizard-progress li strong{font-size:.78rem;color:#DDE2EB;font-weight:600}
.mofi-registration .wizard-progress li small{font-size:.61rem;color:#9EA8BA;margin-top:2px}
.mofi-registration .wizard-progress li.active{background:#FF7A1A;color:#fff}
.mofi-registration .wizard-progress li.active>span{
  background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.32);box-shadow:none;color:#fff;
}
.mofi-registration .wizard-progress li.active strong,.mofi-registration .wizard-progress li.active small{color:#fff}
.mofi-registration .wizard-progress li.done{background:rgba(255,255,255,.055)}
.mofi-registration .wizard-progress li.done>span{background:#FF7A1A;border-color:#FF7A1A;box-shadow:none}
.mofi-registration .aside-security{
  margin-top:auto;padding:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:8px;
}
.mofi-registration .aside-security>i{color:#FF7A1A}
.mofi-registration .aside-security strong{font-size:.7rem}.mofi-registration .aside-security small{font-size:.59rem;color:#AEB7CA}

.registration-main{grid-column:2;min-width:0;min-height:100vh}
.registration-topbar{
  height:84px;padding:0 32px;background:#fff;border-bottom:1px solid #EEF0F5;display:flex;align-items:center;
  justify-content:space-between;position:sticky;top:0;z-index:50;
}
.registration-page-title h1{font-size:1.2rem;font-weight:700;color:#343846;margin:0 0 4px}
.mofi-breadcrumb{display:flex;align-items:center;gap:7px;color:#8990A0;font-size:.67rem}
.mofi-breadcrumb i{color:#596174}.mofi-breadcrumb strong{color:#FF7A1A;font-weight:600}
.registration-login-link{
  display:flex;align-items:center;gap:8px;color:#535B6D;font-size:.75rem;font-weight:600;padding:9px 13px;
  border-radius:7px;background:#F6F7FA;border:1px solid #EEF0F4;
}
.registration-login-link:hover{color:#FF7A1A;border-color:rgba(255,122,26,.3);background:#FFF8F3}
.registration-login-link>i:first-child{font-size:1rem;color:#FF7A1A}
.mofi-registration .registration-content{padding:24px 28px 36px;background:#F5F6FA;min-width:0}
.mofi-wizard-card{
  max-width:1180px;margin:0 auto;background:#fff;border:1px solid #EBEDF2;border-radius:12px;padding:24px 26px;
  box-shadow:0 2px 8px rgba(38,45,62,.04);
}
.mofi-registration .wizard-heading{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:18px;
  border-bottom:1px solid #EEF0F4;
}
.mofi-registration .wizard-heading h2{font-size:1.35rem;font-weight:700;margin:4px 0;color:#303442}
.mofi-registration .wizard-heading p{font-size:.77rem;color:#7F8696;margin:0}
.mofi-registration .step-label{color:#FF7A1A;font-size:.61rem;letter-spacing:1.1px}
.wizard-status{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:6px;background:#FFF4EB;color:#FF7A1A;font-size:.65rem;font-weight:600;white-space:nowrap}

.mofi-registration .business-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:none;overflow:visible;padding:0;
}
.mofi-registration .business-card{
  min-height:123px;padding:15px;border-radius:9px;border:1px solid #E7EAF0;background:#fff;box-shadow:none;gap:12px;
}
.mofi-registration .business-card:hover{transform:none;border-color:rgba(255,122,26,.55);box-shadow:0 4px 14px rgba(42,48,65,.07)}
.mofi-registration .business-card.selected{
  border-color:#FF7A1A;background:#FFF9F5;box-shadow:0 0 0 1px rgba(255,122,26,.11);
}
.mofi-registration .business-icon{
  width:39px;height:39px;border-radius:8px;background:#F2F4F8;color:#FF7A1A;font-size:1rem;
}
.mofi-registration .business-card.selected .business-icon{background:#FF7A1A;color:#fff}
.mofi-registration .business-content strong{font-size:.78rem;font-weight:600;color:#303442;margin-bottom:4px;padding-right:18px}
.mofi-registration .business-content small{font-size:.63rem;line-height:1.4;color:#7D8494}
.mofi-registration .business-content em{margin-top:7px;font-size:.56rem;color:#FF7A1A;text-transform:capitalize}
.mofi-registration .business-check{right:8px;top:8px;width:19px;height:19px;font-size:.62rem;background:#FF7A1A}

.mofi-registration .form-label{font-size:.73rem;color:#434958;font-weight:600}
.mofi-registration .form-control,.mofi-registration .form-select{
  min-height:44px;border-radius:7px;background:#fff;border-color:#E1E5EC;font-size:.79rem;padding:.62rem .78rem;
}
.mofi-registration textarea.form-control{min-height:86px}
.mofi-registration .form-control:focus,.mofi-registration .form-select:focus{border-color:#FF7A1A;box-shadow:0 0 0 3px rgba(255,122,26,.09)}
.mofi-registration .completion-summary{border-radius:8px;background:#FFF8F3;border-color:#FFD9BC}
.mofi-registration .wizard-actions{margin-top:24px;padding-top:18px;border-color:#EEF0F4}
.mofi-registration .wizard-actions .btn{border-radius:7px;padding:.65rem 1rem;font-size:.72rem;box-shadow:none}
.mofi-registration .btn-outline-secondary{background:#fff;border-color:#DDE2EA;color:#596174}
.mofi-registration .btn-outline-secondary:hover{background:#F6F7FA;border-color:#CCD2DD;color:#303442}
.mofi-registration .step-dots span{background:#E2E5EC}.mofi-registration .step-dots span.active{background:#FF7A1A}

/* Admin mantém o desenho do Mofi; apenas o destaque principal passa a laranja. */
.system-sidebar{background:#2F3B59 !important;box-shadow:none}
.system-sidebar .system-brand .brand-symbol{background:#FF7A1A;box-shadow:none}
.system-nav a{border-radius:6px;font-weight:500}.system-nav a.active{background:#FF7A1A;box-shadow:none}
.tenant-card{border-radius:8px}.tenant-icon{color:#FF7A1A;background:rgba(255,122,26,.13)}
.system-topbar{height:84px;box-shadow:none;border-bottom-color:#EEF0F5}
.system-content{background:#F5F6FA}
.metric-card,.system-card{border-radius:10px;box-shadow:0 2px 8px rgba(38,45,62,.04)}
.welcome-strip{border-radius:10px;box-shadow:0 2px 8px rgba(38,45,62,.04)}

@media(max-width:1100px){
  .mofi-registration.registration-shell{grid-template-columns:225px minmax(0,1fr)}
  .mofi-registration .registration-aside{width:225px}
  .mofi-registration .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .mofi-registration.registration-shell{display:block}
  .mofi-registration .registration-aside{position:relative;width:100%;min-height:auto;padding:15px}
  .mofi-registration .system-brand{padding-bottom:14px}
  .setup-menu-title{margin:15px 5px 8px}
  .mofi-registration .wizard-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .mofi-registration .wizard-progress li{display:block;text-align:center;padding:8px 4px;margin:0}
  .mofi-registration .wizard-progress li>span{margin:0 auto 6px}
  .mofi-registration .wizard-progress li small{display:none}
  .mofi-registration .aside-security{display:none}
  .registration-main{grid-column:1}
  .registration-topbar{position:relative;height:72px;padding:0 18px}
  .mofi-registration .registration-content{padding:16px}
  .mofi-wizard-card{padding:20px}
}
@media(max-width:600px){
  .registration-page-title h1{font-size:1.02rem}.mofi-breadcrumb{display:none}
  .registration-login-link span{display:none}
  .mofi-registration .business-grid{grid-template-columns:1fr}
  .mofi-registration .wizard-heading{display:block}.wizard-status{display:none}
  .mofi-registration .wizard-actions{gap:8px}.mofi-registration .wizard-actions .btn{flex:1;justify-content:center}
}

.mofi-registration .registration-content form.mofi-wizard-card{max-width:1180px;margin:0 auto;background:#fff;border:1px solid #EBEDF2;border-radius:12px;padding:24px 26px;box-shadow:0 2px 8px rgba(38,45,62,.04)}
@media(max-width:820px){.mofi-registration .registration-content form.mofi-wizard-card{padding:20px}}
