/* ÉpicoMenu v12 — painel de gestão, inspirado nas referências de organização. */
.ep12-sidebar{overflow:hidden;box-shadow:1px 0 0 #e6e9ef}
.ep12-sidebar .ep-brand{background:#df0616!important;border-radius:14px!important;min-height:auto!important;padding:13px 10px!important;margin:2px 4px 14px!important;display:flex;justify-content:center;align-items:center;flex:none}
.ep12-sidebar .ep-brand img{width:196px!important;max-height:77px;object-position:center}
.ep12-sidebar nav{overflow-y:auto;min-height:0;scrollbar-width:thin;padding:0 1px 10px}
.ep12-sidebar .nav-label{font-size:10px;letter-spacing:.14em;color:#8f9cb1}
.ep12-sidebar .nav-label.ep12-subtitle{padding-top:18px;margin-top:8px;border-top:1px solid #eef0f4}
.ep12-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 22px}
.ep12-page-head h1{margin:0 0 5px;font-size:29px;line-height:1.15;letter-spacing:-.045em;color:#1c2a40}
.ep12-page-head p{margin:0;color:#748398;font-size:13px;line-height:1.55}
.ep12-panel{background:#fff;border:1px solid #e0e6ee;border-radius:16px;padding:24px;min-width:0;box-shadow:0 2px 9px #15203508}
.ep12-panel h2{font-size:17px;color:#1e2c43;margin:0 0 20px;letter-spacing:-.015em}
.ep12-info{display:flex;align-items:center;gap:9px;color:#256c54;background:#e9f8f0;border:1px solid #cdebd9;border-radius:11px;padding:12px 15px;font-size:12px;line-height:1.5;margin:0 0 22px}
.ep12-muted{color:#8290a2;font-size:12px;line-height:1.6;margin:16px 0 0}
.ep12-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.ep12-card-grid h2{font-size:16px;margin:0 0 20px;color:#202e44}
.ep12-fields{display:grid;gap:15px}
.ep12-field{display:grid;gap:7px;font-size:12px;font-weight:750;color:#536175;min-width:0}
.ep12-field>span{display:block}
.ep12-field input,.ep12-field textarea,.ep12-field select,.ep12-stack input:not([type=checkbox]),.ep12-stack select,.ep12-day-row input[type=time]{width:100%;min-width:0;border:1px solid #d8e0ea;color:#23324a;background:#fff;border-radius:9px;padding:11px 12px;outline:none;font:inherit;font-size:13px;line-height:1.5;min-height:43px}
.ep12-field input[type=color]{padding:4px;width:90px;cursor:pointer}
.ep12-field input:focus,.ep12-field textarea:focus,.ep12-field select:focus,.ep12-stack input:focus,.ep12-day-row input:focus{border-color:#cf3036;box-shadow:0 0 0 3px #cf30361a}
.ep12-field textarea{resize:vertical;min-height:95px}
.ep12-profile-form .ep12-card-grid{padding:20px 0 0}
.ep12-profile-top{position:relative}
.ep12-cover{height:175px;overflow:hidden;border-radius:12px;background:#26201e}
.ep12-cover img{height:100%;width:100%;object-fit:cover}
.ep12-profile-stamp{position:absolute;bottom:-21px;left:25px;background:#d80919;border:4px solid #fff;border-radius:12px;padding:8px 13px;box-shadow:0 4px 17px #0002}
.ep12-profile-stamp img{height:33px;max-width:135px;object-fit:contain;display:block}
.ep12-profile-stamp small{display:none}
.ep12-form-foot{display:flex;justify-content:flex-end;border-top:1px solid #e6eaf0;margin-top:22px;padding-top:20px}
.ep12-form-foot button{min-width:190px}
.ep12-day-list{display:grid;gap:1px;border:1px solid #e6eaf0;border-radius:11px;overflow:hidden}
.ep12-day-row{display:grid;grid-template-columns:100px 100px 1fr 1fr;align-items:center;gap:12px;padding:13px;background:#fff;border-bottom:1px solid #e6eaf0;font-size:12px}
.ep12-day-row:last-child{border-bottom:0}
.ep12-day-row strong{color:#2f3d53}
.ep12-day-row label:not(.ep12-inline-check){display:flex;align-items:center;gap:7px;color:#7a879a}
.ep12-day-row input[type=time]{padding:8px;min-height:37px;max-width:140px}
.ep12-inline-check{display:inline-flex;align-items:center;gap:8px;color:#56667b;font-size:12px;cursor:pointer}
.ep12-inline-check input,.ep12-pay-name input{accent-color:#b82729;width:16px;height:16px;cursor:pointer}
.ep12-stack{display:grid;gap:14px}
.ep12-stack label:not(.ep12-inline-check){display:grid;gap:6px;color:#56667b;font-size:12px;font-weight:750}
.ep12-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ep12-exception-list{display:grid;gap:9px;margin-bottom:24px}
.ep12-list-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border:1px solid #e5e9ef;border-radius:10px}
.ep12-list-item strong{display:block;color:#2e3b50;font-size:13px}
.ep12-list-item small{display:block;color:#8a95a5;font-size:11px;margin-top:5px}
.ep12-list-item button,.ep12-notice-item>button{border:0;background:#faf0f0;color:#af3030;cursor:pointer;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;flex:none}
.ep12-empty{padding:30px;color:#98a1b0;text-align:center;font-size:13px}
.ep12-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.ep12-section-title h2{margin:0}
.ep12-section-title span{color:#8b98a8;font-size:12px}
.ep12-pay-list{display:grid;gap:10px}
.ep12-pay-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border:1px solid #e5e9f0;border-radius:12px;padding:15px;min-height:75px}
.ep12-pay-name{min-width:180px;flex:1;display:flex;gap:10px;align-items:center}
.ep12-pay-name>span{display:flex;align-items:center;gap:9px;font-size:14px;color:#29384c}
.ep12-pay-name .icon{color:#b52b28}
.ep12-pay-row>label:not(.ep12-pay-name):not(.ep12-inline-check){display:grid;gap:6px;font-size:11px;color:#68778b}
.ep12-pay-row>label>input[type=number]{border:1px solid #d8e0ea;padding:9px;border-radius:8px;width:95px}
.ep12-brands{flex-basis:100%}
.ep12-brands input{border:1px solid #d8e0ea;border-radius:8px;padding:9px;width:100%;font-size:12px}
.ep12-notice-item{display:flex;align-items:flex-start;gap:13px;padding:13px;border:1px solid #e4e9f0;border-radius:11px;margin-bottom:12px;min-width:0}
.ep12-notice-preview{width:67px;height:67px;border-radius:9px;background:#f1f3f6;display:grid;place-items:center;flex:none;overflow:hidden;color:#9a9fa8}
.ep12-notice-preview img{width:100%;height:100%;object-fit:cover}
.ep12-notice-item>div:nth-child(2){flex:1;min-width:0}
.ep12-notice-item strong{font-size:13px}.ep12-notice-item p{color:#5f6a7a;font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:5px 0}.ep12-notice-item small{color:#8995a2;font-size:11px}
.ep12-history-filters{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(4,minmax(105px,1fr)) auto;gap:11px;align-items:end}
.ep12-history-filters .btn{align-self:end;min-height:44px}
.ep12-table-wrap{width:100%;overflow-x:auto;margin-top:18px;border:1px solid #e4e8ed;border-radius:11px}
.ep12-table{border-collapse:collapse;width:100%;min-width:850px;text-align:left}
.ep12-table th{background:#f1f3f6;color:#4b596b;font-size:12px;padding:13px;white-space:nowrap}
.ep12-table td{padding:14px 13px;font-size:12px;color:#5b697a;border-top:1px solid #e7eaf0}
.ep12-table tr:hover td{background:#fdf8f8}
.ep12-table strong{color:#202c3d}
.ep12-error{background:#fff0f0;border:1px solid #f2caca;padding:15px;color:#9c1f29;border-radius:12px;margin-bottom:15px}
.ep12-state{padding:28px;border:1px solid #e1e7ef;background:white;border-radius:15px;color:#4e5e70}
.ep12-section-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;margin:0 0 20px;padding:0 0 6px}
.ep12-section-tabs a{padding:10px 13px;font-size:12px;white-space:nowrap;color:#56677d;background:#fff;border:1px solid #e0e6ee;border-radius:9px;font-weight:700}
.ep12-section-tabs a.selected{background:#bd2429;color:#fff;border-color:#bd2429}
:root[data-theme='dark'] .ep12-panel,:root[data-theme='dark'] .ep12-state,:root[data-theme='dark'] .ep12-section-tabs a{background:#1c2632;border-color:#39485a;color:#e5edf6}
:root[data-theme='dark'] .ep12-page-head h1,:root[data-theme='dark'] .ep12-panel h2,:root[data-theme='dark'] .ep12-list-item strong{color:#f5f7fb}
:root[data-theme='dark'] .ep12-field input,:root[data-theme='dark'] .ep12-field textarea,:root[data-theme='dark'] .ep12-field select,:root[data-theme='dark'] .ep12-stack input:not([type=checkbox]),:root[data-theme='dark'] .ep12-day-row,:root[data-theme='dark'] .ep12-day-row input[type=time],:root[data-theme='dark'] .ep12-pay-row,:root[data-theme='dark'] .ep12-brands input,:root[data-theme='dark'] .ep12-pay-row input[type=number]{background:#202d3b;color:#f0f5fa;border-color:#455366}
:root[data-theme='dark'] .ep12-table th{background:#273444;color:#eef2f7}
:root[data-theme='dark'] .ep12-table td,:root[data-theme='dark'] .ep12-table strong{background:#1e2a37;color:#f0f5fc;border-color:#455466}
:root[data-theme='dark'] .ep12-section-tabs a.selected{background:#ad3033;border-color:#ad3033}
@media(max-width:1250px){.ep12-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ep12-day-row{grid-template-columns:80px 90px 1fr 1fr;gap:5px}}
@media(max-width:960px){.ep12-card-grid{grid-template-columns:1fr}.ep12-day-row{gap:9px}}
@media(max-width:620px){
 .ep12-sidebar{bottom:0;top:auto;right:0;width:100%;height:66px;overflow:visible;z-index:70}
 .ep12-sidebar nav{width:100%;display:flex;justify-content:space-around;gap:4px;overflow:visible;padding:0}
 .ep12-sidebar .sidebar-link,.ep12-sidebar .nav-label,.ep12-sidebar .ep-brand,.ep12-sidebar .sidebar-bottom{display:none!important}
 .ep12-sidebar .sidebar-link[href="#/painel"],.ep12-sidebar .sidebar-link[href="#/pedidos"],.ep12-sidebar .sidebar-link[href="#/historico"],.ep12-sidebar .sidebar-link[href="#/empresa"]{display:flex!important;flex:1;min-width:0;align-items:center;justify-content:center}
 .ep12-page-head{flex-direction:column;align-items:flex-start}.ep12-page-head h1{font-size:24px}
 .ep12-page-head .btn{width:100%}.ep12-panel{padding:16px}.ep12-day-row{grid-template-columns:1fr 1fr;gap:10px}.ep12-day-row label:not(.ep12-inline-check){justify-content:flex-start}
 .ep12-history-filters{grid-template-columns:1fr 1fr}.ep12-history-filters .ep12-field:first-child{grid-column:span 2}.ep12-history-filters .btn{grid-column:span 2}
 .ep12-pay-name{flex-basis:100%}.ep12-pay-row{gap:12px}.ep12-profile-form .ep12-card-grid{gap:28px}
 .ep12-form-foot .btn{width:100%}
 .admin-header-actions .top-user{display:none}
}
.ep12-profile-stamp{min-width:82px;min-height:75px;display:grid;place-items:center}
.ep12-profile-stamp span{font-size:24px;color:#fff;font-weight:900;letter-spacing:-.03em}
.ep12-profile-stamp img{width:75px;max-width:75px;max-height:70px;height:70px;object-fit:contain}
.store-avatar img{display:block;width:100%;height:100%;object-fit:contain}

/* v13 — refinamento de gestão inspirado no fluxo do Babilon Café, sem reutilizar seu banco de dados. */
.ep13-store-stamp{background:#44241d;min-width:84px}
.ep13-store-stamp span{color:#ffddae;font-weight:900;font-size:26px}
.ep13-order-search{display:flex;gap:9px;align-items:stretch;margin:16px 0}
.ep13-order-search label{display:flex;align-items:center;gap:9px;flex:1;border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:0 12px;min-width:0;color:#8d9aac}
.ep13-order-search input{border:none;outline:none;background:transparent;color:#243348;font:inherit;width:100%;min-height:43px;font-size:14px}
.ep13-order-search .btn{padding:9px 14px;white-space:nowrap}
.ep13-view-details{border:0;background:transparent;color:#ad2929;font-weight:800;display:inline-flex;align-items:center;gap:5px;cursor:pointer;padding:7px 0;font-size:12px}
.ep13-view-details:hover,.ep13-history-order:hover{text-decoration:underline}
.ep13-history-order{border:0;background:transparent;color:#a82026;display:inline-flex;align-items:center;gap:3px;font-weight:800;cursor:pointer}
.ep13-order-backdrop{position:fixed;z-index:800;inset:0;background:#07101a9c;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(4px)}
.ep13-order-detail{width:min(590px,100%);max-height:min(760px,92dvh);display:flex;flex-direction:column;background:#fff;border-radius:19px;overflow:hidden;box-shadow:0 30px 100px #0004;color:#243248}
.ep13-order-detail>header{display:flex;justify-content:space-between;align-items:center;padding:24px 27px 19px;border-bottom:1px solid #edf0f5}
.ep13-order-detail h2{font-size:23px;margin:4px 0 0;color:#14233a}
.ep13-overline{text-transform:uppercase;font-size:10px;color:#8996a7;font-weight:800;letter-spacing:.11em}
.ep13-close{border:0;border-radius:100%;width:34px;height:34px;display:grid;place-items:center;background:#f1f3f6;color:#515e70;cursor:pointer}
.ep13-detail-scroll{overflow-y:auto;flex:1;min-height:0;padding:22px 27px}
.ep13-order-info{display:flex;align-items:center;gap:14px;font-size:12px;color:#7f8b9c;margin-bottom:14px}
.ep13-status{display:inline-flex;align-items:center;padding:5px 9px;font-size:11px;font-weight:800;color:#695e3b;border-radius:7px;background:#fff2d2;white-space:nowrap}
.ep13-status-preparing,.ep13-status-accepted{color:#875e17;background:#fff0d4}
.ep13-status-ready,.ep13-status-completed{color:#137347;background:#ddf7e9}
.ep13-status-delivering{color:#1558a0;background:#dff0ff}
.ep13-status-cancelled{color:#9d2833;background:#ffe7e7}
.ep13-info-group{border-top:1px dashed #e1e5eb;padding:16px 0;font-size:14px;color:#48596c}
.ep13-info-group h3{font-size:13px;color:#28384e;margin:0 0 14px}
.ep13-info-group p{margin:4px 0}
.ep13-info-group small{display:block;color:#8897a8;margin-top:7px}
.ep13-line{display:flex;justify-content:space-between;align-items:start;gap:18px;margin:8px 0;font-size:13px}
.ep13-line>span{min-width:0;overflow-wrap:anywhere}
.ep13-total{padding-top:14px;border-top:1px solid #e4e9ef;font-size:16px;font-weight:900;color:#182a42}
.ep13-detail-hint{font-size:11px;line-height:1.5;color:#78879a}
.ep13-order-detail>footer{display:flex;gap:12px;justify-content:flex-end;border-top:1px solid #ecf0f4;padding:16px 24px}
.ep13-order-detail>footer .btn{font-size:13px}
.ep13-activity-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-top:27px;border-top:1px solid #e6ebf1;padding-top:21px}
.ep13-activity-head h2{font-size:17px;margin:0 0 5px;color:#22344c}
.ep13-activity-head p{font-size:11px;color:#75859b;margin:0}
.ep13-today{font-size:11px;color:#a22b31;white-space:nowrap;font-weight:800}
.ep13-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;height:210px;padding:23px 5px 10px;margin-bottom:16px}
.ep13-bar-group{height:100%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px}
.ep13-bar-track{width:100%;flex:1;display:flex;align-items:end;background:repeating-linear-gradient(to top,transparent 0,transparent 40px,#e9eef4 41px);min-height:0}
.ep13-bar{width:100%;min-height:2px;border-radius:7px 7px 0 0;background:#cbdcfa;transition:height .2s ease}
.ep13-bar.is-today{background:#d32630}
.ep13-bar-group span{font-size:10px;color:#697d97}
.ep13-bar-group small{font-size:10px;font-weight:700;color:#30405a;white-space:nowrap}
.ep13-recent{border:0;border-bottom:1px solid #e5eaf1;width:100%;background:transparent;cursor:pointer;text-align:left}
.ep13-recent:hover{background:#fff7f6}
:root[data-theme='dark'] .ep13-order-search label,:root[data-theme='dark'] .ep13-order-detail{background:#1f2b39;color:#edf2f9;border-color:#425062}
:root[data-theme='dark'] .ep13-order-search input{color:#fff}
:root[data-theme='dark'] .ep13-order-detail>header,:root[data-theme='dark'] .ep13-order-detail>footer,:root[data-theme='dark'] .ep13-info-group{border-color:#435061}
:root[data-theme='dark'] .ep13-order-detail h2,:root[data-theme='dark'] .ep13-info-group h3,:root[data-theme='dark'] .ep13-total,:root[data-theme='dark'] .ep13-activity-head h2{color:#f3f6fc}
@media(max-width:650px){.ep13-order-search{flex-wrap:wrap}.ep13-order-search label{flex-basis:100%}.ep13-order-detail{max-height:90dvh}.ep13-order-detail>header,.ep13-detail-scroll{padding-left:18px;padding-right:18px}.ep13-chart{gap:5px}.ep13-bar-group small{font-size:8px}.ep13-order-detail>footer .btn{flex:1}}
