*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f5f6fa;color:#111827}header{background:#101827;color:white;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:0;z-index:2}header small{display:block;color:#cbd5e1;font-size:11px}nav{display:flex;gap:8px;flex-wrap:wrap}nav a,.btn{background:#334155;color:white;text-decoration:none;border:0;border-radius:8px;padding:9px 12px;font-weight:700;cursor:pointer}.btn.primary{background:#16a34a}.btn.danger{background:#dc2626}.btn.light{background:white;color:#111827;border:1px solid #d1d5db}.btn.sec{background:#64748b}.container{max-width:1120px;margin:0 auto;padding:22px}.hero{background:#111827;color:white;border-radius:20px;padding:28px;margin-bottom:20px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.card,.box{background:white;border-radius:16px;box-shadow:0 10px 30px #00000012;padding:16px}.restaurant-img,.prod-img{width:100%;height:150px;object-fit:cover;border-radius:12px;background:#e5e7eb}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{display:flex;justify-content:space-between;gap:10px;align-items:center}.muted{color:#64748b}.price{font-size:20px;font-weight:800}.input,select,textarea{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:10px;margin:6px 0;background:white}table{width:100%;border-collapse:collapse;background:white;border-radius:12px;overflow:hidden}td,th{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}th{background:#f1f5f9}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#e2e8f0;font-size:12px}.ok{background:#dcfce7;color:#166534}.warn{background:#fef3c7;color:#92400e}.bad{background:#fee2e2;color:#991b1b}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.cartbar{position:fixed;right:16px;bottom:16px;background:#16a34a;color:white;border-radius:16px;padding:13px 16px;text-decoration:none;font-weight:800;box-shadow:0 8px 22px #0003}@media(max-width:760px){header{display:block}nav{margin-top:10px}.two,.three{grid-template-columns:1fr}.container{padding:14px}td,th{font-size:13px;padding:7px}}
.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:10px;margin:8px 0}

/* Fase 5 - Operação Comercial */
.kanban{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:start}
.lane{background:#f3f6fb;border:1px solid #dde5f0;border-radius:14px;padding:10px;min-height:110px}
.lane h3{font-size:14px;margin:0 0 10px;color:#111827}
.ticket{background:#fff;border-radius:12px;padding:10px;margin-bottom:8px;box-shadow:0 4px 14px rgba(15,23,42,.08);font-size:13px}
.notice{background:#eef6ff;border-left:4px solid #2563eb;padding:10px;border-radius:8px;margin:10px 0}
@media print{.topbar,.btn,.cartbar{display:none!important}.box{box-shadow:none;border:0}}

/* Fase 7 - Painel administrativo com menu lateral */
html{scroll-behavior:smooth}
.dashboard-mode header{z-index:30}
.admin-sidebar{position:fixed;left:0;top:66px;bottom:0;width:260px;background:#252b3d;color:#fff;z-index:20;box-shadow:8px 0 24px rgba(15,23,42,.16);overflow:auto;padding:16px 12px}
.side-brand{padding:8px 12px 18px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:12px}
.side-brand b{display:block;font-size:18px;line-height:1.2}.side-brand small{display:block;color:#cbd5e1;margin-top:5px;font-size:12px}
.side-nav{display:block}.side-nav a{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;background:transparent;border-radius:10px;padding:11px 12px;margin:3px 0;font-weight:700;font-size:14px}.side-nav a:hover{background:rgba(255,255,255,.10)}.side-nav span{width:22px;text-align:center}.side-nav hr{border:0;border-top:1px solid rgba(255,255,255,.14);margin:12px 0}
.dashboard-mode #app{margin-left:260px}.dashboard-mode .container{max-width:none;padding:24px}.dashboard-mode .box,.dashboard-mode .hero{scroll-margin-top:92px}.dashboard-mode .hero{border-radius:14px;padding:22px}.dashboard-mode .two,.dashboard-mode .three{align-items:start}.dashboard-mode table{font-size:14px}.dashboard-mode .box h2{margin-top:0;border-bottom:1px solid #edf2f7;padding-bottom:10px;color:#27304a}.mobile-menu-toggle{display:none;position:fixed;left:12px;bottom:14px;z-index:35;border:0;border-radius:999px;background:#16a34a;color:#fff;padding:12px 16px;font-weight:800;box-shadow:0 10px 24px rgba(0,0,0,.25)}
@media(max-width:900px){.admin-sidebar{transform:translateX(-105%);transition:.2s;top:0;z-index:40}.sidebar-open .admin-sidebar{transform:translateX(0)}.dashboard-mode #app{margin-left:0}.mobile-menu-toggle{display:block}.dashboard-mode .container{padding:14px}.dashboard-mode header nav{overflow-x:auto;flex-wrap:nowrap}.dashboard-mode header{position:sticky}}

.side-nav a.active{background:rgba(255,255,255,.18);box-shadow:inset 3px 0 0 #16a34a}
.dashboard-mode #app [data-panel-section]{animation:panelFade .12s ease-in}
@keyframes panelFade{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Fase 7.3 - cadastros em formulário, sem textarea técnica */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:10px}.checkline{display:flex;align-items:center;gap:7px;font-size:13px;color:#263047}.box table{margin-top:12px}.box th{text-align:left;background:#f3f6fb;color:#263047}.box td,.box th{padding:10px;border-bottom:1px solid #e6eaf2}.box tr:last-child td{border-bottom:0}

/* Fase 7.4 - Dashboard profissional do resumo */
.dashboard-overview{margin-bottom:18px;animation:panelFade .15s ease-in}.dash-cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:16px}.dash-card{background:#fff;border-radius:14px;padding:18px 18px 16px;box-shadow:0 10px 28px rgba(15,23,42,.08);position:relative;min-height:112px;border:1px solid #edf2f7}.dash-card small{display:block;color:#475569;font-weight:800;margin-bottom:8px}.dash-card strong{display:block;font-size:23px;color:#27304a;line-height:1.2}.dash-card em{display:block;font-style:normal;color:#94a3b8;font-size:12px;margin-top:6px}.dash-icon{position:absolute;right:16px;top:24px;background:#fde68a;color:#7c2d12;width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.dash-icon.green{background:#99f6e4;color:#047857}.dash-icon.red{background:#fecaca;color:#b91c1c}.dash-icon.blue{background:#bfdbfe;color:#1d4ed8}.dash-grid-main{display:grid;grid-template-columns:2fr 1fr;gap:16px}.dash-panel{background:#fff;border-radius:14px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.08);border:1px solid #edf2f7}.dash-panel h2{margin:0 0 10px!important;border:0!important;text-align:center;text-transform:uppercase;letter-spacing:.02em;color:#323b59!important}.fake-chart{height:230px;border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;margin-top:20px;display:flex;align-items:flex-end;gap:9%;padding:0 22px}.fake-chart i{display:block;width:34px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#5eead4,#16a34a);box-shadow:0 8px 18px rgba(22,163,74,.14)}.quick-actions{display:grid;gap:10px}.quick-actions .btn{width:100%;text-align:left}@media(max-width:1000px){.dash-cards{grid-template-columns:repeat(2,1fr)}.dash-grid-main{grid-template-columns:1fr}}@media(max-width:560px){.dash-cards{grid-template-columns:1fr}.fake-chart{height:160px}}


/* Fase 7.5 - identidade visual por restaurante */
header .brand{display:flex;align-items:center;gap:10px;min-width:230px}
header .brand span{display:flex;flex-direction:column;line-height:1.1}
.brand-logo{width:50px;height:50px;object-fit:contain;border-radius:10px;background:#fff;padding:4px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.restaurant-banner{background:#111827;color:#fff;border-radius:18px;margin-bottom:20px;min-height:190px;background-size:cover;background-position:center;box-shadow:0 14px 28px rgba(15,23,42,.12);overflow:hidden}
.restaurant-banner .banner-content{display:flex;align-items:center;gap:22px;min-height:190px;padding:34px}
.restaurant-banner h1{font-size:34px;margin:0 0 10px}
.restaurant-banner p{max-width:760px}
.banner-logo{width:110px;height:110px;border-radius:18px;background:#fff;object-fit:contain;padding:8px;box-shadow:0 10px 22px rgba(0,0,0,.22)}
.home-hero{background:#111827;color:#fff}
.admin-preview-logo{width:100px;height:100px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid #e5e7eb;margin:8px 0}
.admin-preview-banner{width:100%;max-height:180px;object-fit:cover;border-radius:14px;border:1px solid #e5e7eb;margin:8px 0}
@media(max-width:720px){.restaurant-banner .banner-content{flex-direction:column;align-items:flex-start;padding:22px}.restaurant-banner h1{font-size:26px}.banner-logo{width:86px;height:86px}header .brand{min-width:0}.brand-logo{width:42px;height:42px}}

/* Fase 8 - Checkout Mobile Premium */
.checkout-container{max-width:1180px}.checkout-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;background:#111827;color:#fff;border-radius:18px;padding:22px}.checkout-title h1{margin:0;font-size:28px}.checkout-title p{margin:6px 0 0;color:#cbd5e1}.checkout-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:18px;align-items:start}.checkout-card{padding:20px}.checkout-step{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.checkout-step span{width:34px;height:34px;border-radius:999px;background:#16a34a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto}.checkout-step h2{margin:0 0 4px!important;border:0!important;padding:0!important;color:#111827!important;text-align:left!important;text-transform:none!important}.checkout-step p{margin:0;color:#64748b}.checkout-items{display:grid;gap:10px}.checkout-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e5e7eb;background:#f8fafc;border-radius:14px;padding:12px}.checkout-item-main{display:grid;gap:5px}.checkout-item-main small{color:#64748b}.checkout-item-main b{font-size:16px}.qty-control{display:flex;align-items:center;gap:6px;white-space:nowrap}.qty-control button{width:30px;height:30px;border-radius:9px;border:0;background:#334155;color:white;font-weight:900;cursor:pointer}.qty-control .remove{background:#dc2626}.coupon-box{margin:14px 0;padding:12px;border-radius:14px;background:#f1f5f9}.coupon-box label,.checkout-form-card label{display:block;font-weight:800;color:#27304a;margin:8px 0 4px}.checkout-totals{display:grid;gap:8px;border-top:1px solid #e5e7eb;margin-top:12px;padding-top:12px}.checkout-totals>div{display:flex;justify-content:space-between;align-items:center}.grand-total{font-size:22px;border-top:1px dashed #cbd5e1;padding-top:10px}.grand-total strong{color:#16a34a}.min-notice{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:10px;border-radius:12px}.checkout-fields{grid-template-columns:repeat(2,minmax(180px,1fr))}.checkout-fields input:first-child{grid-column:1/-1}.delivery-toggle{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 10px}.delivery-toggle button{border:1px solid #d1d5db;background:#fff;border-radius:14px;padding:14px;font-weight:900;cursor:pointer;color:#27304a}.delivery-toggle button.active{background:#16a34a;color:#fff;border-color:#16a34a;box-shadow:0 10px 20px rgba(22,163,74,.18)}.payment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:8px 0}.payment-option{border:1px solid #d1d5db;border-radius:14px;padding:12px;display:grid;gap:4px;cursor:pointer;background:#fff}.payment-option input{display:none}.payment-option span{font-size:22px}.payment-option b{color:#111827}.payment-option small{color:#64748b}.payment-option.active{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.13);background:#f0fdf4}.checkout-submit{width:100%;font-size:17px;padding:14px;margin-top:8px}.checkout-whatsapp-preview{width:100%;margin-top:8px}.checkout-empty{text-align:center;max-width:520px;margin:40px auto}.order-summary-card{position:sticky;top:88px}
@media(max-width:860px){.checkout-grid{grid-template-columns:1fr}.order-summary-card{position:static}.checkout-title{align-items:flex-start;flex-direction:column}.checkout-fields{grid-template-columns:1fr}.checkout-card{padding:16px}.checkout-item{align-items:flex-start;flex-direction:column}.qty-control{width:100%;justify-content:flex-end}.grand-total{font-size:20px}}
@media(max-width:520px){.checkout-container{padding:10px}.checkout-title{border-radius:14px;padding:16px}.checkout-title h1{font-size:24px}.payment-grid,.delivery-toggle{grid-template-columns:1fr}.coupon-box .row{display:grid;grid-template-columns:1fr}.coupon-box .btn{width:100%}.checkout-submit{position:sticky;bottom:10px;z-index:3;box-shadow:0 10px 22px rgba(22,163,74,.25)}}

/* FASE 9 - Modal premium para sabores, tamanhos e combos */
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;z-index:9999;padding:18px}
.product-modal{background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.25);width:min(620px,96vw);max-height:92vh;overflow:auto;padding:18px;position:relative}
.modal-x{position:absolute;right:14px;top:10px;border:0;background:#ef4444;color:#fff;border-radius:999px;width:30px;height:30px;font-weight:900;cursor:pointer}
.product-modal-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e5e7eb;padding-bottom:14px;margin-bottom:12px}
.product-modal-head img{width:110px;height:90px;object-fit:cover;border-radius:14px}
.option-card{border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:12px 0;background:#f8fafc}
.option-card h3{margin:0 0 4px;color:#0f172a}.req{font-size:11px;background:#dc2626;color:#fff;border-radius:999px;padding:3px 8px;margin-left:6px}.option-list{display:grid;gap:8px;margin-top:8px}.option-row{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px;cursor:pointer}.option-row:hover{border-color:#16a34a}.modal-total{display:flex;justify-content:space-between;align-items:center;background:#0f172a;color:#fff;border-radius:14px;padding:14px;margin:14px 0}.modal-total b{font-size:22px}.wide{width:100%;justify-content:center;text-align:center}
@media(max-width:640px){.product-modal-head{align-items:flex-start}.product-modal-head img{width:86px;height:76px}.product-modal{padding:14px}.modal-backdrop{align-items:flex-end;padding:0}.product-modal{border-radius:18px 18px 0 0;width:100vw;max-height:90vh}}


/* FASE 13 — Área do Cliente, Fidelidade e Notificações */
.customer-checkout-box{margin:0 0 14px 0}.customer-mode{background:#f8fafc;border:1px solid #dbe3ef;border-radius:12px;padding:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.customer-mode.logged{border-color:#22c55e;background:#ecfdf5}.btn.small{padding:7px 10px;font-size:12px}.customer-mini-modal{position:fixed;inset:0;background:rgba(2,6,23,.55);z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}.customer-modal-box{max-width:620px;width:100%;max-height:92vh;overflow:auto}.customer-area .hero{margin-bottom:18px}.notice.unread{border-left:4px solid #16a34a;background:#f0fdf4}.grid2{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}@media(max-width:850px){.grid2{grid-template-columns:1fr}.customer-mode{display:block}.customer-mode .btn{margin-top:8px}}
.pix-auto-box{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:16px;padding:18px;margin:16px 0}
.pix-qr-img{width:220px;max-width:100%;display:block;margin:12px auto;border-radius:12px;background:#fff;padding:10px;box-shadow:0 8px 25px rgba(0,0,0,.08)}
.pix-copy{min-height:95px;font-size:13px;word-break:break-all;background:#fff}

.lgpd-check{display:flex;gap:8px;align-items:flex-start;margin:10px 0;font-size:13px;line-height:1.35;color:#1f2937}
.lgpd-check input{margin-top:2px;min-width:16px}
.customer-modal-box .lgpd-check{grid-column:1/-1}

/* FASE 13.3 — LGPD visível no cadastro do cliente */
.lgpd-visible-box{margin:12px 0 14px;padding:12px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:12px;display:grid;gap:10px}
.lgpd-visible-box label{display:flex!important;align-items:flex-start;gap:10px;font-size:14px;line-height:1.35;color:#111827;font-weight:600}
.lgpd-visible-box input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px;margin-top:1px;accent-color:#16a34a}
.lgpd-visible-box .muted{font-weight:500;color:#64748b}

/* FASE 13.4 - reforço visual LGPD */
#lgpdPageBox, #lgpdMiniBox{display:block!important;visibility:visible!important;opacity:1!important}
#clgpdPage,#cmarketingPage,#clgpdR,#cmarketingR{display:inline-block!important;visibility:visible!important;opacity:1!important;appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important}


/* FASE 13.5 - LGPD checkbox sempre visível */
.lgpd-visible-box{
  display:block!important;
  margin:14px 0!important;
  padding:14px!important;
  border:2px solid #16a34a!important;
  background:#f0fdf4!important;
  border-radius:12px!important;
  color:#111827!important;
}
.lgpd-visible-label{
  display:flex!important;
  gap:10px!important;
  align-items:flex-start!important;
  margin:0 0 10px 0!important;
  font-weight:700!important;
  color:#111827!important;
  cursor:pointer!important;
  line-height:1.35!important;
}
.lgpd-visible-label.lgpd-marketing{font-weight:500!important;color:#475569!important;margin-bottom:0!important}
.lgpd-real-checkbox{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  position:static!important;
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  margin:0!important;
  accent-color:#16a34a!important;
}

/* FASE 14 — Home comercial com promoções e destaques pagos */
.home-premium .home-section{margin:26px 0}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:12px 0 16px}.section-title h2{margin:0;font-size:26px}.section-title p{margin:4px 0 0;color:#64748b}.promo-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.promo-card{position:relative;background:#fff;border-radius:18px;padding:12px;box-shadow:0 12px 32px rgba(15,23,42,.08);border:1px solid #e5e7eb;overflow:hidden}.promo-card img{width:100%;height:150px;object-fit:cover;border-radius:14px;background:#f1f5f9}.promo-card h3{margin:6px 0 6px;font-size:20px}.promo-card small{color:#64748b;font-weight:800}.promo-card p{color:#475569;min-height:38px}.promo-info{padding:6px}.card-badges{position:absolute;z-index:2;top:12px;left:12px;right:12px;display:flex;gap:6px;flex-wrap:wrap}.promo-badge,.ad-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;box-shadow:0 6px 14px rgba(15,23,42,.15)}.promo-badge{background:#16a34a;color:#fff}.ad-badge{background:#f59e0b;color:#111827}.old-price{text-decoration:line-through;color:#94a3b8;font-weight:700;margin-right:6px}.promo-price{color:#16a34a;font-size:20px}.sponsored-card{outline:2px solid rgba(245,158,11,.35);box-shadow:0 16px 38px rgba(245,158,11,.12)}.restaurant-card,.product-card{position:relative}.input.mini{max-width:95px;padding:7px 8px}.input.mini-date{min-width:160px;padding:7px 8px}table .promo-badge,table .ad-badge{position:static;box-shadow:none;margin-left:4px}
@media(max-width:700px){.section-title{align-items:flex-start;flex-direction:column}.promo-strip{grid-template-columns:1fr}.input.mini,.input.mini-date{max-width:100%;min-width:0}}

/* FASE 14.1 - Identidade da página principal e menu do cliente final */
.platform-home-hero{display:flex;align-items:center;gap:22px;min-height:170px}
.home-platform-logo{width:116px;height:116px;object-fit:contain;background:#fff;border-radius:18px;padding:10px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
header .brand{min-width:220px}
header .brand-logo{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;padding:4px;margin-right:10px;vertical-align:middle}
header .brand{display:flex;align-items:center;gap:8px}
#trackLink{background:#16a34a!important;color:#fff!important}
@media(max-width:700px){.platform-home-hero{align-items:flex-start;flex-direction:column}.home-platform-logo{width:92px;height:92px}header nav{gap:7px}header nav .staffLink{display:none!important}}


/* FASE 14.4 — Menu mobile recolhido */
.public-menu-toggle{display:none;background:#334155;border:0;border-radius:12px;width:48px;height:42px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;margin-left:auto}
.public-menu-toggle span{display:block;width:24px;height:3px;background:#fff;border-radius:999px;transition:.2s}
body.public-menu-open .public-menu-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
body.public-menu-open .public-menu-toggle span:nth-child(2){opacity:0}
body.public-menu-open .public-menu-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
@media(max-width:760px){
  header{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 16px;position:sticky;top:0;z-index:60}
  header .brand{flex:1;min-width:0!important}
  .public-menu-toggle{display:flex}
  header nav#publicNav{display:none;width:100%;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);grid-template-columns:1fr 1fr;gap:8px}
  body.public-menu-open header nav#publicNav{display:grid}
  header nav#publicNav a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:11px 10px;border-radius:11px}
  header nav#publicNav .staffLink{display:none!important}
  header nav#publicNav a[style*="display: none"]{display:none!important}
  .brand-logo{width:54px!important;height:54px!important}
}
@media(max-width:420px){header nav#publicNav{grid-template-columns:1fr}.brand small{font-size:11px}}
@media (max-width: 768px) {
  .container {
    padding-bottom: 120px;
  }

  .card {
    padding-bottom: 80px;
  }

  .cartbar {
    bottom: 22px;
    right: 18px;
    z-index: 9999;
  }

  .card .btn.primary {
    position: relative;
    z-index: 2;
  }
}

/* FASE 14.10 — Cards compactos no mobile (2 colunas estilo app) */
@media (max-width: 768px) {
  /* Mais área útil no celular */
  .container {
    padding: 12px 14px 120px !important;
  }

  /* Página individual e home: cards em 2 colunas */
  .grid,
  .promo-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
  }

  /* Card menor, mais limpo e com menos altura */
  .card,
  .promo-card {
    border-radius: 14px !important;
    padding: 10px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
    min-height: auto !important;
  }

  /* Imagens menores para caber 4 produtos na tela */
  .prod-img,
  .restaurant-img,
  .promo-card img {
    height: 118px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
  }

  /* Tipografia compacta */
  .card h2,
  .card h3,
  .promo-card h3 {
    font-size: 17px !important;
    line-height: 1.15 !important;
    margin: 9px 0 5px !important;
  }

  .card p,
  .promo-card p {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 5px 0 !important;
  }

  /* Na vitrine mobile, descrições longas ocupam muito espaço */
  .grid .card p:not(.muted),
  .promo-card p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 32px !important;
  }

  .price,
  .promo-price {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  /* Botão adicionar menor e sempre dentro do card */
  .between {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .card .btn.primary,
  .promo-card .btn.primary {
    width: 100% !important;
    padding: 9px 8px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    position: static !important;
    z-index: auto !important;
  }

  /* Remove padding exagerado que deixava card alto demais */
  .card {
    padding-bottom: 10px !important;
  }

  /* Carrinho fixo embaixo sem cobrir produto/botão */
  .cartbar {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto !important;
    text-align: center !important;
    border-radius: 18px !important;
    padding: 15px 16px !important;
    font-size: 18px !important;
    z-index: 9999 !important;
  }

  /* Seções e títulos mais compactos */
  .section-title h2,
  .container > h2 {
    font-size: 25px !important;
    margin: 18px 0 8px !important;
  }

  .section-title {
    margin-bottom: 10px !important;
  }

  /* Banner individual menor no mobile para sobrar espaço aos produtos */
  .restaurant-banner {
    min-height: 150px !important;
    border-radius: 18px !important;
    margin-bottom: 16px !important;
  }

  .restaurant-banner .banner-content {
    min-height: 150px !important;
    padding: 20px !important;
    gap: 14px !important;
  }

  .restaurant-banner h1 {
    font-size: 28px !important;
  }

  .banner-logo,
  .home-platform-logo {
    width: 82px !important;
    height: 82px !important;
  }
}

@media (max-width: 380px) {
  .grid,
  .promo-strip {
    gap: 10px !important;
  }

  .prod-img,
  .restaurant-img,
  .promo-card img {
    height: 104px !important;
  }

  .card h2,
  .card h3,
  .promo-card h3 {
    font-size: 15px !important;
  }

  .price,
  .promo-price {
    font-size: 16px !important;
  }
}


/* FASE 14.12 — Status comercial da home */
.home-status-badge{font-weight:900!important;letter-spacing:.01em}
.home-status-badge.ok{background:#dcfce7!important;color:#166534!important}
.home-status-badge.bad{background:#fee2e2!important;color:#991b1b!important}

/* FASE 14.13 — Cards de restaurantes limpos/premium */
.restaurant-card-clean{padding:14px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.restaurant-card-clean .restaurant-img{height:150px;margin:0}
.restaurant-card-clean h2{margin:2px 0 4px;font-size:24px;line-height:1.15;color:#0f172a}
.restaurant-card-desc{margin:0 0 10px;color:#475569;font-size:14px;line-height:1.35;min-height:0!important}
.restaurant-status-line{margin:0 0 8px!important}
.restaurant-card-clean .pill{font-size:12px;padding:5px 9px}
.restaurant-card-clean .restaurant-meta{display:flex;flex-wrap:wrap;gap:6px 8px;margin:8px 0 12px;color:#64748b;font-size:12.5px;font-weight:700;line-height:1.25}
.restaurant-card-clean .restaurant-meta span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:6px 8px;white-space:nowrap}
.restaurant-card-clean .restaurant-card-btn{width:100%;display:flex;align-items:center;justify-content:center;text-align:center;margin-top:auto;padding:11px 12px;border-radius:12px;font-size:14px;box-shadow:0 8px 18px rgba(22,163,74,.16)}
.restaurant-card-clean .btn.light,.restaurant-card-clean a[href]{display:none!important}
.restaurant-card-clean .card-badges{top:12px;left:12px;right:12px}
@media(max-width:760px){
  .restaurant-card-clean{padding:10px;border-radius:15px;gap:7px}
  .restaurant-card-clean .restaurant-img{height:118px;border-radius:12px}
  .restaurant-card-clean h2{font-size:18px;margin:0 0 3px}
  .restaurant-card-desc{font-size:12.5px;line-height:1.25;margin-bottom:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .restaurant-card-clean .restaurant-meta{font-size:11px;gap:5px;margin:6px 0 9px}
  .restaurant-card-clean .restaurant-meta span{padding:4px 6px}
  .restaurant-card-clean .restaurant-card-btn{font-size:12px;padding:9px 8px;border-radius:10px}
}
/* Cards restaurantes premium - correção definitiva */
.home-premium .restaurant-card .pill:not(.ok),
.home-premium .restaurant-card .btn.light,
.card .pill:not(.ok),
.card .btn.light {
  display: none !important;
}

.card .muted {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.25 !important;
  margin: 10px 0 !important;
}

.card .btn.primary {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 12px !important;
  padding: 12px !important;
  border-radius: 12px !important;
}

.card h2 {
  margin-bottom: 8px !important;
}

.card p {
  margin: 8px 0 !important;
}

/* FASE 14.15 — Cards de restaurantes premium forçado */
.restaurant-card-clean .pill:not(.ok):not(.bad),
.restaurant-card-clean .btn.light,
.restaurant-card-clean a.btn.light,
.restaurant-card-clean a[href]:not(.restaurant-card-btn),
.home-premium .grid .card a.btn.light,
.home-premium .grid .card .pill:not(.ok):not(.bad) {
  display: none !important;
}
.restaurant-card-clean .restaurant-card-desc {
  color: #475569 !important;
  line-height: 1.3 !important;
  margin: 8px 0 !important;
}
.restaurant-card-clean .restaurant-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 10px 0 12px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 700 !important;
}
.restaurant-card-clean .restaurant-meta span {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  padding: 6px 8px !important;
}
.restaurant-card-clean .restaurant-card-btn,
.home-premium .grid .card .btn.primary {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-top: 12px !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
}
@media(max-width:768px){
  .restaurant-card-clean .restaurant-meta{font-size:11px!important;gap:5px!important;margin:7px 0 9px!important}
  .restaurant-card-clean .restaurant-meta span{padding:4px 6px!important}
}


/* FASE 15.1 — PDV */
.pos-page{max-width:1440px}.pos-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0}.pos-head h1{margin:4px 0}.pos-head p{margin:0;color:#64748b}.pos-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#16a34a}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.pos-products,.pos-sale{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.pos-products{padding:16px}.pos-search{display:flex;align-items:center;gap:12px;margin-bottom:14px}.pos-search .input{margin:0}.pos-search span{white-space:nowrap;color:#64748b;font-size:13px}.pos-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pos-product{border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:0;overflow:hidden;text-align:left;cursor:pointer;transition:.15s;min-height:154px}.pos-product:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.10);border-color:#bbf7d0}.pos-product img,.pos-noimg{width:100%;height:92px;object-fit:cover}.pos-noimg{display:grid;place-items:center;background:#f8fafc;font-size:32px}.pos-product>span{display:flex;flex-direction:column;padding:10px}.pos-product b{font-size:14px;color:#0f172a}.pos-product small{margin-top:5px;color:#16a34a;font-weight:800}.pos-sale{position:sticky;top:14px;overflow:hidden}.pos-sale-title{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e5e7eb}.pos-sale-title h2{margin:2px 0 0}.pos-sale-title small{color:#64748b;font-weight:800}.pos-cart{max-height:390px;overflow:auto;padding:8px 16px}.pos-empty{padding:28px 8px;text-align:center;color:#94a3b8}.pos-cart-item{display:grid;grid-template-columns:1fr auto 28px;gap:8px;align-items:center;padding:11px 0;border-bottom:1px solid #f1f5f9}.pos-cart-item div{display:flex;flex-direction:column}.pos-cart-item small{color:#64748b;margin-top:3px}.pos-remove{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;width:26px;height:26px;cursor:pointer}.pos-payment{padding:12px 16px;border-top:1px solid #e5e7eb}.pos-payment label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}.pos-payment .input{margin:0 0 8px}.pos-total{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-top:1px solid #e5e7eb;font-size:18px}.pos-total strong{font-size:27px;color:#16a34a}.pos-finish{width:calc(100% - 32px);margin:0 16px 10px;padding:14px;font-size:16px}.pos-scale-note{padding:0 16px 16px;font-size:11px;line-height:1.4}@media(max-width:900px){.pos-layout{grid-template-columns:1fr}.pos-sale{position:static}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.pos-head{align-items:flex-start;flex-direction:column}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-product{min-height:140px}.pos-product img,.pos-noimg{height:78px}}


/* FASE 15.2 — TOLEDO PRIX 3 FIT */
.prix-panel{display:grid;grid-template-columns:minmax(220px,1fr) 150px 150px auto auto;gap:10px;align-items:center;background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:12px 14px;margin:0 0 14px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.prix-main{display:flex;align-items:center;gap:10px}.prix-main>div{display:flex;flex-direction:column}.prix-main small{color:#64748b;margin-top:2px}.prix-dot{width:12px;height:12px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px #f1f5f9}.prix-dot.connected{background:#16a34a;box-shadow:0 0 0 4px #dcfce7}.prix-dot.connecting,.prix-dot.reading{background:#f59e0b;box-shadow:0 0 0 4px #fef3c7}.prix-dot.warning{background:#f59e0b}.prix-dot.error{background:#dc2626;box-shadow:0 0 0 4px #fee2e2}.prix-live{display:flex;flex-direction:column;align-items:flex-end;padding-right:8px}.prix-live small{font-size:10px;font-weight:900;color:#64748b;letter-spacing:.08em}.prix-live strong{font-size:24px;color:#0f172a}.prix-baud{margin:0!important;padding:9px!important}.prix-panel .btn{white-space:nowrap}
@media(max-width:900px){.prix-panel{grid-template-columns:1fr 1fr}.prix-main{grid-column:1/-1}.prix-live{align-items:flex-start}.prix-baud{width:100%}}
@media(max-width:520px){.prix-panel{grid-template-columns:1fr}.prix-main{grid-column:auto}.prix-live{align-items:flex-start}.prix-panel .btn,.prix-baud{width:100%}}


/* FASE 15.3 — Estoque + ficha técnica */
.inventory-hero{display:flex;align-items:center;justify-content:space-between;gap:20px}.inventory-hero small{font-weight:800;letter-spacing:.12em}.inventory-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.inventory-kpis>div{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px}.inventory-kpis small{display:block;color:#64748b;font-weight:700}.inventory-kpis strong{font-size:30px}.inventory-alert{background:#fff7ed;border:1px solid #fdba74;border-radius:14px;padding:14px 16px;margin:16px 0}.stock-low td{background:#fff7f7}.recipe-editor{max-width:900px}.recipe-row{display:grid;grid-template-columns:minmax(220px,1fr) 180px 48px;gap:10px;align-items:center;margin:10px 0}.table-scroll{overflow:auto}.inventory-page table{min-width:680px}.inventory-page .box{margin-top:16px}
@media(max-width:760px){.inventory-hero{align-items:flex-start;flex-direction:column}.inventory-kpis{grid-template-columns:1fr}.recipe-row{grid-template-columns:1fr 120px 44px}.inventory-page .two{grid-template-columns:1fr}}

/* FASE 15.3.1 — gerenciamento de fichas técnicas */
.recipe-saved{margin-top:22px;border-top:1px solid #e5e7eb;padding-top:18px}.recipe-saved h3{margin:0 0 12px}.recipe-card{display:flex;justify-content:space-between;gap:18px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin:10px 0;background:#fff}.recipe-card small,.recipe-card span{display:block;margin-top:5px}.recipe-card small{color:#64748b}.recipe-actions{display:flex;gap:8px;flex-shrink:0}@media(max-width:700px){.recipe-card{align-items:flex-start;flex-direction:column}.recipe-actions{width:100%}.recipe-actions .btn{flex:1}}
/* FASE 15.4 — Funcionários e Permissões */
.employees-page{max-width:1100px}.employee-hero{display:flex;justify-content:space-between;align-items:center}.employee-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}.perm-check{display:flex;gap:9px;align-items:center;border:1px solid #dfe5ee;border-radius:10px;padding:11px;background:#fafcff}.employee-actions{display:flex;gap:10px}.employee-list{display:grid;gap:10px}.employee-card{display:grid;grid-template-columns:1.4fr .8fr auto;gap:16px;align-items:center;border:1px solid #e1e6ee;border-radius:12px;padding:14px}.employee-card>div{display:flex;flex-direction:column;gap:4px}.employee-card small{color:#64748b}.employee-card-actions{flex-direction:row!important}.pill.off{background:#f1f5f9;color:#64748b}@media(max-width:760px){.employee-summary,.permission-grid{grid-template-columns:1fr}.employee-card{grid-template-columns:1fr}.employee-card-actions{flex-direction:row!important}.employee-hero{align-items:flex-start;gap:12px}}

/* Fase 16.3.11 — Central financeira dos motoboys */
.courier-cash-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.courier-cash-stat{background:#f1f5f9;border:1px solid #dbe3ef;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:7px}
.courier-cash-stat small{color:#475569}.courier-cash-stat strong{font-size:clamp(18px,2.2vw,26px);color:#102033}
.courier-cash-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.courier-cash-toolbar select{max-width:320px}
.courier-cash-form{border:1px solid #dbe3ef;border-radius:12px;padding:16px;margin:18px 0;background:#fafcff}
.courier-cash-form .form-grid{align-items:end}.courier-cash-form label{display:flex;flex-direction:column;gap:6px}
.courier-cash-table{overflow-x:auto;margin-bottom:20px}.courier-cash-table table{width:100%;min-width:560px}
@media(max-width:650px){.courier-cash-summary{grid-template-columns:1fr}.courier-cash-toolbar select{max-width:none;width:100%}}
