html {
  font-size: 14px;
}

.cliente-abonado-row {
  background-color: #fffbea !important;
}

.cliente-centro-row {
  background-color: #e8f4fd !important;
}

.cliente-avatar,
.cliente-avatar-placeholder {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.cliente-avatar-placeholder,
.cliente-avatar-placeholder .avatar-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cliente-summary {
  min-width: 0;
}

:root {
  --ct-leftbar-width: 220px;
  --gestion-ink: #203d4a;
  --gestion-muted: #637b84;
  --gestion-soft-muted: #7b8e96;
  --gestion-border: rgba(95, 151, 165, 0.16);
  --gestion-border-strong: rgba(95, 151, 165, 0.28);
  --gestion-surface: rgba(255, 255, 255, 0.86);
  --gestion-surface-strong: #ffffff;
  --gestion-surface-soft: rgba(248, 252, 253, 0.78);
  --gestion-primary: #2f6f86;
  --gestion-primary-strong: #225568;
  --gestion-accent: #18bc9c;
  --gestion-shadow: 0 0.45rem 1.2rem rgba(24, 59, 72, 0.06);
  --gestion-shadow-hover: 0 0.65rem 1.45rem rgba(24, 59, 72, 0.1);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(47, 111, 134, 0.24);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(58, 125, 140, 0.09), transparent 24rem),
    linear-gradient(180deg, #f7fbfc 0%, #f4f7fa 48%, #f6f8fb 100%);
  color: #313a46;
  margin-bottom: 60px;
}

.content-page .container-fluid {
  padding-top: 0.85rem;
}

.page-title-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: auto;
  margin: 0.35rem 0 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--gestion-border);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 8% 20%, rgba(58, 125, 140, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(232, 248, 251, 0.94) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(240, 247, 249, 0.94) 100%);
  box-shadow: var(--gestion-shadow);
}

.page-title-box::before {
  content: "Gestión";
  display: block;
  position: absolute;
  top: 0.45rem;
  left: 1.05rem;
  color: var(--gestion-primary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.page-title-box .page-title {
  margin: 0;
  padding-top: 0.9rem;
  color: var(--gestion-ink);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.page-title-box .page-title-right {
  margin-top: 0;
  align-self: center;
  flex: 0 1 auto;
}

.page-title-box .breadcrumb {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(95, 151, 165, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--gestion-muted);
}

.breadcrumb-item.active {
  color: var(--gestion-primary);
  font-weight: 700;
}

.card {
  border: 1px solid var(--gestion-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 253, 0.94) 100%);
  box-shadow: var(--gestion-shadow);
}

.card .card {
  border-color: rgba(95, 151, 165, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.card-body {
  position: relative;
}

.header-title,
.card-title {
  color: var(--gestion-ink);
  font-weight: 850;
  letter-spacing: 0.015em;
}

.header-title {
  text-transform: uppercase;
  font-size: 0.78rem;
}

.card-title {
  font-size: 0.95rem;
}

.table-responsive {
  border: 1px solid rgba(95, 151, 165, 0.12);
  border-radius: 0.85rem;
  background: var(--gestion-surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table {
  --bs-table-hover-bg: rgba(24, 188, 156, 0.055);
  --bs-table-striped-bg: rgba(47, 111, 134, 0.035);
  color: #334e5b;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(95, 151, 165, 0.13);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.table-sm > :not(caption) > * > * {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.table thead th,
.table .table-light th,
.table-light > :not(caption) > * > * {
  border-bottom: 1px solid rgba(95, 151, 165, 0.18);
  background: linear-gradient(180deg, rgba(236, 247, 249, 0.95) 0%, rgba(246, 250, 251, 0.95) 100%) !important;
  color: #376476;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.table thead th a {
  color: #376476;
  text-decoration: none;
}

.table thead th a:hover {
  color: var(--gestion-primary);
}

.table-hover > tbody > tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.table-hover > tbody > tr:hover > * {
  color: #263f4d;
}

.form-label {
  color: #43616e;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: rgba(95, 151, 165, 0.24);
  border-radius: 0.65rem;
  background-color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
  border-color: rgba(47, 111, 134, 0.62);
  box-shadow: 0 0 0 0.18rem rgba(47, 111, 134, 0.12);
}

.btn {
  border-radius: 0.65rem;
  font-weight: 700;
}

.btn-primary,
.btn-danger,
.btn-success,
.btn-info,
.btn-warning {
  box-shadow: 0 0.25rem 0.65rem rgba(24, 59, 72, 0.08);
}

.btn-primary {
  background-color: var(--gestion-primary);
  border-color: var(--gestion-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gestion-primary-strong);
  border-color: var(--gestion-primary-strong);
}

.btn-light {
  border-color: rgba(95, 151, 165, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: #3f5965;
}

.btn-outline-secondary {
  border-color: rgba(95, 151, 165, 0.28);
  color: #526a75;
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.alert {
  border-radius: 0.9rem;
  border-width: 1px;
  box-shadow: 0 0.25rem 0.8rem rgba(24, 59, 72, 0.045);
}

.modal-content,
.dropdown-menu {
  border: 1px solid var(--gestion-border);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 2rem rgba(24, 59, 72, 0.14);
}

.modal-header {
  border-bottom-color: rgba(95, 151, 165, 0.14);
  background: linear-gradient(135deg, rgba(232, 248, 251, 0.78) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.modal-title {
  color: var(--gestion-ink);
  font-weight: 850;
}

.nav-tabs,
.nav-pills {
  gap: 0.35rem;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
  border-radius: 999px;
  color: #526a75;
  font-weight: 750;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--gestion-primary) 0%, var(--gestion-accent) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0.3rem 0.8rem rgba(47, 111, 134, 0.2);
}

.page-link {
  border-color: rgba(95, 151, 165, 0.18);
  color: var(--gestion-primary);
  font-weight: 700;
}

.page-item.active .page-link {
  background-color: var(--gestion-primary);
  border-color: var(--gestion-primary);
}

.gestion-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  color: #526a75;
}

.gestion-nav-user-text {
  min-width: 0;
  max-width: 14rem;
}

.gestion-nav-user-text h5 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-custom {
  border-bottom: 1px solid rgba(95, 151, 165, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.35rem 1rem rgba(24, 59, 72, 0.045);
  backdrop-filter: blur(10px);
}

.leftside-menu {
  background: linear-gradient(180deg, #203d4a 0%, #17313d 100%);
}

.side-nav-title {
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.side-nav .side-nav-link {
  border-radius: 0.65rem;
  margin-inline: 0.55rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav .side-nav-link:hover,
.side-nav .side-nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(2px);
}

.side-nav .side-nav-link > i[class^="fa-"],
.side-nav .side-nav-link > i[class*=" fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  font-size: 1rem;
  line-height: 1;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-link > i[class^="fa-"],
html[data-sidenav-size="condensed"] .side-nav .side-nav-link > i[class*=" fa-"] {
  width: 100%;
  min-width: 100%;
  margin: 0;
  font-size: 1.1rem;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-item {
  text-align: center;
}

.leftside-menu .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.dashboard-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.dashboard-brand-logo-lg {
  max-width: 100%;
  max-height: 88px;
}

.dashboard-brand-logo-sm {
  width: auto;
  max-height: 54px;
  max-width: 100%;
}

html[data-sidenav-size="condensed"] .leftside-menu .logo {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

html[data-sidenav-size="condensed"] #leftside-menu-container {
  padding-top: 1.35rem;
}

html[data-sidenav-size="condensed"] .side-nav {
  margin-top: 0.85rem;
}

html[data-sidenav-size="condensed"] .dashboard-brand-logo-sm {
  max-height: 46px;
  max-width: 108px;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-item {
  position: relative;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-link {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  transition: background-color 0.2s ease, width 0.2s ease, justify-content 0.2s ease, padding 0.2s ease;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-link > i[class^="fa-"],
html[data-sidenav-size="condensed"] .side-nav .side-nav-link > i[class*=" fa-"] {
  width: auto;
  min-width: auto;
  margin: 0;
  font-size: 1.1rem;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-link span {
  display: none;
  margin-left: 0.75rem;
  white-space: nowrap;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-item:hover > .side-nav-link span,
html[data-sidenav-size="condensed"] .side-nav .side-nav-item:focus-within > .side-nav-link span {
  display: inline;
}

html[data-sidenav-size="condensed"] .side-nav .side-nav-item:hover > .side-nav-link,
html[data-sidenav-size="condensed"] .side-nav .side-nav-item:focus-within > .side-nav-link {
  justify-content: flex-start;
  width: max-content;
  min-width: 180px;
  padding-inline: 1rem;
  background: #457b9d;
  color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.15);
  z-index: 1040;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.wrapper,
.content-page,
.content,
.container-fluid {
  background-color: transparent;
}

@media (max-width: 767.98px) {
  body,
  .wrapper,
  .content-page,
  .content,
  .container-fluid {
    background-color: #f6f8fb !important;
    color: #313a46;
  }

  .content-page {
    padding-bottom: 5rem;
  }

  .topbar-menu {
    gap: 0.35rem !important;
  }

  .gestion-theme-toggle {
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding-inline: 0.35rem !important;
  }

  .gestion-nav-user-text {
    max-width: min(42vw, 11rem);
  }

  .gestion-nav-user-text h5 {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .gestion-nav-user-text h6,
  .gestion-nav-user-text .badge {
    display: none;
  }

  .profile-dropdown {
    min-width: 11rem;
  }

  .content-page .container-fluid {
    padding: 0.75rem 0.75rem 0;
  }

  .page-title-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.25rem 0 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
  }

  .page-title-box::before {
    top: 0.42rem;
    left: 0.9rem;
    font-size: 0.58rem;
  }

  .page-title-box .page-title {
    max-width: 100%;
    padding-top: 0.85rem;
    font-size: 1.12rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .page-title-box .page-title-right {
    width: 100%;
    align-self: stretch;
  }

  .page-title-box .breadcrumb {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .card,
  .dropdown-menu,
  .modal-content,
  .offcanvas,
  .table-responsive,
  .accordion-item,
  .list-group-item {
    background-color: #ffffff !important;
    color: #313a46 !important;
  }

  .card {
    border-radius: 0.9rem;
    box-shadow: 0 0.25rem 0.85rem rgba(24, 59, 72, 0.055);
  }

  .card-body {
    padding: 1rem;
  }

  .card .card {
    border-radius: 0.75rem;
  }

  .header-title,
  .card-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .table-responsive {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table,
  .table > :not(caption) > * > * {
    color: #313a46 !important;
  }

  .table {
    min-width: max-content;
    font-size: 0.82rem;
  }

  .table > :not(caption) > * > * {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }

  .table thead th,
  .table .table-light th,
  .table-light > :not(caption) > * > * {
    font-size: 0.66rem;
  }

  .form-control,
  .form-select,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    color: #313a46 !important;
    border-color: #cfd9e2 !important;
  }

  .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
  }

  .collapse .card.card-body,
  .collapsing .card.card-body {
    padding: 0.85rem;
  }

  .collapse form .btn,
  .collapsing form .btn {
    width: 100%;
    margin: 0.15rem 0 !important;
  }

  .btn {
    min-height: 2.35rem;
    white-space: normal;
  }

  .btn-sm {
    min-height: 2rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .page-link {
    border-radius: 0.5rem;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-content {
    border-radius: 0.9rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .alert {
    align-items: flex-start !important;
    border-radius: 0.85rem;
  }

  .alert .btn {
    width: 100%;
  }

  .nav-tabs,
  .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .nav-tabs .nav-link,
  .nav-pills .nav-link {
    white-space: nowrap;
  }

  .text-sm-end {
    text-align: left !important;
  }

  .page-title,
  .header-title,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  label,
  .form-label,
  .breadcrumb-item,
  .nav-link,
  .btn-link {
    color: #1f2937;
  }

  .text-muted,
  small.text-muted,
  .form-text {
    color: #5f6c7b !important;
  }

  .cliente-avatar,
  .cliente-avatar-placeholder {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 575.98px) {
  .content-page .container-fluid {
    padding-inline: 0.55rem;
  }

  .page-title-box {
    margin-top: 0.1rem;
  }

  .card-body {
    padding: 0.85rem;
  }

  .row {
    --bs-gutter-x: 0.85rem;
  }

  .dropdown-menu {
    max-width: calc(100vw - 1rem);
  }
}

html[data-bs-theme="dark"] {
  --gestion-ink: #e8f4f7;
  --gestion-muted: #9ab2bd;
  --gestion-soft-muted: #839aa5;
  --gestion-border: rgba(137, 190, 205, 0.2);
  --gestion-border-strong: rgba(137, 190, 205, 0.32);
  --gestion-surface: rgba(22, 38, 47, 0.88);
  --gestion-surface-strong: #182a34;
  --gestion-surface-soft: rgba(16, 31, 39, 0.78);
  --gestion-primary: #6ec6d8;
  --gestion-primary-strong: #8bd7e6;
  --gestion-accent: #20d1ad;
  --gestion-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.18);
  --gestion-shadow-hover: 0 0.65rem 1.45rem rgba(0, 0, 0, 0.26);
}

html[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(75, 166, 190, 0.16), transparent 24rem),
    linear-gradient(180deg, #101d25 0%, #0e1820 48%, #0b141b 100%);
  color: #d9e6eb;
}

html[data-bs-theme="dark"] .navbar-custom {
  border-bottom-color: rgba(137, 190, 205, 0.16);
  background: rgba(14, 26, 34, 0.92);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.24);
}

html[data-bs-theme="dark"] .topbar-menu,
html[data-bs-theme="dark"] .nav-user h5,
html[data-bs-theme="dark"] .nav-user h6 {
  color: #d9e6eb;
}

html[data-bs-theme="dark"] .gestion-theme-toggle {
  color: #d9e6eb;
}

html[data-bs-theme="dark"] .leftside-menu {
  background: linear-gradient(180deg, #132a35 0%, #0b1820 100%);
}

html[data-bs-theme="dark"] .page-title-box {
  border-color: var(--gestion-border);
  background:
    radial-gradient(circle at 8% 20%, rgba(110, 198, 216, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(22, 48, 59, 0.96) 0%, rgba(18, 32, 41, 0.98) 58%, rgba(15, 27, 35, 0.96) 100%);
  box-shadow: var(--gestion-shadow);
}

html[data-bs-theme="dark"] .page-title-box::before,
html[data-bs-theme="dark"] .breadcrumb-item.active {
  color: var(--gestion-primary);
}

html[data-bs-theme="dark"] .page-title-box .breadcrumb {
  border-color: rgba(137, 190, 205, 0.16);
  background: rgba(11, 22, 30, 0.55);
}

html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item a {
  color: var(--gestion-muted);
}

html[data-bs-theme="dark"] .card {
  border-color: var(--gestion-border);
  background: linear-gradient(180deg, rgba(24, 42, 52, 0.96) 0%, rgba(17, 31, 40, 0.94) 100%);
  box-shadow: var(--gestion-shadow);
}

html[data-bs-theme="dark"] .card .card {
  border-color: rgba(137, 190, 205, 0.16);
  background: rgba(13, 27, 36, 0.72);
}

html[data-bs-theme="dark"] .header-title,
html[data-bs-theme="dark"] .card-title,
html[data-bs-theme="dark"] .page-title,
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] .form-label {
  color: var(--gestion-ink);
}

html[data-bs-theme="dark"] .table-responsive {
  border-color: rgba(137, 190, 205, 0.16);
  background: var(--gestion-surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #d9e6eb;
  --bs-table-hover-bg: rgba(32, 209, 173, 0.08);
  --bs-table-striped-bg: rgba(110, 198, 216, 0.055);
  color: #d9e6eb;
}

html[data-bs-theme="dark"] .table > :not(caption) > * > * {
  border-bottom-color: rgba(137, 190, 205, 0.14);
}

html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .table .table-light th,
html[data-bs-theme="dark"] .table-light > :not(caption) > * > * {
  border-bottom-color: rgba(137, 190, 205, 0.2);
  background: linear-gradient(180deg, rgba(29, 58, 70, 0.95) 0%, rgba(21, 40, 50, 0.95) 100%) !important;
  color: #aee3ed;
}

html[data-bs-theme="dark"] .table thead th a {
  color: #aee3ed;
}

html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  color: #f0fbfd;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
  border-color: rgba(137, 190, 205, 0.26);
  background-color: rgba(10, 22, 30, 0.82);
  color: #e8f4f7;
}

html[data-bs-theme="dark"] .form-control::placeholder {
  color: #78909b;
}

html[data-bs-theme="dark"] .select2-dropdown,
html[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  border-color: rgba(137, 190, 205, 0.22);
  background-color: #132630;
  color: #e8f4f7;
}

html[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(110, 198, 216, 0.22);
  color: #ffffff;
}

html[data-bs-theme="dark"] .btn-light {
  border-color: rgba(137, 190, 205, 0.18);
  background: rgba(22, 40, 50, 0.9);
  color: #d9e6eb;
}

html[data-bs-theme="dark"] .btn-outline-secondary {
  border-color: rgba(137, 190, 205, 0.28);
  color: #b8ccd4;
}

html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu {
  border-color: var(--gestion-border);
  background-color: #152833;
  color: #d9e6eb;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.36);
}

html[data-bs-theme="dark"] .modal-header {
  border-bottom-color: rgba(137, 190, 205, 0.16);
  background: linear-gradient(135deg, rgba(29, 58, 70, 0.85) 0%, rgba(17, 31, 40, 0.95) 100%);
}

html[data-bs-theme="dark"] .nav-tabs .nav-link,
html[data-bs-theme="dark"] .nav-pills .nav-link,
html[data-bs-theme="dark"] .page-link {
  color: #b8ccd4;
}

html[data-bs-theme="dark"] .page-link {
  border-color: rgba(137, 190, 205, 0.18);
  background-color: rgba(13, 27, 36, 0.82);
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] small.text-muted,
html[data-bs-theme="dark"] .form-text {
  color: var(--gestion-muted) !important;
}

html[data-bs-theme="dark"] .cliente-abonado-row {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

html[data-bs-theme="dark"] .cliente-centro-row {
  background-color: rgba(13, 202, 240, 0.1) !important;
}

@media (max-width: 767.98px) {
  html[data-bs-theme="dark"] body,
  html[data-bs-theme="dark"] .wrapper,
  html[data-bs-theme="dark"] .content-page,
  html[data-bs-theme="dark"] .content,
  html[data-bs-theme="dark"] .container-fluid {
    background-color: #0b141b !important;
    color: #d9e6eb;
  }

  html[data-bs-theme="dark"] .card,
  html[data-bs-theme="dark"] .dropdown-menu,
  html[data-bs-theme="dark"] .modal-content,
  html[data-bs-theme="dark"] .offcanvas,
  html[data-bs-theme="dark"] .table-responsive,
  html[data-bs-theme="dark"] .accordion-item,
  html[data-bs-theme="dark"] .list-group-item {
    background-color: #152833 !important;
    color: #d9e6eb !important;
  }

  html[data-bs-theme="dark"] .table,
  html[data-bs-theme="dark"] .table > :not(caption) > * > * {
    color: #d9e6eb !important;
  }

  html[data-bs-theme="dark"] .form-control,
  html[data-bs-theme="dark"] .form-select,
  html[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
  html[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #0f202a !important;
    color: #e8f4f7 !important;
    border-color: rgba(137, 190, 205, 0.26) !important;
  }

  html[data-bs-theme="dark"] .page-title,
  html[data-bs-theme="dark"] .header-title,
  html[data-bs-theme="dark"] h1,
  html[data-bs-theme="dark"] h2,
  html[data-bs-theme="dark"] h3,
  html[data-bs-theme="dark"] h4,
  html[data-bs-theme="dark"] h5,
  html[data-bs-theme="dark"] h6,
  html[data-bs-theme="dark"] label,
  html[data-bs-theme="dark"] .form-label,
  html[data-bs-theme="dark"] .breadcrumb-item,
  html[data-bs-theme="dark"] .nav-link,
  html[data-bs-theme="dark"] .btn-link {
    color: #e8f4f7;
  }
}
