:root{--bg:#f4f5f6;--sidebar:#111;--surface:#fff;--surface2:#f8f8f8;--border:#e6e7e9;--green:#171717;--green-light:#333;--text:#171717;--muted:#777b80;--danger:#c83d3d;--shadow:0 8px 28px rgba(20,20,20,.055)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-body{background:var(--bg);min-height:100vh}.app-shell{display:flex;min-height:100vh}.sidebar{width:258px;flex:0 0 258px;background:#111;color:#f7f7f7;padding:25px 17px 18px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:30}.brand{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 4px 25px;text-align:center}.brand-logo{display:block;width:142px;height:142px;max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 12px #0008)}.brand-caption{font-size:8px;font-weight:800;letter-spacing:1.5px;color:#999}.sidebar-label{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#777;padding:0 11px;margin:16px 0 9px}.side-nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;border-radius:8px;color:#bcbcbc;font-size:12px;font-weight:600;transition:.18s}.nav-link:hover{background:#252525;color:#fff}.nav-link.active{background:#fff;color:#111;font-weight:800}.nav-icon{width:18px;text-align:center;font-size:17px;line-height:1}.sidebar-bottom{margin-top:auto;padding-top:25px}.sidebar-company{display:flex;align-items:center;gap:9px;padding:12px 10px;margin-bottom:10px;border:1px solid #303030;border-radius:9px}.sidebar-company small{display:block;color:#888;font-size:8px;letter-spacing:1px;margin-bottom:4px}.sidebar-company strong{display:block;color:#eee;font-size:11px;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-dot,.status-dot{width:7px;height:7px;background:#a6e2bd;border-radius:50%;display:inline-block;flex:0 0 auto}.logout-link{border-top:1px solid #292929;border-radius:0;margin-top:5px;padding-top:15px}.developer-mini{text-align:center;color:#777;font-size:9px;line-height:1.7;padding:17px 5px 0;border-top:1px solid #292929;margin-top:12px}.developer-mini strong{color:#fff;letter-spacing:1px}.main-area{min-width:0;flex:1}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}.topbar-context{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#777;display:flex;align-items:center;gap:10px}.topbar-context .status-dot{background:#111}.topbar-divider{color:#ccc}.menu-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:8px;width:38px;height:38px;font-size:18px;cursor:pointer}.profile-menu{position:relative}.profile-trigger{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}.profile-trigger::-webkit-details-marker{display:none}.profile-copy{text-align:right}.profile-copy strong,.profile-copy span{display:block}.profile-copy strong{font-size:11px}.profile-copy span{font-size:9px;color:#888;margin-top:3px}.avatar{width:34px;height:34px;background:#111;color:#fff;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.profile-chevron{color:#777;font-size:14px}.profile-dropdown{position:absolute;right:0;top:47px;width:210px;padding:8px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);z-index:50}.profile-dropdown-user{padding:9px 10px 12px;border-bottom:1px solid var(--border);margin-bottom:5px}.profile-dropdown-user strong,.profile-dropdown-user span{display:block}.profile-dropdown-user strong{font-size:12px}.profile-dropdown-user span{font-size:10px;color:#888;margin-top:4px}.profile-dropdown a{display:block;padding:10px;border-radius:7px;font-size:11px}.profile-dropdown a:hover{background:#f2f2f2}.profile-logout{color:#b32626}.content-wrap{max-width:1600px;margin:0 auto;padding:32px 36px 24px}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{margin:0 0 9px;color:#858585;font-size:9px;font-weight:850;letter-spacing:1.5px}.welcome-row h1{margin:0;font-size:29px;letter-spacing:-1.1px;font-weight:850}.wave{font-size:19px;color:#777}.welcome-subtitle{margin:8px 0 0;color:#777;font-size:12px}.welcome-subtitle strong{color:#333}.date-chip{background:#fff;border:1px solid var(--border);border-radius:8px;padding:10px 13px;font-size:10px;color:#555;white-space:nowrap}.date-chip span{font-size:14px;margin-right:8px}.dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.action-primary,.action-secondary{min-height:72px;display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:10px;transition:.18s}.action-primary{background:#111;color:#fff}.action-primary:hover{background:#303030;transform:translateY(-1px)}.action-primary>span:first-child{width:34px;height:34px;border-radius:9px;background:#fff;color:#111;display:grid;place-items:center;font-size:22px}.action-secondary{background:#fff;border:1px solid var(--border)}.action-secondary:hover{border-color:#999;transform:translateY(-1px)}.action-icon{width:34px;height:34px;border-radius:9px;background:#f0f0f0;display:grid;place-items:center;font-size:17px}.action-primary strong,.action-secondary strong{display:block;font-size:11px}.action-primary small,.action-secondary small{display:block;font-size:9px;margin-top:4px;color:#999}.action-primary small{color:#aaa}.action-primary b,.action-secondary b{margin-left:auto;font-size:17px;font-weight:400}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:23px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:17px 18px;min-height:119px;box-shadow:0 2px 8px rgba(0,0,0,.015)}.stat-featured{background:#171717;color:#fff;border-color:#171717}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#777;font-size:10px}.stat-featured .stat-top{color:#bbb}.stat-icon{width:27px;height:27px;border-radius:7px;background:#f0f0f0;color:#222;display:grid;place-items:center;font-size:11px;font-weight:800}.stat-featured .stat-icon{background:#333;color:#fff}.stat-card>strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:11px}.stat-card>small{display:block;color:#999;font-size:9px;margin-top:4px}.stat-featured>small{color:#aaa}.dashboard-lower{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.8fr);gap:14px}.panel-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:19px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-heading .eyebrow{margin-bottom:6px}.panel-heading h2{font-size:15px;letter-spacing:-.3px;margin:0}.text-link{font-size:10px;font-weight:750;color:#333;white-space:nowrap}.table-responsive{overflow-x:auto}.recent-table{width:100%;border-collapse:collapse;min-width:580px}.recent-table th{text-align:left;padding:10px 9px;color:#999;font-size:8px;letter-spacing:.8px;text-transform:uppercase;border-bottom:1px solid var(--border)}.recent-table td{padding:12px 9px;border-bottom:1px solid #f0f0f0;font-size:10px;color:#555;white-space:nowrap}.recent-table td:first-child strong,.recent-table td:first-child small{display:block}.recent-table td:first-child strong,.recent-table td:last-child strong{color:#222}.recent-table td:first-child small{font-size:8px;color:#999;margin-top:4px}.order-status{display:inline-block;padding:5px 7px;border-radius:5px;background:#f0f0f0;color:#444;font-size:8px;font-weight:750}.status-completed{background:#ededed;color:#222}.status-cancelled{background:#fbeeee;color:#a33}.status-out_for_delivery{background:#f2f2f2;color:#333}.status-preparing,.status-ready,.status-received{background:#eee;color:#333}.side-panels{display:grid;align-content:start;gap:13px}.status-panel{padding-bottom:9px}.quick-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #f0f0f0}.quick-icon{width:29px;height:29px;background:#f1f1f1;border-radius:8px;display:grid;place-items:center;font-size:14px;color:#222}.quick-row>span:nth-child(2){flex:1}.quick-row strong{display:block;font-size:10px}.quick-row small{display:block;color:#999;font-size:8px;margin-top:4px}.state-pill{font-size:8px;font-weight:800;padding:5px 7px;border-radius:5px}.state-on{background:#eee;color:#222}.state-off{background:#f5eeee;color:#9b3b3b}.quick-number{font-size:15px!important}.help-panel{display:flex;gap:12px;align-items:flex-start;background:#171717;color:#fff;border-color:#171717}.help-mark{width:36px;height:36px;background:#fff;color:#111;border-radius:9px;display:grid;place-items:center;font-size:11px;font-weight:950;flex:0 0 auto}.help-panel strong{font-size:11px}.help-panel p{font-size:9px;line-height:1.5;color:#aaa;margin:5px 0 8px}.help-panel a{font-size:9px;color:#fff;font-weight:750}.empty-state{padding:32px 15px;text-align:center;color:#777}.empty-state>span{font-size:25px;color:#aaa}.empty-state strong{display:block;color:#333;font-size:12px;margin:8px 0}.empty-state p{font-size:10px;margin:0 0 14px}.btn-dark{display:inline-block;padding:9px 13px;background:#111;color:#fff;border-radius:7px;font-size:10px;font-weight:750}.app-footer{display:flex;justify-content:space-between;gap:12px;margin-top:23px;padding:16px 2px 0;border-top:1px solid #e4e4e4;color:#999;font-size:9px}.app-footer strong{color:#555;letter-spacing:.6px}.sidebar-overlay{display:none}
/* Compatibilidade dos módulos existentes */
:root{color-scheme:light}.wrap,.products-page,.pdv-wrap{color:#171717}.products-page,.pdv-wrap{max-width:1500px}.btn{background:#171717!important;color:#fff!important;border-color:#171717!important;border-radius:8px}.btn-primary,.pdv-btn{background:#111!important;color:#fff!important;border-color:#111!important}.product-stat,.product-panel,.pdv-panel,.panel{background:#fff!important;color:#171717!important;border-color:#e5e5e5!important}.product-stat span,.pdv-note,.muted{color:#777!important}.product-stat strong,.pdv-panel h2{color:#171717!important}.product-search,.pdv-search,.pdv-form input,.pdv-form select{background:#fff!important;color:#171717!important;border:1px solid #ddd!important}.pdv-product{background:#f8f8f8!important;color:#171717!important;border-color:#e5e5e5!important}.pdv-product small{color:#777!important}.pdv-product b{color:#171717!important}.formgrid input,.wrap input,.wrap select,.wrap textarea{background:#fff!important;color:#171717!important;border:1px solid #ddd!important}.app-footer{color:#888}
/* Login e telas públicas */
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f3f4f5}.login-card{width:min(430px,100%);padding:34px;background:#fff;border:1px solid #e5e5e5;border-radius:16px;box-shadow:0 20px 60px #0000000d}.login-card .brand{color:#111;padding:0}.login-card .brand b{color:#111}.login-card .brand small{color:#888}.login-card form{display:grid;gap:10px;margin-top:24px}.login-card label{font-size:12px;color:#555}.login-card input{padding:13px;border-radius:8px;border:1px solid #ddd;background:#fff;color:#111}.login-card button{padding:14px;border:0;border-radius:8px;background:#111;color:#fff;font-weight:800;cursor:pointer;margin-top:8px}.alert{padding:10px;background:#fbeaea;color:#9b2929;border-radius:8px}.wrap{max-width:1200px;margin:auto;padding:32px}.wrap header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e5e5;padding-bottom:20px;margin-bottom:30px}.wrap header a{color:#222}.wrap h1{font-size:30px;margin:8px 0}.wrap .eyebrow{color:#777}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:30px}.stats article,.notice{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:22px}.stats span{display:block;color:#777;font-size:13px}.stats strong{display:block;font-size:29px;margin-top:12px}.notice{margin-top:20px;color:#555}.panel{margin-top:20px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:22px}.panel p{line-height:1.7;color:#555}
@media(max-width:1100px){.sidebar{width:235px;flex-basis:235px}.content-wrap{padding:27px 24px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-lower{grid-template-columns:1fr}.side-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:10px 0 35px #0002}.sidebar.sidebar-open{transform:translateX(0)}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:#0008;z-index:25}.main-area{width:100%}.topbar{height:62px;padding:0 16px;gap:12px}.menu-toggle{display:block;flex:0 0 auto}.topbar-context{font-size:8px;letter-spacing:.7px;flex:1}.profile-copy,.profile-chevron{display:none}.content-wrap{padding:23px 16px}.welcome-row{align-items:flex-start;flex-direction:column;gap:13px}.welcome-row h1{font-size:25px}.date-chip{align-self:flex-start}.dashboard-actions{grid-template-columns:1fr;gap:8px}.action-primary,.action-secondary{min-height:62px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:14px;min-height:108px}.stat-card>strong{font-size:21px}.dashboard-lower{grid-template-columns:minmax(0,1fr)}.side-panels{grid-template-columns:1fr}.panel-card{padding:15px}.app-footer{flex-direction:column;line-height:1.6}.products-page,.pdv-wrap{padding:17px}.products-head,.pdv-head{align-items:flex-start;flex-direction:column}.product-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.stats-grid{grid-template-columns:1fr}.topbar-context{font-size:7px}.content-wrap{padding-left:12px;padding-right:12px}.welcome-row h1{font-size:22px}}
@media print{.sidebar,.topbar,.sidebar-overlay,.app-footer{display:none!important}.main-area{width:100%}.content-wrap{padding:0}.app-body{background:#fff}}
