/* Peças das telas ilustrativas específicas de cada ramo (prefixo mk-).
   Base: mockup-kit.css (.mockup, .tela, .celular, .tela-flutuante e peças .ui-*). Tudo em em, para a tela
   crescer e diminuir como uma imagem. Cores: só os tokens da tela (--t-*) e os da marca.

   Composição de cada tela (templates/mockups/<slug>.html):
     figure.mockup.mk.mk--<slug>
       div.mk-cena[role=img][aria-label]      um único desenho para o leitor de tela
         div.mockup.mk-janela > div.tela      a janela; a letra segue a largura da própria janela
         div.mockup.mk-cel > div.celular      celular ao lado (opcional)
         div.tela-flutuante.mk-flut           ou cartão que sai da janela (opcional)
       figcaption.tela-legenda                "Tela ilustrativa"
   Abaixo de 600 px de largura da figura, o celular cresce e passa para o canto de baixo da janela,
   e o cartão flutuante desce para baixo dela com letra maior, para continuar legível no celular. */

/* ---------- Composição ---------- */
.mk-cena { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--mk-desce, 0%); }
.mk-cena > * { grid-area: 1 / 1; }
.mk-janela { width: var(--mk-janela, 100%); justify-self: start; align-self: start; }
.mk-cena--esq > .mk-janela { justify-self: end; }
.mk-cel { z-index: 2; width: var(--mk-cel, 20%); justify-self: end; align-self: end; margin-bottom: calc(var(--mk-desce, 0%) * -1); }
.mk-cena--esq > .mk-cel { justify-self: start; }
.mk-flut.tela-flutuante {
  position: relative; width: var(--mk-flut, 31%); justify-self: end; align-self: end;
  margin-bottom: calc(var(--mk-desce, 0%) * -1);
}
.mk-cena--esq > .mk-flut { justify-self: start; }

@container (max-width: 599px) {
  .mk-cena { padding-bottom: 0; }
  .mk-janela { width: 100%; }
  .mk-cel { width: var(--mk-cel-p, 40%); align-self: start; margin: var(--mk-cel-p-topo, 20%) 0 0; }
  .mk-flut.tela-flutuante { grid-area: 2 / 1; width: 88%; margin: -3% 0 0; font-size: 3.1cqi; }
}

/* O cartão flutuante fica fora da .tela: recebe os mesmos tokens para as peças .ui-* funcionarem nele. */
.mk-flut {
  --t-bg: #FFFDF9;
  --t-surface: #F6EFE6;
  --t-line: #ECE1D4;
  --t-fg: #1A120E;
  --t-muted: #7A6A5E;
  --t-acc: #9A4B22;
  --t-soft: rgba(154, 75, 34, .09);
  --t-ambar-soft: rgba(200, 128, 63, .16);
  letter-spacing: -.01em;
  -webkit-user-select: none;
  user-select: none;
}
.mk-flut.tela-flutuante--escuro {
  --t-bg: var(--cafe, #1A120E);
  --t-surface: rgba(245, 235, 221, .08);
  --t-line: #3A2C23;
  --t-fg: var(--creme, #F5EBDD);
  --t-muted: #B0A193;
  --t-acc: var(--ambar, #C8803F);
  --t-soft: rgba(200, 128, 63, .16);
}

/* ---------- Peças comuns ---------- */
.mk .ui-chip svg { width: 1.15em; height: 1.15em; flex: none; }
.mk-fila { display: flex; align-items: center; gap: .6em; flex: none; }
.mk-rostos { display: flex; flex: none; }
.mk-rostos .ui-avatar { width: 2.1em; height: 2.1em; box-shadow: 0 0 0 .18em var(--t-bg); }
.mk-rostos .ui-avatar + .ui-avatar { margin-left: -.45em; }
.mk-pessoa { display: flex; align-items: center; gap: .7em; min-width: 0; }
.mk-pessoa > div { display: grid; gap: .05em; min-width: 0; }
.mk-pessoa b { font-size: .9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-pessoa span:not(.ui-avatar) { font-size: .78em; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-rotulo { font-size: .74em; font-weight: 500; color: var(--t-muted); }
.mk-num { font-size: 2.1em; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-foto {
  display: block; aspect-ratio: 4 / 3; border-radius: .6em;
  background: linear-gradient(160deg, #EDE3D6, #E2D5C5);
}

/* Conversa no WhatsApp (celular e cartão) */
.mk-zap-cab { display: flex; align-items: center; gap: .7em; min-width: 0; }
.mk-zap-cab > div { display: grid; min-width: 0; }
.mk-zap-cab b { font-size: .92em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-zap-cab span:not(.ui-avatar) { font-size: .76em; color: var(--t-muted); white-space: nowrap; }
.mk-zap-cab .ui-avatar { width: 2.2em; height: 2.2em; }
.mk-anexo {
  display: flex; align-items: center; gap: .5em; margin-top: .55em; padding: .5em .65em;
  border-radius: .6em; background: rgba(245, 235, 221, .14); font-size: .92em; font-weight: 600; white-space: nowrap;
}
.mk-anexo svg { width: 1.2em; height: 1.2em; flex: none; }

/* ======================================================================
   Pintores: orçamento por ambiente, obra por etapas, orçamento no WhatsApp
   ====================================================================== */
.mk--pintores { --mk-janela: 96%; --mk-flut: 31%; --mk-desce: 12%; }
.mk-pt { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1em; }

.mk-tab { display: grid; font-variant-numeric: tabular-nums; }
.mk-tab > div {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.4em 3em 3.4em 4.8em 5em; gap: .6em;
  align-items: center; padding: .6em .7em; border-top: 1px solid var(--t-line);
}
.mk-tab > div > :not(:first-child) { text-align: right; white-space: nowrap; }
.mk-tab span { font-size: .86em; }
.mk-tab > div > b { font-size: .88em; font-weight: 600; }
.mk-tab__cab { border-top: 0 !important; padding-top: 0 !important; padding-bottom: .45em !important; }
.mk-tab__cab span { font-size: .72em; font-weight: 500; color: var(--t-muted); }
.mk-tab__amb { display: grid; gap: .05em; min-width: 0; }
.mk-tab__amb b { font-size: .9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tab__amb small { font-size: .74em; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tab .mk-tab__total { margin-top: .35em; border: 0; border-radius: .75em; background: var(--t-surface); }
.mk-tab__total span { font-weight: 600; }
.mk-tab__total span:first-child { font-weight: 500; color: var(--t-muted); }
.mk-tab__total > b { color: var(--t-acc); font-size: .95em !important; }

.mk-pt-obra { align-content: start; }
.mk-etapas { display: grid; }
.mk-etapas li {
  position: relative; display: grid; grid-template-columns: 1.3em minmax(0, 1fr) auto; align-items: center; gap: .7em;
  padding: .48em 0;
}
.mk-etapas li::before {
  content: ""; z-index: 1; justify-self: center; width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 1px solid #D6C7B6; background: var(--t-bg);
}
.mk-etapas li::after { content: ""; position: absolute; left: .65em; top: 50%; width: 1px; height: 100%; background: var(--t-line); }
.mk-etapas li:last-child::after { display: none; }
.mk-etapas li.ok::before {
  border-color: var(--t-acc);
  background: var(--t-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.2 4 7.3 8.2 2.7' fill='none' stroke='%23F5EBDD' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.mk-etapas li.agora::before { border: .3em solid var(--ambar, #C8803F); }
.mk-etapas li > div { display: grid; gap: .3em; min-width: 0; }
.mk-etapas b { font-size: .9em; font-weight: 600; }
.mk-etapas li > span { font-size: .78em; color: var(--t-muted); white-space: nowrap; }
.mk-etapas li.agora > span { color: var(--t-fg); font-weight: 600; }
.mk-etapas .ui-barra { height: .4em; }
.mk-pt-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }

.mk-pt-zap .ui-msg { max-width: 92%; }

/* ======================================================================
   Barbearia: agenda do dia por barbeiro, caixa e comissões, lembrete no WhatsApp
   ====================================================================== */
.mk--barbearia { --mk-janela: 81%; --mk-cel: 20.5%; --mk-desce: 7%; }
.mk-bb { display: grid; grid-template-columns: minmax(0, 1fr) 15.5em; gap: 1.2em; align-items: start; }
.mk-bb__lado { display: grid; gap: 1em; }
.mk-bb .ui-agenda { gap: .45em .5em; }
.mk-bb .ui-agenda__cab { display: flex; align-items: baseline; gap: .4em; font-size: .86em; color: var(--t-fg); }
.mk-bb .ui-agenda__cab small { font-size: .86em; font-weight: 500; color: var(--t-muted); }
.mk-pausa { border-left-color: #D6C7B6; background: repeating-linear-gradient(135deg, var(--t-surface) 0 .5em, transparent .5em 1em); }
.mk-seg { display: inline-flex; flex: none; padding: .22em; border-radius: 99em; background: var(--t-surface); }
.mk-seg span { padding: .38em .95em; border-radius: 99em; font-size: .8em; font-weight: 600; color: var(--t-muted); white-space: nowrap; }
.mk-seg .ativo { background: var(--t-bg); color: var(--t-fg); box-shadow: 0 1px 2px rgba(26, 18, 14, .1); }
.mk-caixa { gap: .9em; }
.mk-caixa .mk-num { margin-top: -.1em; }
.mk-com { display: grid; gap: .75em; }
.mk-com > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65em; }
.mk-com > div > div { display: grid; gap: .35em; min-width: 0; }
.mk-com b { font-size: .86em; font-weight: 600; }
.mk-com .ui-avatar { width: 2.1em; height: 2.1em; }
.mk-com .ui-barra { height: .38em; }

/* Celular com a conversa do WhatsApp (letra um pouco maior que a do kit, para a conversa encher a tela) */
.mk-cel .celular { font-size: min(4.7cqi, 14px); }
.mk-zap { display: flex; flex-direction: column; }
.mk-zap .mk-zap-cab { flex: none; padding: .2em 1.2em .8em; border-bottom: 1px solid var(--t-line); }
.mk-zap .celular__area { gap: .6em; padding-top: .9em; background: #FBF7F1; }
.mk-zap .ui-msg { max-width: 88%; font-size: .84em; }
.mk-zap-dia {
  justify-self: center; padding: .25em .8em; border-radius: 99em; background: var(--t-bg);
  font-size: .72em; font-weight: 600; color: var(--t-muted); box-shadow: 0 0 0 1px var(--t-line);
}
.mk-zap-opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4em; max-width: 88%; margin-top: -.25em; }
.mk-zap-opcoes span {
  display: grid; place-items: center; height: 2.4em; border-radius: .8em; background: var(--t-bg);
  box-shadow: 0 0 0 1px var(--t-line); font-size: .8em; font-weight: 600; color: var(--t-acc);
}
.mk-zap-entrada { flex: none; display: flex; align-items: center; gap: .5em; padding: .7em 1em 1.4em; background: #FBF7F1; }
.mk-zap-entrada span { flex: 1; height: 2.5em; display: flex; align-items: center; padding: 0 1em; border-radius: 99em; background: var(--t-bg); box-shadow: 0 0 0 1px var(--t-line); font-size: .8em; color: var(--t-muted); }
.mk-zap-entrada i { flex: none; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; background: var(--t-acc); color: var(--creme, #F5EBDD); }
.mk-zap-entrada svg { width: 1.1em; height: 1.1em; }

/* ======================================================================
   Estética automotiva: OS com checklist de entrada, quadro por etapa e aviso de carro pronto
   ====================================================================== */
.mk--estetica-automotiva { --mk-janela: 96%; --mk-flut: 27%; --mk-sobe: 3%; }
/* cartão que sai pelo canto de cima, como um aviso que acabou de chegar */
.mk-cena--topo { padding-top: var(--mk-sobe, 3%); }
.mk-cena--topo > .mk-flut { align-self: start; margin: calc(var(--mk-sobe, 3%) * -1) 0 0; }
@container (max-width: 599px) {
  .mk-cena--topo { padding-top: 0; }
  .mk-cena--topo > .mk-flut { margin: -3% 0 0; }
}

.mk-ea-topo { display: grid; gap: .55em; }
.mk-ea-titulo { display: flex; align-items: center; gap: .7em; min-width: 0; }
.mk-placa {
  display: inline-grid; place-items: center; flex: none; height: 1.75em; padding: 0 .55em; border-radius: .35em;
  border: 1px solid #CDBDA9; background: var(--t-bg); font-size: .72em; font-weight: 600; letter-spacing: .08em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mk-ea-titulo .mk-placa { font-size: .9em; }
.mk-ea-chips { display: flex; gap: .45em; }

.mk-ea-os { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .85fr); gap: 1.8em; }
.mk-ea-os > div { display: grid; gap: .75em; align-content: start; min-width: 0; }

/* Carro visto de cima, frente para a direita: rodas por baixo, carroceria, vidros, teto e retrovisores */
.mk-carro { position: relative; width: 100%; max-width: 20em; aspect-ratio: 2.3 / 1; margin-top: .2em; }
.mk-carro i { position: absolute; display: block; }
.mk-carro__roda { width: 13%; height: 9%; border-radius: .35em; background: #5A4A40; }
.mk-carro__roda:nth-child(1) { left: 15%; top: 6.5%; }
.mk-carro__roda:nth-child(2) { left: 15%; bottom: 6.5%; }
.mk-carro__roda:nth-child(3) { left: 71%; top: 6.5%; }
.mk-carro__roda:nth-child(4) { left: 71%; bottom: 6.5%; }
.mk-carro__espelho { left: 59%; width: 4%; height: 9%; border-radius: 40%; background: #D6C7B6; }
.mk-carro__espelho:nth-child(5) { top: 4%; }
.mk-carro__espelho:nth-child(6) { bottom: 4%; }
.mk-carro__corpo {
  left: 1.5%; right: 1%; top: 11%; bottom: 11%;
  border-radius: 13% 24% 24% 13% / 30% 46% 46% 30%; border: 1px solid #D3C3B1; background: #F3EBE0;
}
.mk-carro__vidro { background: #D9CBBB; }
.mk-carro__vidro--frente { left: 60.5%; width: 11%; top: 17%; bottom: 17%; clip-path: polygon(0 15%, 62% 0, 88% 9%, 100% 28%, 100% 72%, 88% 91%, 62% 100%, 0 85%); }
.mk-carro__teto { left: 30%; width: 29.5%; top: 22%; bottom: 22%; border-radius: .5em; background: var(--t-bg); box-shadow: 0 0 0 1px #E2D5C5; }
.mk-carro__vidro--tras { left: 20.5%; width: 8.5%; top: 20%; bottom: 20%; clip-path: polygon(0 28%, 14% 8%, 38% 0, 100% 14%, 100% 86%, 38% 100%, 14% 92%, 0 72%); }
.mk-carro__farol { right: 2.2%; width: 2.2%; height: 12%; border-radius: 40%; background: #E2D5C5; }
.mk-carro__farol:nth-child(11) { top: 24%; }
.mk-carro__farol:nth-child(12) { bottom: 24%; }
.mk-avaria {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em;
  border-radius: 50%; background: var(--t-acc); color: var(--creme, #F5EBDD); font-size: .78em; font-style: normal; font-weight: 600;
  box-shadow: 0 0 0 .3em rgba(154, 75, 34, .16);
}
.mk-avarias { display: grid; gap: .4em; counter-reset: avaria; }
.mk-avarias li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55em; align-items: center; font-size: .8em; }
.mk-avarias li::before {
  counter-increment: avaria; content: counter(avaria); display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%;
  background: var(--t-soft); color: var(--t-acc); font-size: .9em; font-weight: 600;
}

.mk .mk-foto { font-style: normal; }
.mk-ea-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.mk-ea-fotos .mk-foto { position: relative; aspect-ratio: 4 / 3; }
.mk-ea-fotos .mk-foto span { position: absolute; left: .6em; bottom: .45em; font-size: .66em; font-weight: 500; color: #6E5F55; white-space: nowrap; }
.mk-ea-fotos .mk-foto--mais { display: grid; place-items: center; background: var(--t-surface); }
.mk-ea-fotos .mk-foto--mais b { font-size: .84em; font-weight: 600; color: var(--t-muted); }
.mk-ea-os .ui-check { font-size: .86em; }

.mk-quadro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.mk-quadro__col { display: grid; gap: .5em; align-content: start; min-width: 0; padding: .7em; border-radius: 1em; background: var(--t-surface); }
.mk-quadro__cab { display: flex; align-items: center; justify-content: space-between; padding: .1em .2em .15em; }
.mk-quadro__cab b { font-size: .86em; font-weight: 600; }
.mk-quadro__cab span { font-size: .76em; font-weight: 600; color: var(--t-muted); }
.mk-os { display: grid; gap: .4em; min-width: 0; padding: .65em .75em; border-radius: .75em; background: var(--t-bg); box-shadow: 0 1px 2px rgba(26, 18, 14, .06); }
.mk-os > b { font-size: .86em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-os > div { display: flex; align-items: center; gap: .5em; min-width: 0; }
.mk-os small { font-size: .74em; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-os--atual { box-shadow: 0 0 0 1.5px var(--t-acc); }
.mk-os .ui-barra { height: .35em; }

.mk-aviso-cab { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7em; }
.mk-aviso-cab > div { display: grid; min-width: 0; }
.mk-aviso-cab b { font-size: .92em; font-weight: 600; }
.mk-aviso-cab > div > span { font-size: .76em; color: var(--t-muted); }
.mk-aviso-ok { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--ambar, #C8803F); color: var(--cafe, #1A120E); }
.mk-aviso-ok svg { width: 1.25em; height: 1.25em; stroke-width: 2.4; }
.mk-ea-aviso p { font-size: .86em; line-height: 1.5; color: #E4D6C6; }
.mk-fotos-zap { display: flex; gap: .4em; }
.mk-fotos-zap .mk-foto { width: 4.6em; aspect-ratio: 4 / 3; background: linear-gradient(160deg, rgba(245, 235, 221, .17), rgba(245, 235, 221, .07)); }

/* ======================================================================
   Salão de beleza: agenda por profissional, ficha da cliente e comissão da semana em barras
   ====================================================================== */
.mk .ui-hora { grid-column: 1; }
.mk-sl { display: grid; grid-template-columns: minmax(0, 1fr) 19.5em; gap: 1.2em; align-items: start; }
.mk-sl__lado { display: grid; gap: 1em; }
.mk-sl .ui-agenda { gap: .45em .5em; }
.mk-sl .ui-agenda__cab { display: grid; gap: .05em; font-size: .86em; color: var(--t-fg); }
.mk-sl .ui-agenda__cab small { font-size: .84em; font-weight: 500; color: var(--t-muted); }
.mk-sl .ui-slot--escuro { box-shadow: 0 8px 18px -10px rgba(26, 18, 14, .55); }

.mk .ui-cartao { grid-template-columns: minmax(0, 1fr); }
.mk-ficha { gap: .95em; box-shadow: 0 14px 30px -20px rgba(26, 18, 14, .35); }
.mk-ficha .mk-pessoa .ui-avatar { width: 2.6em; height: 2.6em; }
.mk-ficha .mk-pessoa b { font-size: 1em; }
.mk-ficha__prefs { display: flex; flex-wrap: wrap; gap: .4em; }
.mk-ficha__cor { display: grid; gap: .45em; padding: .85em .95em; border-radius: .9em; background: var(--t-surface); }
.mk-ficha__formula { display: flex; align-items: center; gap: .5em; min-width: 0; }
.mk-ficha__formula b { font-size: .92em; font-weight: 600; white-space: nowrap; }
.mk-tons { display: flex; flex: none; }
.mk-tons i { width: 1.15em; height: 1.15em; border-radius: 50%; box-shadow: 0 0 0 .15em var(--t-surface); }
.mk-tons i + i { margin-left: -.3em; }
.mk-tons i:nth-child(1) { background: var(--fg-2, #3D2F26); }
.mk-tons i:nth-child(2) { background: var(--conhaque-fundo, #6B3115); }
.mk-ficha__hist { display: grid; gap: .5em; }
.mk-ficha__hist div { display: flex; justify-content: space-between; gap: .8em; font-size: .82em; }
.mk-ficha__hist span { color: var(--t-muted); white-space: nowrap; }
.mk-ficha__prox { display: flex; align-items: center; justify-content: space-between; gap: .6em; }

.mk-colunas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; align-items: end; height: 8.4em; padding: 0 .4em; }
.mk-colunas > div { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: .35em; height: 100%; }
.mk-colunas b { align-self: end; font-size: .78em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-colunas i { align-self: end; width: 100%; max-width: 3.2em; height: var(--h, 50%); border-radius: .45em .45em .2em .2em; background: #E9DCCB; }
.mk-colunas .acc i { background: var(--t-acc); }
.mk-colunas span { font-size: .78em; color: var(--t-muted); }

/* ======================================================================
   Clínica odontológica: ficha com odontograma, plano por dente, cadeiras do dia, parcelas e confirmação
   ====================================================================== */
.mk--clinica-odontologica { --mk-janela: 96%; --mk-flut: 30%; --mk-desce: 9%; }
.mk-od-paciente .ui-avatar { width: 2.8em; height: 2.8em; }
.mk-od-paciente b { font-size: 1.25em; letter-spacing: -.03em; }
.mk-od { display: grid; grid-template-columns: minmax(0, 1fr) 17em; gap: 1.1em; align-items: start; }
.mk-od__main, .mk-od__lado { display: grid; gap: 1em; min-width: 0; }

.mk-od-leg { display: flex; gap: .9em; }
.mk-od-leg span { display: inline-flex; align-items: center; gap: .4em; font-size: .74em; color: var(--t-muted); white-space: nowrap; }
.mk-od-leg span::before { content: ""; width: .75em; height: .75em; border-radius: .2em; background: #E9DCCB; }
.mk-od-leg .feito::before { background: var(--cafe, #1A120E); }
.mk-od-leg .plano::before { background: var(--t-acc); }
.mk-od-leg .ausente::before { background: transparent; box-shadow: inset 0 0 0 1px #CDBDA9; }

/* Arcadas: 16 dentes por linha, os de cima com a coroa para baixo, os de baixo para cima; o meio fica marcado */
.mk-arcada { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: .3em; padding: 0 .2em; }
.mk-arcada > :nth-child(8) { margin-right: .35em; }
.mk-arcada > :nth-child(9) { margin-left: .35em; }
.mk-dente { display: grid; justify-items: center; gap: .25em; }
.mk-dente i { width: 100%; max-width: 2.2em; aspect-ratio: 1 / 1.25; border-radius: .35em .35em .9em .9em; background: #F1E7DA; box-shadow: inset 0 0 0 1px #E2D5C5; }
.mk-arcada--inf .mk-dente { grid-template-rows: auto auto; }
.mk-arcada--inf .mk-dente i { order: 2; border-radius: .9em .9em .35em .35em; }
.mk-dente small { font-size: .62em; font-weight: 500; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.mk-dente.feito i { background: var(--cafe, #1A120E); box-shadow: none; }
.mk-dente.plano i { background: var(--t-acc); box-shadow: 0 0 0 .2em rgba(154, 75, 34, .16); }
.mk-dente.plano small { color: var(--t-acc); font-weight: 600; }
.mk-dente.ausente i { background: transparent; box-shadow: inset 0 0 0 1px #CDBDA9; opacity: .55; }
.mk-arcada + .mk-arcada { margin-top: .2em; padding-top: .7em; border-top: 1px dashed var(--t-line); }

.mk-od-plano { display: grid; }
.mk-od-plano > div {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 4.6em 5.6em; align-items: center; gap: .7em;
  padding: .55em 0; border-top: 1px solid var(--t-line); font-size: .86em;
}
.mk-od-plano > div > span:nth-child(3) { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mk-od-plano > div > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-od-plano > div > .ui-chip { justify-self: end; font-size: .86em; }
.mk-od-plano b { display: grid; place-items: center; width: 2.3em; height: 1.7em; border-radius: .45em; background: var(--t-surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-od-plano .mk-od-plano__cab { border-top: 0; padding-top: 0; font-size: .72em; font-weight: 500; color: var(--t-muted); }
.mk-od-plano .mk-od-plano__cab span:nth-child(3), .mk-od-plano .mk-od-plano__cab span:nth-child(4) { text-align: right; font-weight: 500; }

.mk-od-cadeiras { display: grid; gap: .9em; }
.mk-od-cadeiras > div { display: grid; gap: .35em; }
.mk-od-cadeiras p {
  display: flex; gap: .6em; min-width: 0; padding: .45em .6em; border-radius: .6em; background: var(--t-surface);
  font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-od-cadeiras p b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-od-cadeiras p.agora { background: var(--cafe, #1A120E); color: var(--creme, #F5EBDD); }
.mk-od-cadeiras p.livre { background: transparent; box-shadow: inset 0 0 0 1px #DCCDBB; color: var(--t-muted); }
.mk-od-num { display: flex; align-items: baseline; gap: .3em; margin-bottom: .45em; }
.mk-od-num small { font-size: .38em; font-weight: 500; letter-spacing: 0; color: var(--t-muted); }
.mk-od-parc { display: grid; }
.mk-od-prox { display: flex; align-items: center; justify-content: space-between; gap: .6em; }

.mk-od-zap { gap: .75em; }
.mk-od-zap p { font-size: .88em; line-height: 1.5; color: #E4D6C6; }
.mk-od-resp { display: flex; align-items: center; justify-content: space-between; gap: .6em; flex-wrap: wrap; }
.mk-od-resp .ui-chip--escuro { background: rgba(245, 235, 221, .1); }
.mk-od-ok { display: inline-flex; align-items: center; gap: .4em; font-size: .8em; font-weight: 600; color: var(--ambar, #C8803F); white-space: nowrap; }
.mk-od-ok svg { width: 1.2em; height: 1.2em; stroke-width: 2.4; }

@container (max-width: 599px) {
  .mk-od { grid-template-columns: minmax(0, 1fr); }
  .mk-od__lado { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================================================================
   Fisioterapia: turmas com vagas, pacote de sessões e dor por sessão, faltas e reposição, IA do pacote
   ====================================================================== */
.mk--fisioterapia { --mk-janela: 81%; --mk-cel: 20.5%; --mk-desce: 7%; }
.mk-fi { display: grid; grid-template-columns: minmax(0, 1fr) 16em; gap: 1em; align-items: start; }
.mk-fi__main, .mk-fi__lado { display: grid; gap: 1em; min-width: 0; }

.mk-fi-turmas { display: grid; }
.mk-fi-turmas > div {
  display: grid; grid-template-columns: 3em minmax(0, 1fr) auto 4.8em; align-items: center; gap: .8em;
  padding: .6em 0; border-top: 1px solid var(--t-line);
}
.mk-fi-turmas > div:first-child { border-top: 0; padding-top: 0; }
.mk-fi-turmas b { font-size: .86em; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-fi-turma { display: grid; min-width: 0; }
.mk-fi-turma span { font-size: .9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fi-turma small { font-size: .74em; color: var(--t-muted); }
.mk-fi-vagas { display: flex; gap: .3em; }
.mk-fi-vagas i { width: .8em; height: .8em; border-radius: 50%; box-shadow: inset 0 0 0 1px #CDBDA9; }
.mk-fi-vagas i.ok { background: var(--t-acc); box-shadow: none; }
.mk-fi-turmas .ui-chip { justify-self: end; font-size: .82em; }

.mk-fi-pacote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2em; }
.mk-fi-pacote > div { display: grid; gap: .55em; align-content: start; min-width: 0; }
.mk-fi-sessoes { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .3em; }
.mk-fi-sessoes i { height: 1.5em; border-radius: .4em; box-shadow: inset 0 0 0 1px #DCCDBB; }
.mk-fi-sessoes i.feita { background: var(--cafe, #1A120E); box-shadow: none; }
.mk-fi-sessoes i.falta { background: repeating-linear-gradient(135deg, var(--ambar, #C8803F) 0 .25em, #E6B98C .25em .5em); box-shadow: none; }
.mk-fi-dor { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: .35em; height: 4.2em; }
.mk-fi-dor i { position: relative; height: var(--v); border-radius: .35em .35em .15em .15em; background: var(--t-soft); }
.mk-fi-dor i:last-child { background: var(--t-acc); }
.mk-fi-dor small { position: absolute; inset: .2em 0 auto; text-align: center; font-size: .62em; font-weight: 600; color: var(--t-acc); }
.mk-fi-dor i:last-child small { color: var(--creme, #F5EBDD); }

.mk-fi-faltas { display: grid; gap: .4em; }
.mk-fi-faltas p { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55em; padding: .5em .65em; border-radius: .6em; background: var(--t-surface); }
.mk-fi-faltas p > span { display: grid; min-width: 0; }
.mk-fi-faltas b { font-size: .84em; font-weight: 600; }
.mk-fi-faltas small { font-size: .72em; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fi-faltas i { display: grid; color: var(--t-acc); }
.mk-fi-faltas i svg { width: 1.2em; height: 1.2em; stroke-width: 2.4; }
.mk-fi-faltas em { font-size: .76em; font-style: normal; font-weight: 600; color: #8A5420; white-space: nowrap; }
.mk-fi-evol { font-size: .82em; line-height: 1.5; color: var(--t-muted); }


/* ======================================================================
   Igrejas: culto do domingo, escala dos ministérios, células, visitantes, IA ao líder, boas-vindas
   ====================================================================== */
.mk--igreja { --mk-janela: 96%; --mk-flut: 30%; --mk-desce: 9%; }
.mk-ig { display: grid; grid-template-columns: minmax(0, 1fr) 17em; gap: 1em; align-items: start; margin-top: 1em; }
.mk-ig__main, .mk-ig__lado { display: grid; gap: 1em; min-width: 0; }

.mk-ig-escala { display: grid; }
.mk-ig-escala > div {
  display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; align-items: center; gap: .8em;
  padding: .6em 0; border-top: 1px solid var(--t-line); font-size: .9em;
}
.mk-ig-escala > div:first-child { border-top: 0; padding-top: 0; }
.mk-ig-escala b { font-weight: 600; }
.mk-ig-escala span:not(.ui-chip) { color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ig-escala .ui-chip { font-size: .86em; }

.mk-ig-celulas { display: grid; gap: .65em; }
.mk-ig-celulas > div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 3.6em; align-items: center; gap: .8em; font-size: .86em; }
.mk-ig-celulas b { font-weight: 600; white-space: nowrap; }
.mk-ig-celulas span { text-align: right; font-variant-numeric: tabular-nums; color: var(--t-muted); white-space: nowrap; }

.mk-ig-visit { display: grid; gap: .55em; }
.mk-ig-visit > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6em; }
.mk-ig-visit .ui-avatar { width: 2.1em; height: 2.1em; font-size: .9em; }
.mk-ig-visit > div > span:nth-child(2) { display: grid; min-width: 0; }
.mk-ig-visit b { font-size: .86em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ig-visit small { font-size: .72em; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ig-visit i { display: grid; color: var(--t-acc); }
.mk-ig-visit i svg { width: 1.15em; height: 1.15em; stroke-width: 2.4; }

.mk-ig-zap { gap: .75em; }
.mk-ig-zap p { font-size: .88em; line-height: 1.5; color: #E4D6C6; }

@container (max-width: 599px) {
  .mk-ig { grid-template-columns: minmax(0, 1fr); }
  .mk--igreja .ui-kpis { --cols: 2 !important; }
}
