/* ───────────────────────────────── Variables del componente */
.user-dash .avatar {
  color: #000;
  font-weight: 700;
}

.logo-sistema {
    max-width: 200px;
}

.contenedor-seccion{
  max-width: 1250px !important;
}

.mf-agenda-dia {
  --bg: #ffffff;
  --ink: #0f172a; /* neutral-900 */
  --muted: #6b7280; /* text secundario */
  --line: #e5e7eb; /* border */
  --soft: #f5f7fb; /* panel sutil */
  --pri: #4f46e5; /* primary btn */
  --pri-ink: #ffffff;
  --ok: #10b981; /* verde */
  --ok-100: #ecfdf5; /* verde muy claro */
  --busy: #3b82f6; /* azul estado */
  --busy-100: #eef4ff; /* azul muy claro */
  --block: #a3a3a3; /* bloqueado */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

/* ───────────────────────────────── Header */
.mf-agenda-dia__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}
.mf-agenda-dia__title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
}
.mf-agenda-dia__subtitle {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 15px;
}
.mf-agenda-dia__header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ───────────────────────────────── Toolbar */
.mf-agenda-dia__toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 300px) 1fr;
  gap: 14px 16px;
  align-items: center;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .mf-agenda-dia__toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tabs */
.mf-tabs {
  display: flex;
  gap: 10px;
}
.mf-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: #111;
}
.mf-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Select custom */
.mf-select {
  position: relative;
  display: inline-grid;
  align-items: center;
}
.mf-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 36px 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}
.mf-select__icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #6b7280;
  font-size: 12px;
}

/* Legend */
.mf-legend {
  display: flex;
  gap: 18px;
  color: #374151;
  font-size: 14px;
}
.mf-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.dot--ok {
  background: var(--ok);
}
.dot--busy {
  background: var(--busy);
}
.dot--block {
  background: #9ca3af;
}

/* ───────────────────────────────── Botones */

.mf-btn:focus {
  outline: 2px solid rgba(79, 70, 229, 0.25);
  outline-offset: 2px;
}
.mf-btn--ghost {
  background: var(--bg);
}
.mf-btn--primary {
  background: var(--pri);
  color: var(--pri-ink);
  box-shadow: none;
}
.mf-btn--primary:hover {
  filter: brightness(1.05);
  background: ;
}

.mf-btn--success {
  background: #ebedf0;
  color: #000000;
  box-shadow: none;
  border: solid 1px #ccc;
  border-radius: 10px;
}

.mf-btn--success:hover {
  background: #242d3f;
  color: #fff;
  box-shadow: none;
}

.mf-card {
  display: grid;
  align-items: center;
  grid-template-columns: 10% 90%;
}

.dam {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dts {
  display: flex;
  align-items: center;
}

/* ───────────────────────────────── Lista de slots */
.mf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* time */
.time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--busy);
  background: var(--busy-100);
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 64px;
}
.time-badge--ok {
  color: #000000;
  background: #dee2e9;
}

/* card */
.mf-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.mf-card--free {
  background: #fafafa;
  border: 1px dashed #cacaca;
}

.mf-slot--busy .mf-card {
  background: #fff;
}

.mf-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.mf-title {
  font-size: 16px;
}
.mf-title .muted {
  color: var(--muted);
}
.mf-title .sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.mf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-note {
  margin: 8px 0 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.chip--confirm {
  background: #e7efff;
  color: #2563eb;
}
.chip--free {
  background: #e9fbf3;
  color: #059669;
}

/* fila libre */
.mf-free {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mf-settings {
  color: #000;
}

.mf-settings__sessions {
  background: #eee;
  padding: 30px;
  border-radius: 20px;
  max-height: 250px;
}

.mf-settings__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Inputs generales */
.mf-settings__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

.mf-settings__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mf-settings__label {
  font-size: 14px;
  font-weight: 500;
}

.mf-settings__inputwrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-settings__unit {
  font-size: 14px;
}

/* Día */
.mf-settings__day {
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.mf-settings__daytitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sesiones {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 20px;
}

.botns {
  display: flex;
  justify-content: space-between;
}

.bt-n {
  border: none;
}

/* Hora */
.mf-settings__hour {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s ease;
  cursor: pointer;
  cursor: pointer;
}

/* Botón cuadrado */
.mf-settings__check {
  width: 18px;
  height: 18px;
  border: 2px solid #7e7e7e;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.mf-settings__hour[data-selected="true"] .mf-settings__check {
  background: #3b3bf5;
  border-color: #3b3bf5;
}

.mf-settings__hour[data-selected="true"] {
  border-color: #3b3bf5;
}

/* Botón agregar */
.mf-settings__addhour {
  margin-top: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #b8b8b8;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

/* Tarifas */

.mf-settings__checkboxwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

/* Guardar cambios */
.mf-settings__actions {
  margin-top: 30px;
}

.mf-settings__save {
  background: #4f47e6;
  color: #fff;
}

/* Titles */
.mf-card__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.mf-card__subtitle {
  color: #6b7280;
  margin-top: 6px;
}

/* Search bar */
.mf-searchbar__field {
  position: relative;
}

.mf-searchbar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.mf-searchbar__input {
  padding-left: 38px !important;
}

/* Advanced box */
.mf-advanced {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.hidden {
  display: none;
}

/* Table */
.mf-tablewrap {
  overflow-x: auto;
}

.mf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.mf-table thead {
  background: #f3f4f6;
}

.mf-table th {
  padding: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.mf-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.msg-success {
  padding: 10px;
  background: #e0ffe0;
  color: #006400;
  border: 1px solid #b3e6b3;
  border-radius: 5px;
  margin-top: 10px;
}

#mensaje-error-paciente {
  padding: 10px;
  background: #ffe0e0;
  color: #a10000;
  border: 1px solid #f5b3b3;
  border-radius: 5px;
  margin-top: 10px;
}

.mf-table tr:hover td {
  background: #fafafa;
}

.mf-table__actions {
  display: flex;
  gap: 8px;
}

/* Notes */
.mf-note,
.mf-footer-note {
  font-size: 13px;
  color: #6b7280;
}
