/* ExpMD v2 — estilos globales */

body {
  background-color: #f4f6f9;
  font-size: 0.95rem;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: .5px;
}

/* ── Tarjetas ────────────────────────────────────────── */
.card {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card-header {
  font-weight: 600;
  letter-spacing: .3px;
}

/* ── Tabla pacientes ─────────────────────────────────── */
.table-hover tbody tr:hover {
  background-color: #e8f4f8;
  cursor: pointer;
}
.table th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6c757d;
  border-top: none;
}

/* ── Expediente tabs ─────────────────────────────────── */
.exp-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.exp-header h5 { margin: 0; font-size: 1.15rem; }
.exp-header .badge-edad { font-size: .75rem; }

/* ── Tabs originales Bootstrap (otros usos) ──────────── */
.nav-tabs .nav-link {
  color: #495057;
  font-size: .88rem;
  padding: .4rem .8rem;
}
.nav-tabs .nav-link.active {
  font-weight: 600;
  color: #0d6efd;
}

/* ── Folder tabs (expediente) ────────────────────────── */
.folder-tabs {
  border-bottom: none;
  gap: 3px;
  align-items: flex-end;
}

.folder-tab-link {
  display: inline-block;
  padding: .45rem .9rem;
  font-size: .85rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: color-mix(in srgb, var(--tab-bg) 65%, #888);
  border: 1px solid var(--tab-dark);
  border-bottom: none;
  border-radius: .45rem .45rem 0 0;
  transition: background .15s, box-shadow .15s;
  position: relative;
  top: 1px;
  white-space: nowrap;
}

.folder-tab-link:hover:not(.folder-tab-activo) {
  background: color-mix(in srgb, var(--tab-bg) 85%, #fff);
  color: #111;
  box-shadow: 0 -2px 6px rgba(0,0,0,.1);
}

.folder-tab-activo {
  background: var(--tab-bg) !important;
  color: #111 !important;
  font-weight: 700;
  padding-top: .6rem;
  border-color: var(--tab-dark);
  box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  z-index: 1;
}

.folder-content {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 0 .4rem .4rem .4rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .folder-tab-link {
    font-size: .78rem;
    padding: .35rem .55rem;
  }
}

/* ── Entradas clínicas ───────────────────────────────── */
.entrada-clinica {
  border-left: 3px solid #0d6efd;
  padding: .5rem .75rem;
  margin-bottom: .5rem;
  background: white;
  border-radius: 0 .3rem .3rem 0;
}
.entrada-clinica .fecha {
  font-size: .78rem;
  color: #6c757d;
}

/* ── Calendario ──────────────────────────────────────── */
#calendar {
  background: white;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.fc-event {
  cursor: pointer;
  font-size: .8rem;
}

/* ── Foto paciente ───────────────────────────────────── */
.foto-paciente {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ── Badge de semanas gestación ─────────────────────── */
.badge-embarazo {
  background: #e91e8c;
  color: white;
  font-size: .8rem;
  padding: .3rem .6rem;
  border-radius: 1rem;
}

/* ── Responsive helpers ──────────────────────────────── */
@media (max-width: 768px) {
  .exp-header { padding: .75rem; }
  .nav-tabs .nav-link { font-size: .82rem; padding: .35rem .55rem; }
  .entrada-clinica { font-size: .9rem; }
}

/* ── Receta imprimible ───────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
}
