/* =========================================================
   SISTEMA KORTEI, DESIGN SYSTEM BASEADO NO RESOLVI.APP
   ========================================================= */

@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  /* Cores de Marca Barbus (Resolvi Layout Base) */
  --blue:        #FA3909;   /* Tom de destaque da marca Barbus */
  --blue-strong: #D73108;
  --blue-soft:   #FFF5F3;   /* Fundo suave para pílula ativa */
  --ink:         #0E0E12;   /* Botão escuro / texto forte */
  --ink-2:       #17171B;
  --black:       #090909;

  --bg:          #F4F4F5;   /* Fundo do app */
  --surface:     #FFFFFF;   /* Cards */
  --surface-2:   #FAFAFA;
  --line:        #ECECEE;   /* Bordas */
  --line-2:      #F1F1F3;

  --text:        #111114;
  --text-2:      #6E6E76;   /* Secundário */
  --text-3:      #A2A2AA;   /* Terciário / labels */

  --green:       #1FA971;
  --green-2:     #2B985F;
  --red:         #E5484D;
  --orange:      #FA3909;
  --purple:      #8B5CF6;
  --amber:       #FCBB55;

  /* Raios e sombras */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17,17,20,.04), 0 1px 3px rgba(17,17,20,.03);
  --shadow-md: 0 4px 16px rgba(17,17,20,.05), 0 1px 3px rgba(17,17,20,.04);
  --shadow-lg: 0 18px 50px rgba(17,17,20,.10);

  --sidebar-w: 268px;

  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* O atributo hidden precisa vencer qualquer `display` vindo de classe. */
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
svg { display: block; }
input, select, textarea { font-family: inherit; }

.serif { font-family: var(--serif); font-style: italic; letter-spacing: 0; }

/* Barras de rolagem discretas */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #dcdce0; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #cfcfd4; }

/* Layout Shell */
.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
}

.org {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.org:hover { background: var(--surface-2); }
/* A marca já é um quadrado arredondado com fundo próprio, então a moldura
   apenas recorta o canto: fundo aqui seria um quadrado dentro do outro. */
.org-logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 36px; overflow: hidden;
}
.org-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org-logo svg { width: 22px; height: 22px; }
.org-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.org-meta .k { font-size: 11px; color: var(--text-3); }
.org-meta .v { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.org .chev { margin-left: auto; color: var(--text-3); }

.nav { margin-top: 12px; overflow-y: auto; flex: 1; }
.nav::-webkit-scrollbar { width: 0; }
.nav-label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
/* Só o ícone de traço herda a cor da seleção. A marca colorida (WhatsApp,
   Instagram, Messenger, Site Bio) é desenhada com preenchimento, então pintar
   o traço dela desenharia um contorno laranja por dentro do próprio desenho. */
.nav-item.active svg { opacity: 1; }
.nav-item.active > svg { stroke: var(--blue); }

/* Aviso que leva a algum lugar. O cursor conta isso antes do clique. */
.kortei-toast-clicavel { cursor: pointer; }
.kortei-toast-clicavel:hover { transform: translateY(-1px); }

/* Chamado de suporte dentro do painel do sino. É um botão, e não uma linha,
   porque clicar leva direto ao chamado. */
.sino-item--chamado {
  width: 100%; border: 0; background: transparent; text-align: left;
  cursor: pointer; font: inherit; color: inherit;
}
.sino-item--chamado:hover { background: var(--surface-2); }
.sino-item-ico--chamado { background: var(--blue-soft) !important; color: var(--orange) !important; }
.sino-item-previa {
  color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Por onde o e-mail está saindo, na tela de SMTP. */
.smtp-canal {
  margin: 0 0 18px; padding: 11px 14px;
  border-radius: var(--r-sm); font-size: 13px; line-height: 1.5;
}
.smtp-canal--api { background: rgba(16, 185, 129, .1); color: #047857; border: 1px solid rgba(16, 185, 129, .25); }
.smtp-canal--smtp { background: var(--blue-soft); color: var(--orange); border: 1px solid rgba(245, 158, 11, .25); }

/* Promo card no rodapé */
.promo {
  margin-top: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.promo h4 { font-size: 13px; font-weight: 600; text-align: center; margin: 4px 0 10px; }
.btn-dark {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.btn-dark:hover { background: #000; }

/* Main Content */
.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto;
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,244,245,.85);
  backdrop-filter: saturate(180%) blur(14px);
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.page-head { min-width: 0; }
.page-head .date { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }

.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 9px;
  width: 240px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--text-3); font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.search input { border: none; background: none; outline: none; width: 100%; font-size: 13px; color: var(--text); }

/* Buttons Resolvi Style */
.actions { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.btn:hover { background: var(--surface-2); border-color: #d8d8dc; }
.btn.primary {
  background: var(--blue); color: #FFF; border-color: var(--blue);
  font-weight: 600; box-shadow: 0 4px 12px rgba(250, 57, 9,.25);
}
.btn.primary:hover { background: var(--blue-strong); }

/* Cards e Dash Grid */
.content { padding: 24px 28px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; font-weight: 600; }

/* Table Style */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
th { padding: 12px 16px; color: var(--text-3); font-weight: 600; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

/* Status Badges */
.pill-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
}
.pill-active { background: #DCFCE7; color: #166534; }
.pill-warning { background: #FEF9C3; color: #854D0E; }
.pill-error { background: #FEE2E2; color: #991B1B; }
.pill-orange { background: var(--blue-soft); color: var(--blue); }

/* Form Elements */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* min-width:0 permite que os campos encolham dentro de grids (evita overflow). */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form-input::placeholder { color: var(--text-3, #9CA3AF); }
select.form-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E76' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* Modal Backdrop */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,18,0.55); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; z-index: 1000;
  padding: 20px; box-sizing: border-box;
  animation: kortei-fade .18s ease;
}
@keyframes kortei-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--surface); border-radius: 20px;
  width: 100%; max-width: 600px; padding: 30px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 60px rgba(14,14,18,.28); border: 1px solid var(--line);
  box-sizing: border-box;
  animation: kortei-pop .2s cubic-bezier(.16,1,.3,1);
}
@keyframes kortei-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card > h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
/* Rodapé de ações padrão dos modais */
/* Quebra em linhas quando há muitos botões (o detalhe do agendamento tem
   seis), em vez de espremer e vazar para fora do card. */
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-actions .btn { white-space: nowrap; flex: 0 0 auto; }
/* "Fechar" fica sempre à esquerda, separando sair das ações de verdade. */
.modal-actions .btn-fechar { margin-right: auto; }
@media (max-width: 560px) {
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn { flex: 1 1 auto; }
  .modal-actions .btn-fechar { margin-right: 0; flex-basis: 100%; order: 9; }
}
@media (max-width: 620px) {
  .form-grid, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr !important; }
  .modal-card { padding: 22px; }
}

/* =========================================================
   SISTEMA PROFISSIONAL DE TOAST NOTIFICATIONS (KORTEI)
   ========================================================= */
#kortei-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: 100%;
}

.kortei-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.kortei-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.kortei-toast-sucesso::before { background: #10B981; }
.kortei-toast-erro::before { background: #EF4444; }
.kortei-toast-aviso::before { background: #F59E0B; }
.kortei-toast-info::before { background: #3B82F6; }

.kortei-toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.kortei-toast-sucesso .kortei-toast-icon { color: #10B981; background: rgba(16,185,129,.12); }
.kortei-toast-erro .kortei-toast-icon    { color: #EF4444; background: rgba(239,68,68,.12); }
.kortei-toast-aviso .kortei-toast-icon   { color: #F59E0B; background: rgba(245,158,11,.14); }
.kortei-toast-info .kortei-toast-icon    { color: #FA3909; background: rgba(250, 57, 9,.12); }

.kortei-toast-content {
  flex: 1;
}

.kortei-toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.kortei-toast-close {
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.kortei-toast-close:hover {
  color: var(--text);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =========================================================
   PERFIL DE CLIENTE COMPLETO ESTILO FACEBOOK / SOCIAL
   ========================================================= */
.fb-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.fb-cover-banner {
  height: 220px;
  background: linear-gradient(135deg, #111114 0%, #FA3909 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.fb-profile-header {
  padding: 0 28px 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -60px;
  flex-wrap: wrap;
  gap: 16px;
}

.fb-avatar-container {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.fb-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--blue);
  color: #FFF;
  font-size: 38px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-user-info {
  margin-bottom: 6px;
}

.fb-user-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.fb-user-info p {
  font-size: 13.5px;
  color: var(--text-2);
}

.fb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}



/* ==================================================================== */
/* AO VIVO / ATENDIMENTO + PDV COMANDA                                  */
/* ==================================================================== */
.av-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.av-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.av-stat-num { font-size: 30px; font-weight: 700; line-height: 1; }
.av-stat-lbl { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.av-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: avPulse 1.6s infinite; }
@keyframes avPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }

.av-tabs, .pdv-cat-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.av-tab, .pdv-cat-tab { background: none; border: none; padding: 10px 18px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.av-tab.active, .pdv-cat-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.pdv-cat-tabs { margin-bottom: 0; }

/* Toggle switch (Configurações) */
.cfg-switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.cfg-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cfg-switch-track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .18s ease; }
.cfg-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
.cfg-switch input:checked + .cfg-switch-track { background: var(--blue); }
.cfg-switch input:checked + .cfg-switch-track::after { transform: translateX(18px); }
.cfg-switch input:focus-visible + .cfg-switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Linha de tipo de profissional */
.cfg-tipo-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, background .15s ease; }
.cfg-tipo-row:hover { border-color: var(--blue-soft); }
.cfg-tipo-row .cfg-tipo-nome { font-weight: 600; font-size: 15px; }
.cfg-tipo-row .cfg-tipo-agenda { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-left: auto; }
.cfg-tipo-row .cfg-tipo-agenda.on { color: var(--blue); font-weight: 600; }
.cfg-tipo-remover { background: none; border: none; color: var(--text-3, #9aa0a6); cursor: pointer; padding: 4px; display: inline-flex; border-radius: 6px; }
.cfg-tipo-remover:hover { color: #DC2626; background: #FEE2E2; }
/* Chips de sugestão (origens padrão) */
.cfg-chip { background: var(--surface-2, #f4f5f7); border: 1px solid var(--line); color: var(--text-1, #1f2328); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.cfg-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ===== Página de Perfil (estilo rede social) ===== */
.perfil-card { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(17,17,20,.06); }
.perfil-capa { height: 190px; background: linear-gradient(120deg, #111114 0%, #3a2410 45%, #FA3909 100%); background-size: cover; background-position: center; position: relative; }
.perfil-capa-btn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: #1f2328; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background .15s ease; }
.perfil-capa-btn:hover { background: #fff; }
.perfil-header { position: relative; padding: 18px 30px 20px; min-height: 72px; margin-bottom: 6px; }
.perfil-avatar-wrap { position: absolute; top: -64px; left: 30px; flex-shrink: 0; }
.perfil-avatar { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--surface); background: linear-gradient(135deg, var(--blue) 0%, #ff9147 100%); overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.perfil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-avatar-initials { color: #fff; font-size: 44px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.perfil-avatar-cam { position: absolute; right: 4px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); color: var(--text-1, #1f2328); transition: background .15s ease; }
.perfil-avatar-cam:hover { background: var(--surface-2, #f4f5f7); }
.perfil-ident { margin-left: 156px; padding-top: 4px; min-width: 0; }
.perfil-ident h2 { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.perfil-ident p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.perfil-ident .perfil-badge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
.perfil-body { padding: 0 30px 30px; }
.perfil-body .perfil-sec-titulo { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin: 4px 0 14px; }
.perfil-divisor { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
@media (max-width: 560px) {
  .perfil-capa { height: 150px; }
  .perfil-header { text-align: center; padding-top: 76px; }
  .perfil-avatar-wrap { position: absolute; top: -56px; left: 50%; transform: translateX(-50%); }
  .perfil-ident { margin-left: 0; }
  .perfil-avatar { width: 108px; height: 108px; }
}

/* ===== Wizard de agendamento (passo a passo com fotos) ===== */
.wiz-steps { display: flex; align-items: center; margin: 0 0 26px; }
.wiz-step { display: flex; align-items: center; gap: 10px; }
.wiz-step .wiz-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2, #f0f1f3); color: var(--text-2); flex-shrink: 0; transition: all .2s ease; }
.wiz-step .wiz-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.wiz-line { flex: 1; height: 2px; background: var(--line); margin: 0 14px; min-width: 20px; }
.wiz-step.active .wiz-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.wiz-step.active .wiz-label { color: var(--text-1, #1f2328); }
.wiz-step.done .wiz-dot { background: var(--blue-soft); color: var(--blue); }
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: wizfade .22s ease; }
@keyframes wizfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-panel-titulo { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.wiz-panel-sub { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.wiz-nav .spacer { flex: 1; }

.pick-search { width: 100%; margin-bottom: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px; }
.pick-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, background .15s ease; text-align: left; width: 100%; font: inherit; }
.pick-card:hover { border-color: var(--blue); }
.pick-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.pick-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #ff9147); color: #fff; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.pick-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pick-nome { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-sub { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-check { margin-left: auto; color: var(--blue); opacity: 0; flex-shrink: 0; }
.pick-card.selected .pick-check { opacity: 1; }
.pick-vazio { color: var(--text-2); font-size: 13px; padding: 14px; text-align: center; }

.serv-list { display: flex; flex-direction: column; gap: 8px; }
.serv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, background .15s ease; text-align: left; width: 100%; font: inherit; }
.serv-row:hover { border-color: var(--blue); }
.serv-row.selected { border-color: var(--blue); background: var(--blue-soft); }
.serv-nome { display: block; font-weight: 600; font-size: 14px; }
.serv-meta { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.serv-preco { margin-left: auto; font-weight: 700; color: var(--blue); white-space: nowrap; }

.av-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.av-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.av-card.live { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 0 1px rgba(34,197,94,0.15); }
.av-card-head { display: flex; align-items: center; gap: 10px; }
.av-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: var(--text-2); }
.av-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-card-name { font-weight: 700; font-size: 15px; }
.av-card-sub { font-size: 12.5px; color: var(--text-2); }
.av-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.av-card-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 8px; }
.av-timer { font-size: 12px; color: var(--green); font-weight: 600; }

@media (max-width: 900px) {
  .av-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Tesoura animada (atendimento em execução) */
.tesoura { color: var(--orange); flex-shrink: 0; }
.tesoura g { transform-box: view-box; transform-origin: 12px 12px; }
.tesoura .lam-cima { animation: tesouraSnip 0.9s ease-in-out infinite; }
.tesoura .lam-baixo { animation: tesouraSnip 0.9s ease-in-out infinite reverse; }
@keyframes tesouraSnip { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-9deg); } }
.av-barbeiro-fixo { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--surface-2); border-radius:10px; }

/* Tarefas do Dia */
.tarefa-lista { display: flex; flex-direction: column; }
.tarefa-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tarefa-row:last-child { border-bottom: none; }
.tarefa-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; }
@media (max-width: 700px) { .tarefa-row { flex-wrap: wrap; } }
/* Tarefas do Dia: resumo em 4 colunas iguais e seções com espaçamento uniforme */
.tarefa-resumo { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.tarefa-secoes { display: flex; flex-direction: column; gap: 16px; }
.tarefa-secoes .tarefa-card { margin: 0; }
@media (max-width: 900px) { .tarefa-resumo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tarefa-resumo { grid-template-columns: 1fr; } }
.tarefa-vazio { text-align: center; padding: 48px 24px; }
.tarefa-vazio-ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(34,197,94,0.12); color: #16a34a; }

/* =========================================================
   AJUSTES DE ÍCONES (o sistema não usa emoji na interface)
   ========================================================= */
/* Marcador de aba com configuração ativa, no lugar da estrela de texto. */
.tab-marcador {
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}
/* Pílula que combina ícone SVG e texto (recorrência, conta bancária, etc). */
.fin-chip { display: inline-flex; align-items: center; gap: 4px; }
.fin-chip svg { flex-shrink: 0; }
/* Célula de categoria/conta com ícone em disco. */
.fin-celula-ico { display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   AO VIVO: CARD CLICÁVEL E DETALHES DO ATENDIMENTO
   ========================================================= */
.av-card-clicavel { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.av-card-clicavel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.av-card-clicavel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.av-card-clicavel .av-card-actions .btn { cursor: pointer; }

.det-cronometro {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--blue-soft); border: 1px solid rgba(250, 57, 9,.25);
}
.det-crono-rotulo { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.det-cronometro strong {
  font-size: 30px; font-weight: 700; color: var(--blue);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1;
}
.det-linhas { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.det-linha {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.det-linha:last-child { border-bottom: 0; }
.det-linha span { color: var(--text-2); }
.det-linha strong { text-align: right; }

/* =========================================================
   SELETOR DE ÍCONES (serviços e categorias financeiras)
   ========================================================= */
.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  max-height: 168px;
  overflow-y: auto;
}
.icon-picker button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: all .12s;
}
.icon-picker button:hover { border-color: var(--blue); color: var(--blue); }
.icon-picker button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 0 0 2px rgba(250, 57, 9,.18);
}

/* =========================================================
   PDV: BLOCO DE DESCONTO RECOLHÍVEL
   ========================================================= */
.pdv-acordeao { border-top: 1px dashed var(--line); margin-top: 10px; }
.pdv-acordeao-cabeca {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 2px; background: none; border: 0; text-align: left;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.pdv-acordeao-cabeca:hover { color: var(--orange); }
.pdv-acordeao-info { margin-left: auto; font-weight: 700; color: var(--green); }
.pdv-acordeao-seta {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: var(--orange); background: rgba(250, 57, 9,.12);
  transition: transform .18s ease;
}
.pdv-acordeao.is-open .pdv-acordeao-seta { transform: rotate(180deg); }
.pdv-acordeao-corpo { padding-bottom: 12px; }

/* =========================================================
   AGENDAMENTO COM VÁRIOS SERVIÇOS
   ========================================================= */
/* Numerador da ordem em que os serviços serão executados. */
.serv-marca {
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--text-3);
  transition: all .15s ease;
}
.serv-row.selected .serv-marca {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.serv-resumo {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  border: 1px solid rgba(250, 57, 9,.25);
  font-size: 13px; color: var(--text-2);
}
.serv-resumo strong { margin-left: auto; font-size: 16px; color: var(--blue); }

/* =========================================================
   FINANCEIRO: PERÍODO, CONTAS BANCÁRIAS E CONTROLES
   ========================================================= */
.fin-periodo {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.fin-periodo-nav { display: flex; align-items: center; gap: 10px; }
.fin-periodo-seta {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--orange); transition: all .12s;
}
.fin-periodo-seta:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--orange); }
.fin-periodo-seta:disabled { opacity: .35; cursor: not-allowed; }
.fin-periodo-atual { display: flex; flex-direction: column; min-width: 190px; }
.fin-periodo-atual strong { font-size: 15.5px; letter-spacing: -.01em; }
.fin-periodo-atual strong::first-letter { text-transform: uppercase; }
.fin-periodo-atual small { font-size: 12px; color: var(--text-2); }
.fin-periodo-filtros { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.fin-periodo-filtros .form-input { width: auto; min-width: 180px; }
.fin-periodo-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fin-periodo-custom[hidden] { display: none; }
.fin-periodo-custom .form-input { min-width: 150px; }

/* Cartões de conta bancária / caixa */
.contas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.conta-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.conta-card.is-padrao { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(250, 57, 9,.12); }
.conta-card-topo { display: flex; align-items: center; gap: 12px; }
.conta-card-topo strong { display: block; font-size: 14.5px; }
.conta-card-topo small { display: block; font-size: 12px; color: var(--text-2); }
.conta-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.conta-card-dados { font-size: 12.5px; color: var(--text-2); margin: 0; word-break: break-word; }
.conta-card-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.conta-card-acoes .btn { padding: 5px 12px; font-size: 12px; }
/* Atalho para uma tela de configuração ligada ao card (ex: taxas de parcelamento) */
.conta-card-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--orange);
}
.conta-card-link:hover { text-decoration: underline; }
.conta-card-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.cb-banco-linha { display: flex; align-items: center; gap: 10px; }
.cb-banco-linha .form-input { flex: 1; }

/* Meus Atendimentos: quem ainda está na cadeira gira um spinner na linha */
.mat-andamento { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--orange); }
.mat-spinner {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid rgba(250, 57, 9,.25); border-top-color: var(--orange);
  animation: mat-girar .7s linear infinite;
}
@keyframes mat-girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mat-spinner { animation-duration: 3s; } }
.mat-crono { font-variant-numeric: tabular-nums; }

/* Linha de tabela que abre um detalhe ao ser clicada */
.linha-clicavel { cursor: pointer; transition: background .12s; }
.linha-clicavel:hover { background: var(--blue-soft); }

/* Caixa de seleção em destaque (ex: "esta conta já foi paga") */
.check-destaque {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; transition: all .12s;
}
.check-destaque:hover { border-color: var(--orange); }
.check-destaque input { margin-top: 2px; width: auto; }
.check-destaque strong { display: block; font-size: 13.5px; }
.check-destaque small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Campo de upload de arquivo estilizado */
.upload-box {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-md);
  border: 1.5px dashed var(--line); background: var(--surface-2);
  cursor: pointer; transition: all .12s;
}
.upload-box:hover { border-color: var(--orange); background: var(--blue-soft); }
.upload-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--orange); background: rgba(250, 57, 9,.12);
}
.upload-texto strong { display: block; font-size: 13.5px; }
.upload-texto small { display: block; font-size: 12px; color: var(--text-2); word-break: break-all; }

/* Valor em destaque no detalhe da conta */
.dc-valor {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--blue-soft); border: 1px solid rgba(250, 57, 9,.25);
}
.dc-valor small { font-size: 12.5px; color: var(--text-2); }
.dc-valor strong { font-size: 26px; font-weight: 700; color: var(--blue); letter-spacing: -.02em; }

/* Linha "Atendido por" com a foto do barbeiro, no detalhe do atendimento. */
.det-barbeiro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.det-barbeiro strong { color: var(--text); font-weight: 600; }

/* Ícone do serviço na linha de escolha. */
.serv-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px;
  color: var(--blue); background: var(--blue-soft);
}

/* =========================================================
   NOVO ATENDIMENTO EM ETAPAS
   ========================================================= */
/* Altura estável entre as etapas: o modal não "pula" ao avançar. */
.nat-modal .wiz-panel.active { min-height: 300px; }
.nat-modal .pick-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: 300px; }
.nat-modal .serv-list { max-height: 300px; overflow-y: auto; }
.nat-modal .wiz-nav { border-top: 1px solid var(--line); padding-top: 18px; }

/* Avatar sem foto e sem nome (opção "visitante"). */
.pick-avatar-vazio {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1.5px dashed var(--line);
}

/* Recapitulação das escolhas, na última etapa. */
.nat-resumo {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  border: 1px solid rgba(250, 57, 9,.25);
}
.nat-resumo-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 4px 0;
}
.nat-resumo-item span { color: var(--text-2); }
.nat-resumo-item strong { text-align: right; font-weight: 600; }

/* =========================================================
   ATENDIMENTO ENCERRADO, AGUARDANDO PAGAMENTO
   ========================================================= */
/* No caixa, quem já encerrou o corte fica em destaque âmbar. */
.av-card-aguardando {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(252,187,85,.18);
}
/* No detalhe, o cronômetro deixa de ser laranja "ao vivo" e vira tempo final. */
#modal-detalhe-atendimento.is-encerrado .det-cronometro {
  background: var(--surface-2);
  border-color: var(--line);
}
#modal-detalhe-atendimento.is-encerrado .det-cronometro strong { color: var(--text); }

/* =========================================================
   BANCOS E MAQUININHAS: ESCOLHA POR MARCA
   ========================================================= */
.marca-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.marca-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
  font: inherit;
  transition: all .12s;
}
.marca-item:hover { border-color: var(--blue); }
.marca-item.selected { border-color: var(--blue); background: var(--blue-soft); }
.marca-item span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Bloco de crédito/débito, revelado quando o pagamento é no cartão. */
.cartao-wrap { margin-top: 12px; }

/* Barbeiro com foto dentro da linha de informações do atendimento. */
.det-linha strong.det-barbeiro { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; }

/* =========================================================
   CONVITE DE UPGRADE DE PLANO
   ========================================================= */
.upgrade-caixa { text-align: center; padding: 40px 28px; }
.upgrade-ico {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--orange); background: var(--blue-soft);
}
.upgrade-caixa h2 { font-size: 20px; margin: 0 0 8px; }
.upgrade-caixa > p { color: var(--text-2); font-size: 14px; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.upgrade-planos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 28px auto 0; max-width: 760px; text-align: left;
}
.upgrade-plano {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface);
}
.upgrade-plano strong { font-size: 16px; }
.upgrade-plano small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.upgrade-preco { font-size: 26px; font-weight: 700; color: var(--orange); margin: 12px 0 10px; letter-spacing: -.02em; }
.upgrade-preco span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.upgrade-plano ul { display: flex; flex-direction: column; gap: 7px; }
.upgrade-plano li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.upgrade-plano li svg { color: var(--green); flex-shrink: 0; }
.upgrade-acoes { margin-top: 26px; }

/* =========================================================
   CLUBE: MODOS DE BENEFÍCIO
   ========================================================= */
.clube-modos { display: grid; gap: 8px; }
.clube-modo {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer; transition: all .12s;
}
.clube-modo:hover { border-color: var(--orange); }
.clube-modo:has(input:checked) { border-color: var(--orange); background: var(--blue-soft); }
.clube-modo input { margin-top: 3px; width: auto; }
.clube-modo strong { display: block; font-size: 13.5px; }
.clube-modo small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }

.clube-livres {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
  max-height: 240px; overflow-y: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
}
.clube-livre {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 10px; background: var(--surface); cursor: pointer; transition: all .12s;
}
.clube-livre:hover { border-color: var(--orange); }
.clube-livre.selected { border-color: var(--orange); background: var(--blue-soft); }
.clube-livre input { width: auto; }
.clube-livre strong { display: block; font-size: 13px; }
.clube-livre small { display: block; font-size: 11.5px; color: var(--text-2); }
.clube-livre .serv-ico { width: 28px; height: 28px; }

/* Serviço coberto pelo clube: preço riscado e valor zerado ao lado. */
.serv-preco-riscado { text-decoration: line-through; color: var(--text-3); font-weight: 500; margin-right: 8px; }
.serv-preco-clube { color: var(--green); font-weight: 700; }

/* Seletor de cliente dentro de modal estreito (associar ao clube). */
.pick-grid-compacto { grid-template-columns: 1fr; max-height: 260px; }

/* =========================================================
   MAQUININHA: TAXAS POR PARCELA
   ========================================================= */
/* Observação é texto corrido, não uma linha: cabe o contexto do lançamento. */
.form-textarea { min-height: 84px; resize: vertical; line-height: 1.5; font-family: inherit; }

/* =========================================================
   FICHA DA CONTA A PAGAR
   ========================================================= */
.fc-abas { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 16px 0 14px; flex-wrap: wrap; }
.fc-aba {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  padding: 8px 12px; margin-bottom: -1px;
}
.fc-aba:hover { color: var(--text); }
.fc-aba.active { color: var(--orange); border-bottom-color: var(--orange); }
.fc-aba span { font-weight: 700; }

/* Bloco de destaque dentro da ficha (credor, observações, comprovante). */
.fc-bloco {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; margin-top: 12px; background: var(--surface-2);
}
.fc-bloco h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.fc-bloco p { margin: 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.fc-dado { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.fc-dado span { color: var(--text-2); }
.fc-dado strong { text-align: right; word-break: break-all; }
/* Chave Pix existe para ser copiada, então o clique inteiro é o botão. */
.fc-copiar { background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--orange); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: var(--r-sm); }
.fc-copiar:hover { background: var(--blue-soft); }

.fc-comprovante { margin-top: 12px; }
.fc-comprovante img { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); display: block; }

/* Linha do tempo: o que aconteceu com a conta, do mais recente para o antigo. */
.fc-historico { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.fc-historico li { position: relative; padding: 0 0 16px 14px; }
.fc-historico li:last-child { padding-bottom: 0; }
.fc-historico li::before {
  content: ''; position: absolute; left: -23px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  box-shadow: 0 0 0 3px var(--surface);
}
.fc-historico li.is-paga::before { background: var(--green); }
.fc-historico li.is-estornada::before { background: var(--red, #DC2626); }
.fc-historico li.is-criada::before { background: var(--orange); }
.fc-hist-titulo { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.fc-hist-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Nota explicativa abaixo de um campo, com ícone à esquerda. */
.form-dica {
  display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 0;
  font-size: 12.5px; line-height: 1.45; color: var(--text-2);
}
.form-dica svg { flex: none; margin-top: 2px; color: var(--orange); }

/* Uma linha por parcela, em tabela: a leitura é de cima para baixo, comparando
   parcela com parcela. Em cartões lado a lado o olho precisava saltar, e o
   valor líquido, que é o dado que importa, ficava espremido em duas linhas. */
.mq-parcelas {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
}
.mq-parcelas-head,
.mq-parcela {
  display: grid; grid-template-columns: 80px 150px 1fr; align-items: center;
  gap: 16px; padding: 10px 16px; margin: 0;
}
.mq-parcelas-head {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-2);
}
.mq-parcela { border-bottom: 1px solid var(--line); transition: background .12s; }
.mq-parcela:last-child { border-bottom: 0; }
.mq-parcela:hover { background: var(--surface-2); }
.mq-parcela-qtd { font-size: 14px; font-weight: 700; }
.mq-parcela-campo { position: relative; display: block; }
.mq-parcela-campo input {
  width: 100%; padding: 8px 32px 8px 12px; text-align: right;
  font: inherit; font-size: 13.5px; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.mq-parcela-campo input:hover { border-color: var(--text-3); }
.mq-parcela-campo input:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(250, 57, 9,.14);
}
.mq-parcela-campo input:disabled { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
.mq-parcela-sufixo {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--text-2); pointer-events: none;
}
.mq-parcela-liquido {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-2);
}
.mq-parcela-liquido b { font-size: 14px; font-weight: 700; color: var(--green); }
/* Parcela coberta pelo sem juros: não tem taxa a informar, então a linha
   recua para o segundo plano em vez de sumir e deixar buraco na sequência. */
.mq-parcela--isenta { background: var(--surface-2); }
.mq-parcela-selo {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--text-2);
}
@media (max-width: 640px) {
  .mq-parcelas-head { display: none; }
  .mq-parcela { grid-template-columns: 56px 1fr; row-gap: 8px; }
  .mq-parcela-liquido { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Linha simples de lista em Configurações (motivos, etc.). */
.cfg-linha {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13.5px;
}
.cfg-linha:hover { border-color: var(--orange); }
.btn-icone {
  width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; flex-shrink: 0;
}
.btn-icone:hover { color: var(--red, #DC2626); border-color: currentColor; }

/* =========================================================
   RELATÓRIO DA AGENDA (gráficos sem biblioteca externa)
   ========================================================= */
.rag-legenda { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.rag-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

.rag-colunas {
  display: flex; align-items: flex-end; gap: 6px;
  height: 180px; padding: 10px 4px 0; overflow-x: auto;
}
.rag-coluna { flex: 1 0 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.rag-coluna-pilha {
  flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse;
  justify-content: flex-start; border-radius: 5px; overflow: hidden; background: var(--surface-2);
}
.rag-coluna-pilha span { width: 100%; min-height: 0; }
.rag-coluna small { font-size: 11px; color: var(--text-2); }

.rag-barra { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.rag-barra-rotulo { flex: 0 0 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rag-barra-trilho { flex: 1; height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rag-barra-preenchida { display: block; height: 100%; border-radius: 999px; }
.rag-barra-valor { flex: 0 0 46px; text-align: right; font-weight: 700; }

/* =========================================================
   BOTÃO DE ADICIONAR (ao lado de selects de categoria/credor)
   ========================================================= */
.btn-adicionar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--orange);
  cursor: pointer; transition: all .14s;
}
.btn-adicionar:hover {
  border-style: solid; border-color: var(--orange);
  background: var(--blue-soft); transform: translateY(-1px);
}
.btn-adicionar:active { transform: none; }

/* Paleta de cor do ícone (categoria e credor). */
.cor-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.cor-opcao {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .12s;
}
.cor-opcao:hover { transform: scale(1.1); }
.cor-opcao.active { border-color: var(--text-1); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px rgba(0,0,0,.08); }

/* =========================================================
   CENTRAL DE AVISOS (sino do topo)
   ========================================================= */
.sino-wrapper { position: relative; }
.sino-btn {
  position: relative; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .14s;
}
.sino-btn:hover { color: var(--orange); border-color: var(--orange); }
.sino-btn.tem-aviso { color: var(--orange); border-color: var(--orange); animation: sino-balanca 1.6s ease-in-out infinite; }
@keyframes sino-balanca {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(-10deg); }
  85% { transform: rotate(8deg); }
  92% { transform: rotate(-4deg); }
}
.sino-contador {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.sino-painel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  width: min(360px, calc(100vw - 32px)); max-height: 420px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(20,20,30,.18);
}
.sino-painel-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.sino-som { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.sino-som input { width: auto; }
.sino-vazio { margin: 0; padding: 22px 14px; text-align: center; color: var(--text-2); font-size: 13px; }
.sino-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.sino-item:last-child { border-bottom: 0; }
.sino-item-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.sino-item-corpo { flex: 1; min-width: 0; }
.sino-item-corpo strong { display: block; font-size: 13.5px; }
.sino-item-corpo small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.sino-item-acoes { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sino-item-acoes .btn { padding: 4px 10px; font-size: 11.5px; }
.sino-atraso { color: #DC2626; font-weight: 700; }

/* Opções de pagamento do profissional em serviços do clube. */
.clube-pg-opcao {
  flex: 1; min-width: 170px;
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; cursor: pointer; font-size: 13.5px; transition: all .12s;
}
.clube-pg-opcao:hover { border-color: var(--orange); }
.clube-pg-opcao:has(input:checked) { border-color: var(--orange); background: var(--blue-soft); }
.clube-pg-opcao input { width: auto; }

/* Profissional que não atende clube: sai de cena sem sumir da lista. */
.pick-card.sem-clube, .serv-row.sem-clube {
  filter: grayscale(1); opacity: .5; cursor: not-allowed;
}
.pick-card.sem-clube:hover { border-color: var(--line); transform: none; }
.pick-card-aviso {
  display: block; font-size: 11px; color: #DC2626; margin-top: 2px; font-weight: 600;
}

/* Atendimento que passou do tempo limite: o cronômetro avisa antes do
   sistema encerrar sozinho. */
.det-crono-estourado {
  color: #DC2626 !important;
  animation: crono-pulsa 1.4s ease-in-out infinite;
}
@keyframes crono-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* =========================================================
   MARCA COLORIDA NO ITEM DO MENU
   WhatsApp, Instagram, Messenger, Site Bio e Envio em massa
   levam a logo da própria marca no lugar do ícone de traço.
   ========================================================= */
.nav-marca {
  width: 18px; height: 18px; flex: 0 0 18px;
  display: inline-grid; place-items: center;
}
.nav-marca svg { width: 18px; height: 18px; display: block; }

/* Períodos em que a barbearia não abre (férias e feriados). */
.fech-linha {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
.fech-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center; border-radius: 50%;
}
.fech-ico--feriado { background: rgba(245, 158, 11, .14); color: #b45309; }
.fech-ico--ferias { background: var(--blue-soft); color: var(--orange); }

/* Aviso de barbearia fechada na data escolhida (férias ou feriado). */
.agenda-data-aviso {
  margin-top: 8px; padding: 9px 11px;
  border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.45;
  background: rgba(220, 38, 38, .1); color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, .25);
}

/* Resumo do acerto com o profissional (a receber, vales, saldo). */
.acerto-resumo {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 12px 14px; margin-bottom: 10px;
}
.acerto-linha {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 13.5px; padding: 4px 0;
}
.acerto-linha span { color: var(--text-2); }
.acerto-total {
  border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px;
}
.acerto-total span { color: var(--text); font-weight: 600; }
.acerto-total strong { font-size: 22px; color: var(--green); }

/* Velinhas do bolo de aniversário: a chama treme para chamar atenção. */
.kt-chama { transform-origin: 12px 5px; animation: kt-tremer 1.6s ease-in-out infinite; }
@keyframes kt-tremer {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
  35%      { transform: scaleY(1.18) translateY(-.4px); opacity: .85; }
  70%      { transform: scaleY(.92) translateY(.3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .kt-chama { animation: none; } }

/* Aviso dentro do detalhe de um lançamento. */
.det-aviso {
  margin: 10px 0 0; padding: 9px 11px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.45;
  background: rgba(245, 158, 11, .12); color: #b45309;
}

/* Linha das tarefas do dia que abre os detalhes ao clicar. */
.tarefa-row--clicavel { cursor: pointer; transition: background .12s, border-color .12s; }
.tarefa-row--clicavel:hover { background: var(--surface-2); border-color: var(--orange); }

/* Clubes desativados: bloco próprio, apagado, abaixo dos que estão valendo. */
.clube-desativados { grid-column: 1 / -1; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.clube-desativados h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.clube-desativados p { margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); }
.clube-desativados .grid-clubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.av-card--desativado { filter: grayscale(1); opacity: .55; }
.av-card--desativado:hover { opacity: .8; }

/* Contador de caixas abertos ao lado do menu. */
.nav-contador {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--orange); border-radius: 999px;
}
/* Conta vencida ou vencendo hoje: é dívida, não movimento, então vem em vermelho. */
.nav-contador--alerta { background: var(--red, #DC2626); }

/* Lista de serviços marcáveis dentro de um modal estreito. */
.serv-lista-compacta { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }

/* =========================================================
   BANDEIRAS DE CARTÃO NA MAQUININHA
   ========================================================= */
.kt-selo-bandeira {
  display: inline-grid; place-items: center;
  border-radius: 5px; background: var(--selo-cor);
  color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .02em;
}
.mq-bandeiras-abas {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
}
.mq-bandeira-aba {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 88px; padding: 9px 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; transition: all .12s;
  font-size: 11px; color: var(--text-2); position: relative;
}
.mq-bandeira-aba:hover { border-color: var(--orange); }
.mq-bandeira-aba.active { border-color: var(--orange); background: var(--blue-soft); color: var(--text); font-weight: 600; }
.mq-bandeira-selo {
  position: absolute; top: -6px; right: -4px;
  padding: 1px 5px; border-radius: 999px;
  font-size: 8.5px; font-weight: 700; text-transform: uppercase;
  background: var(--green); color: #fff;
}
.mq-bandeira-painel {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 14px;
}
