/* ═══════════════════════════════════════════════════════════════
   76-informes-creados-premium.css
   Málaga CF · Scouting Area — Informes Creados Premium Polish
   ═══════════════════════════════════════════════════════════════ */

/* ── Tabs sub-nav hover ──────────────────────────────────────── */
.page-informes #ic-tab-dashboard:hover,
.page-informes #ic-tab-jugador:hover,
.page-informes #ic-tab-partido:hover,
.page-informes #ic-tab-buscar:hover {
  background: rgba(0, 72, 154, 0.05) !important;
}

/* ── Barra de contexto rápido ────────────────────────────────── */
.page-informes .ic-context-bar {
  transition: box-shadow 0.18s ease;
}
.page-informes .ic-context-bar:hover {
  box-shadow: 0 2px 10px rgba(0, 50, 112, 0.09);
}

/* ── Tabla informes — row hover premium ─────────────────────── */
.page-informes .dash-spreadsheet tbody tr:hover td {
  background-color: #8FBFDF !important;
  cursor: pointer;
}
.page-informes .dash-spreadsheet tbody tr {
  transition: background-color 0.16s ease;
}
.page-informes .dash-spreadsheet tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 rgba(201, 168, 76, 0.62);
}
.page-informes .dash-spreadsheet tbody tr td {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

/* ── Estado vacío ────────────────────────────────────────────── */
#ic-j-empty-state,
#ic-p-empty-state {
  transition: opacity 0.25s ease;
  animation: fadeInUp 0.3s ease both;
}

/* ── Buscador premium ────────────────────────────────────────── */
.page-informes .ic-buscar-dd .Select-control {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(201, 148, 0, 0.55) !important;
  color: white !important;
  border-radius: 8px !important;
  min-height: 36px !important;
}
.page-informes .ic-buscar-dd .Select-placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px;
}
.page-informes .ic-buscar-dd .Select-value-label {
  color: white !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.page-informes .ic-buscar-dd .Select-arrow {
  border-top-color: rgba(201, 148, 0, 0.70) !important;
}
.page-informes .ic-buscar-dd .Select-menu-outer {
  background: #fff !important;
  border: 1px solid rgba(0, 72, 154, 0.20) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 50, 112, 0.16) !important;
  z-index: 9999 !important;
}
.page-informes .ic-buscar-dd .Select-option {
  font-size: 11px !important;
  color: #1a1a2e !important;
  padding: 8px 12px !important;
  transition: background 0.10s;
}
.page-informes .ic-buscar-dd .Select-option.is-focused {
  background: #EEF4FF !important;
  color: #00489A !important;
}

/* ── Sugerencias chips hover ─────────────────────────────────── */
.page-informes #ic-buscar-sugerencias button:hover {
  box-shadow: 0 3px 10px rgba(0, 50, 112, 0.14) !important;
  transform: translateY(-1px);
  transition: all 0.15s ease;
}

/* ── Cards del expediente en búsqueda ──────────────────────────  */
.page-informes .pp-readonly-card:hover {
  box-shadow: 0 6px 22px rgba(0, 50, 112, 0.11) !important;
  border-color: rgba(201, 148, 0, 0.45) !important;
  transition: all 0.18s ease;
}

/* ── Timeline de veredictos ─────────────────────────────────── */
.page-informes .ic-timeline-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 72, 154, 0.25) transparent;
}
.page-informes .ic-timeline-scroll::-webkit-scrollbar {
  width: 4px;
}
.page-informes .ic-timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 72, 154, 0.25);
  border-radius: 4px;
}

/* ── Panel de control cards hover ───────────────────────────── */
.page-informes #ic-panel-dashboard-inner > div > div {
  transition: box-shadow 0.20s ease, transform 0.20s ease;
}

/* -- Shortlist: celda jugador seleccionable premium -- */
.page-informes .ic-shortlist-row {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.page-informes .ic-shortlist-player-cell {
  border-radius: 8px;
  border: none;
  outline: none;
  box-shadow: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.page-informes .ic-shortlist-row:hover {
  border-color: rgba(201, 148, 0, 0.72) !important;
  box-shadow: 0 8px 20px rgba(0, 50, 112, 0.10), 0 0 0 1px rgba(201, 148, 0, 0.38);
}
.page-informes .ic-shortlist-row:hover .ic-shortlist-player-cell {
  background-color: transparent;
  transform: none;
}
.page-informes .ic-shortlist-player-cell:hover {
  cursor: pointer;
}
.page-informes .ic-shortlist-row-btn:focus,
.page-informes .ic-shortlist-row-btn:focus-visible,
.page-informes .ic-shortlist-row-btn:active {
  border-color: rgba(201, 148, 0, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(201, 148, 0, 0.24), 0 8px 20px rgba(0, 50, 112, 0.12) !important;
  outline: none !important;
}
.page-informes .ic-shortlist-row-btn:focus .ic-shortlist-player-cell,
.page-informes .ic-shortlist-row-btn:focus-visible .ic-shortlist-player-cell,
.page-informes .ic-shortlist-row-btn:active .ic-shortlist-player-cell {
  border: none !important;
  background-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* -- Últimos movimientos: filas clicables premium -- */
.page-informes .ic-mov-row {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.page-informes .ic-mov-row:hover {
  border-color: rgba(201, 148, 0, 0.60) !important;
  box-shadow: 0 8px 18px rgba(0, 50, 112, 0.10), 0 0 0 1px rgba(201, 148, 0, 0.28);
}
.page-informes .ic-mov-row-btn:focus,
.page-informes .ic-mov-row-btn:focus-visible,
.page-informes .ic-mov-row-btn:active {
  outline: none !important;
  border-color: rgba(201, 148, 0, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(201, 148, 0, 0.22), 0 8px 20px rgba(0, 50, 112, 0.12) !important;
}

/* -- Cards del dashboard colapsables premium -- */
.page-informes details.ic-dashboard-card-shell > summary {
  list-style: none;
}
.page-informes details.ic-dashboard-card-shell > summary::-webkit-details-marker {
  display: none;
}
.page-informes .ic-dashboard-card-summary {
  user-select: none;
}
.page-informes .ic-dashboard-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.24);
  background: rgba(255,255,255,0.88);
  color: #5f6f86;
  box-shadow: 0 1px 2px rgba(0, 21, 64, 0.04), inset 0 1px 0 rgba(255,255,255,0.96);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
}
.page-informes .ic-dashboard-card-toggle span {
  margin-left: 0 !important;
}
.page-informes details.ic-dashboard-card-shell:hover .ic-dashboard-card-toggle {
  border-color: rgba(0,72,154,0.24);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 10px rgba(0, 21, 64, 0.06), 0 0 0 1px rgba(0,72,154,0.05);
}
.page-informes .ic-dashboard-card-toggle img,
.page-informes .ic-dashboard-card-toggle svg {
  display: block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.page-informes details.ic-dashboard-card-shell[open] .ic-dashboard-card-toggle img,
.page-informes details.ic-dashboard-card-shell[open] .ic-dashboard-card-toggle svg {
  transform: rotate(0deg);
}
.page-informes details.ic-dashboard-card-shell:not([open]) .ic-dashboard-card-toggle img,
.page-informes details.ic-dashboard-card-shell:not([open]) .ic-dashboard-card-toggle svg {
  transform: rotate(180deg);
}
.page-informes details.ic-dashboard-card-shell[open] .ic-dashboard-card-toggle {
  border-color: rgba(148,163,184,0.20);
}
.page-informes details.ic-dashboard-card-shell:not([open]) .ic-dashboard-card-toggle {
  border-color: rgba(148,163,184,0.26);
  background: rgba(248,250,252,0.96);
}
.page-informes .ic-dashboard-card-body {
  margin-top: 0;
}

/* -- Actividad por ojeador: toggle premium y cards hover -- */
.page-informes details.ic-ojeador-collapse > summary {
  display: inline-flex;
  align-items: center;
}
.page-informes .ic-ojeador-collapse-summary {
  user-select: none;
}
.page-informes details.ic-ojeador-collapse:hover .ic-dashboard-card-toggle {
  border-color: rgba(201, 168, 76, 0.58) !important;
  background: linear-gradient(180deg,#fffdfa 0%,#eef5ff 100%) !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(201,168,76,0.14) inset !important;
}
.page-informes .ic-ojeador-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.page-informes .ic-ojeador-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.54) !important;
  box-shadow: 0 14px 28px rgba(0, 50, 112, 0.12), 0 0 0 1px rgba(201, 168, 76, 0.18) inset !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(247,251,255,0.98) 100%) !important;
}
.page-informes .ic-ojeador-card:focus,
.page-informes .ic-ojeador-card:focus-visible,
.page-informes .ic-ojeador-card:active {
  outline: none !important;
  transform: translateY(-1px);
  border-color: rgba(201, 168, 76, 0.62) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.18), 0 14px 28px rgba(0, 50, 112, 0.12) !important;
}

/* ── Botones de pie de tabla ─────────────────────────────────── */
.page-informes .ic-table-footer-hint {
  transition: border-color 0.18s;
}
.page-informes .ic-table-footer-hint:hover {
  border-left-color: #C39400;
}

/* ── Animación de entrada ────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-informes #ic-panel-jugador,
.page-informes #ic-panel-partido,
.page-informes #ic-panel-buscar,
.page-informes #ic-panel-dashboard {
  animation: fadeInUp 0.22s ease both;
}

/* ── Header de búsqueda border glow ─────────────────────────── */
.page-informes #ic-panel-buscar > div:first-child {
  transition: box-shadow 0.25s ease;
}
.page-informes #ic-panel-buscar > div:first-child:focus-within {
  box-shadow: 0 6px 32px rgba(201, 148, 0, 0.28) !important;
}

/* ── Veredicto pills en búsqueda ─────────────────────────────── */
.page-informes .ic-v-pill {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.page-informes .ic-v-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* -- DataTable paginación premium -- */
.page-informes .previous-next-container,
.page-informes .page-number {
  align-items: center !important;
}
.page-informes .previous-next-container button,
.page-informes .page-number button {
  border: 1px solid rgba(0, 72, 154, 0.16) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  color: #00489A !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}
.page-informes .previous-next-container button:hover,
.page-informes .page-number button:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 76, 0.44) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}
.page-informes input.current-page {
  border: 1px solid rgba(0, 72, 154, 0.14) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* -- Alertas ejecutivas premium -- */
.page-informes .ic-alert-card,
.ic-shared-modal-premium .ic-alert-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-informes .ic-alert-card::before,
.ic-shared-modal-premium .ic-alert-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: rgba(0, 72, 154, 0.16);
}

.page-informes .ic-alert-card:hover,
.ic-shared-modal-premium .ic-alert-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 50, 112, 0.10);
}

.page-informes .ic-alert-card--critico::before,
.ic-shared-modal-premium .ic-alert-card--critico::before {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

.page-informes .ic-alert-card--alto::before,
.ic-shared-modal-premium .ic-alert-card--alto::before {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
}

.page-informes .ic-alert-card--medio::before,
.ic-shared-modal-premium .ic-alert-card--medio::before {
  background: linear-gradient(180deg, #eab308 0%, #a16207 100%);
}

.page-informes .ic-alert-card--ok::before,
.ic-shared-modal-premium .ic-alert-card--ok::before {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.page-informes .ic-alert-card .ic-compare-now-btn,
.ic-shared-modal-premium .ic-alert-card .ic-compare-now-btn {
  min-height: 26px;
}

/* -- Modal cartera SEGUIR -- */
.page-informes .ic-seguir-summary-grid,
.ic-shared-modal-premium .ic-seguir-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 158px));
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
  justify-content: center;
}

.page-informes .ic-seguir-summary-chip,
.ic-shared-modal-premium .ic-seguir-summary-chip {
  border: 1px solid rgba(0, 72, 154, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 6px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
}

.page-informes .ic-seguir-summary-chip--danger,
.ic-shared-modal-premium .ic-seguir-summary-chip--danger {
  border-color: rgba(185, 28, 28, 0.18);
  background: linear-gradient(180deg, #fff7f7 0%, #fff0f0 100%);
}

.page-informes .ic-seguir-summary-chip--warning,
.ic-shared-modal-premium .ic-seguir-summary-chip--warning {
  border-color: rgba(180, 83, 9, 0.18);
  background: linear-gradient(180deg, #fffaf1 0%, #fff5e6 100%);
}

.page-informes .ic-seguir-summary-chip--info,
.ic-shared-modal-premium .ic-seguir-summary-chip--info {
  border-color: rgba(0, 72, 154, 0.18);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.page-informes .ic-seguir-cartera-wrap,
.ic-shared-modal-premium .ic-seguir-cartera-wrap {
  width: auto !important;
  max-width: none !important;
  margin-top: 6px;
  margin-bottom: 4px;
  margin-left: 0 !important;
  margin-right: 12px !important;
  max-height: min(560px, calc(100vh - 220px)) !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.page-informes .ic-seguir-cartera-table tbody tr,
.ic-shared-modal-premium .ic-seguir-cartera-table tbody tr {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.page-informes .ic-seguir-cartera-table tbody tr:hover,
.ic-shared-modal-premium .ic-seguir-cartera-table tbody tr:hover {
  background: rgba(248, 251, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 72, 154, 0.08);
}

.page-informes .ic-seguir-modal-off-btn,
.ic-shared-modal-premium .ic-seguir-modal-off-btn {
  border: 1px solid rgba(201, 148, 0, 0.34) !important;
  background: linear-gradient(180deg, #fffaf0 0%, #fff1cb 100%) !important;
  color: #8a5a00 !important;
  box-shadow: 0 1px 4px rgba(138, 90, 0, 0.08) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.page-informes .ic-seguir-modal-off-btn:hover,
.ic-shared-modal-premium .ic-seguir-modal-off-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.995);
  box-shadow: 0 5px 14px rgba(138, 90, 0, 0.14) !important;
}

@media (max-width: 980px) {
  .page-informes .ic-seguir-summary-grid,
  .ic-shared-modal-premium .ic-seguir-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 158px));
    justify-content: center;
  }
}
