/* Panel de Agenda Clínica: usa los estilos de wp-admin y agrega solo lo propio. */
.agcl-wrap { max-width: 1400px; }
.agcl-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.agcl-barra label { font-weight: 600; }
.agcl-titulo-dia { font-size: 15px; margin-left: 4px; }
.agcl-vacio { background: #fff; border: 1px dashed #8c8f94; border-radius: 6px; padding: 24px; text-align: center; }
.agcl-caja { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 4px 20px 16px; margin-bottom: 16px; }
.agcl-sub { font-size: 14px; font-weight: 400; color: #50575e; margin-left: 6px; }

/* Estados (siempre con texto, nunca solo color) */
.agcl-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; vertical-align: middle; }
.agcl-estado-por_validar { background: #e8efff; color: #1d4ed8; }
.agcl-estado-pendiente { background: #e9eef0; color: #3c434a; }
.agcl-estado-confirmada { background: #e3f4ea; color: #17693f; }
.agcl-estado-atendida { background: #e0f2f6; color: #0e7490; }
.agcl-estado-no_asiste { background: #fff1cc; color: #7a4f00; }
.agcl-estado-anulada { background: #fdecea; color: #b42318; }

/* Agenda del día: una columna por profesional */
.agcl-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.agcl-col { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 0 12px 12px; }
.agcl-col h2 { font-size: 15px; margin: 12px 0 8px; }
.agcl-col h2 small { display: block; font-weight: 400; color: #50575e; font-size: 12px; }
.agcl-sin { color: #50575e; }
.agcl-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.agcl-lista li { margin: 0; }
.agcl-libre { display: block; padding: 6px 10px; border: 1px dashed #c3c4c7; border-radius: 4px; color: #2271b1; text-decoration: none; min-height: 20px; }
.agcl-libre:hover, .agcl-libre:focus { background: #f0f6fc; border-style: solid; }
.agcl-cita { display: block; padding: 8px 10px; border: 1px solid #dcdcde; border-left-width: 4px; border-radius: 4px; text-decoration: none; color: #1d2327; background: #fff; }
.agcl-cita:hover, .agcl-cita:focus { background: #f6f7f7; }
.agcl-cita .agcl-hora { font-weight: 700; margin-right: 4px; }
.agcl-cita .agcl-pac { display: block; margin-top: 4px; font-weight: 600; }
.agcl-cita .agcl-serv { display: block; color: #50575e; font-size: 12px; }
.agcl-borde-por_validar { border-left-color: #1d4ed8; border-left-style: dashed; }
.agcl-borde-pendiente { border-left-color: #8c8f94; }
.agcl-borde-confirmada { border-left-color: #17693f; }
.agcl-borde-atendida { border-left-color: #0e7490; }
.agcl-liberadas { margin-top: 16px; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 8px 16px; }
.agcl-liberadas summary { cursor: pointer; font-weight: 600; }

/* Formularios */
.agcl-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; max-width: 900px; }
.agcl-form-grid p { margin: 8px 0; }
.agcl-form-grid label { display: block; font-weight: 600; margin-bottom: 4px; }
.agcl-form-grid input, .agcl-form-grid select, .agcl-form-grid textarea { width: 100%; max-width: 100%; }
.agcl-form-grid .agcl-ancho { grid-column: 1 / -1; }
.agcl-elegido { background: #fff; border: 1px solid #dcdcde; padding: 10px 12px; border-radius: 6px; display: inline-block; }
.agcl-resultados li { margin: 6px 0; }
.agcl-inline { display: inline; margin-left: 8px; }
.agcl-check-linea { display: block; margin: 6px 0; }
.agcl-horario input[type="time"] { width: auto; }
.agcl-ficha-tabla th { width: 140px; }

/* Ficha */
.agcl-ficha { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
.agcl-ficha-lado ul { margin: 0; }
.agcl-ficha-lado li { margin-bottom: 10px; }
.agcl-nota { border-top: 1px solid #f0f0f1; padding-top: 8px; margin-top: 8px; }
.agcl-nota-vieja { opacity: .7; }
.agcl-nota-meta { color: #50575e; font-size: 12px; margin: 0; }
@media (max-width: 960px) { .agcl-ficha { grid-template-columns: 1fr; } }

/* Sin JavaScript se muestra el botón de «Ver horas libres» */
.agcl-js .agcl-sin-js { display: none; }
