/* Expansão visual: ambiente, fábrica, fiscal, canais, relatórios e alertas. */
.environment-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #e6c99f;background:#fff8e9;color:#8b5b25;border-radius:999px;padding:7px 10px;font-size:8px;font-weight:700;letter-spacing:1px;white-space:nowrap}.environment-pill i{width:7px;height:7px;border-radius:50%;background:#d38b2c;box-shadow:0 0 0 4px #d38b2c18}.product-photo-empty{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#a9896a;background:linear-gradient(145deg,#f3e8da,#fffaf2)!important}.product-photo-empty .icon{width:27px;height:27px}.product-photo-empty span{font-size:8px;text-transform:uppercase;letter-spacing:1px}.image-upload{display:flex;align-items:center;gap:16px;border:1px dashed #d7c3ae;border-radius:11px;padding:12px;background:#fcf7f0}.image-upload>div:last-child{display:grid;gap:7px;flex:1}.image-upload input{padding:8px}.image-upload small{display:block;line-height:1.5}.data-table tr:has(.stock-critical-marker){background:#fff8f3;box-shadow:inset 4px 0 #c8644d}.data-table tr:has(.stock-critical-marker):hover{background:#fff2e9}.critical-qty{color:var(--red)}.attention-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#f8e5df;color:var(--red);font:10px Poppins;margin-left:6px}.demo-boundary{display:flex;align-items:center;gap:14px;border:1px solid #e2bd85;background:#fff8e9;color:#80552c;border-radius:10px;padding:12px 16px;margin-bottom:18px}.demo-boundary strong{font-size:9px;letter-spacing:1.2px}.demo-boundary span{font-size:10px}.flow-strip{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;padding:15px 18px;background:#f4ecdf;border:1px solid var(--line);border-radius:10px;margin-bottom:20px;color:#74533b;font-size:10px}.flow-strip .icon{width:14px;color:#b18d6e}.channel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.channel-card{display:flex;flex-direction:column;min-height:285px}.channel-card h2{font:27px Quiche;margin:22px 0 7px}.channel-card>strong{font-size:10px;color:#986e4b}.channel-card p{font-size:10px;line-height:1.8;color:var(--muted);margin:13px 0 22px;flex:1}.channel-icon{width:44px;height:44px;border-radius:12px;background:#f3e8dc;display:grid;place-items:center;color:var(--brown)}.roadmap-card{display:grid;grid-template-columns:1fr 1.5fr;gap:30px;align-items:center;margin-top:20px}.roadmap-card p{font-size:10px;color:var(--muted);line-height:1.8;margin-top:10px}.roadmap-steps{display:flex;align-items:center;gap:6px}.roadmap-steps span{flex:1;text-align:center;padding:10px 6px;border-radius:6px;background:#f2ece4;color:#9a8878;font-size:8px}.roadmap-steps .done{background:#e9f4ed;color:var(--green)}.fiscal-hero{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:20px;background:linear-gradient(120deg,#fffdfa,#f1e3d3)}.fiscal-hero p{font-size:10px;color:var(--muted);margin-top:9px;max-width:700px;line-height:1.7}.fiscal-config-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.readiness-card>h2{margin:12px 0 18px}.readiness-card>.between{padding:13px 0;border-bottom:1px solid var(--line);font-size:10px}.readiness-card>p{font-size:9px;color:var(--muted);line-height:1.7;margin-top:18px}.note-status{display:flex;justify-content:space-between;align-items:center;padding:18px;background:#edf6ef;border:1px solid #d8eadc;border-radius:10px;margin-bottom:18px}.note-status.rejected{background:#fff1ef;border-color:#f0d1cd}.note-status h2{font-size:13px;margin-top:8px}.note-status>.icon{width:34px;height:34px;color:var(--green)}.note-status.rejected>.icon{color:var(--red)}.rejection-help{background:#fff8ed;border-left:3px solid #d69645;padding:15px 17px;margin-bottom:18px}.rejection-help p{font-size:10px;line-height:1.7;color:#82684e;margin-top:7px}.wrap-value{white-space:normal;overflow-wrap:anywhere;text-align:right;max-width:70%}.tax-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.tax-summary>div{background:#f7f1e8;padding:13px;border-radius:8px}.tax-summary strong,.tax-summary small{display:block}.tax-summary strong{margin-top:7px}.danfe{position:relative;border:1px solid #aaa;padding:25px;color:#222;background:#fff;font:11px Arial;overflow:hidden}.danfe-brand{display:flex;align-items:center;gap:20px;border-bottom:2px solid #222;padding-bottom:12px}.danfe-brand .brand-logo{width:90px;height:50px}.danfe-brand small{display:block;margin-top:5px;color:#333}.danfe>h2{text-align:center;text-transform:uppercase;font-size:13px;padding:12px;border-bottom:1px solid #aaa}.danfe-grid{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #aaa}.danfe-grid span{padding:10px;border-right:1px solid #aaa}.danfe table{width:100%;border-collapse:collapse;margin-top:18px}.danfe th,.danfe td{border:1px solid #aaa;padding:9px;text-align:left}.danfe-total{text-align:right;font-size:14px;padding:15px;border-bottom:1px solid #aaa}.danfe-key{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:20px;padding-top:15px}.danfe-key .qr-demo{width:120px;height:120px}.danfe-key p{line-height:1.8}.demo-watermark{position:absolute;inset:48% auto auto 15%;transform:rotate(-22deg);font-size:34px;color:#b8474724;font-weight:bold;white-space:nowrap}.validation-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px 22px;background:#fff4df;border:1px solid #ead1a2;border-radius:11px;margin-bottom:20px}.validation-banner p{font-size:10px;color:#8d7358;margin-top:8px}.section-title{margin:26px 0 15px}.policy-table td:not(:first-child){white-space:normal;min-width:130px}.policy-no{color:var(--red)}.policy-limit{color:#9a6b2f}.report-period{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f3eadf;border:1px solid var(--line);border-radius:10px;padding:15px 18px;margin-bottom:24px}.report-period>div:first-child{display:flex;align-items:center;gap:12px}.report-period small{display:block;margin-top:3px}.report-group{margin:25px 0}.report-group>h2{font-size:9px;letter-spacing:1.8px;color:#9c7b5e;margin-bottom:11px}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.report-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:13px;padding:16px}.report-card p{font-size:9px;color:var(--muted);margin-top:4px}.report-icon{width:40px;height:40px;border-radius:10px;background:#f2e7da;display:grid;place-items:center;color:#9d704b}.report-actions{display:flex;gap:5px}.report-preview>.between{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:18px}.report-preview .brand-logo{width:80px;height:50px}.fiscal-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:#fff;color:var(--muted);font-size:9px}.fiscal-toggle span{display:flex;align-items:center;gap:8px}.fiscal-toggle .icon{width:16px}.fiscal-toggle strong{font-size:9px}.fiscal-toggle.on{border-color:#9bc5ab;background:#f0f8f2;color:var(--green)}.kiosk-fiscal{width:100%;margin-top:18px;font-size:12px;padding:15px}.integration-route{display:flex;align-items:center;gap:12px;padding:13px;margin-top:12px;border-radius:9px;background:#f4ede4;color:#7e624c}.integration-route>span{display:grid;gap:3px;flex:1}.integration-route small{font-size:9px}.order-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:18px 0}.order-flow span{padding:8px;text-align:center;background:#eee7df;color:#9d8f83;border-radius:5px;font-size:8px}.order-flow .done{background:#e8f4ec;color:var(--green)}.sale-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.sale-result-grid span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 8px;background:#f4ede4;padding:11px;border-radius:8px;text-align:left;font-size:9px}.sale-result-grid span .icon{grid-row:span 2}.sale-result-grid strong{font-size:10px}.environment-head{display:flex;justify-content:space-between;align-items:center;background:#fff7e8;padding:20px;border-radius:10px;margin-bottom:18px}.environment-head h2{margin:9px 0}.environment-head p{font-size:10px;color:#846c54}.environment-head>.icon{width:40px;height:40px;color:#a06e38}.persistence-matrix{display:grid;grid-template-columns:1fr 1fr;gap:15px}.persistence-matrix>div{display:grid;gap:10px;border:1px solid var(--line);padding:17px;border-radius:9px}.persistence-matrix span{font-size:10px;color:var(--muted)}.operation-lock{display:flex;gap:13px;align-items:center;padding:16px;background:#f3eeee;color:#7d5a58;border-radius:9px;margin-top:17px}.operation-lock p{font-size:9px;margin-top:4px}.replenishment-preview{display:flex;align-items:center;gap:13px;padding:15px;background:#f4eee5;border-radius:9px}.replenishment-preview span{display:grid;gap:4px}.factory-timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:24px 0}.factory-timeline>div{display:grid;justify-items:center;gap:8px;color:#a29487;font-size:8px;text-align:center}.factory-timeline i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eee7df;font-style:normal}.factory-timeline .done{color:var(--green)}.factory-timeline .done i{background:#e3f1e7}.notification-item.actionable{width:100%;grid-template-columns:auto 1fr auto;text-align:left;border-radius:8px}.notification-item.actionable:hover{background:#f8f2ea}.positive{color:var(--green)}
.club-dashboard-strip{width:100%;display:grid;grid-template-columns:auto 1.2fr 1fr 1fr auto;align-items:center;gap:16px;text-align:left;background:linear-gradient(105deg,#3b2115,#6b3b22);color:#fff7ea;border-radius:12px;padding:17px 20px;margin:21px 0 0;box-shadow:var(--shadow)}.club-dashboard-strip small{display:block;color:#d8bfa5;font-size:8px;letter-spacing:.8px}.club-dashboard-strip strong{display:block;margin-top:4px;font-size:11px}.club-dashboard-strip>.icon{color:#d9b68f}.club-mini-mark{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#f0dfcf;color:#804723;flex:none}.club-mini-mark .icon{width:18px}.club-order-card{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;padding:11px;border:1px solid #ead9c6;border-radius:9px;background:#fff9f0;margin:12px 0}.club-order-card>span:nth-child(2){display:grid;gap:2px}.club-order-card strong{font-size:10px}.club-order-card small{font-size:8px}.club-order-card>.icon{width:15px;color:#9b7655}.club-order-card.joined{background:#edf6ef;border-color:#cae2d1}.club-order-card.joined .club-mini-mark{background:#dceee1;color:var(--green)}.club-order-card.skipped{background:#f6f3ee}.club-order-card.skipped .club-mini-mark{background:#ece5dc;color:#8f7d6e}.club-modal-intro{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;background:linear-gradient(125deg,#f8e9d8,#fff9ef);padding:18px;border-radius:12px;margin-bottom:20px}.club-modal-intro h2{font:25px Quiche;margin:6px 0}.club-modal-intro p{font-size:10px;color:var(--muted);line-height:1.7}.club-big-mark{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:var(--brown);color:#f8e5ce}.club-big-mark .icon{width:32px;height:32px}.club-form{display:grid;gap:13px}.club-form>label:first-child{font-size:11px;font-weight:600}.club-form>.input{font-size:20px;letter-spacing:2px;text-align:center}.club-consent{display:flex;align-items:flex-start;gap:9px;font-size:9px;line-height:1.6;color:var(--muted)}.tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:4px;border-radius:50%;background:#efe2d5;color:var(--brown);font-size:8px}.client-profile-head{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;background:#f6eee4;padding:16px;border-radius:10px;margin-bottom:18px}.client-profile-head .avatar{width:48px;height:48px}.client-profile-head p{font-size:9px;color:var(--muted);margin-top:4px}.club-rewards{margin-top:18px;padding:15px;background:#fff8e9;border-radius:9px}.club-rewards>div{display:grid;gap:7px;margin-top:11px}.club-rewards span{height:7px;background:#eadfd1;border-radius:9px;overflow:hidden}.club-rewards span i{display:block;width:var(--progress);height:100%;background:linear-gradient(90deg,#9e6840,#d3a471)}.upsell{border:1px solid #ebddcc;background:#fffaf3;border-radius:10px;padding:11px;margin:10px 0}.upsell-heading{display:flex;gap:8px;align-items:center;margin-bottom:9px}.upsell-heading>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#f2e3d1;color:#9b6b42}.upsell-heading .icon{width:13px}.upsell-heading div{display:grid}.upsell-heading small{font-size:7px;letter-spacing:.7px}.upsell-heading strong{font-size:9px}.upsell-items{display:grid;gap:6px}.upsell-items article{display:grid;grid-template-columns:39px 1fr 27px;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px}.upsell-items .product-photo{width:39px;height:39px;border-radius:6px}.upsell-items span{display:grid;gap:2px;min-width:0}.upsell-items strong{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upsell-items small{font-size:8px;color:#956c49}.upsell-items button{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:var(--brown);color:#fff}.upsell-items button .icon{width:13px}.club-earned{width:min(620px,100%);display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 20px;background:#edf7ef;color:var(--green);border:1px solid #cfe6d5;border-radius:14px;margin-bottom:12px;text-align:left}.club-earned>span{display:grid}.club-earned small{font-size:11px}.club-earned strong{font-size:16px}.club-earned b{font-size:18px}.auto-return{width:min(620px,100%);display:grid;gap:8px;margin-top:12px;color:var(--muted);font-size:12px}.auto-return i{height:4px;border-radius:5px;background:linear-gradient(90deg,var(--brown) 0,var(--brown) 50%,#eadfd3 50%);background-size:200% 100%;animation:autoReturn 8s linear forwards}.auto-return span{text-align:center}@keyframes autoReturn{from{background-position:100% 0}to{background-position:0 0}}
@media(max-width:1200px){.channel-grid{grid-template-columns:repeat(2,1fr)}.report-card{grid-template-columns:40px 1fr}.report-actions{grid-column:1/-1}.roadmap-card{grid-template-columns:1fr}.fiscal-config-grid{grid-template-columns:1fr}}
@media(max-height:820px) and (min-width:651px){.sidebar .nav-link{padding:4px 12px;font-size:9px}.sidebar .nav-link .icon{width:15px;height:15px}.sidebar .nav-section{padding:2px 13px 1px;font-size:7px;line-height:12px}.sidebar .sidebar-bottom{padding-top:4px}.sidebar .sidebar-bottom .label{font-size:8px}}
@media(max-width:760px){.environment-pill{padding:7px}.environment-pill i{margin:0}.environment-pill{font-size:0}.demo-boundary,.report-period{align-items:flex-start;flex-direction:column}.channel-grid,.report-grid,.persistence-matrix{grid-template-columns:1fr}.roadmap-steps{display:grid;grid-template-columns:1fr 1fr}.factory-timeline{grid-template-columns:repeat(3,1fr)}.tax-summary{grid-template-columns:1fr}.danfe-key{grid-template-columns:1fr}.report-actions{flex-wrap:wrap}.fiscal-hero{align-items:flex-start;flex-direction:column}.image-upload{align-items:flex-start;flex-direction:column}.kiosk-fiscal{font-size:10px}.integration-route{font-size:9px}}
@media print{.demo-boundary{display:flex!important}.danfe{border:1px solid #222}.environment-pill{display:none!important}}
@media(max-width:760px){.club-dashboard-strip{grid-template-columns:auto 1fr auto;padding:14px}.club-dashboard-strip>span:nth-of-type(3),.club-dashboard-strip>span:nth-of-type(4){display:none}.client-profile-head{grid-template-columns:auto 1fr}.client-profile-head>.badge{grid-column:1/-1}.club-modal-intro{grid-template-columns:1fr}.club-modal-intro .club-big-mark{width:52px;height:52px}.club-order-card{margin-top:8px}.upsell-pdv{display:none}}


/* ==========================================================================
   CLUBE LUCKAU — identificação por CPF
   Totem: palco retrato 1080x1920 (escala junto com .kiosk, serve em qualquer tela)
   ========================================================================== */

/* Campo de CPF — base (usado também no modal do PDV) */
.cpf-field{position:relative}
.club-form .cpf-field .input{width:100%;font-size:20px;letter-spacing:2px;text-align:center}
.cpf-field.nudge .cpf-slots,.club-consent.nudge{animation:clubNudge .45s}
@keyframes clubNudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-9px)}40%{transform:translateX(9px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}

/* ---------- Totem ---------- */
.kiosk-club{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0;gap:0;
  background:linear-gradient(180deg,#fffcf7 0%,#f8efe2 60%,#f2e5d3 100%)
}

/* Hero com foto */
.club-hero{position:relative;flex:none;height:580px;overflow:hidden;
  border-bottom-left-radius:46px;border-bottom-right-radius:46px}
.club-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;filter:saturate(1.08) brightness(1.07) contrast(1.03);
  transform:scale(1.06);animation:clubHero 24s ease-in-out infinite alternate}
.club-hero:after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,#2a170eab 0%,#2a170e2b 26%,#2a170e8f 56%,#22110bef 82%,#1d0f08 100%)}
.club-hero-content{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;
  justify-content:flex-end;padding:0 72px 96px;color:#fff6e9}
@keyframes clubHero{from{transform:scale(1.06)}to{transform:scale(1.14) translate(-16px,-12px)}}
.club-crest{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(150deg,#f8e7ce,#e7c8a2);color:#7a4322;margin-bottom:24px;
  box-shadow:0 20px 44px #150a0466,0 0 0 10px #f7e6cd1f}
.club-crest .icon{width:54px;height:54px}
.club-hero .eyebrow{font-size:20px;letter-spacing:6px;color:#eccfa8;text-shadow:0 2px 14px #180c05aa}
.club-hero h1{font:66px/1.09 Quiche,Georgia,serif;margin:16px 0 18px;max-width:840px;
  text-shadow:0 8px 30px #180c0599}
.club-hero p{font-size:26px;line-height:1.55;color:#ecdbc9;max-width:790px;
  text-shadow:0 2px 14px #180c0599}

/* Benefícios, sobrepostos ao hero */
.club-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  padding:0 52px;margin:-70px 0 0;position:relative;z-index:3}
.club-benefits article{background:#fffdf9;border:1px solid #f1e2ce;border-radius:26px;
  padding:26px 16px 24px;display:grid;justify-items:center;gap:9px;text-align:center;
  box-shadow:0 22px 48px #33200f1c}
.club-benefits article>span{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,#f8e8d3,#efd5b6);color:var(--brown)}
.club-benefits article .icon{width:33px;height:33px}
.club-benefits strong{font-size:22px;color:#3d2414;line-height:1.2}
.club-benefits small{font-size:17px;color:#8d7159;line-height:1.35}

/* Painel de identificação */
.club-kiosk-panel{flex:1;min-height:0;display:flex;flex-direction:column;
  margin:24px 52px 32px;padding:30px 40px 32px;
  background:#fffdf9;border:1px solid #f0e1cd;border-radius:34px;
  box-shadow:0 26px 64px #2b190c1a}
.club-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:18px}
.club-kiosk-panel h2{font:44px Quiche,Georgia,serif;color:var(--ink);margin:0}
.club-panel-head p{font-size:19px;color:#8d7159;margin:6px 0 0}
.club-panel-chip{display:inline-flex;align-items:center;gap:10px;flex:none;
  font-size:17px;color:#8a6a4c;background:#f8f0e5;border:1px solid #eeddc9;
  border-radius:999px;padding:12px 20px}
.club-panel-chip .icon{width:20px;height:20px}

.club-kiosk-panel .club-form{display:flex;flex-direction:column;flex:1;min-height:0;gap:16px}

/* CPF em caixinhas: o input real fica invisível por cima e alimenta os dígitos */
.club-kiosk-panel .cpf-field{height:106px;flex:none}
.club-kiosk-panel .cpf-field .input{position:absolute;inset:0;width:100%;height:100%;
  padding:0;margin:0;border:0;background:transparent;color:transparent;caret-color:transparent;
  opacity:0;z-index:2;cursor:pointer}
.cpf-slots{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  gap:9px;background:#fbf5ec;border:2px solid #ecdcc6;border-radius:22px;pointer-events:none;
  transition:border-color .2s,background .2s}
.cpf-field.complete .cpf-slots{border-color:#9d6a41;background:#fdf7ee}
.cpf-slots i{width:52px;height:68px;border-radius:13px;background:#fff;border:2px solid #eee0cd;
  display:grid;place-items:center;font:34px/1 Poppins,system-ui,sans-serif;font-style:normal;
  color:#3f2615;transition:.15s}
.cpf-slots i.filled{border-color:#d9b58c;background:#fff8ee}
.cpf-slots i.active{border-color:var(--brown);box-shadow:0 0 0 5px #8a4f2814}
.cpf-slots u{text-decoration:none;color:#c0a184;font-size:26px;padding:0 3px;line-height:1}

/* Teclado numérico */
.club-kiosk-panel .club-keyboard{display:grid;grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(4,1fr);gap:13px;margin:0;flex:1;min-height:0}
.club-kiosk-panel .club-keyboard button{height:auto;min-height:70px;padding:0;font-size:33px;
  border-radius:18px;background:#fdf8f1;border:1px solid #ebdcc7;color:var(--ink);
  box-shadow:0 3px 0 #eee0d0;transition:transform .1s,background .15s}
.club-kiosk-panel .club-keyboard button:active{transform:translateY(3px);box-shadow:none;background:#f5e8d6}
.club-kiosk-panel .club-keyboard button:nth-child(10){font-size:23px;letter-spacing:.5px;color:#8a6a4c}
.club-kiosk-panel .club-keyboard button:nth-child(12){font-size:36px;color:#8a6a4c}

/* Consentimento e ações */
.club-kiosk-panel .club-consent{align-items:center;gap:16px;font-size:17px;line-height:1.45;
  color:#7d6349;background:#f9f2e8;border:1px solid #f0e4d4;border-radius:18px;padding:15px 20px}
.club-kiosk-panel .club-consent input{width:30px;height:30px;flex:none;accent-color:var(--brown);margin:0}
.club-kiosk-panel .club-form>.btn{flex:none;font-size:26px;padding:24px;border-radius:20px;gap:14px}
.club-kiosk-panel .club-form>.btn .icon{width:28px;height:28px}
.club-kiosk-panel>.club-skip{flex:none;margin-top:13px;font-size:22px;padding:20px;
  border-radius:20px;background:#fff;border:1px solid #e8d7c2;color:#7a5c40}
.club-kiosk-panel>.club-skip .icon{width:24px;height:24px}
.club-kiosk-panel>small{display:block;text-align:center;font-size:16px;color:#96795d;margin-top:13px}

/* ==========================================================================
   SUGESTÃO DE PRODUTO — totem: aviso discreto que sobe acima da barra do pedido
   ========================================================================== */
.upsell-pop{
  position:absolute;left:40px;right:40px;bottom:178px;z-index:14;
  display:flex;align-items:center;gap:16px;
  background:#fffdf9f2;backdrop-filter:blur(14px);
  border:1px solid #eddcc6;border-radius:22px;padding:14px 18px;
  box-shadow:0 22px 54px #2a180c2e;
  animation:upsellIn .45s cubic-bezier(.2,.8,.3,1) .55s both
}
.upsell-pop.leaving{animation:upsellOut .24s ease-in forwards}
@keyframes upsellIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes upsellOut{to{opacity:0;transform:translateY(20px)}}
.upsell-pop-mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,#f8e8d3,#efd5b6);color:var(--brown);flex:none}
.upsell-pop-mark .icon{width:21px;height:21px}
.upsell-pop-label{flex:none;max-width:160px;font-size:19px;line-height:1.22;color:#3d2414;font-weight:600}
.upsell-pop-list{display:flex;gap:12px;flex:1;min-width:0}
.upsell-pop-item{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;
  background:#fff;border:1px solid #f0e2d0;border-radius:16px;padding:8px 10px 8px 8px;
  transition:transform .1s,background .15s}
.upsell-pop-item:active{transform:translateY(1px);background:#fdf6ec}
.upsell-pop-item>.product-photo{width:54px;height:54px;border-radius:12px;flex:none;overflow:hidden}
.upsell-pop-item>span{display:grid;gap:2px;min-width:0;flex:1}
.upsell-pop-item strong{font-size:17px;color:#3d2414;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upsell-pop-item small{font-size:16px;color:#9a6a3f;font-weight:600}
.upsell-pop-item>i{width:38px;height:38px;border-radius:50%;background:#4a2a15;color:#fff6e9;
  display:grid;place-items:center;flex:none;font-style:normal}
.upsell-pop-item>i .icon{width:18px;height:18px}
.upsell-pop-close{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:#f6ece0;color:#8a6a4c;flex:none}
.upsell-pop-close .icon{width:19px;height:19px}
/* a tela de revisao rola e reserva espaco para a faixa */
.kiosk .review{overflow-y:auto;min-height:0;scrollbar-width:thin}
.kiosk .review.with-upsell{padding-bottom:180px}

/* Botão de fechar a sugestão na frente de caixa */
.upsell-heading{position:relative}
.upsell-close{position:absolute;top:-2px;right:-2px;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;background:#f3e7d9;color:#8a6a4c;flex:none}
.upsell-close .icon{width:12px;height:12px}
.upsell-close:hover{background:#e9d9c6}

/* Preço e botão do produto nunca se sobrepõem, mesmo com fonte mais larga */
.product-info .between{flex-wrap:wrap;row-gap:10px;align-items:center}
.product-info .product-price{flex:0 0 auto;white-space:nowrap;min-width:0}
.product-info .between>.btn{flex:0 1 auto;min-width:0}
.product-card h3,.product-info h3{overflow-wrap:anywhere}

/* ==========================================================================
   CORREÇÕES DE LAYOUT — evitar texto por cima de texto
   ========================================================================== */
/* Descrições dos itens podem quebrar linha em painéis estreitos */
.item-chip{white-space:normal;line-height:1.35;overflow-wrap:anywhere}

/* A lista do pedido rola dentro do painel em vez de vazar sobre o resumo */
.order-panel{min-height:0}
.order-panel .cart-items{flex:1 1 auto;min-height:170px;min-width:0;
  overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.order-panel .cart-items::-webkit-scrollbar{width:6px}
.order-panel .cart-items::-webkit-scrollbar-thumb{background:#e3d4c3;border-radius:6px}
.order-panel .cart-item,.order-panel .cart-item-content{min-width:0}
.order-panel .cart-item>.product-photo{flex:none}

/* Sugestão no PDV: foto não escapa da moldura */
.upsell-items .product-photo{flex:none;overflow:hidden}
.upsell-items article{min-width:0}

/* Nomes longos na trilha de categorias */
.category-btn{min-width:0;overflow-wrap:break-word;hyphens:auto}
.commerce-content .category-btn{padding-left:5px;padding-right:5px}

/* O botão flutuante do tablet não pode cobrir o último produto da lista */
.commerce.tablet .sale-products{padding-bottom:112px}

/* ==========================================================================
   REDE × UNIDADE — escopo na dashboard, panorama da rede e painel da unidade
   ========================================================================== */
/* Selo de tipo de unidade */
.unit-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;
  font-size:9.5px;letter-spacing:.6px;white-space:nowrap;border:1px solid transparent}
.unit-tag .icon{width:13px;height:13px}
.unit-tag.own{background:#f0e7dc;border-color:#e0cdb4;color:#6b3d1e}
.unit-tag.franchise{background:#eef2ec;border-color:#d8e2d4;color:#4a6b45}
.unit-tag.rede{background:#efe9f2;border-color:#ded2e4;color:#5b4468}

/* Barra de escopo da dashboard */
.scope-bar{display:grid;grid-template-columns:1.4fr auto;gap:16px 22px;align-items:center;
  background:linear-gradient(120deg,#fffaf3,#f7efe4);border:1px solid #ecdfcd;border-radius:16px;
  padding:16px 20px;margin-bottom:20px}
.scope-bar-now{display:flex;align-items:center;gap:14px;min-width:0}
.scope-bar-mark{width:46px;height:46px;border-radius:13px;flex:none;display:grid;place-items:center;
  background:var(--brown);color:#fff3e2}
.scope-bar-mark .icon{width:22px;height:22px}
.scope-bar-text{display:grid;gap:2px;min-width:0}
.scope-bar-text small{font-size:8.5px;letter-spacing:1.8px;color:#a3866a}
.scope-bar-text strong{font-size:17px;color:var(--ink);line-height:1.2}
.scope-bar-text span{font-size:10px;color:var(--muted)}
.scope-bar-fields{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.scope-field{display:grid;gap:5px}
.scope-field span{font-size:8.5px;letter-spacing:1.4px;color:#a3866a}
.scope-field select{border:1px solid #e3d3bd;border-radius:9px;padding:9px 12px;background:#fff;
  font-size:11px;color:var(--ink);min-width:190px;max-width:260px}
.scope-chips{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #efe2d1;padding-top:13px}
.scope-chip{padding:7px 14px;border-radius:999px;border:1px solid #e6d6c1;background:#fff;
  font-size:10px;color:#7a5c40;transition:.15s}
.scope-chip:hover{border-color:#c9a179}
.scope-chip.active{background:var(--brown);border-color:var(--brown);color:#fff3e2}

/* Comparativo próprias × franquias */
.compare-rows{display:grid;gap:16px;margin-bottom:18px}
.compare-row .between{font-size:11px;color:var(--ink);margin-bottom:8px}
.compare-row .between span{display:inline-flex;align-items:center;gap:7px}
.compare-row .between .icon{width:15px;height:15px}
.compare-row .between strong{font:17px Georgia;color:var(--brown)}
.compare-row small{display:block;margin-top:7px;font-size:9.5px;color:var(--muted)}
.compare-bar{height:9px;border-radius:9px;background:#f1e6d8;overflow:hidden}
.compare-bar i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#8b5730,#c49a6c)}
.compare-row.franchise .compare-bar i{background:linear-gradient(90deg,#5d7a56,#a3c199)}

/* Grade do panorama */
.network-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}
.network-grid .card{min-width:0}
a.rank-row{text-decoration:none;color:inherit;border-radius:10px;transition:background .15s}
a.rank-row:hover{background:#faf4ec}
.rank-index.alerta{background:#f6e7e2;color:#a8452a;display:grid;place-items:center}
.rank-index.alerta .icon{width:15px;height:15px}
.uf-list{display:grid;gap:12px}
.uf-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;font-size:11px;color:var(--ink)}
.uf-row .icon{width:15px;height:15px;color:var(--brown)}
.uf-bar{height:7px;border-radius:7px;background:#f1e6d8;overflow:hidden}
.uf-bar i{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,#b98d61,#e0c39d)}
.uf-row strong{font-size:11px;color:var(--brown)}

/* Cabeçalho da lista de unidades */
.network-filter{align-items:flex-end;gap:16px;margin:4px 0 14px;flex-wrap:wrap}
.network-title{font:24px Quiche,Georgia,serif;color:var(--ink);margin:0}
.network-sub{font-size:10px;color:var(--muted);margin-top:5px}
.unit-type-filter{flex:none}

/* Painel da unidade */
.unit-hero-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.unit-hero-actions{display:flex;gap:9px;flex-wrap:wrap}
.unit-note{margin-top:16px;padding:14px 16px;border-radius:12px;background:#f8f1e7;
  border:1px solid #eddfcd;font-size:11px;color:#6b5340}
.unit-note .between{gap:12px}
.unit-note .between+.between{margin-top:9px}
.unit-note strong{color:var(--brown)}
.unit-note.own{display:flex;align-items:center;gap:13px}
.unit-note.own .icon{width:22px;height:22px;color:var(--brown);flex:none}
.unit-note.own small{display:block;margin-top:3px;color:var(--muted)}

@media(max-width:1200px){
  .network-grid{grid-template-columns:1fr 1fr}
  .network-grid .card:last-child{grid-column:1/-1}
}
@media(max-width:900px){
  .scope-bar{grid-template-columns:1fr}
  .scope-bar-fields{justify-content:flex-start}
  .scope-field select{min-width:0;width:100%;max-width:none}
  .scope-field{flex:1 1 200px}
}
@media(max-width:760px){
  .network-grid{grid-template-columns:1fr}
  .network-grid .card:last-child{grid-column:auto}
  .scope-bar{padding:14px}
  .scope-bar-text strong{font-size:15px}
  .unit-hero-actions{width:100%}
  .network-filter{flex-direction:column;align-items:stretch}
}

/* ==========================================================================
   DASHBOARD — perfil + loja no topo, KPIs com projeção, vendas anuais e contas
   ========================================================================== */
.topbar-pick{display:flex;align-items:center;gap:8px;min-width:0}
.topbar-pick>span{font-size:8.5px;letter-spacing:1.4px;color:#a3866a;white-space:nowrap}
.topbar-pick select{border:1px solid #e6d6c1;border-radius:8px;padding:8px 10px;background:#fff;
  font-size:10.5px;color:var(--ink);max-width:230px;min-width:0}
.topbar-picks{display:flex;align-items:center;gap:14px;min-width:0}

/* KPIs */
.dash-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.dash-kpis .stat-bottom span:last-child{color:#a3866a}
.dash-hub{display:flex;flex-direction:column;gap:9px;
  background:linear-gradient(150deg,#f7ede1,#f2e2cd);border-color:#e6d3ba}
.dash-hub p{font-size:10.5px;line-height:1.6;color:#7a5c40;margin:0}
.dash-hub .text-link{margin-top:auto}

/* Bloco principal: gráfico + coluna lateral */
.dash-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;margin-bottom:18px;align-items:stretch}
.dash-side{display:grid;gap:18px;min-width:0}
.dash-chart-card .segmented{margin:4px 0 14px}
.dash-legend{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:12px;font-size:9.5px;color:var(--muted)}
.dash-legend i{display:inline-block;width:12px;height:3px;border-radius:3px;margin-right:6px;vertical-align:middle}
.dash-chart{height:250px}
.dash-chart svg{height:215px}
.dash-months{margin-top:16px;border-top:1px solid var(--line);padding-top:6px}
.dash-months .data-table th,.dash-months .data-table td{padding:9px 10px;font-size:9.5px;white-space:nowrap}
.dash-months .data-table td:first-child,.dash-months .data-table th:first-child{position:sticky;left:0;background:var(--paper)}

/* Contas e comparativo */
.date-chip{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;color:#8a6a4c;
  background:#f7efe4;border:1px solid #eddfcd;border-radius:999px;padding:6px 12px}
.date-chip .icon{width:13px;height:13px}
.dash-contas .info-list,.dash-comparativo .info-list{margin-top:14px}
.dash-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:14px 0 12px;padding:13px 15px;border-radius:12px;background:#f6efe5;border:1px solid #eddfcd}
.dash-total small{font-size:9.5px;color:var(--muted)}
.dash-total strong{font:22px Georgia;color:var(--brown)}
.dash-total.negativo strong{color:#a8452a}
.compare-months{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;height:150px;align-items:end;margin:6px 0 12px}
.compare-month{display:grid;gap:7px;justify-items:center;height:100%;grid-template-rows:1fr auto}
.compare-cols{display:flex;align-items:flex-end;gap:4px;height:100%;width:100%;justify-content:center}
.compare-cols i{width:14px;border-radius:5px 5px 0 0;position:relative;min-height:4px}
.compare-cols i.atual{background:linear-gradient(180deg,#a5683b,#8b5730)}
.compare-cols i.anterior{background:#e2d0bb}
.compare-cols i.atual span{position:absolute;top:-16px;left:50%;transform:translateX(-50%);
  font-size:8px;color:#8a6a4c;white-space:nowrap}
.compare-month small{font-size:9px;color:var(--muted)}

/* Faixa de blocos */
.dash-blocos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.dash-blocos .card{min-width:0}
.dash-meta .meta-ring{width:132px;height:132px;border-radius:50%;margin:8px auto 16px;display:grid;place-items:center;
  background:conic-gradient(var(--brown) calc(var(--pct)*1%),#f0e5d8 0)}
.dash-meta .meta-ring>div{width:100px;height:100px;border-radius:50%;background:var(--paper);
  display:grid;place-items:center;text-align:center}
.dash-meta .meta-ring strong{font:26px Georgia;color:var(--brown);display:block}
.dash-meta .meta-ring small{font-size:9px;color:var(--muted)}

/* Modal de customização */
.dash-profiles{margin-bottom:16px}
.dash-cards-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.dash-card-toggle{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:11px;
  border:1px solid var(--line);background:#fffdf9;font-size:11px;color:var(--ink);cursor:pointer}
.dash-card-toggle input{width:17px;height:17px;accent-color:var(--brown);flex:none}
.dash-card-toggle small{margin-left:auto;font-size:8.5px;color:var(--muted)}
.dash-card-toggle.off{opacity:.55;cursor:not-allowed}

@media(max-width:1200px){
  .dash-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dash-main{grid-template-columns:1fr}
  .dash-blocos{grid-template-columns:1fr 1fr}
  .dash-blocos .card:last-child{grid-column:1/-1}
}
@media(max-width:900px){
  .topbar-pick>span{display:none}
  .topbar-pick select{max-width:150px}
}
@media(max-width:760px){
  .dash-kpis{grid-template-columns:1fr 1fr}
  .dash-blocos{grid-template-columns:1fr}
  .dash-blocos .card:last-child{grid-column:auto}
  .dash-cards-list{grid-template-columns:1fr}
  .compare-months{grid-template-columns:repeat(6,1fr);gap:6px}
  .compare-cols i{width:10px}
}

/* O card do gráfico acompanha a altura da coluna de contas */
.dash-chart-card{display:flex;flex-direction:column}
.dash-chart-card .chart-wrap.dash-chart{flex:1;min-height:250px;display:flex;flex-direction:column}
.dash-chart-card .chart-wrap.dash-chart svg{flex:1;height:auto;min-height:200px}
.dash-chart-card .dash-months{margin-top:16px}
.dash-kpis .stat-value{overflow-wrap:anywhere}
.rank-index.pedido{font-size:9px;letter-spacing:.3px}

/* Blocos com altura natural, sem buracos na linha */
.dash-blocos{align-items:start}
.dash-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Canais de venda: ação e legenda nunca se espremem */
.channel-card>.between:last-child{margin-top:auto;flex-wrap:wrap;row-gap:9px;gap:12px}
.channel-card>.between:last-child .btn{flex:none}
.channel-card>.between:last-child small{white-space:nowrap;color:var(--muted);font-size:9.5px}
.channel-card h2{margin-top:14px}
.channel-card>strong{display:block;margin:8px 0 6px;font-size:10.5px;color:var(--brown)}
.channel-card>p{font-size:10.5px;line-height:1.7;color:var(--muted)}
.roadmap-steps{flex-wrap:wrap;row-gap:8px}
.roadmap-steps span{flex:1 1 130px;min-width:0;overflow-wrap:anywhere}

/* Topo do franqueado: mesma régua visual, sem seletor de loja */
.topbar-unit{gap:8px}
.topbar-unit strong{display:inline-flex;align-items:center;gap:7px;border:1px solid #e6d6c1;border-radius:8px;
  padding:8px 12px;background:#fdf8f1;font-size:10.5px;color:var(--ink);letter-spacing:.3px;white-space:nowrap}
.topbar-unit strong .icon{width:14px;height:14px;color:var(--brown)}
.scope-bar.solo{grid-template-columns:1fr auto}
.scope-bar.solo .scope-bar-fields{justify-content:flex-end}
@media(max-width:900px){.scope-bar.solo{grid-template-columns:1fr}.topbar-unit strong{max-width:170px;overflow:hidden;text-overflow:ellipsis}}

/* Controle de período */
.periodo-box{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end}
.scope-field input[type=date]{border:1px solid #e3d3bd;border-radius:9px;padding:8px 11px;background:#fff;
  font-size:11px;color:var(--ink);font-family:inherit;min-width:150px}
.scope-chips{justify-content:space-between}
.chip-group{display:flex;gap:8px;flex-wrap:wrap}
.chip-group.periodo .scope-chip{border-style:dashed}
.chip-group.periodo .scope-chip.active{border-style:solid}
.scope-bar.periodo-only{margin:16px 0 20px}
.scope-bar.periodo-only .scope-chips{border-top:1px solid #efe2d1;padding-top:13px}
.dash-chart-card .chart-total{margin:2px 0 4px}
.dash-chart-card .chart-meta{font-size:10px;color:var(--muted);margin-bottom:12px}
.unit-hero-actions .date-btn{background:#ffffff1a;border-color:#ffffff33;color:#f3e2cd}
@media(max-width:900px){
  .periodo-box{justify-content:flex-start}
  .scope-field input[type=date]{min-width:0;width:100%}
  .scope-chips{justify-content:flex-start}
}

/* KPIs: valor grande sempre em uma linha */
.dash-kpis .stat-value{font-size:clamp(18px,1.55vw,27px);white-space:nowrap;letter-spacing:-.3px}

/* Comparativo: quantidade de barras varia com o período */
.compare-months{display:flex;gap:8px;height:150px;align-items:end;margin:6px 0 12px}
.compare-month{flex:1 1 0;min-width:0;display:grid;gap:7px;justify-items:center;height:100%;grid-template-rows:1fr auto}
.compare-months.denso .compare-cols i.atual span{display:none}
.compare-months.denso .compare-cols i{width:10px}
.compare-month small{font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* Barra de escopo: o selo desce em vez de subir por cima do nome */
.scope-bar-now{flex-wrap:wrap;row-gap:10px}
.scope-bar-text{flex:1 1 220px}
.scope-bar-now>.unit-tag{flex:none}

/* ==========================================================================
   Barra de escopo: unidade + período numa linha só que quebra de forma limpa
   (o intervalo personalizado adiciona dois campos e não pode espremer o resto)
   ========================================================================== */
.scope-bar{grid-template-columns:minmax(225px,265px) 1fr;gap:14px 18px;align-items:center}
.scope-bar-text strong{line-height:1.15}
.scope-bar-fields{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:flex-end}
.periodo-box{display:contents}
.scope-bar-fields .scope-field{flex:1 1 128px;min-width:126px;max-width:210px}
.scope-bar-fields .scope-field select,
.scope-bar-fields .scope-field input[type=date]{width:100%;min-width:0;max-width:none}
@media(max-width:1150px){
  .scope-bar,.scope-bar.solo{grid-template-columns:1fr}
  .scope-bar-fields{justify-content:flex-start}
  .scope-bar-fields .scope-field{max-width:none}
}
@media(max-width:620px){
  .scope-bar-fields .scope-field{flex:1 1 100%}
}

/* ==========================================================================
   TELAS DE TV — painel de chamada e produção em monitor separado
   ========================================================================== */
body.tv-mode{overflow:hidden;background:#241309}
body.tv-mode #app{height:100dvh}
.tv-stage{height:100dvh;display:flex;flex-direction:column;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 0%,#3a2114 0%,#2a1710 55%,#1d0f08 100%);color:#fff6e9}
.tv-top{display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:22px 40px;border-bottom:1px solid #ffffff1f;flex:none}
.tv-brand{display:flex;align-items:center;gap:18px;min-width:0}
.tv-brand .brand-logo{width:104px;height:70px;flex:none}
.tv-brand strong{display:block;font:26px Quiche,Georgia,serif;letter-spacing:.4px}
.tv-brand small{display:block;font-size:13px;color:#d6bfa6;margin-top:3px}
.tv-acoes{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.tv-relogio{font:34px Georgia;color:#f0dcc2;letter-spacing:1px;margin-right:6px}
.tv-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:999px;
  border:1px solid #ffffff2e;background:#ffffff14;color:#f3e2cd;font-size:13px;text-decoration:none}
.tv-btn:hover{background:#ffffff24}
.tv-btn.ligado{border-color:#a3c19980;color:#d8ecd2}
.tv-btn .icon{width:17px;height:17px}
.tv-rodape{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:16px 40px;border-top:1px solid #ffffff1a;font-size:14px;color:#d6bfa6}
.tv-rodape span{display:inline-flex;align-items:center;gap:9px}
.tv-rodape .icon{width:17px;height:17px}
.tv-link{color:#f0dcc2;text-decoration:none;display:inline-flex;align-items:center;gap:8px}

/* Painel de chamada */
.painel-corpo{flex:1;min-height:0;display:grid;grid-template-columns:1fr 300px;gap:28px;padding:28px 40px}
.painel-principal{display:flex;flex-direction:column;gap:22px;min-height:0}
.painel-chamada{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;text-align:center;background:linear-gradient(160deg,#fffaf2,#f3e4d1);color:var(--ink);
  border-radius:34px;padding:30px;box-shadow:0 30px 80px #0000004d}
.painel-eyebrow{font-size:20px;letter-spacing:6px;color:#9a6a3f}
.painel-numero{font:clamp(120px,20vw,300px)/0.95 Georgia;color:var(--brown);letter-spacing:-2px}
.painel-nome{font-size:30px;color:#6b5340}
.painel-retirada{display:inline-flex;align-items:center;gap:11px;margin-top:8px;
  background:var(--brown-dark);color:#fff6e9;border-radius:999px;padding:12px 26px;font-size:19px}
.painel-retirada .icon{width:22px;height:22px}
.painel-chamada.novo{animation:painelPulsa 1.1s ease-out 3}
@keyframes painelPulsa{0%,100%{box-shadow:0 30px 80px #0000004d}
  50%{box-shadow:0 0 0 14px #f0dcc255,0 30px 80px #0000004d}}
.painel-vazio{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  text-align:center;border:2px dashed #ffffff2e;border-radius:34px;color:#e2cdb4;padding:30px}
.painel-vazio .icon{width:58px;height:58px;color:#c9a179}
.painel-vazio strong{font:34px Quiche,Georgia,serif}
.painel-vazio span{font-size:18px;color:#c2a98f}
.painel-titulo{display:block;font-size:15px;letter-spacing:4px;color:#c9a179;margin-bottom:12px}
.painel-lista{flex:none}
.painel-grid{display:flex;flex-wrap:wrap;gap:12px}
.painel-chip{font:44px Georgia;color:#f0dcc2;background:#ffffff12;border:1px solid #ffffff24;
  border-radius:18px;padding:10px 22px;min-width:120px;text-align:center}
.painel-chip.novo{background:#f0dcc2;color:var(--ink);border-color:#f0dcc2}
.painel-lado{display:flex;flex-direction:column;min-height:0;
  background:#ffffff0f;border:1px solid #ffffff1f;border-radius:26px;padding:22px}
.painel-preparo{display:flex;flex-direction:column;gap:10px;overflow:hidden}
.painel-preparo span{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  font:40px Georgia;color:#e9d5bd;border-bottom:1px solid #ffffff14;padding-bottom:8px}
.painel-preparo small{font:13px Poppins,system-ui;color:#b79a7c;letter-spacing:1px}
.painel-sem{font-size:15px;color:#b79a7c;line-height:1.6}

/* Produção em TV */
.tv-kanban{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px 40px}
.tv-coluna{display:flex;flex-direction:column;min-height:0;background:#ffffff0d;
  border:1px solid #ffffff1c;border-radius:24px;overflow:hidden}
.tv-coluna-topo{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 20px;border-bottom:1px solid #ffffff1c;font-size:19px;color:#f0dcc2}
.tv-coluna-topo span{background:#ffffff1f;border-radius:999px;padding:4px 13px;font-size:15px}
.tv-coluna.pronto .tv-coluna-topo{background:#5d7a5633;color:#d8ecd2}
.tv-coluna-corpo{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:14px;
  scrollbar-width:thin}
.tv-card{background:#fffaf2;color:var(--ink);border-radius:18px;padding:16px 18px}
.tv-card h2{font:30px Georgia;color:var(--brown)}
.tv-card>small{display:block;font-size:13px;color:#8d7159;margin:4px 0 10px}
.tv-card p{font-size:15px;line-height:1.55;color:var(--ink)}
.tv-card p span{color:#8d7159;font-size:13px}
.tv-canal{background:#f3e8dc;color:#7a5c40;border-radius:999px;padding:5px 12px;font-size:12px}
.tv-avanca{width:100%;margin-top:14px;display:flex;align-items:center;justify-content:center;gap:10px;
  background:var(--brown-dark);color:#fff6e9;border-radius:12px;padding:13px;font-size:16px}
.tv-avanca:active{transform:translateY(1px)}
.tv-avanca .icon{width:19px;height:19px}
.tv-vazio{border:2px dashed #ffffff24;border-radius:16px;padding:26px;text-align:center;
  color:#c2a98f;font-size:16px}

@media(max-width:1100px){
  .painel-corpo{grid-template-columns:1fr}
  .painel-lado{max-height:210px}
  .tv-kanban{grid-template-columns:1fr;overflow-y:auto}
  .tv-top,.tv-rodape,.painel-corpo,.tv-kanban{padding-left:22px;padding-right:22px}
  .tv-relogio{font-size:26px}
}

/* ==========================================================================
   Painel de chamada: tudo escala pela ALTURA também, para não estourar o card
   em janelas baixas (TV deitada, monitor 16:9 pequeno, navegador sem F11)
   ========================================================================== */
.tv-top{padding:clamp(10px,2vh,22px) clamp(18px,2.5vw,40px);gap:clamp(12px,2vw,24px)}
.tv-brand{gap:clamp(10px,1.4vw,18px)}
.tv-brand .brand-logo{width:clamp(62px,6.5vw,104px);height:auto}
.tv-brand strong{font-size:clamp(17px,2.6vh,26px)}
.tv-brand small{font-size:clamp(10px,1.5vh,13px)}
.tv-relogio{font-size:clamp(20px,3.4vh,34px);margin-right:4px}
.tv-btn{padding:clamp(8px,1.2vh,11px) clamp(11px,1vw,16px);font-size:clamp(11px,1.6vh,13px)}
.tv-btn .icon{width:clamp(14px,2vh,17px);height:clamp(14px,2vh,17px)}
.tv-rodape{padding:clamp(9px,1.5vh,16px) clamp(18px,2.5vw,40px);font-size:clamp(11px,1.7vh,14px)}

.painel-corpo{padding:clamp(14px,2.2vh,28px) clamp(18px,2.5vw,40px);
  gap:clamp(14px,1.8vw,28px);grid-template-columns:minmax(0,1fr) clamp(210px,19vw,320px)}
.painel-principal{gap:clamp(12px,2vh,22px)}
.painel-chamada{overflow:hidden;padding:clamp(14px,2.5vh,30px);gap:clamp(4px,1vh,10px);
  border-radius:clamp(18px,2.5vh,34px)}
.painel-chamada>*{flex:none;max-width:100%}
.painel-eyebrow{font-size:clamp(11px,1.7vh,20px);letter-spacing:clamp(3px,.5vw,6px)}
.painel-numero{font-size:clamp(64px,min(19vw,34vh),300px);line-height:1.02;letter-spacing:-1px}
.painel-nome{font-size:clamp(15px,2.6vh,30px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.painel-retirada{margin-top:clamp(2px,.8vh,8px);font-size:clamp(12px,1.9vh,19px);
  padding:clamp(7px,1.2vh,12px) clamp(14px,1.8vw,26px);gap:clamp(7px,1vw,11px)}
.painel-retirada .icon{width:clamp(14px,2vh,22px);height:clamp(14px,2vh,22px)}

.painel-vazio{border-radius:clamp(18px,2.5vh,34px);padding:clamp(16px,3vh,30px);gap:clamp(8px,1.5vh,14px)}
.painel-vazio .icon{width:clamp(30px,5vh,58px);height:clamp(30px,5vh,58px)}
.painel-vazio strong{font-size:clamp(20px,3.4vh,34px)}
.painel-vazio span{font-size:clamp(12px,1.9vh,18px)}

.painel-titulo{font-size:clamp(11px,1.6vh,15px);letter-spacing:clamp(2px,.4vw,4px);
  margin-bottom:clamp(7px,1.2vh,12px)}
.painel-lista{min-height:0}
.painel-grid{gap:clamp(7px,1vw,12px)}
.painel-chip{font-size:clamp(22px,4vh,44px);padding:clamp(5px,1vh,10px) clamp(11px,1.5vw,22px);
  min-width:clamp(74px,8vw,120px);border-radius:clamp(11px,1.6vh,18px)}
.painel-lado{padding:clamp(13px,2vh,22px);border-radius:clamp(15px,2.2vh,26px);overflow:hidden}
.painel-preparo{gap:clamp(5px,1vh,10px)}
.painel-preparo span{font-size:clamp(20px,3.6vh,40px);padding-bottom:clamp(4px,.8vh,8px)}
.painel-preparo small{font-size:clamp(10px,1.4vh,13px)}
.painel-sem{font-size:clamp(11px,1.7vh,15px)}

/* Produção em TV também acompanha a altura */
.tv-kanban{padding:clamp(14px,2.2vh,24px) clamp(18px,2.5vw,40px);gap:clamp(12px,1.4vw,20px)}
.tv-coluna-topo{padding:clamp(11px,1.7vh,16px) clamp(13px,1.2vw,20px);font-size:clamp(14px,2.2vh,19px)}
.tv-coluna-topo span{font-size:clamp(11px,1.7vh,15px)}
.tv-coluna-corpo{padding:clamp(11px,1.6vh,16px);gap:clamp(9px,1.4vh,14px)}
.tv-card{padding:clamp(11px,1.7vh,18px)}
.tv-card h2{font-size:clamp(20px,3.2vh,30px)}
.tv-card p{font-size:clamp(12px,1.9vh,15px)}
.tv-avanca{margin-top:clamp(9px,1.4vh,14px);padding:clamp(9px,1.5vh,13px);font-size:clamp(13px,2vh,16px)}

@media(max-height:560px){
  .painel-corpo{grid-template-columns:minmax(0,1fr) clamp(180px,18vw,240px)}
  .painel-lista{display:none}
}

/* PDV: o pedido responde à largura da própria coluna, não só à tela inteira. */
.order-panel{container-type:inline-size;container-name:pdv-order}
@media(min-width:1181px) and (max-width:1440px){.commerce:not(.tablet){--panel:380px}}
@media(min-width:1081px) and (max-width:1180px){.commerce:not(.tablet){--panel:350px}}

@container pdv-order (max-width:340px){
  .club-order-card{grid-template-columns:36px minmax(0,1fr) 14px;gap:8px;padding:9px}
  .club-order-card .club-mini-mark{width:36px;height:36px}
  .club-order-card strong{font-size:9px}
  .club-order-card small{white-space:normal;line-height:1.35}
  .order-panel .segmented button{font-size:8px;padding-inline:3px}
  .order-panel .cart-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:11px 0}
  .order-panel .cart-item>.product-photo{width:64px;height:78px}
  .order-panel .cart-item-content h3{font-size:11px;line-height:1.35}
  .order-panel .item-chips{gap:5px;margin-top:6px}
  .order-panel .item-chip{font-size:8px;padding:5px 8px}
  .order-panel .cart-item-content .between{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:stretch}
  .order-panel .cart-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
  .order-panel .cart-actions .qty{grid-column:1/-1;width:100%;justify-content:space-between}
  .order-panel .cart-actions .btn{width:100%;padding-inline:6px}
  .order-panel .cart-item-price{text-align:right}
  .upsell{padding:9px}
  .upsell-items article{grid-template-columns:38px minmax(0,1fr) 30px;padding:5px;gap:7px}
}

@media(max-height:720px) and (min-width:821px){
  .order-panel .cart-items{min-height:90px}
  .order-panel .upsell{margin-block:7px}
}
