/* Página Modelos: painéis de demonstração */
.mtabs { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.mtabs__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.mtabs__in::-webkit-scrollbar { display: none; }
.mtab { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; padding: 0 4px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 12.5px; line-height: 1.1; color: var(--n2); background: #fff; text-align: center; transition: background .15s, border-color .15s, color .15s; }
@media (min-width: 720px) { .mtab { flex-direction: row; gap: 8px; height: 48px; font-size: 14.5px; } }
.mtab .i { width: 19px; height: 19px; color: var(--o3); }
.mtab[aria-selected="true"] { background: var(--n2); border-color: var(--n2); color: #fff; }
.mtab[aria-selected="true"] .i { color: var(--o1); }
.msim { padding: 22px 0 56px; }
.msim__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.msim__act .btn { flex: 1 1 220px; }
.msim__note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.mall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mall li { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mall .i { width: 26px; height: 26px; color: var(--o3); margin-bottom: 6px; }
.mall b { color: var(--n2); font-size: 15.5px; line-height: 1.25; }
.mall span { font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (min-width: 860px) { .mall { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* janela do app */
.app { --sb: var(--n2); --sb-soft: #EEF3F6; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 32, 47, .45); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.app__boot { padding: 40px; text-align: center; color: var(--muted); }
.app__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sb); color: #fff; }
.app__dots { display: flex; gap: 5px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.app__id { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.app__brand { font-weight: 700; font-size: 17px; white-space: nowrap; }
.app__sub { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__dots { display: none !important; }
@media (min-width: 720px) { .app__dots { display: flex !important; } .app__id { flex-direction: row; align-items: baseline; gap: 10px; } }
.app__live { margin-left: auto; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); padding: 5px 9px; border-radius: 999px; }
.app__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; }
.app__main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app__nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.app__nav::-webkit-scrollbar { display: none; }
.app__nav button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.app__nav button .i { width: 18px; height: 18px; }
.app__nav button[aria-current="true"] { background: var(--sb-soft); color: var(--sb); font-weight: 600; }
.app__nav .ct { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sb); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.app__body { padding: 14px; flex: 1; }
.kp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kp div { background: var(--soft); border-radius: 13px; padding: 10px 12px; min-width: 0; }
.kp small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp b { display: block; font-size: 19px; color: var(--n2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kp div.up b { animation: kup .9s ease-out; }
@keyframes kup { 0% { color: var(--o3); transform: translateY(-3px); } 100% { color: var(--n2); transform: none; } }
.kp div.hl { background: var(--sb); }
.kp div.hl small { color: rgba(255, 255, 255, .7); }
.kp div.hl b { color: #fff; }
@media (min-width: 720px) { .kp { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .app__main { flex-direction: row; }
  .app__nav { flex-direction: column; width: 200px; padding: 14px 10px; border-bottom: 0; border-right: 1px solid var(--line); overflow: visible; }
  .app__nav button { width: 100%; }
  .app__nav .ct { margin-left: auto; }
  .app__body { padding: 20px; }
}

/* blocos comuns */
.st { font-size: 15px; font-weight: 600; color: var(--n2); margin: 4px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cardb { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.two { display: grid; gap: 14px; }
@media (min-width: 960px) { .two { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--text); white-space: nowrap; }
.pill--ok { background: #E3F5EC; color: var(--ok); }
.pill--warn { background: #FFF1D6; color: #8A5A00; }
.pill--bad { background: #FDE7E7; color: #B42318; }
.pill--n { background: var(--sb-soft); color: var(--sb); }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--sb); color: #fff; font-weight: 600; font-size: 14px; transition: transform .12s, opacity .15s; }
.sbtn:active { transform: scale(.97); }
.sbtn--soft { background: var(--sb-soft); color: var(--sb); }
.sbtn--o { background: var(--grad-o); }
.sbtn--block { width: 100%; height: 48px; font-size: 15px; }
.sbtn[disabled] { opacity: .4; pointer-events: none; }
.sbtn .i { width: 17px; height: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 4px; border-bottom: 1px solid #F0F3F5; vertical-align: middle; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .mut { color: var(--muted); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--o1), var(--o3)); transform-origin: bottom; transition: height .5s var(--ease); min-height: 3px; }
.bars div.now i { background: var(--sb); }
.bars span { font-size: 10.5px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 8px; }
.seg2 { display: flex; gap: 6px; flex-wrap: wrap; }
.seg2 button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 500; font-size: 14px; background: #fff; }
.seg2 button[aria-pressed="true"] { border-color: var(--sb); background: var(--sb-soft); color: var(--sb); font-weight: 600; }

/* loja: PDV */
.prods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .prods { grid-template-columns: repeat(3, 1fr); } }
.prod { text-align: left; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 2px; min-height: 92px; transition: border-color .15s, transform .12s; }
.prod:active { transform: scale(.98); }
.prod b { font-size: 14px; color: var(--n2); line-height: 1.2; }
.prod .p { font-weight: 700; color: var(--ink); margin-top: auto; }
.prod small { font-size: 11.5px; color: var(--muted); }
.prod.low small { color: #B42318; }
.prod.pick { border-color: var(--sb); background: var(--sb-soft); }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vars button { font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.vars button[disabled] { opacity: .4; }
.cart li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cart li .x2 { color: var(--muted); }
.cart__tot { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; }
.cart__tot b { font-size: 22px; color: var(--n2); }

/* lanchonete: fila */
.kan { display: grid; gap: 10px; }
@media (min-width: 960px) { .kan { grid-template-columns: repeat(3, 1fr); } .kan__col[hidden] { display: block !important; } .kan__f { display: none; } }
.kan__col h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: none; }
@media (min-width: 960px) { .kan__col h4 { display: block; } }
.ord { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; background: #fff; margin-bottom: 8px; animation: ordIn .35s var(--ease); }
@keyframes ordIn { from { opacity: 0; transform: translateY(-8px); } }
.ord__hd { display: flex; align-items: center; gap: 8px; }
.ord__hd b { font-size: 15px; color: var(--n2); }
.ord__hd .t { margin-left: auto; font: 600 12px var(--mono); color: var(--muted); }
.ord__hd .t.late { color: #B42318; }
.ord ul { margin: 6px 0 10px; font-size: 13.5px; color: var(--text); }
.ord .sbtn { width: 100%; }
.newbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.newbar span { font-size: 13px; color: var(--muted); margin-right: 2px; }
.menu li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0F3F5; }
.menu li b { flex: 1; font-size: 14.5px; color: var(--n2); font-weight: 500; }
.menu li.off b { color: var(--muted); text-decoration: line-through; }
.tog { width: 46px; height: 28px; border-radius: 14px; background: #D5DCE1; position: relative; transition: background .2s; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.tog[aria-pressed="true"] { background: var(--ok); }
.tog[aria-pressed="true"]::after { transform: translateX(18px); }

/* açaí: balança */
.scale { background: var(--sb); color: #fff; border-radius: 18px; padding: 18px; text-align: center; }
.scale small { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.scale .w { font-size: 50px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 4px 0; font-variant-numeric: tabular-nums; }
.scale .w span { font-size: 20px; font-weight: 500; }
.scale .v { font-size: 15px; opacity: .9; }
.scale .sbtn { margin-top: 12px; background: #fff; color: var(--sb); }
.meter { height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .5s var(--ease); }
.meter i.low { background: #E5484D; }

/* eventos: agenda */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .wd { font-size: 11px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal button { aspect-ratio: 1; border-radius: 10px; font-size: 14px; font-weight: 500; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; }
.cal button i { width: 6px; height: 6px; border-radius: 50%; }
.cal button.pre i { background: #E0A100; }
.cal button.sinal i { background: var(--o2); }
.cal button.conf i { background: var(--ok); }
.cal button.pre, .cal button.sinal, .cal button.conf { background: #fff; border: 1.5px solid var(--line); }
.cal button[aria-pressed="true"] { border: 2px solid var(--sb); background: var(--sb-soft); }
.leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.leg span { display: inline-flex; align-items: center; gap: 5px; }
.leg i { width: 8px; height: 8px; border-radius: 50%; }
.toastm { position: fixed; z-index: 90; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--n3); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.toastm.on { opacity: 1; transform: translate(-50%, 0); }
