:root {
  --brand-red: #d61f45;
  --brand-red-strong: #ff4d68;
  --brand-red-soft: rgba(214, 31, 69, 0.14);
  --brand-navy: #0f172a;
  --brand-ink: #111827;
  --brand-surface: rgba(255, 255, 255, 0.92);
  --brand-surface-strong: rgba(255, 255, 255, 0.98);
  --brand-border: rgba(148, 163, 184, 0.22);
  --brand-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
}

body.auth-shell {
  min-height: 100vh;
  color: #e2e8f0;
  background:
    radial-gradient(circle at top left, rgba(214, 31, 69, 0.42), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(6, 11, 25, 0.92), rgba(12, 18, 35, 0.78)),
    url("../images/fondo.jpg") center center / cover fixed;
}

body.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 11, 25, 0.64), rgba(12, 18, 35, 0.28)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
}

.auth-shell__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-shell__grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}

.auth-shell__hero,
.auth-shell__card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(18px);
}

.auth-shell__hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(8, 15, 30, 0.78), rgba(10, 15, 29, 0.6)),
    linear-gradient(135deg, rgba(214, 31, 69, 0.16), transparent 56%);
}

.auth-shell__hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -26% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  filter: blur(8px);
}

.auth-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-shell__title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff;
}

.auth-shell__lead {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.84);
}

.auth-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.auth-shell__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.92rem;
}

.auth-shell__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.auth-shell__stat {
  border-radius: 22px;
  padding: 1rem 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-shell__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.auth-shell__stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.76);
}

.auth-shell__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.auth-shell__feature {
  min-height: 100%;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-shell__feature h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.auth-shell__feature p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-shell__card {
  border-radius: 32px;
  overflow: hidden;
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.auth-shell__card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem 1.6rem 0;
}

.auth-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-shell__brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.auth-shell__brand-copy {
  min-width: 0;
}

.auth-shell__brand-copy small {
  display: block;
  color: #6b7280;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.auth-shell__brand-copy h2 {
  margin: 0.2rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.auth-shell__lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.auth-shell__lang a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  color: #475569;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.auth-shell__lang a:hover,
.auth-shell__lang a.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.auth-shell__card-body {
  padding: 1.6rem;
}

.auth-shell__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-shell__card-body h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--brand-navy);
}

.auth-shell__subtitle {
  margin: 0.75rem 0 1.4rem;
  color: #64748b;
  line-height: 1.6;
}

.auth-shell .form-control {
  min-height: 54px;
  border-radius: 16px;
  border-color: #dbe3ef;
  box-shadow: none;
}

.auth-shell .form-control:focus {
  border-color: rgba(214, 31, 69, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(214, 31, 69, 0.12);
}

.auth-shell .input-group-text {
  border-radius: 16px;
  background: #f8fafc;
  border-color: #dbe3ef;
  color: #94a3b8;
}

.auth-shell .btn-brand {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong));
  box-shadow: 0 18px 30px rgba(214, 31, 69, 0.24);
  color: #fff;
  font-weight: 700;
}

.auth-shell .btn-brand:hover,
.auth-shell .btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, #c91b3e, #ff5b6d);
}

.auth-shell__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #fff5f7;
  color: #7f1d1d;
  font-size: 0.92rem;
}

.auth-shell__note i {
  margin-top: 0.15rem;
  color: var(--brand-red);
}

@media (max-width: 991.98px) {
  .auth-shell__grid {
    grid-template-columns: 1fr;
  }

  .auth-shell__hero {
    order: 2;
  }

  .auth-shell__card {
    order: 1;
  }

  .auth-shell__stats,
  .auth-shell__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .auth-shell__inner {
    padding: 1rem;
  }

  .auth-shell__hero,
  .auth-shell__card {
    border-radius: 24px;
  }

  .auth-shell__card-top,
  .auth-shell__card-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

body.comp-page {
  background:
    radial-gradient(circle at top left, rgba(214, 31, 69, 0.16), transparent 32%),
    linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
}

body.comp-page .content-wrapper {
  background: transparent;
}

body.comp-page .content-header {
  padding: 1.2rem 0 0;
}

body.comp-page .comp-hero > .container-fluid,
body.comp-page .comp-content > .container-fluid,
body.comp-page .comp-footer {
  width: calc(100% - 3rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body.comp-page .comp-content {
  padding-top: 1.15rem;
  position: relative;
  z-index: 1;
}

body.comp-page.comp-no-sidebar .main-sidebar,
body.comp-page.comp-no-sidebar .main-header {
  display: none !important;
}

body.comp-page.comp-no-sidebar .content-wrapper,
body.comp-page.comp-no-sidebar .content-wrapper {
  margin-left: 0 !important;
}

body.comp-page.comp-no-sidebar .wrapper {
  min-height: 100vh;
}

.comp-hero {
  padding-bottom: 0;
  position: relative;
  z-index: 30;
}

.comp-hero__surface {
  position: relative;
  overflow: visible;
  z-index: 30;
  border-radius: 32px;
  padding: 1.8rem 1.9rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(9, 14, 28, 0.92), rgba(25, 31, 48, 0.84)),
    radial-gradient(circle at right top, rgba(214, 31, 69, 0.32), transparent 40%);
  box-shadow: var(--brand-shadow);
}

.comp-hero__surface::before,
.comp-hero__surface::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.comp-hero__surface::before {
  inset: -2rem auto auto -3rem;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 70%);
}

.comp-hero__surface::after {
  inset: auto -2rem -3rem auto;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(255, 77, 104, 0.12), transparent 68%);
}

.comp-hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.comp-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.comp-hero__brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.comp-hero__brand-copy span {
  display: block;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-hero__brand-copy strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.comp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-hero__title {
  margin: 0.9rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.comp-hero__lead {
  max-width: 52rem;
  margin: 0.95rem 0 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 1rem;
  line-height: 1.7;
}

.comp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.comp-hero__actions .btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

.comp-hero__menu {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 35;
}

.comp-hero__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.comp-hero__menu-toggle,
.comp-hero__menu-toggle:hover,
.comp-hero__menu-toggle:focus,
.comp-hero__menu-toggle:active {
  color: #f8fafc !important;
}

.comp-hero__menu-toggle:hover,
.comp-hero__menu-toggle:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.comp-hero__menu-toggle i {
  margin: 0;
  color: #f8fafc !important;
}

.comp-hero__menu-toggle::after {
  display: none;
}

.comp-floating-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  min-width: 13.5rem;
  z-index: 2147483000;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.comp-floating-menu.is-open {
  display: block;
}

.comp-floating-menu__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.comp-floating-menu__item:hover,
.comp-floating-menu__item:focus {
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

.comp-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.comp-hero__stat {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-hero__stat-kicker {
  display: block;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comp-hero__stat-value {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.45rem;
  word-break: break-word;
}

.comp-hero__stat-sub {
  display: block;
  margin-top: 0.35rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.88rem;
}

.comp-hero__stat--text .comp-hero__stat-value {
  font-size: 1.05rem;
  line-height: 1.35;
}

.comp-hero__stat--text .comp-hero__stat-sub {
  font-size: 0.82rem;
}

.comp-shell {
  margin-top: 0;
}

.comp-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--brand-surface-strong);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.comp-card__header {
  padding: 1rem 1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96)),
    radial-gradient(circle at top right, rgba(214, 31, 69, 0.05), transparent 34%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.9rem;
}

.comp-card__header-copy {
  min-width: 0;
  max-width: 36rem;
}

.comp-card__header-kicker {
  display: block;
  color: #d61f45;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-card__header-title {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.comp-card__header-lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.comp-tabs {
  gap: 0.55rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.comp-page .nav-pills .nav-link {
  border-radius: 999px;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.62rem 1rem;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.comp-page .nav-pills .nav-link i {
  margin-right: 0.4rem;
}

.comp-page .nav-pills .nav-link:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.comp-page .nav-pills .nav-link.active,
.comp-page .nav-pills .show > .nav-link {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: rgba(214, 31, 69, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.comp-tabs__mobile-menu .dropdown-menu {
  margin-top: 0.45rem;
  min-width: 12rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 0.45rem;
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

.comp-tabs__mobile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  color: #475569;
  font-weight: 600;
}

.comp-tabs__mobile-menu .dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.comp-card__body {
  padding: 1rem;
}

.comp-pane {
  padding: 0.15rem;
}

.comp-calendar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comp-calendar__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    radial-gradient(circle at right top, rgba(214, 31, 69, 0.05), transparent 36%);
}

.comp-calendar__copy {
  min-width: 0;
  max-width: 44rem;
}

.comp-calendar__kicker {
  display: block;
  color: #d61f45;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-calendar__title {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.comp-calendar__lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.comp-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.comp-calendar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.comp-calendar__chip--official {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.18);
}

.comp-calendar__chip--nonofficial {
  color: #166534;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.18);
}

.comp-calendar__chip--hint {
  color: #334155;
}

.comp-calendar__dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.comp-calendar__surface {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.comp-calendar__surface-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

.comp-calendar__surface-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.88rem;
}

.comp-calendar__grid {
  min-height: 760px;
  padding: 0.85rem;
}

.comp-calendar .fc {
  --fc-page-bg-color: transparent;
  --fc-border-color: rgba(148, 163, 184, 0.16);
  color: #0f172a;
}

.comp-calendar .fc .fc-toolbar {
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comp-calendar .fc .fc-toolbar-title {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.comp-calendar .fc .fc-button {
  min-height: 2.95rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.comp-calendar .fc .fc-button-primary {
  background: #fff;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04) !important;
}

.comp-calendar .fc .fc-button-primary:hover,
.comp-calendar .fc .fc-button-primary:focus,
.comp-calendar .fc .fc-button-primary:not(:disabled).fc-button-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(214, 31, 69, 0.18) !important;
}

.comp-calendar .fc .fc-button-primary:disabled {
  opacity: 0.45;
}

.comp-calendar .fc .fc-scrollgrid {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.comp-calendar .fc .fc-scrollgrid-section-header > *,
.comp-calendar .fc .fc-daygrid-body {
  background: #fff;
}

.comp-calendar .fc .fc-col-header-cell-cushion {
  display: inline-flex;
  padding: 0.75rem 0.5rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comp-calendar .fc .fc-daygrid-day-number {
  color: #0f172a;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
}

.comp-calendar .fc .fc-daygrid-day.fc-day-today {
  background: rgba(214, 31, 69, 0.04);
}

.comp-calendar .fc .fc-daygrid-event,
.comp-calendar .fc .fc-timegrid-event {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.comp-fc-event {
  padding: 0.2rem 0.38rem;
}

.comp-fc-event__content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #fff;
}

.comp-fc-event__time {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.comp-fc-event__title {
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 800;
}

.comp-fc-event__meta {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.comp-fc-event--official {
  background: linear-gradient(135deg, #c2185b, #ff4d68);
}

.comp-fc-event--nonofficial {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.comp-calendar .fc .fc-timegrid-slot,
.comp-calendar .fc .fc-timegrid-axis-cushion,
.comp-calendar .fc .fc-timegrid-slot-label {
  color: #64748b;
}

.comp-calendar .fc .fc-timegrid-slot-minor {
  border-top-style: dotted;
}

.comp-dt {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comp-dt__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    radial-gradient(circle at right top, rgba(214, 31, 69, 0.05), transparent 36%);
}

.comp-dt__copy {
  min-width: 0;
  max-width: 42rem;
}

.comp-dt__kicker {
  display: block;
  color: #d61f45;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-dt__title {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.comp-dt__lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.comp-dt__actions {
  display: flex;
  justify-content: flex-end;
}

.comp-dt__table {
  margin-top: 0;
}

.comp-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.comp-list__search,
.comp-list__size {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.comp-list__search {
  flex: 1 1 20rem;
  min-width: 0;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.comp-list__search i {
  color: #94a3b8;
}

.comp-list__search input,
.comp-list__size select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
}

.comp-list__search input {
  flex: 1 1 auto;
  min-width: 0;
}

.comp-list__search input::placeholder {
  color: #94a3b8;
}

.comp-list__size {
  padding: 0.28rem 0.35rem 0.28rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.comp-list__size select {
  min-width: 4.2rem;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  appearance: none;
  text-align: center;
  font-weight: 700;
}

.comp-list__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: #64748b;
  font-size: 0.92rem;
}

.comp-list__summary strong {
  color: #0f172a;
  font-size: 1rem;
}

.comp-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.comp-list__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    radial-gradient(circle at top right, rgba(214, 31, 69, 0.06), transparent 36%);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.comp-list__card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.comp-list__card-head {
  min-width: 0;
}

.comp-list__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.comp-list__card-title {
  margin: 0.7rem 0 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.comp-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.comp-list__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(214, 31, 69, 0.1);
  color: #b61c3d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comp-list__chip--soft {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.comp-list__date-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 0.75rem 0.65rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.comp-list__date-block--empty {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  color: #475569;
  box-shadow: none;
}

.comp-list__date-day {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.comp-list__date-month,
.comp-list__date-year,
.comp-list__date-label {
  display: block;
}

.comp-list__date-month {
  margin-top: 0.22rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.comp-list__date-year {
  margin-top: 0.16rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.76);
}

.comp-list__date-block--empty .comp-list__date-year {
  color: #64748b;
}

.comp-list__date-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.comp-list__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.9rem;
}

.comp-list__description {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.comp-list__description--empty {
  color: #94a3b8;
  font-style: italic;
}

.comp-list__meta-group {
  display: grid;
  gap: 0.65rem;
}

.comp-list__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #334155;
}

.comp-list__meta i {
  margin-top: 0.18rem;
  color: #d61f45;
}

.comp-list__card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  padding-top: 0.1rem;
}

.comp-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.4rem 1.2rem;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  background: rgba(248, 250, 252, 0.85);
  color: #64748b;
  text-align: center;
}

.comp-list__empty strong {
  color: #0f172a;
}

.comp-list__empty p {
  margin: 0;
}

.comp-list__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: rgba(214, 31, 69, 0.08);
  color: #d61f45;
  font-size: 1.25rem;
}

.comp-list__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.comp-list__info {
  color: #64748b;
  font-size: 0.92rem;
}

.comp-list__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.comp-list__page-btn {
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: #475569;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.comp-list__page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
  transform: translateY(-1px);
}

.comp-list__page-btn.is-active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(214, 31, 69, 0.18);
}

.comp-list__page-btn:disabled {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.65);
  background: #fff;
}

.comp-list__page-gap {
  color: #94a3b8;
  font-weight: 700;
  padding: 0 0.1rem;
}

.comp-page .table thead th {
  background:
    linear-gradient(135deg, #0f172a, #172036),
    #0f172a;
  color: #fff;
  border-color: #0f172a;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.comp-page .table {
  margin-bottom: 0;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.comp-page .table:not(.table-bordered) {
  border: 0;
}

.comp-page .table td,
.comp-page .table th {
  vertical-align: middle;
  border-color: rgba(226, 232, 240, 0.95);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.comp-page .table-responsive {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: none;
}

.comp-page .table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8fafc;
}

.comp-page .table tbody tr {
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.comp-page .table tbody tr:hover {
  background-color: #eef2ff;
}

.comp-dt__id-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
}

.comp-dt__main {
  color: #0f172a;
  font-weight: 800;
}

.comp-dt__text {
  color: #334155;
}

.comp-dt__link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.comp-dt__link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.comp-dt__text--location {
  font-weight: 600;
}

.comp-dt__lead-cell {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #475569;
  line-height: 1.45;
}

.comp-dt__date {
  display: block;
  color: #0f172a;
  font-weight: 700;
}

.comp-dt__time {
  display: block;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.82rem;
}

.comp-dt__empty {
  color: #94a3b8;
  font-style: italic;
}

.comp-dt__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comp-dt__badge--yes {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.comp-dt__badge--no {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
}

.comp-dt__actions-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.comp-dt__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.comp-dt__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.comp-dt__action--view {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.comp-dt__action--edit {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
}

.comp-dt__action--pdf,
.comp-dt__action--list {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.comp-dt__action--delete {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.2);
}

.comp-page .dataTables_wrapper .dataTables_paginate .pagination {
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
}

.comp-page .dataTables_wrapper .dataTables_paginate .page-item {
  margin: 0;
}

.comp-page .dataTables_wrapper .dataTables_paginate .page-link {
  min-width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: #475569;
  box-shadow: none;
  font-weight: 700;
  line-height: 1;
}

.comp-page .dataTables_wrapper .dataTables_paginate .page-link:hover {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

.comp-page .dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong));
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(214, 31, 69, 0.18);
}

.comp-page .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  background: #fff;
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.65);
}

.comp-dt__bar,
.comp-dt__footer {
  margin: 0;
  align-items: center;
}

.comp-dt__bar {
  padding: 0.2rem 0.1rem 0.75rem;
}

.comp-dt__footer {
  padding: 0.8rem 0.1rem 0 0.1rem;
}

.comp-page .dataTables_wrapper .dataTables_length,
.comp-page .dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
}

.comp-page .dataTables_wrapper .dataTables_length {
  justify-content: flex-start;
}

.comp-page .dataTables_wrapper .dataTables_filter {
  justify-content: flex-end;
}

.comp-page .dataTables_wrapper .dataTables_length label,
.comp-page .dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.comp-page .dataTables_wrapper .dataTables_length select,
.comp-page .dataTables_wrapper .dataTables_filter input {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.comp-page .dataTables_wrapper .dataTables_info {
  color: #64748b;
}

.comp-page .dataTables_wrapper .dataTables_filter input {
  width: min(320px, 100%);
}

.comp-page .dataTables_wrapper .dataTables_length select {
  min-width: 5.5rem;
}

.comp-page .card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.comp-page .card.card-primary > .card-header,
.comp-page .modal-header,
.comp-page .modal-header.bg-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong)) !important;
  border-bottom: 0;
  color: #fff;
}

.comp-page .modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--brand-shadow);
}

.comp-page .modal-header,
.comp-page .modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

.comp-page .modal-header .close {
  color: #fff;
  text-shadow: none;
  opacity: 1;
}

.comp-page .modal-title {
  color: #fff;
}

.comp-page .btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.95rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(214, 31, 69, 0.18);
  white-space: nowrap;
}

.comp-page .btn-brand:hover,
.comp-page .btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, #c91b3e, #ff5b6d);
  box-shadow: 0 14px 26px rgba(214, 31, 69, 0.2);
}

.comp-page .comp-toolbar-cta {
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  font-size: 0.92rem;
  box-shadow: 0 12px 22px rgba(214, 31, 69, 0.17);
}

.comp-footer {
  max-width: none;
  margin: 1.25rem auto 1.35rem;
  padding: 0.95rem 1.8rem 0.95rem 1.1rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.96)),
    radial-gradient(circle at right center, rgba(214, 31, 69, 0.08), transparent 34%);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.comp-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.comp-footer__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.comp-footer__brand-copy {
  min-width: 0;
}

.comp-footer__brand-copy span {
  display: block;
  color: #6b7280;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comp-footer__brand-copy strong {
  display: block;
  color: var(--brand-navy);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.comp-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-self: end;
}

.comp-footer__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cat-page .cat-hero__surface {
  padding-bottom: 1.55rem;
}

.cat-page .cat-hero__actions {
  align-self: flex-start;
}

.cat-page .cat-nav-card {
  margin-bottom: 1rem;
}

.cat-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) minmax(0, 10fr);
  gap: 1rem;
  align-items: stretch;
  min-height: calc(100vh - 16.5rem);
}

.cat-nav-card {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 18rem);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.cat-nav-card__header {
  align-items: flex-start;
}

.cat-nav-card__body {
  padding-top: 0.85rem;
  max-height: calc(100vh - 18rem);
  overflow: auto;
}

.cat-table-card {
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.cat-table-card .comp-dt {
  flex: 1;
  min-height: 0;
  padding: 0.25rem 0.25rem 0.45rem;
}

.cat-table-card .comp-dt__intro {
  padding: 0.95rem 1rem;
}

.cat-table-card .comp-dt__table {
  flex: 1;
  min-height: 0;
  display: flex;
  margin-top: 1rem;
  padding: 0 1rem 1rem;
}

.cat-table-card .table-responsive {
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: auto;
}

.cat-table-card .dataTables_wrapper {
  width: 100%;
  padding: 0.2rem 0;
}

.cat-table-card .dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.cat-table-card .dataTables_wrapper .row > [class*="col-"] {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.cat-table-card .dataTables_wrapper .dataTables_length,
.cat-table-card .dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.4rem;
}

.cat-table-card .dataTables_wrapper .dataTables_filter input {
  width: min(280px, 100%);
}

.cat-table-card .dataTables_wrapper .dataTables_info,
.cat-table-card .dataTables_wrapper .dataTables_paginate {
  padding-top: 0.75rem;
}

.cat-table-card .dataTables_wrapper .dataTables_scroll,
.cat-table-card .dataTables_wrapper .dataTables_scrollHead,
.cat-table-card .dataTables_wrapper .dataTables_scrollBody {
  border-radius: 18px;
}

.cat-table-card .table thead th {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  font-size: 0.7rem;
}

.cat-table-card .table td,
.cat-table-card .table th {
  padding-top: 0.68rem;
  padding-bottom: 0.68rem;
}

.cat-nav-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.9rem;
}

.cat-nav-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cat-nav-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.cat-nav-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 3.8rem;
  padding: 0.7rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    radial-gradient(circle at top right, rgba(214, 31, 69, 0.04), transparent 32%);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.cat-nav-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.cat-nav-item__name {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.cat-nav-item__sub {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-nav-item.is-active {
  border-color: rgba(214, 31, 69, 0.22);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc),
    radial-gradient(circle at top right, rgba(214, 31, 69, 0.08), transparent 42%);
  box-shadow: 0 12px 28px rgba(214, 31, 69, 0.08);
}

.cat-nav-item.is-active .cat-nav-item__name {
  color: var(--brand-red);
}

.cat-page .comp-dt__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cat-page .comp-dt__buttons .btn {
  white-space: nowrap;
}

.cat-page .dataTables_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cat-page .dataTables_wrapper .dt-buttons .btn {
  border-radius: 999px;
}

.cat-page .bg-warning {
  background-color: rgba(245, 158, 11, 0.16) !important;
}

.cat-page .empate-ligero {
  background-color: rgba(214, 31, 69, 0.14) !important;
}

.cat-page .empate-destacado {
  background-color: rgba(214, 31, 69, 0.24) !important;
}

.cat-page .comp-dt__table .table {
  min-width: 100%;
}

@media (max-width: 991.98px) {
  .cat-workspace {
    grid-template-columns: 1fr;
  }

  .cat-nav-card {
    position: static;
    max-height: none;
    min-height: auto;
    flex: none;
  }

  .cat-nav-card__body {
    max-height: none;
  }

  .cat-table-card {
    min-height: auto;
  }

  .cat-workspace {
    min-height: auto;
  }

  .comp-hero__grid {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .comp-hero__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .comp-hero__brand-mark {
    width: 46px;
    height: 46px;
  }

  .comp-hero__brand-copy {
    min-width: 0;
  }

  .comp-hero__brand-copy span,
  .comp-hero__brand-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .comp-hero__brand-copy span {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .comp-hero__brand-copy strong {
    font-size: 0.98rem;
  }

  .comp-hero__actions {
    justify-content: flex-start;
  }

  .comp-hero__menu {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .comp-hero__stats {
    grid-template-columns: 1fr;
  }

  .comp-card__header {
    align-items: flex-start;
  }

  .comp-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .comp-tabs .nav-item {
    flex: 1 1 0;
  }

  .comp-tabs__desktop-link {
    display: none;
  }

  .comp-tabs__mobile-menu {
    display: block;
    flex: 0 0 auto !important;
  }

  .comp-page .nav-pills .nav-link {
    width: 100%;
    text-align: center;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .comp-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .comp-footer__meta {
    justify-self: start;
  }

  .comp-dt__intro {
    align-items: flex-start;
  }

  .comp-dt__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .comp-list__toolbar,
  .comp-list__footer {
    align-items: flex-start;
  }

  .comp-list__search,
  .comp-list__size {
    width: 100%;
  }

  .comp-list__grid {
    grid-template-columns: 1fr;
  }

  .comp-list__pagination {
    justify-content: flex-start;
  }

  .comp-calendar__intro {
    align-items: flex-start;
  }

  .comp-calendar__legend {
    width: 100%;
    justify-content: flex-start;
  }

  .comp-calendar__surface-note {
    white-space: normal;
  }

  .comp-calendar .fc .fc-toolbar {
    align-items: flex-start;
  }

  .comp-calendar .fc .fc-toolbar-title {
    font-size: 1.15rem;
  }

  .comp-calendar .fc .fc-button {
    padding: 0.4rem 0.7rem;
  }

  .comp-page .dataTables_wrapper .dataTables_length,
  .comp-page .dataTables_wrapper .dataTables_filter {
    width: 100%;
    justify-content: flex-start;
  }

  .comp-page .dataTables_wrapper .dataTables_filter {
    margin-top: 0.45rem;
  }
}

@media (max-width: 575.98px) {
  .comp-hero__surface,
  .comp-card {
    border-radius: 24px;
  }

  .comp-hero__surface {
    padding: 1.3rem;
  }

  .comp-card__header,
  .comp-card__body {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .comp-dt__intro {
    padding: 0.9rem 0.85rem;
    border-radius: 20px;
  }

  .comp-dt__bar {
    padding-top: 0;
  }

  .comp-dt__footer {
    padding-top: 0.65rem;
  }

  .comp-page .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  .comp-dt__actions-row {
    justify-content: flex-start;
  }

  .comp-dt__action {
    width: 2rem;
    height: 2rem;
  }

  .comp-list__toolbar {
    gap: 0.7rem;
  }

  .comp-list__card {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .comp-list__card-top {
    grid-template-columns: 1fr;
  }

  .comp-list__date-block {
    width: 100%;
    max-width: 7rem;
  }

  .comp-list__card-actions {
    justify-content: flex-start;
  }

  .comp-calendar__intro {
    padding: 0.9rem 0.85rem;
    border-radius: 20px;
  }

  .comp-calendar__surface {
    border-radius: 22px;
  }

  .comp-calendar__surface-head {
    padding: 0.8rem 0.85rem;
  }

  .comp-calendar__grid {
    min-height: 640px;
    padding: 0.6rem;
  }

  .comp-calendar .fc .fc-toolbar {
    margin-bottom: 0.75rem;
  }

  .comp-calendar .fc .fc-button {
    padding: 0.35rem 0.62rem;
    font-size: 0.86rem;
  }

  .comp-calendar .fc .fc-col-header-cell-cushion {
    padding: 0.6rem 0.35rem;
    font-size: 0.66rem;
  }

  .comp-calendar .fc .fc-daygrid-day-number {
    padding: 0.32rem 0.42rem;
    font-size: 0.88rem;
  }

  .cat-workspace {
    gap: 0.8rem;
  }

  .cat-table-card .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  .cat-table-card .comp-dt__table {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .cat-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comp-footer {
    width: calc(100% - 1rem);
    margin: 1rem auto 1.1rem;
    padding: 0.95rem;
    border-radius: 22px;
  }
}
