/* 
 * Odonto SaaS Premium - Enterprise Design System
 * Focado em clareza, sofisticação e produtividade.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --brand: #4f46e5;         /* Indigo 600 */
  --brand-dark: #4338ca;    /* Indigo 700 */
  --brand-light: #eef2ff;   /* Indigo 50 */
  
  /* Semantic Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* Neutrals */
  --bg: #f8fafc;            /* Slate 50 */
  --card: #ffffff;
  --text: #0f172a;          /* Slate 900 */
  --text-muted: #64748b;    /* Slate 500 */
  --border: #e2e8f0;        /* Slate 200 */
  --border-light: #f1f5f9;  /* Slate 100 */
  
  /* UI Constants */
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases de compatibilidade (nomes antigos usados nos templates) */
  --azul: #3b82f6;
  --verde: #10b981;
  --vermelho: #ef4444;
  --ambar: #f59e0b;
  --muted: #64748b;
  --roxo: #8b5cf6;
  --laranja: #f97316;
  --azul-bg: #eff6ff;
  --verde-bg: #ecfdf5;
  --vermelho-bg: #fef2f2;
  --ambar-bg: #fffbeb;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: #1e293b; /* Slate 800 */
  color: #f1f5f9;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-group-title {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 16px 12px 8px;
}

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: #cbd5e1; text-decoration: none;
  font-size: 14px; font-weight: 500;
  margin-bottom: 4px; transition: var(--transition);
}

.nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-link.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.nav-link svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-sub {
  padding-left: 42px; font-size: 12px;
  opacity: 0.7;
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; position: sticky; top: 0; z-index: 90;
}

.search-bar {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 20px; width: 300px;
}
.search-bar input { border: none; background: transparent; outline: none; margin-left: 8px; width: 100%; font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 20px; }
.user-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #fff; box-shadow: var(--shadow); }

/* Components */
.content-body { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  transition: var(--transition);
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 1.5px solid var(--border);
  background: #fff; color: var(--text); text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  min-height: 44px;
}
.btn:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5b52ef 0%, var(--brand) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.btn-success { background: var(--success); color: #fff; border-color: var(--success); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-success:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,0.3); }

/* Typography */
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 700; }
.text-muted { color: var(--text-muted); font-size: 14px; }
/* Alertas */
.alerta { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.alerta.info { background: var(--info-bg); color: #1e40af; border-color: #bfdbfe; }
.alerta.success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alerta.warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alerta.danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }

/* Dashboard Specifics */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { padding: 24px; border-left: 4px solid var(--brand); }
.stat-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 32px; font-weight: 800; margin: 4px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .topbar { padding: 0 16px; }
  #mobile-toggle { display: block !important; }
}

/* --- Timeline Premium --- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--border); }

.timeline-item { position: relative; margin-bottom: 32px; padding-left: 52px; }
.timeline-icon {
    position: absolute; left: 0; top: 0; width: 40px; height: 40px;
    background: #fff; border: 2px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; z-index: 2; box-shadow: var(--shadow-sm);
}
.timeline-item.active .timeline-icon { border-color: var(--brand); color: var(--brand); }

.timeline-content {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.timeline-content:hover { transform: translateX(4px); box-shadow: var(--shadow); }

.timeline-date { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.notif-badge-new { background: var(--danger); width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* Badges de Cores */
.badge-indigo { background: #eef2ff; color: #4f46e5; }
.badge-emerald { background: #ecfdf5; color: #059669; }
.badge-rose { background: #fff1f2; color: #e11d48; }
.badge-amber { background: #fffbeb; color: #d97706; }

/* Badges de Status (usados na agenda e outros) */
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-erro { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Botões faltantes */
.btn-amber { background: #f59e0b; color: #fff; border-color: #f59e0b; box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.btn-amber:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,0.3); }
.btn-volta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-light); text-decoration: none; transition: var(--transition); }
.btn-volta:hover { background: var(--brand); color: #fff; }

/* Alerta de erro (alias para danger) */
.alerta.erro { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }

/* ══════════════════════════════════════════════
   VARIÁVEIS ADICIONAIS (compatibilidade)
══════════════════════════════════════════════ */
:root {
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --azul-claro: #bfdbfe;
  --cinza-medio: #94a3b8;
  --texto: #0f172a;
  --texto-muted: #64748b;
  --border-bg: #f1f5f9;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --blue: #3b82f6;
  --light: #f8fafc;
}

/* ══════════════════════════════════════════════
   PAGE HEADER & BREADCRUMB
══════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.breadcrumb {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}

/* ══════════════════════════════════════════════
   KPI CARDS (Dashboard)
══════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 18px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: var(--transition);
}
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; margin-top: 8px;
}
.kpi-value {
  font-size: 26px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.kpi-sub {
  font-size: 12px; color: var(--text-muted); margin-top: 6px;
}
.kpi-sub a { color: var(--brand); text-decoration: none; font-weight: 600; }
.kpi-sub a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   CARD TITLE
══════════════════════════════════════════════ */
.card-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.section-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   GRIDS UTILITÁRIOS
══════════════════════════════════════════════ */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   BOTÕES ADICIONAIS
══════════════════════════════════════════════ */
.btn-sm { padding: 7px 14px; font-size: 12px; min-height: 34px; border-radius: var(--radius-sm); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,68,68,0.3); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.btn-warning:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border-light); }
/* btn-verde alias */
.btn-verde { background: var(--success); color: #fff; border-color: var(--success); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-verde:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-icon { padding: 8px; min-width: 36px; }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; }

/* ══════════════════════════════════════════════
   TABELAS
══════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--border-light); }
th { padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }
td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tr:hover td { background: var(--border-light); }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: var(--border-light); color: var(--text-muted);
}
.badge-active { background: var(--success-bg); color: #065f46; }
.badge-count { background: var(--brand); color: #fff; border-radius: 999px; font-size: 10px; padding: 2px 7px; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--card); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ══════════════════════════════════════════════
   MODAIS
══════════════════════════════════════════════ */
.modal-bg {
  display: none; /* oculto por padrão */
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-bg.aberto { display: flex; }
.modal-bg.aberto-flex { display: flex; }
.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 560px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  max-height: 90vh; overflow-y: auto;
  border: 1px solid var(--border);
  /* Linha colorida no topo */
  border-top: 4px solid var(--brand);
}
.modal h2 { margin-bottom: 16px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* ══════════════════════════════════════════════
   TABS
══════════════════════════════════════════════ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: none; border-top: none; border-left: none; border-right: none;
  text-decoration: none; display: inline-block;
}
.tab:hover { color: var(--text); background: var(--border-light); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══════════════════════════════════════════════
   FORMULÁRIOS — PREMIUM
══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
label, .form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: #1a202c; margin-bottom: 7px; letter-spacing: 0.01em;
  line-height: 1.4;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], input[type="url"],
input[type="datetime-local"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  -webkit-appearance: none;
  appearance: none;
  min-height: 47px;
}
input::placeholder, textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #eff6ff inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
  background: #fff;
}
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) {
  border-color: #c7d2fe;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5l6.5 7 6.5-7' stroke='%234f46e5' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* Address section grid adjustments */
.form-section .address-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-section .address-city {
  grid-column: span 6;
}
.form-section .address-uf-cep {
  grid-column: span 6;
}
.form-section .address-grid .uf-row {
  display: flex;
  gap: 14px;
}
.form-section .address-grid .uf-row input:first-child {
  width: 80px;
  flex-shrink: 0;
}
.form-section .address-grid .uf-row input:last-child {
  flex: 1;
}

/* Error messages for validation */
.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}
.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.error-message.show {
  display: block;
}
textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
/* Input com ícone */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 15px; }
.input-icon-wrap input { padding-left: 40px; }

/* ══════════════════════════════════════════════
   INFO BOX / GRID
══════════════════════════════════════════════ */
.info-box { background: var(--border-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; }
.info-item { }
.info-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-msg { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* ══════════════════════════════════════════════
   TIPOGRAFIA AUXILIAR
══════════════════════════════════════════════ */
.small { font-size: 12px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.med { font-size: 14px; }
.lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.small-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.3s ease-out; }

/* ══════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════ */
.flash-area { margin-bottom: 20px; }

/* ══════════════════════════════════════════════
   AGENDA
══════════════════════════════════════════════ */
.hora-col { width: 60px; min-width: 60px; font-size: 11px; color: var(--text-muted); font-weight: 600; padding-top: 8px; }
.hora-label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.dia-col { flex: 1; border-left: 1px solid var(--border); }
.dia-num { font-size: 22px; font-weight: 800; line-height: 1; }
.hoje-num { background: var(--brand); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.consulta-card {
  background: var(--brand-light); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 8px 10px; margin: 2px 4px;
  cursor: pointer; transition: var(--transition); font-size: 12px;
}
.consulta-card:hover { transform: scale(1.01); box-shadow: var(--shadow); }
.consulta-label { font-weight: 700; font-size: 12px; color: var(--brand-dark); }
.consulta-data { font-size: 11px; color: var(--text-muted); }
.consulta-dent { font-size: 11px; color: var(--text-muted); }
.seg-cell { flex: 1; border-left: 1px solid var(--border); min-height: 44px; position: relative; cursor: pointer; }
.seg-cell:hover { background: var(--brand-light); }

/* ══════════════════════════════════════════════
   FINANCEIRO
══════════════════════════════════════════════ */
.fin-card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.fin-val { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.financeiro-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }

/* ══════════════════════════════════════════════
   PACIENTES / PRONTUÁRIO
══════════════════════════════════════════════ */
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; flex-shrink: 0;
}
.id-badge { background: var(--border-light); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.tag-plano { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--info-bg); color: var(--info); }
.status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ══════════════════════════════════════════════
   ODONTOGRAMA
══════════════════════════════════════════════ */
.odontograma-frame { overflow-x: auto; }
.svg-wrap { display: flex; justify-content: center; }
.odo-label { font-size: 10px; text-align: center; color: var(--text-muted); }
.odo-sep-v { width: 2px; background: var(--border); margin: 0 8px; }
.fill { background: var(--brand-light); }

/* ══════════════════════════════════════════════
   DOCUMENTOS / ANAMNESE
══════════════════════════════════════════════ */
.documentos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.doc-type { display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; background: var(--border-light); color: var(--text-muted); }

/* ══════════════════════════════════════════════
   MISC / UTILITÁRIOS
══════════════════════════════════════════════ */
.section { margin-bottom: 32px; }
.header { margin-bottom: 20px; }
.footer { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 20px; }
.footer-totals { display: flex; justify-content: flex-end; gap: 20px; padding: 12px 16px; background: var(--border-light); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.total-row { font-weight: 700; background: var(--brand-light) !important; }
.total-row td { color: var(--brand); font-weight: 700; }
.border-danger { border-color: var(--danger) !important; }
.chart-container { position: relative; height: 280px; }
.linkbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.head-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--brand-light); }
.head-link:hover { background: var(--brand); color: #fff; }
.media { display: flex; align-items: flex-start; gap: 16px; }
.track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.val-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.logo-atual { max-width: 120px; max-height: 60px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.clinic-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.clinic-name { font-weight: 700; font-size: 16px; }
.color-preview { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: inline-block; vertical-align: middle; }
.pac-sugest { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 14px; transition: var(--transition); }
.pac-sugest:hover { background: var(--brand-light); color: var(--brand); }
.proc-list { list-style: none; padding: 0; }
.proc-linha { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.proc-linha:last-child { border-bottom: none; }
.proc-edit-row { display: flex; align-items: center; gap: 8px; }
.pitem { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 6px; font-size: 13px; }
.desc-row { font-size: 12px; color: var(--text-muted); }
.nota-ta { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; resize: vertical; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nota-ta:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10); outline: none; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--brand-light); color: var(--brand); }
.side-card { background: var(--border-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.task-list { list-style: none; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.task-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.task-actions { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.galeria-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; position: relative; }
.recall-table-container { overflow-x: auto; }
.recall-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.recall-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.recall-table th, .recall-table td { padding: 10px 12px; text-align: left; }
.recall-table tbody tr:hover td { background: var(--brand-light); }
.estoque-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tbtn { padding: 8px 18px; font-size: 13px; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tbtn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tbtn:hover { color: var(--text); }
.export-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; transition: var(--transition); }
.export-item:hover { background: var(--border-light); }
.origin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.origin-card { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); text-align: center; cursor: pointer; transition: var(--transition); }
.origin-card:hover { border-color: var(--brand); background: var(--brand-light); }
.selectors-group { display: flex; gap: 8px; flex-wrap: wrap; }
.selectors-group-item { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.selectors-group-item.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.face-sel-bar { display: flex; gap: 4px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ai-card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.product-tabs, .produto-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.price-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: var(--transition); }
.price-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-val { font-size: 36px; font-weight: 800; color: var(--brand); }
.feature-list { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.feature-list li { padding: 6px 0; font-size: 14px; color: var(--text-muted); }
.feature-list li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.campaign-card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); }
.campaign-head { font-weight: 700; margin-bottom: 8px; }
.dentista-card { background: var(--card); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.dentista-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comissao-label { font-size: 12px; color: var(--text-muted); }
.recita-graph { height: 200px; }
.sig-canvas { width: 100%; border: 2px dashed var(--border); border-radius: var(--radius-sm); cursor: crosshair; touch-action: none; display: block; }
.btn-secondary-cta { background: var(--brand-light); color: var(--brand); border: 1px solid var(--brand); }
.btn-doc-cta { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.btn-warn-cta { background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }
.btn-mic { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.btn-mic.recording { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.cta-consulta { text-align: center; padding: 24px; }
.media { display: flex; gap: 16px; align-items: flex-start; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.anamnese-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.info-box.info-box-warning { background: var(--warning-bg); border: 1px solid var(--warning); }
.info-box.info-box-danger { background: var(--danger-bg); border: 1px solid var(--danger); }
.info-box.info-box-success { background: var(--success-bg); border: 1px solid var(--success); }
.protese-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ══════════════════════════════════════════════
   PREMIUM POLISH — inputs específicos e micro-detalhes
══════════════════════════════════════════════ */

/* Checkbox e Radio modernos */
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; min-height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Número sem setas (opcional por classe) */
input.no-arrows::-webkit-outer-spin-button,
input.no-arrows::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.no-arrows[type=number] { -moz-appearance: textfield; }

/* Tabela premium */
table { font-size: 14px; }
th { padding: 13px 16px; font-size: 11.5px; }
td { padding: 13px 16px; }
tr:hover td { background: var(--brand-light); }

/* Scrollbar elegante */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Content body mais respirado */
.content-body { padding: 36px 40px; }
@media (max-width: 768px) { .content-body { padding: 20px 16px; } }

/* Sidebar melhorada */
.nav-link {
  padding: 11px 14px;
  border-radius: var(--radius);
}

/* Topbar shadow suave */
.topbar {
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.04);
}

/* Focus visible para acessibilidade (exceto inputs, que já têm estilo próprio) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
}

/* Inputs dentro de modal — garantir aparência premium */
.modal input, .modal select, .modal textarea {
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}
.modal label { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.modal .btn { min-height: 46px; padding: 12px 22px; }
.modal .grid2 { gap: 16px; }
.modal .form-group { margin-bottom: 18px; }

/* Agenda — input datetime-local premium */
input[type="datetime-local"] {
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

/* Cards na agenda */
.consulta-card {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

/* Botão de ação flutuante */
.fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--brand); color: #fff;
  border-radius: 50%; border: none; cursor: pointer;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  transition: var(--transition); z-index: 50;
}
.fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5); }

/* Page actions row */
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Section divider */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Input group (label + input juntos numa caixa) */
.input-group {
  display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.input-group input, .input-group select { border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.input-group-addon {
  padding: 13px 14px; background: var(--bg); color: var(--text-muted);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border-right: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center;
}

/* Valor monetário */
.currency-wrap { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.currency-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.currency-prefix { padding: 13px 14px; background: var(--bg); color: var(--text-muted); font-weight: 700; font-size: 14px; display: flex; align-items: center; border-right: 1.5px solid var(--border); }
.currency-wrap input { border: none !important; box-shadow: none !important; border-radius: 0 !important; }

/* Card premium com gradiente sutil no topo */
.card-premium { border-top: 3px solid var(--brand); }
.card-success { border-top: 3px solid var(--success); }
.card-danger { border-top: 3px solid var(--danger); }
.card-warning { border-top: 3px solid var(--warning); }

/* ════════════════════════════════════════════════════════════════════
   POLISH v2 — Profissional · Mobile-first · Ícones SVG inline
════════════════════════════════════════════════════════════════════ */

/* Ícones SVG (Lucide-style) — uso: <span class="ic"><svg>...</svg></span> ou .ic-emoji para fallback */
.ic { display: inline-flex; align-items: center; justify-content: center; vertical-align: -2px; line-height: 0; }
.ic svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg svg { width: 22px; height: 22px; }
.ic-md svg { width: 18px; height: 18px; }
.ic-sm svg { width: 14px; height: 14px; }

/* Esconder emojis decorativos quando precisarmos visual mais sério (utilitário opt-in) */
.no-emoji .emoji { display: none; }

/* Ajustes de tipografia para impressão profissional */
h1 { font-size: 24px; }
h2 { font-size: 17px; }
@media (min-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 19px; }
}

/* ── Mobile: sidebar e topbar ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --topbar-h: 56px; }
  .content-body { padding: 16px 14px; }
  .topbar { padding: 0 12px !important; gap: 8px; }
  .search-bar { width: auto !important; flex: 1; min-width: 0; }
  .search-bar input { font-size: 14px; }
  .topbar-actions { gap: 10px; }
  .user-profile > div:first-child { display: none; }   /* Esconde nome/perfil escrito */
  .user-avatar { width: 32px; height: 32px; font-size: 13px; }
  /* Sidebar como off-canvas */
  .sidebar { box-shadow: 0 0 60px rgba(0,0,0,.3); }
  .sidebar.open ~ .main-wrapper::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(15,23,42,.5); z-index: 99;
  }
  /* Modais full screen no mobile */
  .modal { padding: 20px; max-width: calc(100vw - 24px); }
  .modal h2 { font-size: 18px; }
  /* Botões com toque maior */
  .btn { min-height: 44px; padding: 11px 16px; }
  .btn-sm { min-height: 38px; padding: 8px 14px; }
  /* Tabelas: scroll horizontal sempre */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
  /* KPI grid mais apertado */
  .kpi-grid { gap: 10px; }
  .kpi { padding: 14px 14px; }
  .kpi-value { font-size: 22px; }
  /* Cards menos padding */
  .card { padding: 18px; }
}

/* ── Agenda: vista de DIA no celular ────────────────────────────
   No desktop o usuário vê a semana inteira; no celular, só hoje+navegação. */
@media (max-width: 760px) {
  /* Reduz a grade pra 1 coluna de hora + 1 coluna de dia (o ativo) */
  .agenda-mobile .agenda-grid { grid-template-columns: 36px 1fr !important; }
  .agenda-mobile .agenda-header-cell:not(.dia-ativo):not(:first-child) { display: none; }
  .agenda-mobile .dia-col:not(.dia-ativo) { display: none; }
  /* Destaques visuais */
  .agenda-mobile .dia-num { font-size: 18px; }
  .agenda-mobile .ev { font-size: 12px; padding: 6px 8px; border-radius: 8px; }
  .agenda-mobile .ev-proc { display: block !important; opacity: .85; font-size: 11px; }
  .agenda-mobile .slot { height: 60px; }
  /* Barra de troca de dia */
  .agenda-day-pager {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 8px 10px; margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }
  .agenda-day-pager .lbl {
    font-weight: 700; font-size: 14px; text-transform: capitalize;
  }
  .agenda-day-pager button {
    background: var(--bg); border: 1px solid var(--border);
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
}
@media (min-width: 761px) { .agenda-day-pager { display: none; } }

/* ── Tabs scroll horizontal no mobile ──────────────────────────── */
@media (max-width: 600px) {
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 1px;
  }
  .tabs .tab {
    flex-shrink: 0; scroll-snap-align: start; font-size: 12px;
    padding: 8px 12px;
  }
}

/* ── Autocomplete (paciente / procedimento) ───────────────────── */
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 280px; overflow-y: auto;
  z-index: 1200; box-shadow: var(--shadow-md);
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 2px;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--brand-light); color: var(--brand); }
.autocomplete-item .meta { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.autocomplete-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Loader genérico (placeholder cinza animado) */
.skeleton {
  background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Spinner inline */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%; display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loader de iframe/painel */
.iframe-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 20px; color: var(--text-muted); font-size: 13px;
  background: linear-gradient(180deg,#fafbfc,#fff);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}

/* Ajustes específicos do odontograma na ficha — sem cinza chapado */
.odontograma-frame {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
}
@media (max-width: 760px) {
  .odontograma-frame { min-height: 620px !important; }
}

/* CTA cards com SVG no lugar de emoji gigante */
.cta-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--brand-light); color: var(--brand);
  margin-bottom: 10px;
}
.cta-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header com volta — mobile compactando */
.profile-head { gap: 12px; }
@media (max-width: 600px) {
  .profile-head { flex-direction: column; align-items: stretch; }
  .profile-head h1 { font-size: 20px !important; }
}
