/* =====================================================================
   DuoTech Beauty — visual (nude / rosé / dourado)
   ===================================================================== */
:root {
  --rose: #B76E79;          /* cor principal (muda por studio) */
  --gold: #C9A45C;          /* destaque (muda por studio) */
  --plum: #4A2530;          /* texto forte */
  --ink: #3B2A2E;           /* texto */
  --muted: #8C7A7E;         /* texto fraco */
  --nude: #FBF6F3;          /* fundo */
  --nude-2: #F4EAE5;        /* fundo de campos */
  --card: #FFFFFF;
  --line: #EEE2DC;
  --ok: #3E9C74;
  --warn: #D9922E;
  --bad: #C2475A;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(74, 37, 48, .18);
  --shadow-lg: 0 24px 60px -20px rgba(74, 37, 48, .35);
  --rose-soft: color-mix(in srgb, var(--rose) 12%, white);
  --gold-soft: color-mix(in srgb, var(--gold) 16%, white);
  --side-w: 260px;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { background: var(--nude); }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
  min-height: 100vh;
}
h1, h2, h3, h4, h5 { color: var(--plum); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--rose); }
.text-muted, .muted { color: var(--muted) !important; }
.fw-600 { font-weight: 600; }

/* ---------- botões ---------- */
.btn { border-radius: 14px; font-weight: 500; padding: .6rem 1.1rem; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-rose { background: var(--rose); color: #fff; border: 0; box-shadow: 0 8px 20px -8px var(--rose); }
.btn-rose:hover, .btn-rose:focus { background: color-mix(in srgb, var(--rose) 88%, black); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 75%, #fff)); color: #3a2a10; border: 0; }
.btn-gold:hover { color: #3a2a10; filter: brightness(.97); }
.btn-soft { background: var(--rose-soft); color: var(--rose); border: 0; }
.btn-soft:hover { background: color-mix(in srgb, var(--rose) 20%, white); color: var(--rose); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-wa { background: #25D366; color: #fff; border: 0; }
.btn-wa:hover { background: #1fb959; color: #fff; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }

/* ---------- campos ---------- */
.form-label { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .3rem; }
.form-control, .form-select {
  background: var(--nude-2); border: 1.5px solid transparent; border-radius: 14px;
  padding: .7rem .95rem; color: var(--ink); font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  background: #fff; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft);
}
.form-control-color { width: 100%; height: 48px; padding: .3rem; }
.input-group-text { background: var(--nude-2); border: 0; border-radius: 14px; color: var(--muted); }
.form-check-input:checked { background-color: var(--rose); border-color: var(--rose); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }

/* ---------- cards ---------- */
.card-db {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6); padding: 1.25rem;
}
.card-db + .card-db { margin-top: 1rem; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.card-titulo h3 { font-size: 1.02rem; margin: 0; }
.card-titulo a { white-space: nowrap; }

.kpi {
  background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden; height: 100%;
}
.kpi .ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--rose-soft); color: var(--rose); margin-bottom: .7rem;
}
.kpi.gold .ic { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 80%, black); }
.kpi.ok .ic { background: #E4F4EC; color: var(--ok); }
.kpi.bad .ic { background: #FBE6E9; color: var(--bad); }
.kpi .valor { font-size: 1.45rem; font-weight: 600; color: var(--plum); line-height: 1.1; }
.kpi .rotulo { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.kpi::after { content: none; }

/* ---------- selos ---------- */
.selo { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.selo.teste { background: #EAF0FB; color: #3F63B5; }
.selo.ativa { background: #E4F4EC; color: var(--ok); }
.selo.atrasada { background: #FDF0DD; color: #B06F12; }
.selo.bloqueada, .selo.cancelada { background: #FBE6E9; color: var(--bad); }
.selo.pro { background: var(--gold-soft); color: #7a5a1c; }
.selo.basico { background: var(--nude-2); color: var(--muted); }
.selo.agendado { background: var(--nude-2); color: var(--muted); }
.selo.confirmado { background: #E4F4EC; color: var(--ok); }
.selo.em_atendimento { background: var(--rose-soft); color: var(--rose); }

/* ---------- login ---------- */
.tela-login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 110% -10%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--rose) 30%, transparent), transparent 60%),
    var(--nude);
}
.caixa-login {
  width: 100%; max-width: 410px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: 2rem 1.6rem; animation: subir .5s ease both;
}
.marca { display: flex; align-items: center; gap: .7rem; }
.marca img { width: 48px; height: 48px; border-radius: 14px; }
.marca .nome { font-weight: 700; color: var(--plum); font-size: 1.15rem; line-height: 1.1; }
.marca .sub { font-size: .75rem; color: var(--muted); }

/* ---------- layout dos painéis ---------- */
.layout { display: flex; min-height: 100vh; }
.lateral {
  width: var(--side-w); flex-shrink: 0; position: fixed; inset: 0 auto 0 0; z-index: 30;
  background: linear-gradient(180deg, var(--plum), color-mix(in srgb, var(--plum) 80%, var(--rose)));
  color: #fff; padding: 1.3rem 1rem; display: flex; flex-direction: column;
}
.lateral .marca .nome { color: #fff; }
.lateral .marca .sub { color: rgba(255,255,255,.6); }
.menu { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .2rem; }
.menu a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 14px;
  color: rgba(255,255,255,.75); text-decoration: none; font-weight: 500; font-size: .93rem; transition: .2s;
}
.menu a i { font-size: 1.1rem; }
.menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu a.ativo { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.menu .sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); margin: 1rem .9rem .3rem; }
.lateral .rodape { margin-top: auto; font-size: .72rem; color: rgba(255,255,255,.45); padding: 0 .9rem; }

.conteudo { flex: 1; margin-left: var(--side-w); min-width: 0; }
.topo {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.5rem; background: color-mix(in srgb, var(--nude) 82%, transparent); backdrop-filter: blur(12px);
}
.topo h1 { font-size: 1.25rem; margin: 0; }
.topo .espaco { flex: 1; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  background: linear-gradient(135deg, var(--rose), var(--gold)); color: #fff; cursor: pointer; border: 0;
  background-size: cover; background-position: center;
}
.pagina { padding: .5rem 1.5rem 2rem; animation: subir .35s ease both; }

/* celular: barra inferior */
.barra-inferior { display: none; }
@media (max-width: 991.98px) {
  .lateral { display: none; }
  .conteudo { margin-left: 0; }
  .topo { padding: .8rem 1rem; }
  .pagina { padding: .25rem 1rem calc(96px + env(safe-area-inset-bottom)); }
  .barra-inferior {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-radius: 22px; box-shadow: var(--shadow-lg);
    padding: .4rem; justify-content: space-around;
  }
  .barra-inferior a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0;
    font-size: .68rem; color: var(--muted); text-decoration: none; border-radius: 16px; font-weight: 500;
  }
  .barra-inferior a i { font-size: 1.25rem; }
  .barra-inferior a.ativo { color: var(--rose); background: var(--rose-soft); }
}

/* ---------- faixa de aviso (teste / atraso) ---------- */
.faixa {
  display: flex; align-items: center; gap: .9rem; border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid color-mix(in srgb, var(--gold) 30%, white);
}
.faixa .ic { font-size: 1.4rem; color: color-mix(in srgb, var(--gold) 75%, black); }
.faixa.bad { background: linear-gradient(135deg, #FBE6E9, #fff); border-color: #F2C4CC; }
.faixa.bad .ic { color: var(--bad); }
.faixa .txt { flex: 1; font-size: .9rem; }
.faixa .txt b { color: var(--plum); }

/* ---------- saudação ---------- */
.ola {
  border-radius: 24px; padding: 1.4rem 1.4rem; color: #fff; margin-bottom: 1rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--rose), color-mix(in srgb, var(--rose) 60%, var(--plum)));
  box-shadow: 0 18px 40px -18px var(--rose);
}
.ola h2 { color: #fff; font-size: 1.35rem; margin-bottom: .2rem; }
.ola p { margin: 0; opacity: .85; font-size: .9rem; }
.ola::after {
  content: '✦'; position: absolute; right: 1.2rem; top: .4rem; font-size: 4.5rem; color: var(--gold); opacity: .55;
}

/* ---------- listas ---------- */
.lista { display: flex; flex-direction: column; gap: .55rem; }
.item {
  display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border-radius: 16px; background: var(--nude);
  transition: background .2s, transform .15s;
}
.item:hover { background: var(--nude-2); }
.item .hora {
  min-width: 58px; text-align: center; font-weight: 600; color: var(--rose); background: #fff; border-radius: 12px; padding: .35rem .2rem;
  font-size: .9rem; box-shadow: 0 2px 8px -4px rgba(0,0,0,.15);
}
.item .corpo { flex: 1; min-width: 0; }
.item .corpo .t { font-weight: 600; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .corpo .s { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vazio { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.vazio i { font-size: 2.4rem; color: var(--rose); opacity: .5; display: block; margin-bottom: .5rem; }

/* ---------- studio (super) ---------- */
.studio {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; height: 100%;
  display: flex; flex-direction: column; gap: .7rem; transition: transform .15s, box-shadow .2s;
}
.studio:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.studio .cab { display: flex; gap: .8rem; align-items: center; }
.studio .logo {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 1.1rem; background-size: cover; background-position: center;
}
.studio .nome { font-weight: 600; color: var(--plum); line-height: 1.2; }
.studio .link { font-size: .78rem; color: var(--muted); }
.studio .info { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.studio .acoes { display: flex; gap: .4rem; margin-top: auto; }
.studio .acoes .btn { flex: 1; padding: .5rem .3rem; font-size: .85rem; }

.filtros { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.filtros button {
  border: 0; background: #fff; color: var(--muted); border-radius: 999px; padding: .45rem 1rem; font-size: .85rem;
  font-weight: 500; white-space: nowrap; box-shadow: 0 2px 8px -4px rgba(0,0,0,.15);
}
.filtros button.ativo { background: var(--plum); color: #fff; }

/* ---------- modais ---------- */
.modal-content { border: 0; border-radius: 26px; box-shadow: var(--shadow-lg); }
.modal-header { border: 0; padding: 1.3rem 1.4rem .4rem; }
.modal-title { font-weight: 600; color: var(--plum); }
.modal-body { padding: .8rem 1.4rem; }
.modal-footer { border: 0; padding: .6rem 1.4rem 1.3rem; }
@media (max-width: 575.98px) {
  .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .modal.fade .modal-dialog { transform: translateY(100%); }
  .modal.show .modal-dialog { transform: none; }
  .modal-content { border-radius: 26px 26px 0 0; max-height: 92vh; overflow-y: auto; }
}

.caixa-copiar {
  background: var(--nude); border: 1.5px dashed var(--line); border-radius: 16px; padding: .9rem;
  font-size: .88rem; white-space: pre-wrap; word-break: break-word;
}

/* ---------- toasts ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex;
  flex-direction: column; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast-db {
  display: flex; gap: .6rem; align-items: center; background: var(--plum); color: #fff; padding: .8rem 1rem;
  border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .9rem; opacity: 0; transform: translateY(-10px);
  transition: .25s; pointer-events: auto;
}
.toast-db.show { opacity: 1; transform: none; }
.toast-db.ok i { color: #8FE0B8; }
.toast-db.erro { background: var(--bad); }
.toast-db.info i { color: var(--gold); }

/* ---------- tela bloqueada ---------- */
.bloqueio {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--plum) 55%, transparent); backdrop-filter: blur(6px);
}
.bloqueio .caixa { background: #fff; border-radius: 26px; padding: 1.8rem 1.4rem; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); }
.bloqueio .caixa i { font-size: 2.6rem; color: var(--bad); }

/* ---------- em breve ---------- */
.em-breve { text-align: center; padding: 3rem 1rem; }
.em-breve .bola {
  width: 84px; height: 84px; border-radius: 28px; margin: 0 auto 1rem; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft)); font-size: 2.2rem; color: var(--rose);
}

/* ---------- carregando ---------- */
.esqueleto { background: linear-gradient(90deg, var(--nude-2), #fff, var(--nude-2)); background-size: 200% 100%;
  animation: brilho 1.2s infinite; border-radius: 14px; }
@keyframes brilho { to { background-position: -200% 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cores-previa { display: flex; gap: .5rem; }
.cores-previa span { width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

.link-studio {
  display: flex; align-items: center; gap: .6rem; background: var(--nude); border-radius: 14px; padding: .6rem .7rem .6rem 1rem;
}
.link-studio code { flex: 1; color: var(--plum); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: none; }

.grafico-caixa { position: relative; height: 220px; }

/* =====================================================================
   LOTE 2 — Serviços, horários, folgas e agenda
   ===================================================================== */
.selo.concluido { background: #E4F4EC; color: var(--ok); }
.selo.faltou { background: #FDF0DD; color: #B06F12; }

/* cartão de serviço */
.servico {
  width: 100%; text-align: left; border: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .9rem; padding: .75rem; transition: transform .15s, box-shadow .2s;
}
.servico:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.servico.inativo { opacity: .55; }
.servico .capa {
  width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; background-size: cover; background-position: center;
  display: grid; place-items: center; color: #fff; font-size: 1.6rem;
}
.servico .info { flex: 1; min-width: 0; }
.servico .t { font-weight: 600; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.servico .s { font-size: .8rem; color: var(--muted); }
.servico .preco { font-weight: 600; color: var(--rose); }
.capa-mini {
  width: 84px; height: 84px; border-radius: 20px; background: var(--nude-2) center/cover; display: grid; place-items: center;
  color: var(--muted); font-size: 1.6rem; flex-shrink: 0;
}
.filtros.flex-wrap { overflow: visible; }

/* horários da semana */
.dia-linha { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dia-linha:last-child { border-bottom: 0; }
.dia-linha .nome-dia { min-width: 130px; }
.dia-linha .turnos { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.dia-linha .turno { display: flex; align-items: center; gap: .4rem; }
.dia-linha .turno input { width: 112px; padding: .45rem .6rem; }
.dia-linha .turno span { font-size: .8rem; color: var(--muted); }
.dia-linha .txt-fechado { display: none; }
.dia-linha.fechado .turno, .dia-linha.fechado .btnPausa { display: none !important; }
.dia-linha.fechado .txt-fechado { display: inline; }
@media (max-width: 575.98px) {
  .dia-linha { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .dia-linha .turno input { width: 104px; }
}

/* botão flutuante */
.fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 45; width: 60px; height: 60px; border-radius: 20px; border: 0;
  background: linear-gradient(135deg, var(--rose), color-mix(in srgb, var(--rose) 70%, var(--plum))); color: #fff;
  font-size: 1.6rem; box-shadow: 0 14px 30px -10px var(--rose); transition: transform .15s;
}
.fab:active { transform: scale(.92); }
@media (max-width: 991.98px) { .fab { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; } }

/* topo da agenda */
.agenda-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.resumo-agenda { font-size: .85rem; color: var(--muted); }
.resumo-agenda b { color: var(--plum); }

/* FullCalendar no visual do sistema */
.fc { --fc-border-color: var(--line); --fc-today-bg-color: color-mix(in srgb, var(--rose) 6%, white);
  --fc-now-indicator-color: var(--rose); --fc-non-business-color: rgba(140, 122, 126, .07);
  --fc-page-bg-color: #fff; --fc-neutral-bg-color: var(--nude); --fc-list-event-hover-bg-color: var(--nude);
  font-family: 'Poppins', sans-serif; font-size: .85rem; }
.fc .fc-toolbar-title { font-size: 1.05rem; font-weight: 600; color: var(--plum); }
.fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.fc .fc-button { background: var(--nude-2); border: 0; color: var(--plum); border-radius: 12px !important; padding: .4rem .75rem;
  font-weight: 500; box-shadow: none !important; text-transform: capitalize; }
.fc .fc-button:hover { background: var(--rose-soft); color: var(--rose); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:disabled { background: var(--plum); color: #fff; opacity: 1; }
.fc .fc-button-group { gap: .3rem; }
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: .8rem; }
.fc .fc-col-header-cell-cushion { color: var(--plum); font-weight: 600; text-transform: capitalize; padding: .5rem .2rem; text-decoration: none; }
.fc .fc-daygrid-day-number { color: var(--ink); text-decoration: none; }
.fc .fc-timegrid-slot { height: 2.6em; }
.fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-size: .75rem; }
.fc .fc-scrollgrid { border-radius: 16px; overflow: hidden; }
.fc-theme-standard .fc-scrollgrid { border: 1px solid var(--line); }
.fc .fc-timegrid-event { border-radius: 10px; border: 0; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); padding: 0; }
.fc .fc-timegrid-event .fc-event-main { padding: 3px 6px; }
.ev-box { line-height: 1.2; overflow: hidden; height: 100%; }
.ev-box .ev-h { font-size: .7rem; opacity: .9; }
.ev-box .ev-c { font-weight: 600; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-box .ev-s { font-size: .72rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-box.curto { display: flex; gap: .35rem; align-items: baseline; }
.ev-confirmado { box-shadow: inset 3px 0 0 #fff, 0 4px 12px -6px rgba(0,0,0,.35) !important; }
.ev-em_atendimento { outline: 2px solid var(--gold); outline-offset: 1px; }
.ev-concluido { opacity: .55; }
.ev-faltou, .ev-cancelado { opacity: .4; filter: grayscale(1); text-decoration: line-through; }
.fc .ev-bloqueio { background: repeating-linear-gradient(135deg, rgba(74,37,48,.07) 0 8px, rgba(74,37,48,.13) 8px 16px) !important; opacity: 1; }
.fc .ev-bloqueio-txt { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--muted) !important; cursor: pointer; }
.fc .ev-bloqueio-txt .ev-txt { color: var(--muted); font-size: .75rem; font-weight: 500; padding: 2px 4px; }
.fc .fc-daygrid-event { border-radius: 8px; background: transparent !important; border: 0 !important; }
.ev-mes { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--ink); white-space: nowrap; overflow: hidden; }
.ev-mes .bolinha { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fc .fc-list { border-radius: 16px; overflow: hidden; }
.fc .fc-list-day-cushion { background: var(--nude) !important; text-transform: capitalize; }
.fc .fc-list-event:hover td { background: var(--nude); cursor: pointer; }
.fc .fc-highlight { background: var(--rose-soft); }
.fc .fc-timegrid-now-indicator-line { border-width: 2px 0 0; }
@media (max-width: 767.98px) {
  .fc .fc-toolbar.fc-header-toolbar { flex-wrap: wrap; gap: .5rem; }
  .fc .fc-toolbar-title { font-size: .95rem; }
  .fc .fc-toolbar-chunk:nth-child(2) { order: -1; width: 100%; text-align: center; }
}

/* agendar: busca de cliente */
.busca-res { display: flex; flex-direction: column; margin-top: .3rem; }
.busca-res button { border: 0; background: var(--nude); text-align: left; padding: .6rem .9rem; border-radius: 12px; margin-top: .25rem; }
.busca-res button:hover { background: var(--rose-soft); }
.busca-res button.nova { color: var(--rose); font-weight: 500; background: transparent; border: 1.5px dashed var(--line); }
.cli-escolhida { display: flex; align-items: center; gap: .7rem; background: var(--nude); border-radius: 14px; padding: .6rem .8rem; }
.cli-escolhida > i { font-size: 1.4rem; color: var(--rose); }
.aviso-linha { font-size: .82rem; border-radius: 12px; padding: .5rem .75rem; margin-bottom: .3rem; }
.aviso-linha.aviso { background: #FDF0DD; color: #8a5a10; }
.aviso-linha.erro { background: #FBE6E9; color: var(--bad); }

/* detalhes do atendimento */
.det-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.det-linhas > div { display: flex; gap: .8rem; align-items: flex-start; padding: .45rem 0; }
.det-linhas i { color: var(--rose); font-size: 1.05rem; width: 20px; text-align: center; }
.det-linhas span { text-transform: none; }
.det-linhas > div:nth-child(2) span { display: inline-block; }
.det-linhas > div:nth-child(2) span::first-letter { text-transform: uppercase; }
.det-acoes { display: flex; gap: .5rem; }
.det-acoes .btn { flex: 1; }
.formas { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.formas button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .55rem .2rem; font-size: .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--ink); }
.formas button i { font-size: 1.2rem; color: var(--rose); }
.formas button.ativo { border-color: var(--rose); background: var(--rose-soft); font-weight: 600; }
.form-switch .form-check-label { margin-left: .45rem; }
.btn-link { color: var(--rose); }
.btn-link:hover { color: color-mix(in srgb, var(--rose) 75%, black); }
.text-warning.btn-link, .btn-link.text-warning { color: #B06F12 !important; }
.card-titulo { flex-wrap: wrap; }
.em-breve .bola.ok-bola { background: linear-gradient(135deg, #E4F4EC, #fff); color: var(--ok); }

/* =====================================================================
   Personalizar (logo, foto, cores, prévia)
   ===================================================================== */
.marca img.redondo { border-radius: 50%; object-fit: cover; }
.marca img { object-fit: cover; background: #fff; }
.upload-box { text-align: center; background: var(--nude); border-radius: 18px; padding: 1.1rem .8rem; position: relative; height: 100%; }
.upload-prev {
  width: 104px; height: 104px; margin: 0 auto .7rem; background: #fff center/contain no-repeat; display: grid; place-items: center;
  font-size: 2rem; color: var(--muted); box-shadow: 0 8px 20px -12px rgba(74,37,48,.4); border: 3px solid #fff;
}
.upload-prev.quadrado { border-radius: 26px; }
.upload-prev.redondo { border-radius: 50%; background-size: cover; }
.upload-box.enviando::after {
  content: 'Enviando...'; position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.8); color: var(--rose); font-weight: 600;
}
.temas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.tema-op { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: .5rem .5rem .6rem; display: flex; flex-direction: column; gap: .2rem; text-align: left; }
.tema-op:hover { border-color: var(--rose); }
.tema-op.ativo { border-color: var(--plum); box-shadow: 0 0 0 3px var(--rose-soft); }
.tema-op .n { font-size: .8rem; font-weight: 600; color: var(--plum); }
.tema-op .d { font-size: .68rem; color: var(--muted); line-height: 1.3; }
.tema-mini { height: 64px; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); }
.tema-mini i { height: 16px; border-radius: 5px; }
.tema-mini b { flex: 1; border-radius: 5px; }
/* prévia com o estilo escolhido */
.tela.pv-tema-luxo { background: #141112; }
.pv-tema-luxo .pv-capa { background: linear-gradient(180deg, #2A2325, #141112) !important; border-radius: 0; }
.pv-tema-luxo .pv-nome { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; }
.pv-tema-luxo .pv-logo { background-color: #141112; border: 1.5px solid #D4AF6A; color: #D4AF6A !important; border-radius: 50%; }
.pv-tema-luxo .pv-etapas, .pv-tema-luxo .pv-serv, .pv-tema-luxo .pv-horas span { background: #1E1A1B; border-color: #2E2729; color: #F5EFE6; box-shadow: none; border-radius: 6px; }
.pv-tema-luxo .pv-serv .t { color: #F5EFE6; }
.pv-tema-luxo .pv-serv b, .pv-tema-luxo .pv-horas span[style] { color: #D4AF6A !important; }
.pv-tema-luxo .pv-horas span[style] { background: #D4AF6A !important; border-color: #D4AF6A !important; color: #1A1410 !important; }
.pv-tema-luxo .pv-botao { background: #D4AF6A !important; color: #1A1410; box-shadow: none !important; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.pv-tema-luxo .pv-chips span { border-radius: 3px; background: transparent; border-color: #3A3133; }
.tela.pv-tema-rosa { background: #FFF4F6; }
.pv-tema-rosa .pv-capa { background: radial-gradient(260px 140px at 50% -10%, color-mix(in srgb, var(--rose) 25%, white), #FFF4F6 70%) !important; color: #5A2238; border-radius: 0; }
.pv-tema-rosa .pv-nome { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.pv-tema-rosa .pv-logo { border-radius: 50%; border: 4px solid #fff; }
.pv-tema-rosa .pv-chips span { background: #fff; border: 0; color: var(--rose); }
.pv-tema-rosa .pv-serv, .pv-tema-rosa .pv-etapas { border-radius: 20px; }
.pv-tema-rosa .pv-botao { border-radius: 999px; }
.paletas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.paleta {
  border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: .55rem .3rem .45rem; display: flex; flex-direction: column;
  align-items: center; gap: .3rem; transition: .15s;
}
.paleta:hover { border-color: var(--rose); }
.paleta.ativo { border-color: var(--plum); box-shadow: 0 0 0 3px var(--rose-soft); }
.paleta .bolas { display: flex; }
.paleta .bolas span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.paleta .bolas span + span { margin-left: -8px; }
.paleta .n { font-size: .72rem; color: var(--ink); font-weight: 500; }
.cor-campo { display: flex; gap: .4rem; align-items: center; background: var(--nude-2); border-radius: 14px; padding: .3rem; }
.cor-campo input[type=color] { width: 44px; height: 40px; border: 0; border-radius: 10px; padding: 0; background: none; cursor: pointer; flex-shrink: 0; }
.cor-campo input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cor-campo input[type=color]::-webkit-color-swatch { border: 0; border-radius: 10px; }
.cor-campo .form-control { background: transparent; padding: .4rem .5rem; font-family: ui-monospace, monospace; text-transform: uppercase; }

/* celular da prévia */
.previa-titulo { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: .6rem; text-align: center; }
.celular {
  width: 290px; max-width: 100%; margin: 0 auto; background: #1d1417; border-radius: 42px; padding: 10px;
  box-shadow: 0 30px 60px -25px rgba(74,37,48,.55);
}
.celular .tela { background: var(--nude); border-radius: 33px; overflow: hidden; height: 560px; position: relative; }
.pv-capa { color: #fff; text-align: center; padding: 26px 14px 44px; border-radius: 0 0 26px 26px; transition: background .3s; }
.pv-logo {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 8px; background: #fff center/contain no-repeat; display: grid; place-items: center;
  font-weight: 700; font-size: 1.6rem; border: 2px solid rgba(255,255,255,.7); position: relative; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
}
.pv-logo.pv-redondo { border-radius: 50%; background-size: cover; }
.pv-foto { position: absolute; right: -10px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: #fff center/cover; }
.pv-nome { font-weight: 600; font-size: 1rem; }
.pv-sub { font-size: .68rem; opacity: .85; }
.pv-chips { display: flex; justify-content: center; gap: .35rem; margin-top: .6rem; }
.pv-chips span { font-size: .6rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: .2rem .5rem; }
.pv-miolo { margin-top: -30px; padding: 0 12px; }
.pv-etapas { background: #fff; border-radius: 12px; padding: .4rem .6rem; font-size: .6rem; display: flex; align-items: center; gap: .3rem;
  box-shadow: var(--shadow); color: var(--plum); font-weight: 600; margin-bottom: .6rem; }
.pv-etapas span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--nude-2); color: var(--muted); font-size: .55rem; }
.pv-etapas span:first-child { color: #fff; }
.pv-etapas i { flex: 1; height: 1.5px; background: var(--line); }
.pv-serv { background: #fff; border-radius: 14px; padding: .45rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .45rem; box-shadow: var(--shadow); }
.pv-cap { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.pv-serv .t { font-size: .7rem; font-weight: 600; color: var(--plum); }
.pv-serv .m { display: flex; justify-content: space-between; font-size: .62rem; color: var(--muted); }
.pv-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: .5rem 0 .6rem; }
.pv-horas span { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; text-align: center; font-size: .62rem; font-weight: 600; padding: .3rem 0; color: var(--plum); }
.pv-botao { color: #fff; text-align: center; border-radius: 12px; padding: .55rem; font-size: .72rem; font-weight: 600; }
.previa-col { position: sticky; top: 90px; }
@media (max-width: 991.98px) { .previa-col { position: static; } }

/* =====================================================================
   LOTE 4 — menu recolhível, página Mais, componentes novos
   ===================================================================== */
.lateral { overflow-y: auto; scrollbar-width: none; transition: width .25s; }
.lateral::-webkit-scrollbar { display: none; }
.conteudo { transition: margin-left .25s; }
.menu a span { white-space: nowrap; }
.so-pc { display: none; }
@media (min-width: 992px) {
  .so-pc { display: inline-grid; }
  body.menu-recolhido { --side-w: 78px; }
  body.menu-recolhido .lateral { padding: 1.3rem .6rem; }
  body.menu-recolhido .lateral .marca { justify-content: center; }
  body.menu-recolhido .lateral .marca > div, body.menu-recolhido .menu a span,
  body.menu-recolhido .menu .sep, body.menu-recolhido .lateral .rodape { display: none; }
  body.menu-recolhido .menu a { justify-content: center; padding: .75rem 0; }
  body.menu-recolhido .menu a i { font-size: 1.25rem; }
  body.menu-recolhido .menu .sep + li { margin-top: 1rem; }
}

/* Mais (celular) */
.mais-perfil { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 20px; padding: .9rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.mais-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 600;
  font-size: 1.2rem; background: linear-gradient(135deg, var(--rose), var(--gold)) center/cover; }
.mais-grupo-t { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 .4rem .45rem; }
.mais-grupo { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.1rem; }
.mais-linha { display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; text-decoration: none; color: var(--ink); }
.mais-linha + .mais-linha { border-top: 1px solid var(--line); }
.mais-linha:active { background: var(--nude); }
.mais-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.mais-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mais-txt b { font-weight: 600; color: var(--plum); font-size: .95rem; }
.mais-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mais-seta { color: var(--muted); }

/* abas de página */
.abas { display: flex; gap: .35rem; background: #fff; padding: .3rem; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.abas button { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: .55rem .8rem; font-weight: 500; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.abas button.ativo { background: var(--plum); color: #fff; }

/* cliente (lista) */
.cli-card { display: flex; align-items: center; gap: .85rem; background: #fff; border-radius: 18px; padding: .8rem .9rem; box-shadow: var(--shadow);
  border: 0; width: 100%; text-align: left; transition: transform .15s; }
.cli-card:hover { transform: translateY(-2px); }
.cli-av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, var(--rose), color-mix(in srgb, var(--rose) 50%, var(--gold))); position: relative; }
.cli-av .bolo { position: absolute; right: -4px; bottom: -4px; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.cli-info { flex: 1; min-width: 0; }
.cli-info .t { font-weight: 600; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-info .s { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .1rem .7rem; }
.cli-num { text-align: right; flex-shrink: 0; }
.cli-num b { display: block; color: var(--rose); font-size: 1.05rem; line-height: 1.1; }
.cli-num small { color: var(--muted); font-size: .7rem; }
.chip-pts { display: inline-flex; align-items: center; gap: .25rem; background: var(--gold-soft); color: #7a5a1c; border-radius: 999px; padding: .1rem .5rem; font-size: .72rem; font-weight: 600; }

/* ficha */
.ficha-topo { display: flex; gap: 1rem; align-items: center; }
.ficha-topo .cli-av { width: 64px; height: 64px; font-size: 1.5rem; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.mini-kpis div { background: var(--nude); border-radius: 14px; padding: .6rem .4rem; text-align: center; }
.mini-kpis b { display: block; color: var(--plum); font-size: 1.05rem; }
.mini-kpis small { color: var(--muted); font-size: .7rem; }
@media (max-width: 575.98px) { .mini-kpis { grid-template-columns: repeat(2, 1fr); } }
.vale-card { border: 2px dashed color-mix(in srgb, var(--gold) 60%, white); border-radius: 16px; padding: .75rem .9rem; display: flex; gap: .8rem; align-items: center;
  background: linear-gradient(135deg, var(--gold-soft), #fff); }
.vale-card.usado { opacity: .5; border-style: solid; }
.vale-card .cod { font-family: ui-monospace, monospace; font-weight: 700; color: var(--plum); letter-spacing: .08em; }

/* ranking */
.podio { display: flex; flex-direction: column; gap: .45rem; }
.podio .pos { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 14px; background: var(--nude); }
.podio .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #fff; color: var(--muted); flex-shrink: 0; }
.podio .pos:nth-child(1) .n { background: linear-gradient(135deg, #F2C94C, #D4A017); color: #fff; }
.podio .pos:nth-child(2) .n { background: linear-gradient(135deg, #CFD6DD, #9AA5B1); color: #fff; }
.podio .pos:nth-child(3) .n { background: linear-gradient(135deg, #E3A774, #B87333); color: #fff; }
.podio .nome { flex: 1; min-width: 0; font-weight: 600; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podio .v { font-weight: 600; color: var(--rose); }

/* relatório */
.var { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; }
.var.sobe { background: #E4F4EC; color: var(--ok); }
.var.desce { background: #FBE6E9; color: var(--bad); }
.barra-h { height: 8px; border-radius: 99px; background: var(--nude-2); overflow: hidden; margin-top: .3rem; }
.barra-h span { display: block; height: 100%; background: var(--rose); border-radius: 99px; }
@media print {
  .lateral, .topo, .barra-inferior, .no-print, .fab { display: none !important; }
  .conteudo { margin: 0 !important; }
  body { background: #fff; }
  .card-db, .kpi { box-shadow: none; border: 1px solid #eee; break-inside: avoid; }
}

/* pix */
.pix-box { text-align: center; }
.pix-qr { width: 220px; height: 220px; margin: .5rem auto; padding: 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.pix-qr img, .pix-qr svg { width: 100%; height: 100%; }
.pix-copia { font-family: ui-monospace, monospace; font-size: .72rem; word-break: break-all; background: var(--nude); border-radius: 12px; padding: .6rem; text-align: left; max-height: 90px; overflow: auto; }
.plano-card { cursor: pointer; transition: .15s; border: 2px solid transparent; }
.plano-card.escolhido { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft), var(--shadow); }
.ciclo { display: inline-flex; background: var(--nude-2); border-radius: 999px; padding: .25rem; }
.ciclo button { border: 0; background: transparent; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.ciclo button.ativo { background: #fff; color: var(--plum); box-shadow: 0 2px 6px rgba(0,0,0,.1); }

/* whatsapp fila */
.msg-item { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: .85rem .95rem; }
.msg-item .bolha { background: #E7FFDB; border-radius: 4px 14px 14px 14px; padding: .55rem .75rem; font-size: .84rem; white-space: pre-wrap; margin: .5rem 0 .6rem; color: #1f2d1f; max-height: 130px; overflow: auto; }
.tipo-msg { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; }
.status-wa { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.status-wa .pt { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status-wa.on .pt { background: #25D366; box-shadow: 0 0 0 4px #25D36633; }

/* ---------- Sinal e Pix (1.4) ---------- */
.modos-sinal { display: grid; gap: .5rem; }
.modos-sinal button { display: flex; align-items: center; gap: .85rem; text-align: left; border: 1.5px solid var(--line); background: #fff;
  border-radius: 16px; padding: .75rem .9rem; transition: .15s; }
.modos-sinal button > i { font-size: 1.4rem; color: var(--rose); }
.modos-sinal button span { display: flex; flex-direction: column; line-height: 1.3; }
.modos-sinal button b { color: var(--plum); }
.modos-sinal button small { color: var(--muted); font-size: .8rem; }
.modos-sinal button.ativo { border-color: var(--rose); background: var(--rose-soft); box-shadow: 0 6px 16px -10px var(--rose); }
.sinal-det { border-radius: 14px; padding: .6rem .75rem; margin-top: .6rem; display: flex; gap: .6rem; align-items: center; font-size: .88rem;
  background: color-mix(in srgb, var(--gold) 14%, white); }
.sinal-det.ok { background: color-mix(in srgb, var(--ok) 12%, white); }
.sinal-det > i { font-size: 1.2rem; }
.ev-sinal { color: #B7791F; }
.plano-card.em-breve-plano { opacity: .75; }
/* oferta de lançamento (1.6) */
.oferta-lanc { border: 1.5px solid color-mix(in srgb, var(--gold) 55%, white); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, white), #fff); }
.oferta-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 55%, var(--rose))); }
.oferta-preco { color: var(--rose); }
.preco-riscado { font-size: .95rem; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-right: .4rem; }

/* ---------- Lote 5: painel ---------- */
.gal-painel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.gal-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.gal-foto { position: relative; aspect-ratio: 1; background: var(--nude-2) center/cover; }
.gal-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(74,37,48,.75); color: #fff; font-size: .62rem; border-radius: 999px; padding: .1rem .45rem; }
.gal-info { display: flex; align-items: center; gap: .3rem; padding: .35rem .45rem .35rem .7rem; }
.gal-info > div:first-child { flex: 1; min-width: 0; }
.gal-up { display: grid; place-items: center; aspect-ratio: 1; width: 100%; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer;
  background: var(--nude) center/cover; color: var(--muted); font-size: .85rem; }
.gal-up span { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.gal-up i { font-size: 1.5rem; }
.nota-grande { font-size: 3rem; font-weight: 700; color: var(--plum); line-height: 1; }
.rl-horas { display: flex; flex-wrap: wrap; gap: .4rem; }
.hora-rl { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .4rem .75rem; font-weight: 600; color: var(--plum); }
.hora-rl.ativo { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 20%, white); }
.kpi.bad .ic { background: color-mix(in srgb, var(--bad) 14%, white); color: var(--bad); }
.ia-chat { background: var(--nude); border-radius: 16px; padding: .8rem; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: .45rem; }
.ia-msg { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; font-size: .88rem; white-space: pre-wrap; }
.ia-msg.cliente { align-self: flex-end; background: #DCF8C6; }
.ia-msg.ia { align-self: flex-start; background: #fff; box-shadow: 0 2px 6px -3px rgba(0,0,0,.2); }
.ia-msg.studio { align-self: flex-start; background: color-mix(in srgb, var(--rose) 14%, white); }

/* pacotes de sessões (1.10) */
.pacote-card { border: 1.5px solid var(--line); border-radius: 16px; padding: .75rem .9rem; background: #fff; }
.pacote-card.usado { opacity: .55; }
.pacote-barra { height: 8px; border-radius: 99px; background: var(--nude-2); overflow: hidden; margin-top: .55rem; }
.pacote-barra span { display: block; height: 100%; background: var(--rose); border-radius: 99px; }

/* assistente IA (1.13) */
.ia-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--rose), var(--gold)); flex: none; }
.ia-texto { white-space: pre-wrap; line-height: 1.55; }

/* cupons (1.13) */
.cupom-card { display: flex; align-items: center; gap: .75rem; border: 1.5px dashed var(--rose); border-radius: 16px; padding: .65rem .8rem; background: #fff; height: 100%; }
.cupom-card.off { opacity: .55; border-color: var(--line); }
.cupom-cod { font-weight: 700; letter-spacing: .04em; color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, white); border-radius: 10px; padding: .35rem .55rem; font-size: .85rem; max-width: 45%; overflow-wrap: anywhere; }

/* meta do mês (1.13) */
.meta-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, white); color: var(--gold); font-size: 1.25rem; flex: none; }
.meta-barra { height: 10px; border-radius: 99px; background: var(--nude-2); overflow: hidden; }
.meta-barra span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--rose), var(--gold)); }
.meta-dica { display: block; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .85rem; text-decoration: none; color: var(--rose); }

/* hora de voltar (1.13) */
.voltar-card { cursor: default; }
.voltar-card.chamada { opacity: .6; }

/* lista de espera (1.13) */
.espera-item { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); border-radius: 16px; padding: .55rem .7rem; background: #fff; }
.espera-pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nude-2); color: var(--rose); font-weight: 700; font-size: .85rem; flex: none; }

/* calculadora de pacotes (1.12) */
.calc-linha { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--line); border-radius: 16px; padding: .6rem .8rem; background: #fff; }
.calc-linha.indicado { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 14%, transparent); }
.calc-n { width: 52px; text-align: center; line-height: 1.05; color: var(--rose); }
.calc-n b { display: block; font-size: 1.5rem; }
.calc-n span { font-size: .7rem; color: var(--muted); }
.pk-sug { display: flex; flex-wrap: wrap; gap: .4rem; }
.pk-sug button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: .25rem .7rem; font-size: .8rem; color: var(--plum); }
.pk-sug button.ativo { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, white); }

/* ficha de anamnese (1.10) */
.anam-q { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.termo { background: var(--nude); border-radius: 14px; padding: .7rem .8rem; color: var(--ink); }
canvas.assinatura { display: block; width: 100%; height: 160px; border: 1.5px dashed var(--rose); border-radius: 14px; background: #fff; touch-action: none; }
#areaImpressao { display: none; }
@media print {
  body.imprimindo > *:not(#areaImpressao) { display: none !important; }
  body.imprimindo #areaImpressao { display: block; padding: 1rem; color: #000; }
  #areaImpressao h2 { font-size: 1.2rem; margin: 0; }
  #areaImpressao h3 { font-size: 1rem; margin: .2rem 0 1rem; }
  #areaImpressao .item { border-bottom: 1px solid #ddd; padding: .35rem 0; }
}

/* planos (1.11) */
.selo.diamante { background: linear-gradient(135deg, #E8E2F7, #F7E7EF); color: #5B3F8C; }
.travado-ic { width: 54px; height: 54px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.trava { font-size: .7rem; margin-left: .35rem; opacity: .55; }
.menu a .trava { margin-left: auto; }
.plano-card.recomendado { border: 2px solid var(--rose); }
.indica-link { font-family: ui-monospace, monospace; font-size: .85rem; background: var(--nude); border-radius: 12px; padding: .55rem .7rem; word-break: break-all; }

/* painel de saúde dos studios (1.15) */
.saude-card { border-left: 0; position: relative; }
.saude-card.risco { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 45%, transparent), var(--shadow); }
.saude-card.atencao { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow); }
.selo-saude { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.selo-saude.bad { background: #FBE6E9; color: #A33347; }
.selo-saude.gold { background: var(--gold-soft); color: #7A5A1C; }
.selo-saude.ok { background: #E4F4EC; color: #2F7A5A; }
.saude-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; text-align: center; margin: .3rem 0 .6rem; }
.saude-num div { background: var(--nude); border-radius: 12px; padding: .4rem .2rem; }
.saude-num b { display: block; color: var(--plum); font-size: 1.05rem; }
.saude-num span { font-size: .64rem; color: var(--muted); line-height: 1.1; display: block; }
.saude-prob { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.saude-prob li { padding: .15rem 0 .15rem 1.2rem; position: relative; }
.saude-prob li::before { content: ''; position: absolute; left: .2rem; top: .55rem; width: 8px; height: 8px; border-radius: 50%; }
.saude-prob li.risco::before { background: var(--bad); }
.saude-prob li.atencao::before { background: var(--gold); }
.saude-prob li.leve::before { background: var(--line); }

/* importar clientes (1.15) */
.imp-opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 480px) { .imp-opcoes { grid-template-columns: 1fr; } }
.imp-op { border: 1.5px dashed var(--line); border-radius: 18px; padding: .9rem; display: flex; flex-direction: column; gap: .15rem; cursor: pointer; background: #fff; }
.imp-op:hover { border-color: var(--rose); }
.imp-op .bi { font-size: 1.5rem; color: var(--rose); }
.imp-op b { color: var(--plum); }
.imp-op span { font-size: .78rem; color: var(--muted); }
.imp-resumo { display: flex; flex-wrap: wrap; gap: .4rem; }
.imp-resumo span { background: var(--nude-2); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; }
.imp-resumo .ok { background: #E4F4EC; color: #2F7A5A; }
.imp-resumo .bad { background: #FBE6E9; color: #A33347; }

/* ---------- 1.16 · modelos de pacote ---------- */
.pm-card { border: 1.5px solid var(--line); border-radius: 16px; padding: .75rem .9rem; background: var(--card, #fff); height: 100%; }
.pm-card.off { opacity: .55; }
.pm-vars { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.pm-vars span { background: var(--rose-soft); color: var(--plum); border-radius: 99px; padding: .2rem .65rem; font-size: .78rem; }
.pm-recebe { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.pm-recebe button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .6rem .45rem; text-align: left;
  display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; color: var(--plum); }
.pm-recebe button i { color: var(--rose); font-size: 1.15rem; }
.pm-recebe button span { color: var(--muted, #8C7A7E); font-size: .7rem; line-height: 1.25; }
.pm-recebe button.ativo { border-color: var(--rose); background: var(--rose-soft); }
@media (max-width: 420px) { .pm-recebe { grid-template-columns: 1fr; } .pm-recebe button { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .45rem; } .pm-recebe button span { flex-basis: 100%; } }

/* ---------- 1.17 · painel cabelo ---------- */
.cab-hero { display: flex; align-items: center; gap: .8rem; background: linear-gradient(135deg, var(--rose-soft), var(--card, #fff)); border-radius: 18px; padding: .85rem 1rem; border: 1.5px solid var(--line); }
.cab-hero-ic { width: 46px; height: 46px; border-radius: 14px; background: #9C6B53; color: #fff; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.cab-t { font-weight: 600; color: var(--plum); font-size: .9rem; padding: .35rem .5rem .2rem; }
.cab-dica { display: flex; align-items: flex-start; padding: .9rem 1rem; }
.cab-formula { white-space: pre-line; }
.ret-quimica { border: 1.5px dashed var(--line); border-radius: 16px; padding: .7rem .8rem; }
.cab-pend .item { flex-wrap: wrap; }
.cab-pend .item .corpo { flex: 1 1 200px; min-width: 0; }
.cab-pend .item .s, .cab-formula { white-space: normal; overflow: visible; text-overflow: clip; }
.cab-pend .item > .d-flex { margin-left: auto; }
.novidades .novidade { display: flex; align-items: center; gap: .75rem; padding: .6rem .3rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.novidades .novidade b { display: block; color: var(--plum); font-size: .92rem; }
.novidades .novidade small { display: block; color: var(--muted, #8C7A7E); font-size: .78rem; line-height: 1.3; }
.novidades .novidade .mais-ic { width: 38px; height: 38px; flex-shrink: 0; }

/* ---------- 1.19 · duração em horas + minutos ---------- */
.dur-hm { display: flex; align-items: center; gap: .4rem; }
.dur-hm input { max-width: 84px; text-align: center; }
.dur-hm select { max-width: 92px; }
.dur-hm span { color: var(--muted, #8C7A7E); font-size: .9rem; }

/* ---------- 1.20 · ficha técnica ---------- */
.ficha-tec { background: var(--nude, #FBF6F3); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .65rem; margin: .4rem 0 .2rem; font-size: .8rem; color: var(--plum); display: flex; flex-direction: column; gap: .2rem; }
.ficha-tec .ft-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.ficha-tec .ft-tags span { background: var(--rose-soft); color: var(--plum); border-radius: 99px; padding: .05rem .55rem; font-weight: 600; font-size: .74rem; }
.ficha-tec .ft-formula { white-space: pre-line; }
.ult-ficha { margin-top: .6rem; }
.ult-ficha summary { cursor: pointer; font-weight: 600; color: var(--plum); font-size: .88rem; }

/* ---------- 1.23 · vários serviços e encaixe ---------- */
.ag-extra select { flex: 1; min-width: 0; }

/* ---------- primeiros passos ---------- */
.passos-barra { height: 8px; background: var(--nude-2, #F4EAE5); border-radius: 99px; overflow: hidden; margin: -.2rem 0 .6rem; }
.passos-barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 99px; }
#cardPassos .item.feito { opacity: .75; }

/* ---------- 1.25 · Pix automático (Asaas) ---------- */
.pix-img { width: 220px; max-width: 100%; border-radius: 14px; background: #fff; padding: .4rem; box-shadow: var(--shadow); margin: .4rem auto .6rem; display: block; }
.grupo-det { background: var(--nude, #FBF6F3); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; margin-top: .6rem; }

/* sinal no agendamento do balcão */
.sinal-form { background: var(--nude); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .85rem; }
.sinal-form .form-label { margin-bottom: .15rem; }

/* enquadrar foto */
#mRecorte { z-index: 1065; }
#mRecorte + .modal-backdrop { z-index: 1060; }
.recorte-area { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: var(--nude-2); touch-action: none; cursor: grab; user-select: none; }
.recorte-area:active { cursor: grabbing; }
.recorte-area canvas { display: block; }
.recorte-grade { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px),
      transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px),
      transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.recorte-area.redondo .recorte-grade { background: radial-gradient(circle at center, transparent 69.5%, rgba(74, 37, 48, .55) 70.5%); box-shadow: none; }
.recorte-ctrl { display: flex; align-items: center; gap: .6rem; max-width: 380px; margin: 0 auto; color: var(--muted); }
.recorte-ctrl .form-range { flex: 1; }

/* estoque por embalagem: quanto resta do pote */
.estoque-barra { height: 6px; border-radius: 99px; background: var(--nude-2); overflow: hidden; margin: .3rem 0 .2rem; max-width: 220px; }
.estoque-barra span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.estoque-barra.baixo span { background: var(--bad); }
@media (max-width: 575px) {
  .estoque-lista .item { flex-wrap: wrap; }
  .estoque-lista .item .corpo { flex: 1 1 calc(100% - 80px); }
  .estoque-lista .item .acoes { width: 100%; justify-content: flex-end; }
  .estoque-barra { max-width: none; }
  .estoque-lista .item .s, .estoque-lista .item .t { white-space: normal; }
}

/* estoque: variações do mesmo produto juntas */
.estoque-grupo { border: 1px solid var(--line); border-radius: 16px; padding: .35rem .5rem .1rem; margin-bottom: .6rem; background: color-mix(in srgb, var(--nude) 60%, #fff); }
.estoque-grupo-cab { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem .45rem; color: var(--plum); }
.estoque-grupo .item { margin-left: .4rem; }
