/* ============================================================
   DashboardAnimations.css — pTalent Dashboard "Hacerlo Vivir"
   ============================================================ */

/* ---- Hide content-header on Dashboard page ---- */
#s-DashboardPage .content-header {
  display: none;
}

/* ---- Keyframes ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

@keyframes confetti-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3) rotate(-5deg); }
  60%  { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes countUp {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

@keyframes slideIndicator {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Staggered card entry ---- */
.dash-card-animated {
  opacity: 0;
  animation: fadeSlideUp 0.5s ease-out forwards;
  margin-bottom: 16px;
}

.dash-stagger-1  { animation-delay: 100ms; }
.dash-stagger-2  { animation-delay: 200ms; }
.dash-stagger-3  { animation-delay: 300ms; }
.dash-stagger-4  { animation-delay: 400ms; }
.dash-stagger-5  { animation-delay: 500ms; }
.dash-stagger-6  { animation-delay: 600ms; }
.dash-stagger-7  { animation-delay: 700ms; }
.dash-stagger-8  { animation-delay: 800ms; }
.dash-stagger-9  { animation-delay: 900ms; }
.dash-stagger-10 { animation-delay: 1000ms; }
.dash-stagger-11 { animation-delay: 1100ms; }
.dash-stagger-12 { animation-delay: 1200ms; }

/* ---- Card hover lift ---- */
.dash-card-animated .card.s-dashboard-card-sm {
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
  border: none;
}
.dash-card-animated:hover .card.s-dashboard-card-sm {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

/* ---- Dashboard card icon color (subtle gray) ---- */
.dash-card-animated .card.s-dashboard-card-sm .icon {
  color: rgba(0,0,0,0.10) !important;
}
.dash-card-animated:hover .card.s-dashboard-card-sm .icon {
  color: rgba(0,0,0,0.15) !important;
}

/* Card shadow base */
.dash-card-animated .card.s-dashboard-card-sm {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* Card text sizing */
.dash-card-animated .card.s-dashboard-card-sm h3 {
  font-size: 26px;
}
.dash-card-animated .card.s-dashboard-card-sm p {
  font-size: 12px;
}

/* ---- Skeleton loading ---- */
.dash-skeleton {
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.dash-skeleton-card {
  height: 120px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ---- Pulse badge for pending items ---- */
.dash-badge-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  animation: pulse-badge 2s infinite ease-in-out;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- Tab crossfade ---- */
.dash-tab-crossfade .tab-pane {
  transition: opacity 200ms ease-in-out;
}
.dash-tab-crossfade .tab-pane:not(.show) {
  opacity: 0;
}
.dash-tab-crossfade .tab-pane.show {
  opacity: 1;
}

/* ---- Tab sliding indicator ---- */
.dash-tabs-wrapper {
  position: relative;
}
.dash-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--s-sidebar-bg, #1F487E);
  border-radius: 3px 3px 0 0;
  transition: left 300ms ease, width 300ms ease;
  z-index: 2;
}

/* Tab icons */
.dash-tab-icon {
  margin-right: 6px;
  font-size: 14px;
  opacity: 0.7;
}
.nav-link.active .dash-tab-icon {
  opacity: 1;
}

/* Tab badge */
.dash-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #6c757d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.nav-link.active .dash-tab-badge {
  background: var(--s-sidebar-bg, #1F487E);
}

/* Tab nav link text sizing */
.dash-tabs-wrapper .nav-link {
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
}

/* ---- Status chips ---- */
.dash-status-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.dash-status-chip--pendiente {
  background: #fff3cd;
  color: #856404;
}
.dash-status-chip--aprobada {
  background: #d4edda;
  color: #155724;
}
.dash-status-chip--rechazada {
  background: #f8d7da;
  color: #721c24;
}
.dash-status-chip--cancelada {
  background: #e2e3e5;
  color: #383d41;
}
.dash-status-chip--default {
  background: #e2e3e5;
  color: #383d41;
}
.dash-status-chip--finalizada {
  background: #d4edda;
  color: #155724;
}
.dash-status-chip--en-curso {
  background: #cce5ff;
  color: #004085;
}

/* ---- Avatar circle ---- */
.dash-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.dash-avatar--color-0 { background: #4e79a7; }
.dash-avatar--color-1 { background: #f28e2b; }
.dash-avatar--color-2 { background: #e15759; }
.dash-avatar--color-3 { background: #76b7b2; }
.dash-avatar--color-4 { background: #59a14f; }

/* ---- Calendar block (feriados) ---- */
.dash-calendar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 56px;
  border-radius: 10px;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border: 1px solid var(--bs-border-color, #dee2e6);
  flex-shrink: 0;
}
.dash-calendar-block__month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #dc3545;
  line-height: 1.2;
}
.dash-calendar-block__day {
  font-size: 22px;
  font-weight: 700;
  color: var(--bs-body-color, #212529);
  line-height: 1.1;
}

/* ---- Empty state ---- */
.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--bs-secondary-color, #6c757d);
  text-align: center;
}
.dash-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.dash-empty-state__text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ---- Timeline (solicitudes) ---- */
.dash-timeline {
  position: relative;
  padding-left: 24px;
}
.dash-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}
.dash-timeline-item {
  position: relative;
  padding: 10px 0 10px 16px;
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out forwards;
}
.dash-timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c757d;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
}
.dash-timeline-item--pendiente::before { background: #ffc107; box-shadow: 0 0 0 2px #fff3cd; }
.dash-timeline-item--aprobada::before  { background: #28a745; box-shadow: 0 0 0 2px #d4edda; }
.dash-timeline-item--rechazada::before { background: #dc3545; box-shadow: 0 0 0 2px #f8d7da; }
.dash-timeline-item--cancelada::before { background: #6c757d; box-shadow: 0 0 0 2px #e2e3e5; }

.dash-timeline-item__card {
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 8px;
  padding: 12px 16px;
  transition: box-shadow 200ms ease;
  cursor: default;
}
.dash-timeline-item__card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dash-timeline-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dash-timeline-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
}
.dash-timeline-item__dates {
  font-size: 0.82rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 4px;
}
.dash-timeline-item__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---- Countdown badge ---- */
.dash-countdown {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f4fd;
  color: #0d6efd;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Today highlight ---- */
.dash-today-highlight {
  background: transparent !important;
  border-color: transparent !important;
}

/* ---- Confetti pop for birthday today ---- */
.dash-confetti-pop {
  display: inline-block;
  animation: confetti-pop 0.6s ease-out;
}

/* ---- Mini-card (ausentes) ---- */
.dash-minicard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: box-shadow 200ms ease;
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out forwards;
}
.dash-minicard:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dash-minicard__info {
  flex: 1;
  min-width: 0;
}
.dash-minicard__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-minicard__detail {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 2px;
}
.dash-minicard__badge {
  flex-shrink: 0;
}

/* ---- Feriado item ---- */
.dash-feriado-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bs-border-color, #f1f3f5);
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out forwards;
}
.dash-feriado-item:last-child {
  border-bottom: none;
}
.dash-feriado-item__info {
  flex: 1;
}
.dash-feriado-item__desc {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
}
.dash-feriado-item__day {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}
.dash-proximo-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: #1F487E;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* ---- Section divider (cumpleanos grouping) ---- */
.dash-section-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color, #6c757d);
  padding: 8px 0 4px;
  margin-top: 8px;
  border-bottom: 1px solid var(--bs-border-color, #e9ecef);
}
.dash-section-header:first-child {
  margin-top: 0;
}

/* ---- Cumpleanios/aniversario item ---- */
.dash-birthday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out forwards;
}
.dash-birthday-item__info {
  flex: 1;
  min-width: 0;
}
.dash-birthday-item__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
}
.dash-birthday-item__detail {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}
.dash-birthday-today {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  animation: pulse-badge 2s infinite ease-in-out;
}

/* ---- Capacitaciones status chip in header ---- */
.dash-cap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* ---- Capacitaciones filter toggle ---- */
.dash-cap-filter {
  display: inline-flex;
  gap: 0;
  padding: 0 12px 10px;
}
.dash-cap-filter-pill {
  background: #f1f3f5;
  border-radius: 20px;
  padding: 2px;
  display: inline-flex;
  gap: 2px;
}
.dash-cap-filter-btn {
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 18px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
}
.dash-cap-filter-btn:hover {
  color: #495057;
  background: rgba(255,255,255,0.6);
}
.dash-cap-filter-btn--active {
  background: var(--s-sidebar-bg, #1F487E);
  color: #fff;
  box-shadow: 0 1px 4px rgba(31,72,126,0.25);
}
.dash-cap-filter-btn--active:hover {
  background: var(--s-sidebar-bg, #1F487E);
  color: #fff;
}

/* ---- Capacitaciones group ---- */
.dash-cap-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--s-sidebar-bg, #1F487E);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  line-height: 1;
}
/* Group accordion styling */
.dash-cap-groups .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px !important;
  margin-bottom: 6px;
  overflow: hidden;
}
.dash-cap-groups .accordion-item:last-child {
  margin-bottom: 0;
}
.dash-cap-groups > .accordion-item > .accordion-header > .accordion-button {
  background: #f8f9fa;
  font-size: 0.82rem;
  padding: 10px 14px;
}
.dash-cap-groups > .accordion-item > .accordion-header > .accordion-button:not(.collapsed) {
  background: #edf2f7;
  box-shadow: none;
}
/* Inner item styling */
.dash-cap-inner-item {
  border-bottom: 1px solid #f1f3f5;
}
.dash-cap-inner-item:last-child {
  border-bottom: none;
}
.dash-cap-inner-item .accordion-button {
  padding: 8px 14px;
  font-size: 0.82rem;
  background: #fff;
}
.dash-cap-inner-item .accordion-button:not(.collapsed) {
  background: #fafbfc;
  box-shadow: none;
}
.dash-cap-inner-item .accordion-body {
  padding: 8px 14px 12px;
  font-size: 0.85rem;
  background: #fafbfc;
}

/* ---- Progress bar animated (campains) ---- */
.dash-progress-animated .progress-bar {
  transition: width 0.8s ease-out;
}
.dash-progress-animated .progress-bar[data-animate] {
  width: 0% !important;
}
.dash-progress-complete {
  color: #28a745;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Campain card wrapper ---- */
.dash-campain-item {
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #e9ecef);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: box-shadow 200ms;
}
.dash-campain-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dash-campain-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ---- Report cards enhancements (customer-card table) ---- */
.card-container .card {
  transition: transform 200ms ease, box-shadow 200ms ease;
  border-radius: 10px;
  overflow: hidden;
}
.card-container .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.customer-card td.img img {
  border-radius: 8px;
  transition: transform 300ms ease;
}
.card-container .card:hover .customer-card td.img img {
  transform: scale(1.04);
}
.customer-card .ColNameLink b {
  font-size: 0.95rem;
  color: #1F487E;
}
.customer-card .ColNameLink:hover b {
  color: #14325a;
}
.customer-card .contact,
.customer-card .country {
  font-size: 0.82rem;
  color: #6c757d;
}

/* ---- Updated ago footer ---- */
.dash-updated-ago {
  text-align: center;
  font-size: 0.78rem;
  color: #adb5bd;
  padding: 12px 0 4px;
}

/* ---- Trend indicator (LinA) ---- */
.dash-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}
.dash-trend--up { color: #28a745; }
.dash-trend--down { color: #dc3545; }
.dash-trend--neutral { color: #6c757d; }

/* ============================================================
   V2 — Dashboard Visual Overhaul
   ============================================================ */

/* ---- Welcome Header ---- */
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-welcome {
  background: linear-gradient(135deg, #1F487E 0%, #2d6cb4 100%);
  color: #fff;
  border-radius: 10px;
  padding: 10px 22px;
  margin-bottom: 16px;
  animation: welcomeFadeIn 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-welcome__greeting {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.dash-welcome__date {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0;
}
.dash-welcome__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  font-size: 0.85rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 200ms, border-color 200ms;
  vertical-align: middle;
}
.dash-welcome__help:hover {
  opacity: 1;
  border-color: #fff;
}
.dash-welcome__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-welcome__icon {
  font-size: 2.5rem;
  opacity: 0.25;
}

/* ---- Card V2 (accent border, new typography) ---- */
.dash-card-v2 {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dash-card-v2::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--dash-accent, #1F487E);
  border-radius: 10px 0 0 10px;
}
.dash-card-animated:hover .dash-card-v2 {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.dash-card-v2 .card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 14px 22px;
  flex: 1;
}
.dash-card-v2__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dash-accent-bg, rgba(31,72,126,0.1));
  flex-shrink: 0;
}
.dash-card-v2__icon-wrap i {
  font-size: 20px;
  color: var(--dash-accent, #1F487E);
}
.dash-card-v2__content {
  flex: 1;
  min-width: 0;
}
.dash-card-v2__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #212529;
  margin: 0;
}
.dash-card-v2__label {
  font-size: 0.82rem;
  color: #6c757d;
  margin: 2px 0 0 0;
  line-height: 1.3;
}
.dash-card-v2__subtitle {
  font-size: 0.78rem;
  color: #adb5bd;
  margin: 2px 0 0 0;
}
.dash-card-v2 .card-footer {
  background: transparent;
  border-top: 1px solid #e9ecef;
  padding: 8px 18px 8px 22px;
  font-size: 0.82rem;
  color: var(--dash-accent, #1F487E);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 150ms;
}
.dash-card-v2 .card-footer:hover {
  background: #f8f9fa;
}

/* ---- Progress Ring ---- */
@keyframes dashRingFill {
  from { stroke-dashoffset: var(--dash-ring-circumference); }
}
.dash-progress-ring {
  flex-shrink: 0;
}
.dash-progress-ring__bg {
  fill: none;
  stroke: #e9ecef;
  stroke-width: 4;
}
.dash-progress-ring__fg {
  fill: none;
  stroke: var(--dash-accent, #1F487E);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.8s ease-out;
  animation: dashRingFill 0.8s ease-out;
}
.dash-progress-ring__text {
  font-size: 11px;
  font-weight: 700;
  fill: #212529;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Pulse badge on v2 cards */
.dash-card-v2 .dash-badge-pulse {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ---- Quick Actions Bar ---- */
.dash-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 0 4px;
}
.dash-quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-card-bg, #fff);
  color: var(--bs-body-color, #212529);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
}
.dash-quick-action-btn:hover {
  border-color: var(--s-sidebar-bg, #1F487E);
  color: var(--s-sidebar-bg, #1F487E);
  box-shadow: 0 2px 8px rgba(31,72,126,0.12);
  transform: translateY(-1px);
}
.dash-quick-action-btn i {
  font-size: 14px;
  opacity: 0.7;
}

/* ---- Tab Card Style ---- */
.dash-tabs-card-wrapper {
  position: relative;
  margin-bottom: 4px;
}
.dash-tabs-card-wrapper .nav-tabs {
  border-bottom: none;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 4px;
}
.dash-tabs-card-wrapper .nav-tabs::-webkit-scrollbar {
  display: none;
}
.dash-tab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 8px;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-card-bg, #fff);
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 200ms ease;
  min-width: 90px;
  text-decoration: none;
}
.dash-tab-card:hover {
  border-color: var(--s-sidebar-bg, #1F487E);
  color: var(--s-sidebar-bg, #1F487E);
  box-shadow: 0 2px 8px rgba(31,72,126,0.08);
}
.dash-tab-card.active {
  background: var(--s-sidebar-bg, #1F487E);
  border-color: var(--s-sidebar-bg, #1F487E);
  color: #fff;
}
.dash-tab-card__icon {
  font-size: 18px;
  opacity: 0.7;
}
.dash-tab-card.active .dash-tab-card__icon {
  opacity: 1;
}
.dash-tab-card .dash-tab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  border: 1px solid rgba(0,0,0,0.15);
  height: 20px;
  font-size: 10px;
  border-radius: 10px;
  background: #dc3545;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}
.dash-tab-card.active .dash-tab-badge {
  background: #fff;
  color: var(--s-sidebar-bg, #1F487E);
}

/* ---- Enhanced Empty State ---- */
.dash-empty-state-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.dash-empty-state-v2__illustration {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.35;
}
.dash-empty-state-v2__illustration svg {
  width: 100%;
  height: 100%;
}
.dash-empty-state-v2__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
  margin-bottom: 6px;
}
.dash-empty-state-v2__text {
  font-size: 0.88rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 12px;
  max-width: 280px;
}

/* ---- Fade out / Fade in for refresh ---- */
@keyframes dashFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dash-fade-out {
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.dash-fade-in {
  animation: dashFadeIn 300ms ease-in;
}

/* ============================================================
   Consent Dialog — Política de consentimiento (login)
   ============================================================ */

@keyframes consentFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Modal overrides ---- */
.s-ConsentimientoDialog .modal-header {
  display: none;
}
.s-ConsentimientoDialog .modal-body {
  padding: 0;
}
.s-ConsentimientoDialog .modal-footer {
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  background: #fff;
}
.s-ConsentimientoDialog .modal-footer .btn,
.s-ConsentimientoDialog .modal-footer button {
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: .875rem !important;
  line-height: 1.5 !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.375rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-success:hover {
  background-color: #157347 !important;
  border-color: #146c43 !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-danger:hover {
  background-color: #bb2d3b !important;
  border-color: #b02a37 !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}
.s-ConsentimientoDialog .modal-footer .btn.btn-secondary:hover {
  background-color: #5c636a !important;
  border-color: #565e64 !important;
}
.s-ConsentimientoDialog .modal-content {
  border-radius: 12px;
  overflow: hidden;
  animation: consentFadeIn 0.4s ease-out;
  background: #fff;
  color: #212529;
}

.s-ConsentimientoDialog .alert {
  color: #055160;
  background: #cff4fc;
  border-color: #b6effb;
}

/* ---- Header ---- */
.consent-header {
  background: linear-gradient(135deg, #1F487E 0%, #2d6cb4 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.consent-header__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
}
.consent-header__close:hover {
  opacity: 1;
}
.consent-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 17px;
  flex-shrink: 0;
}
.consent-header__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}
.consent-header__version {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Stepper ---- */
.consent-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px 4px;
  font-size: 0.8rem;
  color: #6c757d;
  background: #fff;
}
.consent-stepper__dots {
  display: flex;
  gap: 6px;
  margin-left: 10px;
}
.consent-stepper__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dee2e6;
  transition: all 0.3s ease;
}
.consent-stepper__dot--completed {
  background: #28a745;
}
.consent-stepper__dot--active {
  background: #1F487E;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(31,72,126,0.2);
}

/* ---- Document area ---- */
.consent-document-area {
  max-height: 320px;
  overflow-y: auto;
  padding: 16px 20px;
  margin: 12px 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #212529;
}
.consent-document-area::-webkit-scrollbar {
  width: 8px;
}
.consent-document-area::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 4px;
}
.consent-document-area::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 4px;
}
.consent-document-area::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

/* ---- Progress bar (scroll reading) ---- */
.consent-progress-wrap {
  padding: 0 20px;
  margin-bottom: 4px;
}
.consent-progress-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}
.consent-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1F487E, #2d6cb4);
  border-radius: 2px;
  transition: width 0.15s ease-out;
}
.consent-progress-bar__fill--complete {
  background: linear-gradient(90deg, #28a745, #34ce57);
}

/* ---- Rejection badge ---- */
.consent-rejection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 20px;
  padding: 8px 14px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #856404;
}
.consent-rejection-badge i {
  font-size: 14px;
}

/* ---- Divider ---- */
.consent-divider {
  margin: 12px 20px;
  border: none;
  border-top: 1px solid #dee2e6;
}

/* ---- Observations ---- */
.consent-observations {
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
}
.consent-observations label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057 !important;
}
.consent-observations .form-control {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #212529;
  border-color: #ced4da;
}
.consent-observations__counter {
  text-align: right;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 600;
}
.consent-observations__counter--met {
  color: #28a745;
}
.consent-observations__counter--unmet {
  color: #dc3545;
}

