/* ÉPICOMENU v20 — camada visual própria, inspirada em boas práticas de SaaS.
   Esta folha altera apenas a aparência do painel e não interfere no cardápio público. */
:root{--ep20-red:#e30613;--ep20-wine:#931421;--ep20-ink:#17253b;--ep20-muted:#748093;--ep20-bg:#f5f6f9;--ep20-border:#e4e8ef;--ep20-shadow:0 4px 18px rgba(21,37,60,.035)}
.ep20-admin{background:var(--ep20-bg);color:var(--ep20-ink);min-height:100vh}
.ep20-admin .ep20-sidebar{width:262px;background:#fff;color:#465268;padding:0 13px 15px;border-right:1px solid var(--ep20-border);box-shadow:none;transition:width .18s ease}
.ep20-admin .admin-main{margin-left:262px;transition:margin-left .18s ease}
.ep20-admin .ep20-sidebar .ep20-sidebar-brand{height:88px;display:flex;align-items:center;justify-content:center;min-width:0;flex-shrink:0;border-bottom:1px solid #edf0f5;margin-bottom:11px}
.ep20-admin .ep20-sidebar .ep-brand{background:transparent!important;border-radius:0!important;margin:0!important;min-height:0!important;width:100%;padding:6px 10px!important;box-shadow:none!important;justify-content:center}
.ep20-admin .ep20-sidebar .ep-brand img{width:186px!important;height:auto!important;max-height:62px!important;object-fit:contain;object-position:center!important}
.ep20-mini-emblem{display:none;align-items:center;justify-content:center;width:42px;height:42px;color:#e30613;font-size:30px;font-weight:950;letter-spacing:-.06em}
.ep20-admin .ep20-sidebar nav{display:block;overflow:auto;padding:0 1px 12px;flex:1;min-height:0}
.ep20-admin .ep20-nav-section{padding:2px 0 12px;margin-bottom:10px;border-bottom:1px solid #eef1f5}
.ep20-admin .ep20-nav-section:last-child{margin-bottom:0;border-bottom:0}
.ep20-admin .ep20-nav-label{padding:11px 12px 7px;margin:0;color:#8b95a5;letter-spacing:.12em;font-weight:850;font-size:10px;line-height:1.4;border:0}
.ep20-admin .ep20-sidebar .sidebar-link{position:relative;display:flex;width:100%;align-items:center;justify-content:flex-start;gap:12px;border-radius:9px;min-height:42px;padding:9px 13px;margin:3px 0;color:#536073;background:transparent;border:0;transition:background .13s ease,color .13s ease;text-decoration:none;font-size:12.5px;font-weight:660}
.ep20-admin .ep20-sidebar .sidebar-link .icon{width:19px;height:19px;flex:none;stroke-width:1.7;fill:none;color:#6a7586}
.ep20-admin .ep20-sidebar .sidebar-link .icon-fill{fill:currentColor;stroke:0}
.ep20-admin .ep20-sidebar .sidebar-link.active{color:#b21b25;background:#fff0ee;font-weight:850}
.ep20-admin .ep20-sidebar .sidebar-link.active:before{content:'';position:absolute;width:3px;height:21px;left:0;top:50%;transform:translateY(-50%);background:var(--ep20-red);border-radius:4px}
.ep20-admin .ep20-sidebar .sidebar-link.active .icon{color:#d10d18}
.ep20-admin .ep20-sidebar .sidebar-link:hover{background:#f5f6f8;color:#192e45}
.ep20-admin .ep20-sidebar .sidebar-link.active:hover{background:#ffeded;color:#ae1922}
.ep20-admin .ep20-store-switch{flex:none;display:flex;align-items:center;gap:10px;background:#f7f8fa;border:1px solid #e5e8ee;border-radius:11px;margin-top:12px;padding:10px 9px;color:#273952;text-decoration:none;min-width:0;min-height:63px}
.ep20-admin .ep20-store-switch .side-avatar{width:37px;height:37px;border-radius:10px;background:#192638;color:#fff;flex:none;font-size:12px}
.ep20-admin .ep20-store-text{min-width:0;flex:1}.ep20-store-text strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ep20-store-text small{display:block;color:#8d9baa;font-size:10px;margin-top:3px}
.ep20-admin .ep20-store-switch>.icon{height:15px;width:15px;transform:rotate(-90deg);color:#97a1ae}
.ep20-admin .ep20-header{position:sticky;top:0;z-index:32;background:#fff;border-bottom:1px solid var(--ep20-border);height:74px;padding:0 clamp(16px,2.3vw,34px);box-shadow:none}
.ep20-header-left{display:flex;align-items:center;gap:15px;min-width:0}
.ep20-nav-toggle{width:37px;height:37px;border:1px solid #e5eaf0;background:#fff;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#556176;flex:none}
.ep20-nav-toggle:hover,.ep20-nav-toggle:focus-visible{color:var(--ep20-red);background:#fff7f7;border-color:#e7c1c4}
.ep20-nav-toggle .icon{width:19px;height:19px}
.ep20-page-crumb{display:grid;gap:2px;min-width:0}.ep20-page-crumb>span{color:#8993a3;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ep20-page-crumb>span span{color:#c6cbd4;padding:0 4px}.ep20-page-crumb>strong{font-size:17px;color:#233049;line-height:1.25;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep20-admin .admin-header-actions{gap:11px;min-width:0}
.ep20-admin .admin-header-actions .theme-switch{min-height:34px;padding:7px 10px;background:#fff;border:1px solid #e4e8ef;border-radius:9px;color:#46566d;font-size:11px}
.ep20-orders-shortcut,.ep20-store-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;border:1px solid #e1e7ed;border-radius:9px;padding:6px 10px;background:#fff;color:#4d5c70;font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}
.ep20-orders-shortcut:hover,.ep20-store-shortcut:hover{background:#fff3f2;color:#b21d23;border-color:#efcbce}
.ep20-orders-shortcut b{background:#fcecec;color:#b31f25;border-radius:20px;min-width:21px;min-height:19px;padding:2px 5px;text-align:center;font-size:10px}
.ep20-user{display:flex;align-items:center;gap:8px;text-decoration:none;color:#2b394f;padding-left:12px;border-left:1px solid #ecedf2;min-width:0}
.ep20-user .top-user-avatar{width:34px;height:34px;border-radius:50%;background:#ebedf1;color:#26354a;font-size:12px;font-weight:850;flex:none}
.ep20-user-label{display:grid;gap:2px;min-width:0;max-width:140px}.ep20-user-label strong{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ep20-user-label small{color:#9aa4b0;font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ep20-user>.icon{width:13px;height:13px;color:#8a9aab;flex:none}.ep20-admin .ep20-logout{font-size:11px;border-radius:8px;padding:8px 10px}
.ep20-admin .admin-content{padding:25px clamp(16px,2.4vw,35px) 75px;max-width:1610px;margin:0 auto}
.ep20-admin .ep12-page-head{margin-bottom:19px}.ep20-admin .ep12-page-head h1{font-size:27px;color:#1d2b41;font-weight:850;letter-spacing:-.035em}
.ep20-admin .ep12-page-head p{color:#7c899a;font-size:12px}.ep20-admin .ep12-panel,.ep20-admin .surface-card,.ep20-admin .ep19-crm-metric,.ep20-admin .ep14-categories,.ep20-admin .ep14-table-wrap{border-radius:12px;border-color:var(--ep20-border);box-shadow:var(--ep20-shadow)}
.ep20-admin .ep12-info{border-radius:9px;padding:11px 14px;background:#f0f8f3;border-color:#d8eade;color:#337057;font-size:11px;margin-bottom:18px}
.ep20-admin .ep12-panel{padding:22px}.ep20-admin .ep12-panel h2{font-weight:830;letter-spacing:-.025em}
.ep20-admin .ep19-analytics{max-width:100%;gap:18px}
.ep20-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:4px 0 21px}
.ep20-eyebrow{font-size:10px;letter-spacing:.13em;color:#8c9aaa;font-weight:850;margin:0 0 8px}
.ep20-welcome h1{font-size:28px;line-height:1.16;letter-spacing:-.045em;color:#1d2e48;font-weight:900;margin:0 0 8px}
.ep20-welcome p:last-child{font-size:12.5px;color:#77879c;margin:0;line-height:1.55}
.ep20-session{display:inline-flex;align-items:center;gap:7px;background:#eff8f2;border:1px solid #d8eddf;border-radius:100px;padding:8px 12px;font-size:11px;color:#317154;white-space:nowrap;font-weight:700}
.ep20-overview-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:17px;margin-bottom:29px}
.ep20-store-card,.ep20-operations-card{min-height:175px;min-width:0;border-radius:13px;position:relative;overflow:hidden}
.ep20-store-card{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:1fr auto;gap:10px 14px;background:#fff;border:1px solid #e4e9f0;padding:21px;box-shadow:var(--ep20-shadow)}
.ep20-store-symbol{height:54px;width:54px;display:grid;place-items:center;background:#fff2f1;color:#be232c;border:1px solid #f2dddd;border-radius:13px;font-size:18px;font-weight:950}
.ep20-store-card h2{font-size:20px;color:#27344b;font-weight:850;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep20-store-card p{font-size:11px;line-height:1.5;color:#8392a2;margin:0}
.ep20-store-links{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap;margin-top:9px}
.ep20-store-links a{display:inline-flex;gap:7px;align-items:center;padding:9px 11px;border-radius:8px;border:1px solid #e0e5ed;color:#43566d;text-decoration:none;font-size:11px;font-weight:750;background:#fff}
.ep20-store-links a:hover{color:#c31b25;border-color:#eec6c8}
.ep20-operations-card{background:linear-gradient(115deg,#af2029,#d42934 78%,#e83d3d);color:#fff;border:1px solid #b9222a;padding:24px 26px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ep20-operations-card .ep20-eyebrow{color:#ffdedf}.ep20-operations-card h2{margin:4px 0 10px;font-size:clamp(23px,2.1vw,34px);letter-spacing:-.04em;line-height:1.15;color:white}
.ep20-operations-card p{font-size:11px;line-height:1.55;margin:0 0 13px;color:#ffe1e3;max-width:410px}
.ep20-operations-card a{display:inline-flex;align-items:center;gap:7px;color:#a71320;background:#fff;text-decoration:none;border-radius:7px;padding:9px 11px;font-size:11px;font-weight:850}
.ep20-operations-mark{display:grid;place-items:center;width:110px;height:110px;opacity:.12;transform:rotate(-12deg)}.ep20-operations-mark svg{width:100%;height:100%;stroke-width:1.2}
.ep20-section-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 -6px}
.ep20-section-heading h2{font-size:19px;letter-spacing:-.025em;margin:0 0 6px;color:#24324a}.ep20-section-heading p{font-size:12px;color:#8090a2;margin:0}
.ep20-section-heading>a{color:#b5202b;display:inline-flex;gap:3px;align-items:center;font-size:11px;font-weight:760;text-decoration:none;white-space:nowrap}
.ep20-admin .ep19-period-buttons{margin-top:0;padding:13px 15px;border:1px solid #e8ebf0;background:#fff;border-radius:11px;gap:6px}
.ep20-admin .ep19-period-buttons button{border-color:#e1e6ee;background:#fff;border-radius:7px;font-size:11px;padding:9px 11px;color:#566577}
.ep20-admin .ep19-period-buttons button.active{background:#bd202b;border-color:#bd202b;color:#fff}
.ep20-admin .ep19-period-buttons .ep19-update-btn{background:#fbfcfd;color:#55667c;border:1px solid #dfe5ed}
.ep20-admin .ep19-crm-metrics{gap:13px}.ep20-admin .ep19-crm-metric{padding:20px 17px;min-height:127px;gap:8px;background:#fff}
.ep20-admin .ep19-crm-metric>span{font-size:11px;color:#65748a}.ep20-admin .ep19-crm-metric strong{font-size:27px;letter-spacing:-.04em;color:#1d2e46}
.ep20-admin .ep19-crm-metric small{color:#8492a3;font-size:10px}.ep20-admin .ep19-crm-metric:nth-child(3){border-top:3px solid #d3242d}
.ep20-chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:13px;flex-wrap:wrap;margin-bottom:20px}
.ep20-chart-heading h2{margin:0 0 4px!important}.ep20-chart-heading p{font-size:11px;color:#8190a2;margin:0}.ep20-chart-caption{font-size:10px;color:#8b98a7;white-space:normal}
.ep20-admin .ep19-chart-grid{height:255px;padding-bottom:14px;background:repeating-linear-gradient(to top, transparent 0,transparent calc(25% - 1px),#edf1f6 calc(25% - 1px),#edf1f6 25%);background-size:100% calc(100% - 14px);background-repeat:no-repeat;border-bottom:1px solid #e7ebf1;gap:5px}
.ep20-admin .ep19-chart-column>span{background:linear-gradient(180deg,#ed5960,#c8232d);border-radius:5px 5px 0 0;width:min(62%,34px)}
.ep20-admin .ep19-chart-column>small{color:#8b96a6;font-size:10px}
.ep20-empty-chart{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:225px;color:#8190a2;text-align:center;padding:20px}
.ep20-empty-chart>.icon{height:32px;width:32px;color:#c0c9d4}.ep20-empty-chart strong{color:#42526a;font-size:13px}.ep20-empty-chart span{font-size:11px}
.ep20-admin .ep19-analytics-row{padding:13px 0;border-color:#eef1f4}.ep20-admin .ep19-analytics-row strong{color:#27344a}
.ep20-admin .ep19-crm-segments button.active,.ep20-admin .ep14-tabs button.active{color:#b61d2a}.ep20-admin .ep19-crm-segments button.active{background:#fff0f1;border-color:#e8c8cc}
.ep20-admin a:focus-visible,.ep20-admin button:focus-visible{outline:2px solid #df2a36;outline-offset:3px}
/* Expand/collapse on larger screens. Fixed sidebar width is independent of route content. */
@media(min-width:821px){
 .ep20-admin.ep20-compact .ep20-sidebar{width:76px;padding:0 8px 12px}
 .ep20-admin.ep20-compact .admin-main{margin-left:76px}
 .ep20-admin.ep20-compact .ep20-sidebar-brand{height:76px}
 .ep20-admin.ep20-compact .ep20-sidebar-brand .ep-brand{display:none!important}
 .ep20-admin.ep20-compact .ep20-mini-emblem{display:flex}
 .ep20-admin.ep20-compact .ep20-nav-label,.ep20-admin.ep20-compact .nav-text,.ep20-admin.ep20-compact .ep20-store-text,.ep20-admin.ep20-compact .ep20-store-switch>.icon{display:none}
 .ep20-admin.ep20-compact .ep20-nav-section{border:0;padding:5px 0 9px;margin:0 0 6px}
 .ep20-admin.ep20-compact .ep20-nav-section:not(:last-child):after{content:'';display:block;height:1px;background:#edf0f5;margin:8px 9px 0}
 .ep20-admin.ep20-compact .ep20-sidebar .sidebar-link{justify-content:center;gap:0;width:46px;height:44px;padding:9px;margin:3px auto;border-radius:10px}
 .ep20-admin.ep20-compact .ep20-sidebar .sidebar-link .icon{width:21px;height:21px}
 .ep20-admin.ep20-compact .ep20-store-switch{justify-content:center;margin-top:12px;padding:6px}
}
/* Under 820px the original v13 bottom navigation stays active, and no sidebar toggle is offered. */
@media(max-width:1200px){.ep20-user-label{display:none}.ep20-user{padding-left:7px}.ep20-admin .admin-header-actions{gap:7px}}
@media(max-width:1000px){.ep20-orders-shortcut span,.ep20-store-shortcut span{display:none}.ep20-admin .ep20-header{padding:0 17px}.ep20-admin .ep20-sidebar{width:225px}.ep20-admin .admin-main{margin-left:225px}.ep20-overview-top{grid-template-columns:1fr 1.1fr}}
@media(max-width:820px){
 .ep20-admin .ep20-sidebar{position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:68px!important;padding:0 8px!important;background:#fff;z-index:75}
 .ep20-admin .ep20-sidebar .ep20-sidebar-brand,.ep20-admin .ep20-sidebar .ep20-store-switch,.ep20-admin .ep20-nav-label,.ep20-admin .ep20-nav-section:not(:first-child):not(:nth-child(4)){display:none!important}
 .ep20-admin .ep20-nav-section:nth-child(4){display:contents}
 .ep20-admin .ep20-sidebar nav{display:flex;align-items:stretch;justify-content:space-around;width:100%;height:100%;overflow:visible;padding:0}
 .ep20-admin .ep20-nav-section:first-child{display:contents}
 .ep20-admin .ep20-sidebar .sidebar-link{display:none!important}
 .ep20-admin .ep20-sidebar .sidebar-link[href="#/painel"],.ep20-admin .ep20-sidebar .sidebar-link[href="#/pedidos"],.ep20-admin .ep20-sidebar .sidebar-link[href="#/catalogo"],.ep20-admin .ep20-sidebar .sidebar-link[href="#/empresa"]{display:flex!important;flex:1;flex-direction:column;justify-content:center;gap:3px;padding:6px 0;margin:0;min-width:0;font-size:9px;border-radius:7px}
 .ep20-admin .ep20-sidebar .sidebar-link .nav-text{display:inline;font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ep20-admin .ep20-sidebar .sidebar-link.active:before{width:28px;height:3px;left:50%;top:0;transform:translateX(-50%)}
 .ep20-admin .admin-main{margin-left:0!important;padding-bottom:68px}
 .ep20-admin .ep20-header{height:66px}.ep20-nav-toggle{display:none}.ep20-admin .admin-content{padding:22px 17px 88px}
 .ep20-user-label,.ep20-store-shortcut{display:none!important}
 .ep20-overview-top{grid-template-columns:1fr}.ep20-overview-top>*{min-height:156px}
}
@media(max-width:560px){
 .ep20-welcome{flex-direction:column;gap:12px}.ep20-welcome h1{font-size:24px}.ep20-session{font-size:10px}
 .ep20-admin .ep19-crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ep20-admin .ep19-crm-metric{min-height:119px;padding:14px 12px}.ep20-admin .ep19-crm-metric strong{font-size:21px}
 .ep20-admin .admin-header-actions .theme-switch,.ep20-admin .ep20-logout{display:none}.ep20-admin .ep20-header{gap:8px}.ep20-admin .ep20-page-crumb>strong{font-size:14px}
 .ep20-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.ep20-chart-caption{display:none}
 .ep20-admin .ep19-period-buttons{padding:10px}.ep20-admin .ep19-period-buttons button{padding:8px;font-size:10px}
 .ep20-operations-card{padding:20px}.ep20-operations-mark{display:none}.ep20-store-card{padding:17px}
}
/* Keep the existing dark-mode functionality legible. */
:root[data-theme='dark'] .ep20-admin{--ep20-bg:#101722;--ep20-border:#344151;--ep20-ink:#edf2fa;--ep20-shadow:none;background:#101722;color:#edf2fa}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar,:root[data-theme='dark'] .ep20-admin .ep20-header,:root[data-theme='dark'] .ep20-admin .ep20-store-card,:root[data-theme='dark'] .ep20-admin .ep19-period-buttons,:root[data-theme='dark'] .ep20-admin .ep19-crm-metric{background:#1b2634;border-color:#344151;color:#eaf0f9}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar .ep20-sidebar-brand,:root[data-theme='dark'] .ep20-admin .ep20-nav-section{border-color:#344151}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar .ep-brand{background:#fff!important;border-radius:9px!important;padding:4px 5px!important}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar .sidebar-link{color:#bbc5d5}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar .sidebar-link.active{color:#ffadb3;background:#4d2530}
:root[data-theme='dark'] .ep20-admin .ep20-sidebar .sidebar-link:hover{background:#2d3847;color:#f5f8ff}
:root[data-theme='dark'] .ep20-admin .ep20-nav-toggle,:root[data-theme='dark'] .ep20-admin .ep20-store-shortcut,:root[data-theme='dark'] .ep20-admin .ep20-orders-shortcut,:root[data-theme='dark'] .ep20-admin .ep20-store-links a{background:#263343;border-color:#405166;color:#e5eaf4}
:root[data-theme='dark'] .ep20-admin .ep20-page-crumb strong,:root[data-theme='dark'] .ep20-admin .ep20-welcome h1,:root[data-theme='dark'] .ep20-admin .ep20-section-heading h2,:root[data-theme='dark'] .ep20-admin .ep20-store-card h2,:root[data-theme='dark'] .ep20-admin .ep19-crm-metric strong{color:#f2f6fb}
:root[data-theme='dark'] .ep20-admin .ep20-store-switch{background:#263343;border-color:#405166;color:#f2f6fc}
:root[data-theme='dark'] .ep20-admin .ep20-store-symbol{background:#3c2632;border-color:#58333b;color:#ffe2e2}
:root[data-theme='dark'] .ep20-admin .ep20-empty-chart strong{color:#edf1fb}
@media(prefers-reduced-motion:reduce){.ep20-admin .ep20-sidebar,.ep20-admin .admin-main{transition:none}}
