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

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

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

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

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

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

/* Reservas nuevas, eliminar */
.agcp-alerta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #e5ebff; border-left: 4px solid #2f49c7; color: #1d2b6b; }
.agcp-resumen-dia { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 16px; }
.agcp-dato { flex: 1 1 140px; display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid #d9e0e4; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; font-weight: 600; }
.agcp-dato span { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--agcp-acento, #0e7490); }
.agcp-nueva { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: #e6197e; background: var(--agcp-acento, #e6197e); color: #fff; font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.agcp-acciones { white-space: nowrap; }
.agcp-acciones .button { margin: 2px 2px 2px 0; }
.agcp-ultimas { list-style: none; margin: 0; padding: 0; }
.agcp-ultimas li { padding: 8px 0; border-bottom: 1px solid #e6eaed; }
.agcp-cuando { display: inline-block; min-width: 92px; color: #4f5d68; font-size: .88rem; }
.agcp-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: #d63638; color: #fff; font-size: .78rem; font-weight: 800; }
.button.agcp-peligro, .agcp-panel .button.agcp-peligro { border-color: #b32d2e; color: #b32d2e; background: #fff; }
.button.agcp-peligro:hover, .agcp-panel .button.agcp-peligro:hover { background: #fcf0f1; }
/* ── Pagos y boletas ── */
.agcp-estado-esperando_pago { background: #fff1cc; color: #7a4f00; }
.agcp-estado-pago_vencido { background: #eceff1; color: #50575e; text-decoration: line-through; }
.agcp-pago-aprobado { background: #e3f4ea; color: #17693f; }
.agcp-pago-pendiente { background: #fff1cc; color: #7a4f00; }
.agcp-pago-rechazado, .agcp-pago-revisar { background: #fdecea; color: #b42318; }
.agcp-pago-vencido, .agcp-pago-devuelto { background: #eceff1; color: #50575e; }
.agcp-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 18px; background: #eceff1; color: #50575e; vertical-align: middle; white-space: nowrap; }
.agcp-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 0; }
.agcp-chip-pend { background: #fff1cc; color: #7a4f00; }
.agcp-chip-ok { background: #e3f4ea; color: #17693f; }
.agcp-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.agcp-filtros a { padding: 6px 12px; border: 1px solid #c3c4c7; border-radius: 999px; text-decoration: none; color: inherit; background: #fff; }
.agcp-filtros a.activa { background: var(--agcp-acento, #0e7490); border-color: var(--agcp-acento, #0e7490); color: #fff; }
.agcp-filtros a.activa .agcp-num { background: #fff; color: #d63638; }
.agcp-fila-nota td { background: #fdecea !important; color: #8a1c13; }
.agcp-texto-alerta { color: #b42318; }
.agcp-alerta-roja { background: #fdecea; border-left-color: #b42318; color: #8a1c13; }
.agcp-pagos-lista { margin: 0 0 1em; padding: 0; list-style: none; }
.agcp-pagos-lista li { padding: 8px 0; border-bottom: 1px solid #e0e0e0; }
.agcp-copiar-tabla td { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agcp-dato-copia { font-family: ui-monospace, Menlo, monospace; word-break: break-word; }
.agcp-tabla-pagos .agcp-acciones { white-space: normal; }
.agcp-avisos { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.agcp-aviso-vivo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border-left: 5px solid #17693f; box-shadow: 0 6px 24px rgba(0,0,0,.18); color: #1d2327; }
.agcp-aviso-vivo p { margin: 0; flex: 1; font-weight: 600; }
.agcp-aviso-alerta { border-left-color: #b42318; }
.agcp-aviso-cerrar { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #50575e; padding: 2px 4px; }
.agcp-num[hidden] { display: none; }
.agcp-aviso-vivo a { flex: none; display: inline-block; padding: 4px 12px; border-radius: 6px; background: var(--agcp-acento, #0e7490); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 13px; }
.agcp-tabla-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.agcp-tabla-scroll .agcp-tabla-pagos { min-width: 640px; }
.agcp-tabla-pagos td:first-child { white-space: nowrap; }
.agcp-ficha > * { min-width: 0; }
@media (max-width: 960px) { .agcp-ficha { grid-template-columns: minmax(0, 1fr); } }
.agcp-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
