@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#f3f5f8;--surface:#fff;--surface-2:#f8fafc;--text:#18212f;--muted:#667085;--line:#e4e7ec;--primary:#e4572e;--primary-dark:#c53f1c;--secondary:#1d3557;--success:#18864b;--warning:#b76a00;--danger:#c52d35;--info:#1769aa;--radius:16px;--shadow:0 10px 32px rgba(16,24,40,.08)}
*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{margin:0}a{color:var(--secondary);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}.admin-body{min-height:100vh}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#14243b;color:#fff;display:flex;flex-direction:column;padding:20px 16px;z-index:30}.brand-block{display:flex;align-items:center;gap:12px;padding:4px 8px 20px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-block img{width:42px;height:42px;border-radius:12px;object-fit:cover;background:#fff}.brand-block strong,.brand-block small{display:block}.brand-block small{color:#aab8cb;margin-top:3px;font-size:.76rem}.side-nav{display:flex;flex-direction:column;gap:4px;padding:18px 0;overflow:auto}.side-nav a,.sidebar-footer a,.link-button{color:#d9e2ef;padding:10px 12px;border-radius:10px;font-size:.91rem;border:0;background:transparent;text-align:left;cursor:pointer}.side-nav a:hover,.sidebar-footer a:hover,.link-button:hover{background:rgba(255,255,255,.09);color:#fff;text-decoration:none}.nav-label{color:#8293aa;text-transform:uppercase;letter-spacing:.08em;font-size:.67rem;font-weight:800;padding:15px 12px 5px}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:12px;display:grid}.sidebar-footer form{display:grid}.main-content{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.topbar strong,.topbar small{display:block}.topbar small{color:var(--muted);margin-top:3px}.mobile-menu{display:none;border:0;background:var(--surface-2);border-radius:10px;padding:9px 11px}.page-content{padding:28px;max-width:1650px;margin:auto}.messages{padding:16px 28px 0}.message{padding:12px 14px;border-radius:10px;background:#edf3ff;color:#16477f;border:1px solid #c9ddfa}.message.success{background:#edf9f1;color:#176738;border-color:#bce6ca}.message.error{background:#fff0f1;color:#9d2029;border-color:#fac6ca}.message.warning{background:#fff7e7;color:#8b5700;border-color:#f2d594}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;background:var(--primary);color:#fff;border:1px solid var(--primary);border-radius:10px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap}.button:hover{background:var(--primary-dark);border-color:var(--primary-dark);text-decoration:none}.button.secondary{background:#fff;color:var(--secondary);border-color:#ccd4df}.button.secondary:hover{background:#f6f8fb}.button.danger{background:var(--danger);border-color:var(--danger)}.button.small{padding:7px 11px;font-size:.82rem}.button.large{padding:13px 20px}.button.full{width:100%}.page-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.page-actions h1{font-size:1.65rem;margin:0 0 6px}.page-actions p{margin:0;color:var(--muted)}.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.metric-grid.compact{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.metric-card,.stock-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 2px 7px rgba(16,24,40,.03)}.metric-card span,.metric-card small{display:block;color:var(--muted)}.metric-card strong{display:block;font-size:1.75rem;margin:9px 0}.metric-card.attention,.stock-card.attention{border-color:#f3c66f;background:#fffaf0}.metric-card.success-card{border-color:#acdcbc;background:#f4fcf6}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}.stack-panels{display:grid;gap:20px;align-content:start}.panel,.table-card,.form-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(16,24,40,.035);overflow:hidden}.panel,.form-card{padding:22px}.panel h1,.panel h2,.form-card h1,.form-card h2{margin-top:0}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 21px;border-bottom:1px solid var(--line)}.card-heading h2{font-size:1.05rem;margin:0 0 4px}.card-heading p{font-size:.85rem;color:var(--muted);margin:0}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:.88rem}th{color:#586273;background:#fafbfc;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}td small,td a small{display:block;color:var(--muted);margin-top:3px}tr:last-child td{border-bottom:0}.right{text-align:right}.badge,.pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800;border:1px solid transparent}.badge.success,.pill.success{background:#eaf8ef;color:#176c3a;border-color:#c4e9d0}.badge.danger,.pill.danger{background:#fff0f1;color:#a51e29;border-color:#f7c8cd}.badge.warning{background:#fff5df;color:#8b5600;border-color:#f2d398}.badge.info{background:#eaf4ff;color:#155b90;border-color:#c6ddf6}.badge.muted{background:#f1f3f5;color:#667085;border-color:#e1e4e8}.badge.status-pending{background:#fff4dd;color:#8c5700}.badge.status-confirmed{background:#e9f3ff;color:#1d5f96}.badge.status-preparing{background:#f1ebff;color:#6741a5}.badge.status-ready{background:#e7f9ed;color:#14703a}.badge.status-out_for_delivery{background:#e8f7f8;color:#17666d}.badge.status-delivered{background:#eaf8ef;color:#176c3a}.badge.status-canceled{background:#fff0f1;color:#a51e29}.status-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.status-summary div{background:var(--surface-2);border-radius:12px;padding:12px}.status-summary span,.status-summary b{display:block}.status-summary span{color:var(--muted);font-size:.78rem}.status-summary b{font-size:1.4rem;margin-top:5px}.ranking{margin:0;padding-left:20px}.ranking li{padding:9px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.ranking li:last-child{border-bottom:0}.filter-bar{display:flex;align-items:end;gap:12px;background:#fff;border:1px solid var(--line);padding:14px;border-radius:14px;margin-bottom:18px}.filter-bar label{display:grid;gap:5px;color:var(--muted);font-size:.78rem}.filter-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 18px}.filter-tabs a{padding:10px 14px;color:var(--muted);font-weight:700;border-bottom:2px solid transparent}.filter-tabs a.active{color:var(--primary);border-color:var(--primary)}.control,.form-card input:not([type=checkbox]):not([type=radio]),.form-card select,.form-card textarea,.stack-form input,.settings-grid input:not([type=checkbox]),.settings-grid select,.settings-grid textarea{width:100%;border:1px solid #cfd6df;border-radius:9px;background:#fff;color:var(--text);padding:10px 11px;outline:none}.control:focus,.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#7ba6d8;box-shadow:0 0 0 3px rgba(43,105,177,.12)}.field-row{display:grid;gap:6px;margin-bottom:15px}.field-row label{font-size:.83rem;font-weight:700}.field-row small{color:var(--muted)}.field-row.has-error input,.field-row.has-error select,.field-row.has-error textarea{border-color:var(--danger)}.errorlist{margin:3px 0 0;padding-left:18px;color:var(--danger);font-size:.78rem}.required{color:var(--danger)}.form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.form-card p{display:grid;gap:6px}.form-card p label{font-weight:700;font-size:.84rem}.form-card p .helptext{font-size:.77rem;color:var(--muted)}.narrow-page{max-width:760px;margin:auto}.settings-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(480px,1fr);gap:20px;align-items:start}.settings-grid .sticky-save{grid-column:1/-1;display:flex;justify-content:flex-end}.hours-list{display:grid;gap:10px}.hour-row{display:grid;grid-template-columns:130px 1fr 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px}.hour-row label{display:grid;gap:4px;font-size:.75rem;color:var(--muted)}.hour-row label.check{display:flex;align-items:center;gap:6px;white-space:nowrap}.hour-row label.check input{width:auto}.two-column-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.option-admin-group{border:1px solid var(--line);border-radius:12px;margin-bottom:12px;overflow:hidden}.option-admin-group header{display:flex;justify-content:space-between;gap:10px;background:var(--surface-2);padding:13px 15px}.option-admin-group h3{margin:0 0 3px}.option-admin-group small{color:var(--muted)}.option-admin-group ul{list-style:none;margin:0;padding:0}.option-admin-group li{display:flex;justify-content:space-between;gap:15px;padding:11px 15px;border-top:1px solid var(--line);font-size:.86rem}.info-box,.warning-box{padding:13px 14px;border-radius:10px;background:#eef5ff;border:1px solid #c8dcf7;color:#204b75;margin-top:15px}.warning-box{background:#fff7e7;border-color:#efd59a;color:#805000}.admin-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.admin-product-card{display:grid;grid-template-columns:120px 1fr;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.admin-product-image{background:#eef1f5;min-height:170px;display:grid;place-items:center;font-size:2.4rem}.admin-product-image img{width:100%;height:100%;object-fit:cover}.admin-product-body{padding:16px;display:flex;flex-direction:column}.admin-product-body h2{font-size:1.05rem;margin:4px 0}.admin-product-body>small,.admin-product-body p{color:var(--muted)}.admin-product-body p{font-size:.82rem;line-height:1.45;flex:1}.price-line{display:flex;align-items:center;gap:8px}.price-line strong{font-size:1.15rem}.price-line del{font-size:.8rem;color:var(--muted)}.badge-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.card-actions{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;font-size:.82rem}.stock-card{display:grid;grid-template-columns:1fr auto;gap:12px;position:relative}.stock-card h2{font-size:1rem;margin:3px 0}.stock-card small,.stock-card span{color:var(--muted)}.stock-card>a{grid-column:1/-1;font-size:.8rem}.stock-number{text-align:right}.stock-number strong,.stock-number small{display:block}.stock-number strong{font-size:1.4rem;color:var(--text)}.coupon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.coupon-card{background:#fff;border:1px dashed #aeb8c7;border-radius:16px;padding:19px;position:relative}.coupon-card.inactive{opacity:.62}.coupon-card header{display:flex;justify-content:space-between;align-items:center}.coupon-card header span{background:var(--secondary);color:#fff;border-radius:7px;padding:6px 9px;font-weight:800;letter-spacing:.05em}.coupon-card h2{font-size:.85rem;color:var(--muted);margin:17px 0 4px}.coupon-card>strong{font-size:1.8rem}.coupon-card p{color:var(--muted);font-size:.84rem;min-height:36px}.coupon-card dl{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px}.coupon-card dl div{display:flex;justify-content:space-between}.coupon-card dt{color:var(--muted)}.coupon-card dd{margin:0;font-weight:700}.cash-banner{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#182b46;color:#fff;border-radius:14px;margin-bottom:20px}.cash-banner b,.cash-banner span{display:block}.cash-banner span{font-size:.8rem;color:#c2cfdf;margin-top:4px}.positive{color:var(--success)}.negative{color:var(--danger)}.empty-state{padding:38px;text-align:center;color:var(--muted)}.empty-state.wide{grid-column:1/-1}.kitchen-board{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:14px;align-items:start;overflow-x:auto}.kitchen-column{background:#e9edf2;border-radius:14px;min-height:500px;padding-bottom:10px}.kitchen-column>header{display:flex;align-items:center;justify-content:space-between;padding:14px}.kitchen-column>header h2{font-size:.95rem;margin:0}.kitchen-column>header span{background:#fff;border-radius:999px;padding:4px 8px;font-weight:800}.kitchen-list{display:grid;gap:10px;padding:0 10px}.kitchen-card{background:#fff;border-radius:12px;padding:14px;box-shadow:0 3px 9px rgba(16,24,40,.08);border-top:4px solid #98a2b3}.kitchen-column.status-pending .kitchen-card{border-color:#e1a01d}.kitchen-column.status-confirmed .kitchen-card{border-color:#4a8ac8}.kitchen-column.status-preparing .kitchen-card{border-color:#845fc7}.kitchen-column.status-ready .kitchen-card{border-color:#2c9a59}.kitchen-card-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.kitchen-card-head b,.kitchen-card-head small{display:block}.kitchen-card-head b{font-size:1.05rem}.kitchen-card-head small{color:var(--muted);margin-top:3px}.kitchen-card ul{list-style:none;padding:0;margin:12px 0}.kitchen-card li{padding:8px 0;border-top:1px solid var(--line)}.kitchen-card li small,.kitchen-card li em{display:block;margin-left:23px;color:var(--muted);font-size:.78rem}.kitchen-note{background:#fff6dc;border-radius:8px;padding:8px;font-weight:700}.kitchen-actions form,.kitchen-actions button{width:100%}.kitchen-actions button{border:0;background:var(--secondary);color:#fff;padding:10px;border-radius:8px;font-weight:800;cursor:pointer}.empty-column{padding:24px;text-align:center;color:#7a8493}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:20px}.product-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.product-admin-card{display:grid;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;color:var(--text)}.product-admin-card:hover{text-decoration:none;box-shadow:var(--shadow)}.product-admin-card img,.product-placeholder{width:100%;height:130px;object-fit:cover;background:#e9eef5;display:grid;place-items:center;font-size:2.2rem;font-weight:800}.product-admin-card>div:last-child{padding:12px;display:grid;gap:4px}.product-admin-card small{color:var(--muted)}.product-admin-card span{font-weight:800;color:var(--primary)}.pos-cart{position:sticky;top:96px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;align-self:start}.pos-cart h2{display:flex;justify-content:space-between;font-size:1.05rem}.pos-cart h2 span{color:var(--muted);font-size:.75rem}.pos-lines{max-height:55vh;overflow:auto}.pos-lines article{display:grid;grid-template-columns:1fr auto auto;gap:7px;border-bottom:1px solid var(--line);padding:11px 0}.pos-lines article b,.pos-lines article small,.pos-lines article span{display:block}.pos-lines article small{color:var(--muted)}.pos-lines input{width:55px;padding:6px}.pos-lines button{border:0;border-radius:6px;padding:6px;background:#e7f6eb;color:#16673a}.pos-lines button.remove{background:#fff0f1;color:#9d2029}.pos-total{display:flex;justify-content:space-between;padding:16px 0;font-size:1.1rem}.auth-page{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 15% 10%,#ffe8df,transparent 40%),#f4f6f9}.auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow)}.auth-page.wide .auth-card{width:min(680px,100%)}.auth-logo{font-size:1.3rem;font-weight:900;color:var(--primary)}.auth-card h1{margin:22px 0 8px}.auth-card>p,.auth-card>small{color:var(--muted)}.stack-form{display:grid;gap:14px;margin:22px 0}.stack-form label{display:grid;gap:6px;font-weight:700;font-size:.84rem}.landing-body{background:#fff;color:#172132}.landing-nav{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px);border-bottom:1px solid var(--line)}.landing-nav>strong{font-size:1.35rem;color:var(--primary)}.landing-nav>div{display:flex;align-items:center;gap:16px}.hero{min-height:600px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8vw;padding:70px max(7vw,30px);background:radial-gradient(circle at 20% 30%,#fff0ea,transparent 45%),#fbfcfd}.hero h1{font-size:clamp(2.5rem,5vw,5rem);line-height:1.03;letter-spacing:-.055em;margin:15px 0}.hero p{font-size:1.1rem;line-height:1.7;color:var(--muted);max-width:650px}.eyebrow{color:var(--primary);font-weight:800;text-transform:uppercase;font-size:.78rem;letter-spacing:.08em}.hero-actions{display:flex;align-items:center;gap:18px;margin-top:28px}.hero-panel{background:#172a45;border-radius:25px;padding:25px;box-shadow:0 30px 70px rgba(17,40,70,.25);color:#fff;transform:rotate(1.5deg)}.mock-order{display:flex;justify-content:space-between;background:#223b5d;padding:15px;border-radius:12px}.mock-order strong{color:#90e1ad}.mock-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.mock-metrics>div{background:#fff;color:var(--text);padding:18px;border-radius:13px}.mock-metrics small,.mock-metrics b{display:block}.mock-metrics small{color:var(--muted)}.mock-metrics b{font-size:1.5rem;margin-top:6px}.mock-columns{display:flex;align-items:end;gap:8px;height:170px;padding:20px;background:#0f2037;border-radius:13px}.mock-columns i{display:block;flex:1;background:linear-gradient(#ff906b,#e4572e);border-radius:5px 5px 0 0}.mock-columns i:nth-child(1){height:30%}.mock-columns i:nth-child(2){height:55%}.mock-columns i:nth-child(3){height:42%}.mock-columns i:nth-child(4){height:82%}.mock-columns i:nth-child(5){height:66%}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:70px max(7vw,30px)}.feature-grid article{border-top:3px solid var(--primary);padding-top:18px}.feature-grid b{font-size:1.05rem}.feature-grid p{color:var(--muted);line-height:1.6}.wide{width:100%}
@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(2,1fr)}.kitchen-board{grid-template-columns:repeat(4,300px)}.settings-grid{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr 340px}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-275px;transition:left .2s}.sidebar.open{left:0;box-shadow:20px 0 40px rgba(0,0,0,.25)}.mobile-menu{display:block}.topbar{padding:0 16px}.page-content{padding:20px 16px}.dashboard-grid,.two-column-layout{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}.hero{grid-template-columns:1fr}.hero-panel{display:none}.hours-list .hour-row{grid-template-columns:1fr 1fr}.hour-row>b{grid-column:1/-1}.feature-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.page-actions{align-items:flex-start;flex-direction:column}.inline-actions{width:100%}.inline-actions .button{flex:1}.metric-grid{grid-template-columns:1fr}.page-content{padding:16px 12px}.topbar form{display:none}.table-card{overflow:auto}.admin-product-grid{grid-template-columns:1fr}.admin-product-card{grid-template-columns:95px 1fr}.form-actions{flex-direction:column-reverse}.form-actions .button{width:100%}.filter-bar{align-items:stretch;flex-direction:column}.hours-list .hour-row{grid-template-columns:1fr}.settings-grid{display:block}.settings-grid>*{margin-bottom:15px}.cash-banner{align-items:flex-start;flex-direction:column;gap:12px}.product-admin-grid{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:1fr}.landing-nav{padding:0 18px}.landing-nav>div>a:first-child{display:none}.hero{padding:60px 22px}.hero h1{font-size:2.7rem}.auth-card{padding:24px}}
.order-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:20px;align-items:start}.order-layout>section{display:grid;gap:16px}.order-head{display:flex;justify-content:space-between;gap:20px}.order-head h2{margin:10px 0 4px}.order-head p{margin:3px 0;color:var(--muted)}.order-head>div:last-child{text-align:right;max-width:48%}.order-totals{display:flex;justify-content:flex-end;gap:18px;flex-wrap:wrap;padding:16px 20px;background:#fafbfc}.order-totals span{display:grid;gap:4px;color:var(--muted);font-size:.77rem}.order-totals b{color:var(--text);font-size:.95rem}.order-totals .grand-total b{font-size:1.25rem}.status-actions{display:grid;gap:9px}.status-action-form{display:grid;gap:8px}.payment-confirmation{display:grid;gap:5px;color:var(--muted);font-size:.75rem}.payment-confirmation select,.cancel-form input{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fff}.success-button{background:var(--success);border-color:var(--success)}.cancel-form{display:grid;gap:7px;border-top:1px solid var(--line);padding-top:12px;margin-top:6px}.danger-button{border:1px solid #f0b7bc;background:#fff0f1;color:#a32029;border-radius:9px;padding:9px;font-weight:800;cursor:pointer}.timeline{display:grid}.timeline>div{display:grid;grid-template-columns:17px 1fr;gap:8px;position:relative}.timeline>div:not(:last-child):before{content:"";position:absolute;width:2px;background:var(--line);top:18px;bottom:-3px;left:5px}.timeline i{width:12px;height:12px;border-radius:50%;background:var(--primary);margin-top:4px;z-index:1}.timeline p{margin:0 0 15px}.timeline b,.timeline small,.timeline span{display:block}.timeline small{color:var(--muted);font-size:.72rem;margin-top:2px}.timeline span{font-size:.78rem;margin-top:4px}.log-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:.8rem}.log-line b.sent{color:var(--success)}.log-line b.failed{color:var(--danger)}.log-line b.skipped{color:var(--muted)}.warning-text{color:var(--warning)!important}.checkout-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:start}.checkout-admin-layout .order-summary{position:sticky;top:96px}.checkout-admin-layout .order-summary>div{display:flex;justify-content:space-between;padding:8px 0}.checkout-admin-layout .grand-total{border-top:1px solid var(--line);margin-top:10px;padding-top:14px!important}.code-box{display:grid;gap:7px;background:#101e32;color:#e7eef8;border-radius:10px;padding:13px;margin-top:18px;overflow:auto}.code-box code{font-size:.72rem;color:#9ed0ff}.help{color:var(--muted);line-height:1.55}.table-card.compact>h2{padding:17px;margin:0;border-bottom:1px solid var(--line)}.kitchen-card.is-late{box-shadow:0 0 0 2px #e34850,0 5px 14px rgba(16,24,40,.1)}.kitchen-card.is-late .elapsed-time{color:#b8202a;font-weight:900}
@media(max-width:900px){.order-layout,.checkout-admin-layout{grid-template-columns:1fr}.checkout-admin-layout .order-summary{position:static}.order-head{flex-direction:column}.order-head>div:last-child{text-align:left;max-width:none}}

.kitchen-waiting-payment{display:block;padding:9px 10px;border-radius:8px;background:#fff6dc;color:#7a5200;font-size:.78rem;font-weight:800;text-align:center}.kitchen-actions>a{display:block;margin-top:7px;text-align:center;font-size:.8rem;font-weight:800}

/* Evolution API - gerenciamento de instância por empresa */
.evolution-manager{display:grid;gap:20px}.evolution-overview{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(350px,.75fr);gap:20px;align-items:start}.evolution-connection-card{display:grid;gap:20px}.evolution-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.evolution-card-heading h2{margin:7px 0 6px}.evolution-status{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;border:1px solid var(--line);font-size:.74rem;font-weight:800;white-space:nowrap;background:#f3f5f8;color:#5f6b7b}.evolution-status i{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(102,112,133,.12)}.evolution-status-open{background:#eaf8ef;color:#176c3a;border-color:#bfe5cc}.evolution-status-connecting{background:#fff5df;color:#8b5600;border-color:#f2d398}.evolution-status-created{background:#eaf4ff;color:#155b90;border-color:#c6ddf6}.evolution-status-close{background:#f1f3f5;color:#667085;border-color:#dfe3e8}.evolution-status-error{background:#fff0f1;color:#a51e29;border-color:#f7c8cd}.evolution-status-not_created{background:#f1f3f5;color:#667085}.evolution-account{display:flex;align-items:center;gap:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:13px;padding:15px}.evolution-account img,.evolution-profile-placeholder{width:54px;height:54px;border-radius:50%;object-fit:cover;flex:0 0 54px}.evolution-profile-placeholder{display:grid;place-items:center;background:#dff7e8;color:#12713b;font-weight:900}.evolution-account strong,.evolution-account span,.evolution-account small{display:block}.evolution-account span{margin-top:3px}.evolution-account small{margin-top:4px;color:var(--muted)}.evolution-actions{display:flex;gap:9px;flex-wrap:wrap}.evolution-actions button:disabled,.evolution-qr-card button:disabled,.evolution-manager .button:disabled{opacity:.55;cursor:not-allowed}.evolution-action-message{min-height:0;padding:0;border-radius:10px;font-size:.86rem;font-weight:700}.evolution-action-message:not(:empty){padding:11px 13px;border:1px solid #c8dcf7;background:#eef5ff;color:#204b75}.evolution-action-message.is-success{background:#edf9f1;color:#176738;border-color:#bce6ca}.evolution-action-message.is-error{background:#fff0f1;color:#9d2029;border-color:#fac6ca}.evolution-technical-info{display:grid;grid-template-columns:1fr 1fr;gap:10px}.evolution-technical-info span{display:grid;gap:5px;padding:11px 12px;background:#fafbfc;border:1px solid var(--line);border-radius:10px}.evolution-technical-info b{font-size:.75rem}.evolution-technical-info small{color:var(--muted);overflow-wrap:anywhere}.evolution-qr-card{display:grid;gap:16px;position:sticky;top:96px}.evolution-qr-frame{width:min(310px,100%);aspect-ratio:1;margin:auto;border:1px solid var(--line);border-radius:16px;background:#fff;display:grid;place-items:center;padding:14px}.evolution-qr-frame img{display:block;width:100%;height:100%;object-fit:contain}.evolution-qr-loading{text-align:center;color:var(--muted);padding:20px}.evolution-pairing-code{background:#14243b;color:#fff;border-radius:10px;padding:13px;text-align:center;font-size:1.05rem;font-weight:900;letter-spacing:.08em}.evolution-steps{margin:0;padding-left:22px;color:var(--muted);line-height:1.55}.evolution-steps li+li{margin-top:6px}.evolution-settings-grid{margin-top:0}.evolution-preferences-form{margin-bottom:0}.evolution-toggle{display:flex!important;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;cursor:pointer}.evolution-toggle:hover{background:#fafbfc}.evolution-toggle input{width:18px!important;height:18px;flex:0 0 18px;accent-color:var(--primary)}.evolution-toggle span,.evolution-toggle b,.evolution-toggle small{display:block}.evolution-toggle small{margin-top:3px;color:var(--muted);font-weight:400}.evolution-master-toggle{background:#fff8f5;border-color:#f2c9bb}.evolution-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.evolution-log-card{margin-top:0}.code-box small{color:#b6c5d8;font-size:.72rem}.evolution-manager code{overflow-wrap:anywhere}
@media(max-width:1050px){.evolution-overview{grid-template-columns:1fr}.evolution-qr-card{position:static}.evolution-event-grid{grid-template-columns:1fr}}
@media(max-width:620px){.evolution-card-heading{flex-direction:column}.evolution-status{white-space:normal}.evolution-actions{display:grid}.evolution-actions .button{width:100%}.evolution-technical-info{grid-template-columns:1fr}}

/* Complementos do painel Evolution multiempresa */
.evolution-status-unknown{background:#f1f3f5;color:#667085;border-color:#dfe3e8}.evolution-side-stack{display:grid;gap:18px;align-content:start}.evolution-side-stack .code-box{margin-top:0}.evolution-manager [hidden]{display:none!important}

/* Pedivy WhatsApp - mensagens personalizáveis e automação de entrada */
.evolution-webhook-card{display:grid;gap:16px}.evolution-webhook-status{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:.74rem;font-weight:800;border:1px solid}.evolution-webhook-status.is-ok{background:#eaf8ef;color:#176c3a;border-color:#bfe5cc}.evolution-webhook-status.is-pending{background:#fff5df;color:#8b5600;border-color:#f2d398}.evolution-webhook-details{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr) minmax(180px,.7fr);gap:10px}.evolution-webhook-details>div{display:grid;align-content:start;gap:6px;padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:#fafbfc;min-width:0}.evolution-webhook-details b{font-size:.76rem}.evolution-webhook-details code,.evolution-webhook-details small{font-size:.74rem;color:var(--muted);overflow-wrap:anywhere;white-space:normal}.evolution-full-settings-form{display:grid;gap:20px}.evolution-rule-flow{display:grid;gap:8px;margin-top:14px}.evolution-rule-flow span{padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:.82rem}.evolution-rule-flow b{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:5px;border-radius:50%;background:#eaf4ff;color:#155b90}.evolution-template-section{display:grid;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 8px rgba(16,24,40,.035)}.evolution-template-heading{background:#fafbfc}.evolution-format-tip{font-size:.76rem;color:var(--muted);text-align:right}.evolution-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}.evolution-template-card{padding:0;overflow:hidden;box-shadow:none}.evolution-template-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--line);background:var(--surface-2)}.evolution-template-card h3{margin:4px 0 0;font-size:1rem}.evolution-template-card>.errorlist,.evolution-template-card>textarea,.evolution-template-card>.evolution-editor-toolbar,.evolution-template-card>.evolution-variable-list,.evolution-template-card>.evolution-preview-box,.evolution-template-card>.evolution-character-counter{margin-left:16px;margin-right:16px}.evolution-template-card textarea{min-height:250px;margin-top:12px;line-height:1.55;resize:vertical;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:pre-wrap}.evolution-toggle.compact{padding:7px 9px;white-space:nowrap}.evolution-toggle.compact input{width:16px!important;height:16px;flex-basis:16px}.evolution-editor-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:14px}.evolution-editor-toolbar button{min-width:34px;min-height:32px;padding:5px 8px;border:1px solid #ccd4df;border-radius:8px;background:#fff;color:var(--secondary);cursor:pointer;font-size:.78rem;font-weight:800}.evolution-editor-toolbar button:hover{background:#eef5ff;border-color:#a7c6e7}.evolution-variable-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.variable-chip{padding:6px 8px;border:1px solid #c8dcf7;border-radius:999px;background:#eef5ff;color:#204b75;font-size:.72rem;font-weight:750;cursor:pointer}.variable-chip:hover{background:#dfeeff}.evolution-character-counter{display:block;margin-top:6px;color:var(--muted);font-size:.7rem;text-align:right}.evolution-character-counter.is-near-limit{color:var(--danger);font-weight:800}.evolution-preview-box{margin-top:12px;margin-bottom:16px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f7f9fc}.evolution-preview-box summary{padding:10px 12px;cursor:pointer;font-size:.78rem;font-weight:800;color:var(--secondary)}.evolution-preview-box pre{margin:0;padding:13px;border-top:1px solid var(--line);background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.82rem;line-height:1.55;min-height:90px}.evolution-sticky-actions{position:sticky;bottom:12px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #cdd7e4;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(16,24,40,.14);backdrop-filter:blur(8px)}.evolution-sticky-actions span{font-size:.78rem;color:var(--muted)}.evolution-reset-row{justify-content:flex-end}.evolution-behavior-list{display:grid;gap:8px}.evolution-behavior-list p{display:block;margin:0;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:.82rem;line-height:1.45}.evolution-log-card .badge.sent{background:#eaf8ef;color:#176c3a;border-color:#c4e9d0}.evolution-log-card .badge.failed{background:#fff0f1;color:#a51e29;border-color:#f7c8cd}.evolution-log-card .badge.pending{background:#fff5df;color:#8b5600;border-color:#f2d398}.evolution-log-card .badge.skipped{background:#f1f3f5;color:#667085;border-color:#e1e4e8}
@media(max-width:1100px){.evolution-template-list{grid-template-columns:1fr}.evolution-webhook-details{grid-template-columns:1fr 1fr}.evolution-webhook-details>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.evolution-webhook-details{grid-template-columns:1fr}.evolution-webhook-details>div:first-child{grid-column:auto}.evolution-template-list{padding:10px}.evolution-template-card>.errorlist,.evolution-template-card>textarea,.evolution-template-card>.evolution-editor-toolbar,.evolution-template-card>.evolution-variable-list,.evolution-template-card>.evolution-preview-box,.evolution-template-card>.evolution-character-counter{margin-left:11px;margin-right:11px}.evolution-template-heading{align-items:flex-start;flex-direction:column}.evolution-format-tip{text-align:left}.evolution-sticky-actions{position:static;align-items:stretch;flex-direction:column}.evolution-sticky-actions .button{width:100%}}

/* =========================================================
   LOGIN PEDIVY — EXPERIÊNCIA PREMIUM
   ========================================================= */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(500px, 1.08fr) minmax(480px, 0.92fr);
    color: var(--text);
    background: #ffffff;
}

.login-showcase {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(42px, env(safe-area-inset-top))
        clamp(42px, 6vw, 92px)
        max(32px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 16%,
            rgba(228, 87, 46, 0.34),
            transparent 27%
        ),
        radial-gradient(
            circle at 8% 88%,
            rgba(62, 112, 175, 0.22),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #0d192a,
            #172b47 58%,
            #102138
        );
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );
    background-size: 52px 52px;
    pointer-events: none;
}

.login-showcase-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-decoration-one {
    top: -170px;
    right: -150px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.018),
        0 0 0 140px rgba(255, 255, 255, 0.012);
}

.login-decoration-two {
    bottom: -180px;
    left: -190px;
    width: 480px;
    height: 480px;
    background: rgba(228, 87, 46, 0.09);
    filter: blur(3px);
}

.login-showcase-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    margin: auto 0;
}

.login-brand {
    width: 178px;
    height: 64px;
    display: flex;
    align-items: center;
}

.login-brand img,
.login-mobile-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.login-showcase .login-brand img {
    filter: brightness(0) invert(1);
}

.login-showcase-copy {
    margin-top: clamp(45px, 7vh, 78px);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ff9a79;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-eyebrow i {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.login-showcase-copy h1 {
    max-width: 690px;
    margin: 18px 0 19px;
    font-size: clamp(2.8rem, 5.2vw, 5.1rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.login-showcase-copy h1 strong {
    display: block;
    color: #ff8864;
    font-weight: inherit;
}

.login-showcase-copy > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.95rem;
    line-height: 1.75;
}

.login-benefits {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-benefits article {
    min-width: 0;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(8px);
}

.login-benefit-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ff9675;
    background: rgba(228, 87, 46, 0.14);
}

.login-benefit-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-benefits article div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.login-benefits strong {
    font-size: 0.7rem;
}

.login-benefits small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.58rem;
    line-height: 1.4;
}

.login-operation-card {
    margin-top: 23px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-operation-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.login-operation-card > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-operation-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    font-size: 0.86rem;
    font-weight: 900;
}

.login-operation-card header span:not(.login-operation-logo) {
    display: grid;
    gap: 3px;
}

.login-operation-card header strong {
    font-size: 0.73rem;
}

.login-operation-card header small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.57rem;
}

.login-live-status {
    padding: 7px 10px;
    display: inline-flex !important;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 7px !important;
    border: 1px solid rgba(99, 222, 139, 0.25);
    border-radius: 999px;
    color: #9ce9b5;
    background: rgba(44, 170, 88, 0.1);
    font-size: 0.58rem;
    font-weight: 800;
}

.login-live-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55d880;
    box-shadow: 0 0 0 4px rgba(85, 216, 128, 0.12);
}

.login-operation-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.login-operation-grid > div {
    padding: 12px;
    display: grid;
    gap: 4px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.065);
}

.login-operation-grid span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.55rem;
}

.login-operation-grid strong {
    font-size: 0.87rem;
}

.login-operation-grid small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.5rem;
}

.login-operation-grid small.is-positive {
    color: #8fe6aa;
}

.login-order-preview {
    margin-top: 8px;
    padding: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.065);
}

.login-order-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ff9b7d;
    background: rgba(228, 87, 46, 0.15);
    font-size: 0.57rem;
    font-weight: 900;
}

.login-order-preview > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.login-order-preview strong {
    font-size: 0.65rem;
}

.login-order-preview small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.53rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-order-preview > b {
    color: #ff9b7d;
    font-size: 0.54rem;
}

.login-showcase-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.61rem;
}

/* =========================================================
   ÁREA DO FORMULÁRIO
   ========================================================= */

.login-access {
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(35px, env(safe-area-inset-top))
        clamp(35px, 6vw, 88px)
        max(30px, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(228, 87, 46, 0.08),
            transparent 27%
        ),
        #ffffff;
}

.login-access-container {
    width: min(460px, 100%);
}

.login-mobile-brand {
    width: 155px;
    height: 54px;
    margin: 0 auto 34px;
    display: none;
}

.login-card {
    width: 100%;
}

.login-card-heading {
    margin-bottom: 27px;
}

.login-security-label {
    width: fit-content;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #c9e8d4;
    border-radius: 999px;
    color: #18723d;
    background: #effaf3;
    font-size: 0.64rem;
    font-weight: 800;
}

.login-security-label svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card-heading h2 {
    margin: 18px 0 8px;
    color: var(--text);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.login-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border: 1px solid #f3c1c5;
    border-radius: 12px;
    color: #94262e;
    background: #fff1f2;
}

.login-alert > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(197, 45, 53, 0.1);
    font-size: 0.76rem;
    font-weight: 900;
}

.login-alert strong {
    display: block;
    font-size: 0.77rem;
}

.login-alert p {
    margin: 4px 0 0;
    font-size: 0.69rem;
    line-height: 1.45;
}

.login-form-errors .errorlist {
    margin-bottom: 16px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field > label,
.login-field-label label {
    color: #30394a;
    font-size: 0.75rem;
    font-weight: 800;
}

.login-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-field-control {
    position: relative;
}

.login-field-control input {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px 12px 48px;
    border: 1px solid #ccd3dd;
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(16, 24, 40, 0.025);
    font-size: 0.83rem;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.login-password-control input {
    padding-right: 49px;
}

.login-field-control input::placeholder {
    color: #a0a8b4;
}

.login-field-control input:hover {
    border-color: #b6c0cd;
}

.login-field-control input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.11);
}

.login-field.has-error input {
    border-color: var(--danger);
    background: #fffafb;
}

.login-field-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: #8a94a3;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-field-control:focus-within .login-field-icon {
    color: var(--primary);
}

.login-field-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #7d8795;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-password-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.login-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-field-errors .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--danger);
    font-size: 0.67rem;
}

.login-submit {
    position: relative;
    width: 100%;
    min-height: 55px;
    margin-top: 4px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    box-shadow: 0 13px 27px rgba(228, 87, 46, 0.25);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 850;
    transition:
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.login-submit::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    opacity: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );
    transform: rotate(20deg);
    transition:
        left 0.5s ease,
        opacity 0.5s ease;
}

.login-submit:hover {
    box-shadow: 0 17px 34px rgba(228, 87, 46, 0.32);
    transform: translateY(-2px);
}

.login-submit:hover::before {
    left: 120%;
    opacity: 1;
}

.login-submit:active {
    transform: scale(0.99);
}

.login-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.login-submit > span {
    position: relative;
    z-index: 2;
    justify-self: start;
}

.login-submit > svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-submit-loading i {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spinner 0.7s linear infinite;
}

@keyframes login-spinner {
    to {
        transform: rotate(360deg);
    }
}

.login-divider {
    position: relative;
    margin: 27px 0 20px;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
}

.login-divider span {
    position: relative;
    z-index: 2;
    padding: 0 11px;
    color: #8b95a4;
    background: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
}

.login-signup {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-2);
}

.login-signup > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.login-signup strong {
    font-size: 0.72rem;
}

.login-signup p {
    margin: 0;
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.4;
}

.login-signup > a {
    flex: 0 0 auto;
    padding: 9px 11px;
    border: 1px solid #f0c2b3;
    border-radius: 9px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 0.67rem;
    font-weight: 850;
}

.login-signup > a:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
}

.login-back-link {
    width: fit-content;
    margin: 23px auto 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.login-back-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.login-back-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-access-footer {
    max-width: 390px;
    margin: 26px auto 0;
    color: #98a2b3;
    font-size: 0.6rem;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   RESPONSIVIDADE DO LOGIN
   ========================================================= */

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: minmax(410px, 0.9fr) minmax(450px, 1.1fr);
    }

    .login-showcase {
        padding-right: 42px;
        padding-left: 42px;
    }

    .login-benefits {
        grid-template-columns: 1fr;
    }

    .login-benefits article:nth-child(3) {
        display: none;
    }

    .login-operation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-operation-grid > div:last-child {
        display: none;
    }
}

@media (max-width: 860px) {
    .login-page {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        background:
            radial-gradient(
                circle at 90% 5%,
                rgba(228, 87, 46, 0.09),
                transparent 28%
            ),
            #ffffff;
    }

    .login-showcase {
        display: none;
    }

    .login-access {
        min-height: 100vh;
        min-height: 100dvh;
        padding:
            max(30px, env(safe-area-inset-top))
            24px
            max(28px, env(safe-area-inset-bottom));
        background: transparent;
    }

    .login-mobile-brand {
        display: flex;
    }

    .login-access-container {
        width: min(470px, 100%);
    }
}

@media (max-width: 520px) {
    .login-access {
        padding-right: 18px;
        padding-left: 18px;
        place-items: start center;
    }

    .login-mobile-brand {
        width: 142px;
        height: 50px;
        margin-bottom: 29px;
    }

    .login-card-heading {
        margin-bottom: 23px;
    }

    .login-card-heading h2 {
        font-size: 1.8rem;
    }

    .login-card-heading p {
        font-size: 0.8rem;
    }

    .login-field-control input {
        min-height: 53px;
    }

    .login-signup {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-signup > a {
        width: 100%;
        text-align: center;
    }

    .login-access-footer {
        margin-top: 22px;
    }
}

@media (max-width: 370px) {
    .login-access {
        padding-right: 13px;
        padding-left: 13px;
    }

    .login-card-heading h2 {
        font-size: 1.65rem;
    }

    .login-security-label {
        font-size: 0.59rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit::before {
        display: none;
    }

    .login-submit-loading i {
        animation-duration: 1.5s;
    }
}
/* =========================================================
   ESTRUTURA PRINCIPAL DO PAINEL — VERSÃO PREMIUM
   ========================================================= */

.admin-layout-v2 {
    --sidebar-expanded-width: 292px;
    --sidebar-collapsed-width: 86px;
    --admin-topbar-height: 84px;
    --admin-content-max-width: 1680px;

    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--text, #1c2434);
    background: #f5f7fa;
}

.admin-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--primary, #e4572e);
    transform: translateY(-150%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell-v2 {
    --current-sidebar-width: var(--sidebar-expanded-width);

    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns:
        var(--current-sidebar-width)
        minmax(0, 1fr);
    transition: grid-template-columns 0.22s ease;
}

.app-shell-v2.is-collapsed {
    --current-sidebar-width: var(--sidebar-collapsed-width);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar-v2 {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #dce5f2;
    background:
        radial-gradient(
            circle at 20% 0,
            color-mix(in srgb, var(--primary, #e4572e) 23%, transparent),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #152945,
            #101f35 62%,
            #0d1a2c
        );
    box-shadow: 12px 0 35px rgba(13, 26, 44, 0.08);
}

.sidebar-header-v2 {
    min-height: 94px;
    padding: 14px 14px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.sidebar-brand-v2 {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    text-decoration: none;
}

.sidebar-brand-v2:hover {
    color: #ffffff;
    text-decoration: none;
}

.sidebar-brand-media {
    width: 55px;
    height: 55px;
    flex: 0 0 auto;
    padding: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.sidebar-company-logo,
.sidebar-system-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sidebar-brand-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand-copy small {
    width: fit-content;
    max-width: 100%;
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: #aebed1;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.55rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-collapse-button,
.sidebar-close-button {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #afbed0;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        transform 0.22s ease;
}

.sidebar-collapse-button:hover,
.sidebar-close-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.sidebar-collapse-button svg,
.sidebar-close-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-close-button {
    display: none;
}

.app-shell-v2.is-collapsed .sidebar-collapse-button {
    transform: rotate(180deg);
}

/* Navegação */

.side-nav-v2 {
    min-height: 0;
    padding: 13px 11px 24px;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.13)
        transparent;
}

.side-nav-v2::-webkit-scrollbar {
    width: 5px;
}

.side-nav-v2::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.side-nav-section + .side-nav-section {
    margin-top: 18px;
}

.side-nav-section-label {
    margin: 0 11px 7px;
    display: block;
    overflow: hidden;
    color: #788ba3;
    font-size: 0.54rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.side-nav-link {
    position: relative;
    min-height: 44px;
    margin: 3px 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #adbdcf;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.side-nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 19px;
    border-radius: 0 999px 999px 0;
    background: var(--primary, #e4572e);
    opacity: 0;
    transform: translateY(-50%) scaleY(0.4);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.side-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.065);
    transform: translateX(2px);
}

.side-nav-link.is-active {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 24%,
            transparent
        );
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            color-mix(
                in srgb,
                var(--primary, #e4572e) 22%,
                transparent
            ),
            rgba(255, 255, 255, 0.045)
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 8px 18px rgba(0, 0, 0, 0.07);
}

.side-nav-link.is-active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.side-nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-nav-icon-whatsapp {
    fill: currentColor;
    stroke: none;
}

.side-nav-link > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Rodapé da sidebar */

.sidebar-footer-v2 {
    padding: 12px;
    display: grid;
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(5, 14, 26, 0.18);
}

.sidebar-public-link {
    min-height: 42px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    color: #c4d0de;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
    font-size: 0.66rem;
    font-weight: 750;
}

.sidebar-public-link:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            transparent
        );
    color: #ffffff;
    background:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 12%,
            rgba(255, 255, 255, 0.04)
        );
}

.sidebar-public-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-public-link span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-external-icon {
    width: 14px !important;
    height: 14px !important;
    color: #7f92aa;
}

.sidebar-user {
    min-height: 50px;
    padding: 7px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            rgba(255, 255, 255, 0.14)
        );
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary, #e4572e),
            color-mix(
                in srgb,
                var(--primary, #e4572e) 72%,
                #000000
            )
        );
    font-size: 0.78rem;
    font-weight: 900;
}

.sidebar-user-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy strong {
    color: #ffffff;
    font-size: 0.64rem;
}

.sidebar-user-copy small {
    color: #8092a9;
    font-size: 0.53rem;
}

.sidebar-logout-button {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #9aacc1;
    background: transparent;
    cursor: pointer;
}

.sidebar-logout-button:hover {
    color: #ffadad;
    background: rgba(207, 49, 58, 0.13);
}

.sidebar-logout-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sidebar recolhida */

.app-shell-v2.is-collapsed .sidebar-header-v2 {
    padding-right: 10px;
    padding-left: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-shell-v2.is-collapsed .sidebar-brand-v2 {
    flex: 0 0 auto;
    justify-content: center;
}

.app-shell-v2.is-collapsed .sidebar-brand-media {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.app-shell-v2.is-collapsed .sidebar-brand-copy,
.app-shell-v2.is-collapsed .side-nav-section-label,
.app-shell-v2.is-collapsed .side-nav-link > span,
.app-shell-v2.is-collapsed .sidebar-public-link > span,
.app-shell-v2.is-collapsed .sidebar-external-icon,
.app-shell-v2.is-collapsed .sidebar-user-copy {
    display: none;
}

.app-shell-v2.is-collapsed .sidebar-collapse-button {
    position: absolute;
    top: 68px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.app-shell-v2.is-collapsed .side-nav-v2 {
    padding-right: 9px;
    padding-left: 9px;
}

.app-shell-v2.is-collapsed .side-nav-section + .side-nav-section {
    margin-top: 10px;
}

.app-shell-v2.is-collapsed .side-nav-link {
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
}

.app-shell-v2.is-collapsed .side-nav-link:hover {
    transform: none;
}

.app-shell-v2.is-collapsed .sidebar-public-link {
    padding: 0;
    justify-content: center;
}

.app-shell-v2.is-collapsed .sidebar-user {
    padding: 6px;
    grid-template-columns: 1fr;
    justify-items: center;
}

.app-shell-v2.is-collapsed .sidebar-user form {
    display: none;
}

/* =========================================================
   CONTEÚDO PRINCIPAL
   ========================================================= */

.main-content-v2 {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(
            circle at 100% 0,
            color-mix(
                in srgb,
                var(--primary, #e4572e) 5%,
                transparent
            ),
            transparent 26%
        ),
        #f5f7fa;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar-v2 {
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: var(--admin-topbar-height);
    padding:
        12px
        clamp(18px, 2.7vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(218, 224, 232, 0.88);
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 5px 24px rgba(26, 39, 57, 0.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-start {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.mobile-menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    display: none;
    place-items: center;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 11px;
    color: var(--secondary, #1d3557);
    background: #ffffff;
    cursor: pointer;
}

.mobile-menu-button:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            var(--line, #dde2e9)
        );
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
}

.mobile-menu-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.topbar-heading {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.topbar-company {
    overflow: hidden;
    color: var(--primary, #e4572e);
    font-size: 0.56rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-heading h1 {
    margin: 0;
    overflow: hidden;
    color: var(--text, #1c2434);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-heading small {
    overflow: hidden;
    color: var(--muted, #737e8e);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.topbar-custom-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-date {
    min-height: 39px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 10px;
    color: var(--muted, #737e8e);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.61rem;
    font-weight: 700;
}

.topbar-date svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-date i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a9b1bc;
}

.topbar-icon-link {
    min-height: 39px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 10px;
    color: var(--secondary, #1d3557);
    background: #ffffff;
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 800;
}

.topbar-icon-link:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            var(--line, #dde2e9)
        );
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
    text-decoration: none;
}

.topbar-icon-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Estado dos pedidos */

.orders-state-button {
    min-height: 39px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 850;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.orders-state-button:hover {
    transform: translateY(-1px);
}

.orders-state-button > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.orders-state-button.is-open {
    border-color: #bfe2cb;
    color: #16713d;
    background: #eff9f2;
}

.orders-state-button.is-open > i {
    background: #28a75d;
    box-shadow: 0 0 0 4px rgba(40, 167, 93, 0.11);
}

.orders-state-button.is-paused {
    border-color: #f1c5c8;
    color: #9c2b34;
    background: #fff2f3;
}

.orders-state-button.is-paused > i {
    background: #ce3843;
    box-shadow: 0 0 0 4px rgba(206, 56, 67, 0.1);
}

.orders-state-label-short {
    display: none;
}

/* Conta do usuário */

.topbar-account {
    position: relative;
}

.topbar-account summary {
    min-height: 44px;
    padding: 4px 8px 4px 5px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.topbar-account summary::-webkit-details-marker {
    display: none;
}

.topbar-account[open] summary {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            var(--line, #dde2e9)
        );
    box-shadow: 0 0 0 3px
        color-mix(
            in srgb,
            var(--primary, #e4572e) 8%,
            transparent
        );
}

.topbar-account-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary, #e4572e),
            color-mix(
                in srgb,
                var(--primary, #e4572e) 72%,
                #000000
            )
        );
    font-size: 0.7rem;
    font-weight: 900;
}

.topbar-account-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.topbar-account-copy strong,
.topbar-account-copy small {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-account-copy strong {
    color: var(--text, #1c2434);
    font-size: 0.62rem;
}

.topbar-account-copy small {
    color: var(--muted, #737e8e);
    font-size: 0.52rem;
}

.topbar-account-chevron {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #8c96a5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.topbar-account[open] .topbar-account-chevron {
    transform: rotate(180deg);
}

.topbar-account-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 100;
    width: 260px;
    padding: 8px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(22, 35, 51, 0.16);
}

.topbar-account-menu-heading {
    padding: 10px;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    background: #f5f7fa;
}

.topbar-account-menu-heading > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: var(--secondary, #1d3557);
    font-size: 0.73rem;
    font-weight: 900;
}

.topbar-account-menu-heading div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.topbar-account-menu-heading strong,
.topbar-account-menu-heading small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-account-menu-heading strong {
    font-size: 0.67rem;
}

.topbar-account-menu-heading small {
    color: var(--muted, #737e8e);
    font-size: 0.55rem;
}

.topbar-account-menu > a,
.topbar-account-menu form button {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    color: #495468;
    background: transparent;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 720;
}

.topbar-account-menu > a:hover,
.topbar-account-menu form button:hover {
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
    text-decoration: none;
}

.topbar-account-menu form {
    margin: 0;
    padding-top: 3px;
    border-top: 1px solid var(--line, #dde2e9);
}

.topbar-account-menu form button:hover {
    color: #b52f38;
    background: #fff1f2;
}

.topbar-account-menu svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   MENSAGENS
   ========================================================= */

.messages-v2 {
    width: min(
        calc(100% - 40px),
        var(--admin-content-max-width)
    );
    margin: 18px auto 0;
    display: grid;
    gap: 9px;
}

.message-v2 {
    min-height: 50px;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(23, 34, 49, 0.045);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.message-v2.is-leaving {
    opacity: 0;
    transform: translateY(-5px);
}

.message-v2-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.message-v2-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-v2-copy {
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.5;
}

.message-v2.success {
    border-color: #bce2c8;
    color: #176d3a;
    background: #effaf3;
}

.message-v2.success .message-v2-icon {
    background: #daf2e2;
}

.message-v2.error,
.message-v2.danger {
    border-color: #efc1c5;
    color: #962832;
    background: #fff2f3;
}

.message-v2.error .message-v2-icon,
.message-v2.danger .message-v2-icon {
    background: #f9dfe1;
}

.message-v2.warning {
    border-color: #efd49a;
    color: #805000;
    background: #fff8e9;
}

.message-v2.warning .message-v2-icon {
    background: #f9e9c4;
}

.message-v2.info,
.message-v2:not(.success):not(.error):not(.danger):not(.warning) {
    border-color: #c7d9ec;
    color: #285f91;
    background: #f0f7ff;
}

.message-v2.info .message-v2-icon {
    background: #dcecff;
}

.message-dismiss-button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: currentColor;
    background: transparent;
    cursor: pointer;
    opacity: 0.58;
}

.message-dismiss-button:hover {
    background: rgba(0, 0, 0, 0.055);
    opacity: 1;
}

.message-dismiss-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* =========================================================
   CONTEÚDO DAS PÁGINAS
   ========================================================= */

.page-content-v2 {
    width: min(
        calc(100% - 40px),
        var(--admin-content-max-width)
    );
    margin: 0 auto;
    padding:
        24px
        0
        max(40px, env(safe-area-inset-bottom));
}

/* Overlay mobile */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    border: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(9, 18, 31, 0.64);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   TABLET E MOBILE
   ========================================================= */

@media (max-width: 1180px) {
    .topbar-date {
        display: none;
    }

    .topbar-account-copy {
        display: none;
    }

    .topbar-account summary {
        grid-template-columns: 34px 14px;
    }
}

@media (max-width: 960px) {
    .admin-layout-v2.sidebar-open {
        overflow: hidden;
    }

    .app-shell-v2,
    .app-shell-v2.is-collapsed {
        display: block;
    }

    .sidebar-v2 {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        width: min(316px, calc(100vw - 28px));
        height: 100vh;
        height: 100dvh;
        box-shadow: 22px 0 60px rgba(5, 14, 26, 0.3);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .sidebar-v2.is-open {
        transform: translateX(0);
    }

    .sidebar-collapse-button {
        display: none;
    }

    .sidebar-close-button {
        display: grid;
    }

    .app-shell-v2.is-collapsed .sidebar-header-v2 {
        padding: 14px 14px 12px;
        justify-content: initial;
        flex-wrap: nowrap;
    }

    .app-shell-v2.is-collapsed .sidebar-brand-v2 {
        flex: 1;
        justify-content: flex-start;
    }

    .app-shell-v2.is-collapsed .sidebar-brand-media {
        width: 55px;
        height: 55px;
    }

    .app-shell-v2.is-collapsed .sidebar-brand-copy,
    .app-shell-v2.is-collapsed .side-nav-section-label,
    .app-shell-v2.is-collapsed .side-nav-link > span,
    .app-shell-v2.is-collapsed .sidebar-public-link > span,
    .app-shell-v2.is-collapsed .sidebar-external-icon,
    .app-shell-v2.is-collapsed .sidebar-user-copy {
        display: initial;
    }

    .app-shell-v2.is-collapsed .sidebar-brand-copy,
    .app-shell-v2.is-collapsed .sidebar-user-copy {
        display: grid;
    }

    .app-shell-v2.is-collapsed .side-nav-link {
        padding: 9px 11px;
        justify-content: flex-start;
    }

    .app-shell-v2.is-collapsed .sidebar-public-link {
        padding: 9px 10px;
        justify-content: flex-start;
    }

    .app-shell-v2.is-collapsed .sidebar-user {
        padding: 7px;
        grid-template-columns: 38px minmax(0, 1fr) 34px;
        justify-items: initial;
    }

    .app-shell-v2.is-collapsed .sidebar-user form {
        display: block;
    }

    .mobile-menu-button {
        display: grid;
    }

    .topbar-v2 {
        min-height: 74px;
        padding:
            10px
            15px;
    }

    .page-content-v2,
    .messages-v2 {
        width: calc(100% - 28px);
    }

    .page-content-v2 {
        padding-top: 18px;
    }
}

@media (max-width: 700px) {
    .topbar-v2 {
        gap: 10px;
    }

    .topbar-heading small {
        display: none;
    }

    .topbar-company {
        font-size: 0.5rem;
    }

    .topbar-heading h1 {
        font-size: 1rem;
    }

    .topbar-public-menu span {
        display: none;
    }

    .topbar-public-menu {
        width: 40px;
        padding: 0;
    }

    .topbar-account-chevron {
        display: none;
    }

    .topbar-account summary {
        width: 42px;
        padding: 4px;
        display: grid;
        grid-template-columns: 34px;
        place-items: center;
    }

    .topbar-account-menu {
        position: fixed;
        top: 68px;
        right: 12px;
        width: min(280px, calc(100vw - 24px));
    }
}

@media (max-width: 540px) {
    .topbar-v2 {
        min-height: 68px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .topbar-start {
        gap: 8px;
    }

    .mobile-menu-button {
        width: 39px;
        height: 39px;
    }

    .topbar-actions {
        gap: 5px;
    }

    .topbar-custom-actions {
        display: none;
    }

    .orders-state-button {
        min-width: 40px;
        min-height: 39px;
        padding: 8px 9px;
    }

    .orders-state-label-full {
        display: none;
    }

    .orders-state-label-short {
        display: inline;
    }

    .topbar-public-menu {
        display: none;
    }

    .page-content-v2,
    .messages-v2 {
        width: calc(100% - 20px);
    }

    .page-content-v2 {
        padding-top: 14px;
    }

    .message-v2 {
        grid-template-columns: 29px minmax(0, 1fr) 30px;
        padding: 9px;
    }
}

@media (max-width: 390px) {
    .topbar-heading {
        max-width: 125px;
    }

    .orders-state-label-short {
        display: none;
    }

    .orders-state-button {
        width: 39px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell-v2,
    .sidebar-v2,
    .sidebar-overlay,
    .side-nav-link,
    .message-v2 {
        transition: none;
    }
}

/* =========================================================
   DASHBOARD — VISÃO GERAL PREMIUM
   ========================================================= */

.overview-dashboard {
    display: grid;
    gap: 22px;
}

/* Ações da topbar */

.overview-top-action {
    min-height: 39px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 820;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.overview-top-action:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.overview-top-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-top-action-primary {
    border-color: var(--primary, #e4572e);
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary, #e4572e),
            color-mix(
                in srgb,
                var(--primary, #e4572e) 74%,
                #000000
            )
        );
    box-shadow:
        0 8px 18px
        color-mix(
            in srgb,
            var(--primary, #e4572e) 22%,
            transparent
        );
}

.overview-top-action-primary:hover {
    color: #ffffff;
    box-shadow:
        0 11px 23px
        color-mix(
            in srgb,
            var(--primary, #e4572e) 29%,
            transparent
        );
}

.overview-top-action-secondary {
    border-color: var(--line, #dde2e9);
    color: var(--secondary, #1d3557);
    background: #ffffff;
}

.overview-top-action-secondary:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 35%,
            var(--line, #dde2e9)
        );
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
}

/* Apresentação inicial */

.overview-welcome {
    position: relative;
    min-height: 265px;
    padding: clamp(27px, 4vw, 43px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    align-items: center;
    gap: 35px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 20%,
            color-mix(
                in srgb,
                var(--primary, #e4572e) 36%,
                transparent
            ),
            transparent 29%
        ),
        radial-gradient(
            circle at 5% 100%,
            rgba(72, 126, 190, 0.22),
            transparent 34%
        ),
        linear-gradient(
            140deg,
            #102039,
            var(--secondary, #1d3557) 62%,
            #122640
        );
    box-shadow:
        0 22px 50px rgba(16, 32, 57, 0.14);
}

.overview-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
    pointer-events: none;
}

.overview-welcome-decoration {
    position: absolute;
    top: -165px;
    right: -130px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, 0.018),
        0 0 0 130px rgba(255, 255, 255, 0.012);
}

.overview-welcome-content,
.overview-welcome-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.overview-eyebrow,
.overview-card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9a79;
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.overview-eyebrow i {
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.overview-welcome h2 {
    margin: 13px 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.overview-welcome h2 strong {
    color: #ff8e6b;
    font-weight: inherit;
}

.overview-welcome-content > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.84rem;
    line-height: 1.7;
}

.overview-welcome-content > p b {
    color: #ffffff;
}

.overview-welcome-tags {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-operation-status,
.overview-role-tag,
.overview-date-tag {
    min-height: 32px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.59rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.overview-operation-status > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.overview-operation-status.is-open {
    border-color: rgba(83, 219, 128, 0.22);
    color: #9ae9b3;
    background: rgba(39, 166, 83, 0.1);
}

.overview-operation-status.is-open > i {
    background: #50d77d;
    box-shadow: 0 0 0 4px rgba(80, 215, 125, 0.11);
}

.overview-operation-status.is-paused {
    border-color: rgba(255, 133, 141, 0.23);
    color: #ffafb4;
    background: rgba(204, 53, 63, 0.1);
}

.overview-operation-status.is-paused > i {
    background: #ef6972;
    box-shadow: 0 0 0 4px rgba(239, 105, 114, 0.1);
}

.overview-role-tag svg,
.overview-date-tag svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Painel ao vivo */

.overview-live-card {
    width: min(440px, 100%);
    margin-left: auto;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.overview-live-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overview-live-card > header > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.overview-live-card header span:not(.overview-live-icon) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.overview-live-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ff9b79;
    background: rgba(228, 87, 46, 0.15);
}

.overview-live-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-live-card header strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-live-card header small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.54rem;
}

.overview-live-badge {
    padding: 6px 8px;
    display: inline-flex !important;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 6px !important;
    border: 1px solid rgba(89, 220, 132, 0.22);
    border-radius: 999px;
    color: #9be9b4;
    background: rgba(45, 173, 87, 0.1);
    font-size: 0.53rem;
    font-weight: 800;
}

.overview-live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52d77d;
    box-shadow: 0 0 0 4px rgba(82, 215, 125, 0.1);
}

.overview-live-summary {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.overview-live-summary > div {
    min-width: 0;
    padding: 12px;
    display: grid;
    gap: 5px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.065);
}

.overview-live-summary small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-live-summary strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(0.72rem, 1.4vw, 0.94rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ações rápidas mobile */

.overview-mobile-actions {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.overview-mobile-action {
    min-width: 0;
    min-height: 67px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 13px;
    color: var(--text, #1c2434);
    background: #ffffff;
    box-shadow: 0 5px 17px rgba(26, 39, 57, 0.04);
    text-decoration: none;
}

.overview-mobile-action:hover {
    color: var(--primary, #e4572e);
    text-decoration: none;
}

.overview-mobile-action > svg {
    width: 33px;
    height: 33px;
    padding: 7px;
    flex: 0 0 auto;
    border-radius: 9px;
    fill: none;
    stroke: var(--primary, #e4572e);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: var(--primary-soft, #fff1ec);
}

.overview-mobile-action > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.overview-mobile-action strong,
.overview-mobile-action small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-mobile-action strong {
    font-size: 0.67rem;
}

.overview-mobile-action small {
    color: var(--muted, #737e8e);
    font-size: 0.54rem;
}

.overview-mobile-action.is-primary {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 30%,
            var(--line, #dde2e9)
        );
    background:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 5%,
            #ffffff
        );
}

/* Indicadores */

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 14px;
}

.overview-metric-card {
    position: relative;
    min-width: 0;
    min-height: 171px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(25, 39, 57, 0.045);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.overview-metric-card::after {
    content: "";
    position: absolute;
    top: -48px;
    right: -48px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 4%,
            transparent
        );
}

.overview-metric-card:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 25%,
            var(--line, #dde2e9)
        );
    box-shadow: 0 14px 34px rgba(25, 39, 57, 0.075);
    transform: translateY(-2px);
}

.overview-metric-card.has-attention {
    border-color: #f0c6c9;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff8f8
        );
}

.overview-metric-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-metric-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.overview-metric-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-metric-icon.is-orders {
    color: #d65028;
    background: #fff0eb;
}

.overview-metric-icon.is-tabs {
    color: #7653bd;
    background: #f2edfc;
}

.overview-metric-icon.is-revenue {
    color: #16834a;
    background: #eaf8ef;
}

.overview-metric-icon.is-ticket {
    color: #3275b6;
    background: #eaf4ff;
}

.overview-metric-icon.is-stock {
    color: #b07009;
    background: #fff5df;
}

.overview-metric-label {
    color: var(--muted, #737e8e);
    font-size: 0.65rem;
    font-weight: 750;
}

.overview-metric-value {
    position: relative;
    z-index: 2;
    margin: 18px 0 15px;
    color: var(--text, #1c2434);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.overview-metric-currency {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.overview-metric-card footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.overview-metric-card footer > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--muted, #737e8e);
    font-size: 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-metric-card footer > span i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.overview-metric-card footer > span i.is-orange {
    background: #e97729;
}

.overview-metric-card footer > span i.is-purple {
    background: #7653bd;
}

.overview-metric-card footer > span i.is-green {
    background: #28a65d;
}

.overview-metric-card footer > span i.is-blue {
    background: #3275b6;
}

.overview-metric-card footer > span i.is-red {
    background: #d6434c;
}

.overview-metric-card footer a {
    flex: 0 0 auto;
    color: var(--primary, #e4572e);
    font-size: 0.56rem;
    font-weight: 800;
    text-decoration: none;
}

.overview-metric-card footer a:hover {
    text-decoration: underline;
}

/* Estrutura inferior */

.overview-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
    align-items: start;
    gap: 16px;
}

.overview-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 27px rgba(25, 39, 57, 0.045);
}

.overview-card-heading {
    min-height: 98px;
    padding: 20px 21px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line, #dde2e9);
}

.overview-card-heading-compact {
    min-height: auto;
    padding: 18px;
}

.overview-card-heading > div {
    min-width: 0;
}

.overview-card-eyebrow {
    color: var(--primary, #e4572e);
    font-size: 0.54rem;
}

.overview-card-heading h3 {
    margin: 6px 0 4px;
    color: var(--text, #1c2434);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.overview-card-heading p {
    margin: 0;
    color: var(--muted, #737e8e);
    font-size: 0.62rem;
    line-height: 1.5;
}

.overview-card-link {
    min-height: 35px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 9px;
    color: var(--secondary, #1d3557);
    background: #ffffff;
    font-size: 0.59rem;
    font-weight: 800;
    text-decoration: none;
}

.overview-card-link:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary, #e4572e) 30%,
            var(--line, #dde2e9)
        );
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
    text-decoration: none;
}

.overview-card-link svg,
.overview-full-link svg,
.overview-stock-focus > a svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tabela */

.overview-table-wrapper {
    overflow-x: auto;
}

.overview-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-orders-table th,
.overview-orders-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: middle;
}

.overview-orders-table th {
    color: #8993a2;
    background: #fafbfc;
    font-size: 0.52rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.overview-orders-table tbody tr {
    transition: background-color 0.15s ease;
}

.overview-orders-table tbody tr:hover {
    background: #fafbfc;
}

.overview-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.overview-order-code {
    display: flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.overview-order-code:hover {
    color: var(--primary, #e4572e);
    text-decoration: none;
}

.overview-order-symbol {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
    font-size: 0.53rem;
    font-weight: 900;
}

.overview-order-code > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.overview-order-code strong {
    font-size: 0.65rem;
}

.overview-order-code small {
    color: var(--muted, #737e8e);
    font-size: 0.52rem;
}

.overview-table-primary {
    display: block;
    color: var(--text, #1c2434);
    font-size: 0.62rem;
    font-weight: 700;
}

.overview-fulfillment {
    padding: 5px 7px;
    display: inline-flex;
    border-radius: 7px;
    color: #586579;
    background: #f0f3f7;
    font-size: 0.53rem;
    font-weight: 750;
}

.overview-orders-table .badge {
    white-space: nowrap;
}

.overview-order-total {
    color: var(--text, #1c2434);
    font-size: 0.62rem;
    white-space: nowrap;
}

.overview-order-action {
    width: 45px;
}

.overview-order-action a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 8px;
    color: #8290a0;
    background: #ffffff;
}

.overview-order-action a:hover {
    border-color: var(--primary, #e4572e);
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
}

.overview-order-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Estado vazio */

.overview-empty-row:hover {
    background: transparent !important;
}

.overview-empty-state {
    padding: 45px 20px;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.overview-empty-state > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
}

.overview-empty-state svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-empty-state strong {
    margin-top: 5px;
    font-size: 0.76rem;
}

.overview-empty-state p {
    max-width: 360px;
    margin: 0;
    color: var(--muted, #737e8e);
    font-size: 0.62rem;
    line-height: 1.5;
}

.overview-empty-state a {
    margin-top: 6px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--primary, #e4572e);
    font-size: 0.59rem;
    font-weight: 800;
    text-decoration: none;
}

/* Coluna lateral */

.overview-side-column {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.overview-realtime-label {
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: #18723e;
    background: #eaf8ef;
    font-size: 0.52rem;
    font-weight: 800;
}

.overview-realtime-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a65d;
    box-shadow: 0 0 0 4px rgba(40, 166, 93, 0.1);
}

.overview-status-grid {
    padding: 13px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.overview-status-item {
    min-width: 0;
    min-height: 92px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 12px;
    background: #fafbfc;
}

.overview-status-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.overview-status-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-status-item > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.overview-status-item small {
    overflow: hidden;
    color: var(--muted, #737e8e);
    font-size: 0.52rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-status-item strong {
    color: var(--text, #1c2434);
    font-size: 1.25rem;
    font-weight: 900;
}

.overview-status-item.is-pending .overview-status-icon {
    color: #b9750b;
    background: #fff3dc;
}

.overview-status-item.is-preparing .overview-status-icon {
    color: #7653bd;
    background: #f1ebfc;
}

.overview-status-item.is-ready .overview-status-icon {
    color: #16834a;
    background: #e9f8ee;
}

.overview-status-item.is-delivered .overview-status-icon {
    color: #3275b6;
    background: #eaf4ff;
}

.overview-full-link {
    min-height: 43px;
    margin: 0 13px 13px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    border-radius: 10px;
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
    font-size: 0.61rem;
    font-weight: 800;
    text-decoration: none;
}

.overview-full-link:hover {
    color: #ffffff;
    background: var(--primary, #e4572e);
    text-decoration: none;
}

/* Ranking */

.overview-ranking {
    margin: 0;
    padding: 9px 15px 15px;
    list-style: none;
}

.overview-ranking > li {
    min-height: 59px;
    padding: 10px 2px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #edf0f4;
}

.overview-ranking > li:last-child {
    border-bottom: 0;
}

.overview-ranking-position {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #7a8594;
    background: #f0f3f7;
    font-size: 0.52rem;
    font-weight: 900;
}

.overview-ranking-position.is-first {
    color: #9d680e;
    background: #fff0c6;
}

.overview-ranking-position.is-second {
    color: #67717e;
    background: #e9edf2;
}

.overview-ranking-position.is-third {
    color: #9a5731;
    background: #f6dfd1;
}

.overview-ranking-product {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.overview-ranking-product strong,
.overview-ranking-product small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-ranking-product strong {
    font-size: 0.62rem;
}

.overview-ranking-product small {
    color: var(--muted, #737e8e);
    font-size: 0.49rem;
}

.overview-ranking > li > b {
    color: var(--text, #1c2434);
    font-size: 0.65rem;
    white-space: nowrap;
}

.overview-ranking > li > b small {
    color: var(--muted, #737e8e);
    font-size: 0.48rem;
}

.overview-ranking-empty {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    padding: 19px 3px !important;
}

.overview-ranking-empty > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary, #e4572e);
    background: var(--primary-soft, #fff1ec);
}

.overview-ranking-empty svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-ranking-empty div {
    display: grid;
    gap: 4px;
}

.overview-ranking-empty strong {
    font-size: 0.62rem;
}

.overview-ranking-empty small {
    color: var(--muted, #737e8e);
    font-size: 0.52rem;
    line-height: 1.45;
}

/* Foco para usuário de estoque */

.overview-stock-focus {
    min-height: 180px;
    padding: 25px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line, #dde2e9);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(234, 169, 48, 0.1),
            transparent 25%
        ),
        #ffffff;
    box-shadow: 0 8px 27px rgba(25, 39, 57, 0.045);
}

.overview-stock-focus-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #b07009;
    background: #fff3d9;
}

.overview-stock-focus-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-stock-focus h3 {
    margin: 7px 0 6px;
    font-size: 1.15rem;
}

.overview-stock-focus p {
    max-width: 680px;
    margin: 0;
    color: var(--muted, #737e8e);
    font-size: 0.68rem;
    line-height: 1.55;
}

.overview-stock-focus > a {
    min-height: 42px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--primary, #e4572e);
    font-size: 0.64rem;
    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1250px) {
    .overview-main-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    }

    .overview-live-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-live-summary > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .overview-welcome {
        grid-template-columns: 1fr;
    }

    .overview-live-card {
        width: 100%;
        margin: 0;
    }

    .overview-live-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .overview-live-summary > div:last-child {
        grid-column: auto;
    }

    .overview-main-grid {
        grid-template-columns: 1fr;
    }

    .overview-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .overview-mobile-actions {
        display: grid;
    }

    .overview-welcome {
        min-height: auto;
        padding: 25px 21px;
        border-radius: 19px;
    }

    .overview-welcome h2 {
        font-size: 2.15rem;
    }

    .overview-welcome-visual {
        display: none;
    }

    .overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-metric-card {
        min-height: 155px;
        padding: 15px;
    }

    .overview-metric-card footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-side-column {
        grid-template-columns: 1fr;
    }

    .overview-card-heading {
        min-height: auto;
        padding: 17px;
    }

    .overview-orders-table thead {
        display: none;
    }

    .overview-orders-table,
    .overview-orders-table tbody,
    .overview-orders-table tr,
    .overview-orders-table td {
        display: block;
        width: 100%;
    }

    .overview-orders-table tbody {
        padding: 11px;
    }

    .overview-orders-table tr {
        position: relative;
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid var(--line, #dde2e9);
        border-radius: 13px;
        background: #ffffff;
    }

    .overview-orders-table tr:last-child {
        margin-bottom: 0;
    }

    .overview-orders-table td {
        min-height: 30px;
        padding: 6px 0 6px 95px;
        border: 0;
        text-align: right;
    }

    .overview-orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        color: #8b95a3;
        font-size: 0.52rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .overview-orders-table td:first-child {
        margin-bottom: 8px;
        padding: 0 38px 11px 0;
        border-bottom: 1px solid #edf0f4;
        text-align: left;
    }

    .overview-orders-table td:first-child::before,
    .overview-orders-table td:last-child::before {
        display: none;
    }

    .overview-order-code {
        justify-content: flex-start;
    }

    .overview-order-action {
        position: absolute;
        top: 16px;
        right: 13px;
        width: auto !important;
        padding: 0 !important;
    }

    .overview-empty-row {
        padding: 0 !important;
    }

    .overview-empty-row td {
        padding: 0 !important;
        text-align: center;
    }

    .overview-empty-row td::before {
        display: none;
    }

    .overview-stock-focus {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .overview-stock-focus > a {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .overview-dashboard {
        gap: 14px;
    }

    .overview-welcome {
        padding: 22px 17px;
    }

    .overview-welcome h2 {
        font-size: 1.85rem;
    }

    .overview-welcome-content > p {
        font-size: 0.76rem;
    }

    .overview-welcome-tags {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-mobile-actions {
        grid-template-columns: 1fr;
    }

    .overview-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .overview-metric-card {
        min-height: 148px;
    }

    .overview-metric-card footer {
        align-items: center;
        flex-direction: row;
    }

    .overview-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .overview-card-link {
        width: 100%;
        justify-content: center;
    }

    .overview-status-grid {
        grid-template-columns: 1fr;
    }

    .overview-status-item {
        min-height: 72px;
    }

    .overview-stock-focus {
        padding: 19px;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .overview-stock-focus-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .overview-stock-focus-icon svg {
        width: 23px;
        height: 23px;
    }
}

@media (max-width: 370px) {
    .overview-welcome h2 {
        font-size: 1.65rem;
    }

    .overview-metric-card footer {
        align-items: flex-start;
        flex-direction: column;
    }
}