@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body.siscre-theme,
body.siscre-theme-login {
  font-family: "Poppins", sans-serif;
}

body.siscre-theme {
  background: #090d1a;
  color: #c5cee6;
}

body.siscre-theme .wrapper {
  background: #090d1a;
}

body.siscre-theme .main-header.navbar {
  border-bottom: 1px solid #1e2742;
  box-shadow: none;
  background: #0d1429 !important;
}

body.siscre-theme .main-sidebar {
  background: #0f162b;
}

body.siscre-theme .brand-link {
  border-bottom: 1px solid #1f2740;
  background: #0f162b;
  min-height: 94px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  padding: 12px 16px;
}

body.siscre-theme .brand-link .brand-text {
  font-weight: 600;
  color: #e7ebff;
  line-height: 1.1;
}

body.siscre-theme .user-panel {
  border-bottom: 1px solid #1f2740;
}

body.siscre-theme .user-panel .info a {
  color: #e0e8ff;
  font-weight: 500;
}

body.siscre-theme .siscre-user-panel .info small {
  color: #7f90bc !important;
  font-size: 11px;
  letter-spacing: 0.4px;
}

body.siscre-theme .siscre-user-links a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #9fb1dd;
  background: #121d38;
  margin-right: 6px;
  border: 1px solid #26345b;
}

body.siscre-theme .siscre-user-links a:hover {
  color: #ffffff;
  background: #1c2a4c;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
body.siscre-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover,
body.siscre-theme .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link:hover {
  background-color: #1b2541;
  color: #ffffff !important;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
  color: #95a4cb;
  border-radius: 8px;
  margin: 2px 8px;
  padding: 0.55rem 0.85rem;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar .nav-header {
  color: #8f9dc3;
  font-size: 0.78rem;
  letter-spacing: 1.8px;
  font-weight: 700;
  padding: 0.85rem 1rem 0.45rem 1rem;
  text-transform: uppercase;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar .nav-header.nav-header-main {
  color: #9fb3e8;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar .nav-link p {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1px;
}

body.siscre-theme .sidebar-dark-primary .nav-sidebar .nav-icon {
  font-size: 1.05rem;
  color: #9fb1dd;
}

body.siscre-theme .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link .nav-icon {
  font-size: 0.9rem;
  color: #aab8d8;
}

body.siscre-theme .content-wrapper {
  background: linear-gradient(135deg, #0a1021 0%, #090d1a 100%);
  color: #c5cee6;
}

body.siscre-theme .content-header {
  padding: 1rem 0.8rem 0.4rem 0.8rem;
}

body.siscre-theme .content-header h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #edf1ff;
}

body.siscre-theme .breadcrumb {
  font-size: 0.9rem;
  background: transparent;
  margin-bottom: 0;
  color: #7f90bc;
}

body.siscre-theme .breadcrumb .active {
  color: #9aabd6;
}

body.siscre-theme .breadcrumb-item a {
  color: #4d76ff;
}

body.siscre-theme .card,
body.siscre-theme .info-box,
body.siscre-theme .small-box {
  border: 1px solid #1f2945;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  background: #0f1730;
  color: #d0d8ef;
}

body.siscre-theme .info-box {
  min-height: 92px;
}

body.siscre-theme .info-box .info-box-icon {
  border-radius: 10px;
  margin: 8px;
}

body.siscre-theme .info-box .info-box-number {
  font-weight: 700;
}

body.siscre-theme .info-box .info-box-number.siscre-cartera-procesos-number {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.siscre-theme .siscre-cartera-procesos-value {
  color: #d0d8ef;
  flex: 1 1 auto;
  min-width: 0;
}

body.siscre-theme .siscre-cartera-procesos-pct {
  font-weight: 700;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9em;
  letter-spacing: 0.2px;
  margin-left: 8px;
}

body.siscre-theme .table,
body.siscre-theme table.dataTable,
body.siscre-theme table.display {
  border-color: #212c49 !important;
  color: #c8d2ed;
  background: #0f1730;
  font-size: 13px;
  line-height: 1.35;
}

body.siscre-theme .table td,
body.siscre-theme .table th,
body.siscre-theme table.dataTable td,
body.siscre-theme table.dataTable th,
body.siscre-theme table.display td,
body.siscre-theme table.display th {
  vertical-align: middle;
  padding: 0.42rem 0.55rem;
}

body.siscre-theme .table thead th,
body.siscre-theme table.dataTable thead th {
  background: #151f39;
  color: #d7e2ff;
  font-weight: 600;
  border-bottom: 1px solid #243152;
}

body.siscre-theme table.dataTable tbody tr {
  background-color: #101a33;
}

body.siscre-theme table.dataTable.stripe tbody tr.odd,
body.siscre-theme table.dataTable.display tbody tr.odd {
  background-color: #0f1830;
}

body.siscre-theme table.dataTable.display tbody tr.even > .sorting_1,
body.siscre-theme table.dataTable.order-column.stripe tbody tr.even > .sorting_1,
body.siscre-theme table.dataTable.display tbody tr.odd > .sorting_1,
body.siscre-theme table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
  background-color: #13213f !important;
}

body.siscre-theme .dataTables_wrapper .dataTables_filter,
body.siscre-theme .dataTables_wrapper .dataTables_length,
body.siscre-theme .dataTables_wrapper .dataTables_info {
  color: #9eb0db !important;
  font-size: 1rem;
  font-weight: 600;
}

body.siscre-theme .dataTables_wrapper .dataTables_paginate {
  color: #9eb0db !important;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Force readable colors for legacy DataTables+jQueryUI skin */
body.siscre-theme:not(.siscre-light-mode) .dataTables_wrapper .ui-toolbar,
body.siscre-theme:not(.siscre-light-mode) .dataTables_wrapper div.dataTables_length,
body.siscre-theme:not(.siscre-light-mode) .dataTables_wrapper div.dataTables_filter,
body.siscre-theme:not(.siscre-light-mode) .dataTables_wrapper div.dataTables_info,
body.siscre-theme:not(.siscre-light-mode) .dataTables_wrapper div.dataTables_paginate {
  background: #101a33 !important;
  color: #aebde4 !important;
  border-color: #243152 !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList {
  background: #0f1730 !important;
  color: #d9e4ff !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList thead th {
  background: #17233f !important;
  color: #dfe8ff !important;
  border-color: #2a385f !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList tbody td {
  color: #d2ddf7 !important;
  border-color: #223055 !important;
  background: #101a33 !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList tbody tr:nth-child(odd) td {
  background: #111d39 !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList tbody tr:nth-child(even) td {
  background: #0e1730 !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList tbody tr:hover td {
  background: #1a2748 !important;
}

body.siscre-theme:not(.siscre-light-mode) #dealList a,
body.siscre-theme:not(.siscre-light-mode) #dealList i {
  color: #56a1ff !important;
}

body.siscre-theme .dataTables_wrapper .dataTables_filter input,
body.siscre-theme .dataTables_wrapper .dataTables_length select {
  background: #0e1730;
  border: 1px solid #26345b;
  color: #e1e9ff;
  border-radius: 8px;
  height: 36px;
  line-height: 1.2;
}

body.siscre-theme .dataTables_wrapper .dataTables_filter input {
  min-width: 170px;
  padding: 0.35rem 0.65rem;
}

body.siscre-theme .dataTables_wrapper .dataTables_length select {
  min-width: 72px;
  padding: 0.3rem 0.35rem;
}

body.siscre-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #3167f3 !important;
  border-color: #3167f3 !important;
  color: #fff !important;
}

body.siscre-theme .btn {
  border-radius: 8px;
  font-weight: 500;
}

body.siscre-theme .form-control,
body.siscre-theme .custom-select,
body.siscre-theme select {
  border-radius: 8px;
  border-color: #26345b;
  background: #0e1730;
  color: #ecf2ff;
}

body.siscre-theme .input-group-text {
  background: #141e37;
  border-color: #26345b;
  color: #9eb0db;
}

body.siscre-theme .form-control:focus,
body.siscre-theme .custom-select:focus,
body.siscre-theme select:focus {
  border-color: #3167f3;
  box-shadow: 0 0 0 0.2rem rgba(49, 103, 243, 0.2);
  background: #0e1730;
  color: #fff;
}

body.siscre-theme .preloader {
  background-color: #090d1a;
}

body.siscre-theme .nav-sidebar .menu-open > .nav-link {
  background-color: rgba(249, 251, 253, 0.06);
  color: #fff;
}

body.siscre-theme .main-sidebar .brand-image {
  border-radius: 8px;
  float: none;
  margin: 0;
  width: 66px;
  height: 66px;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  opacity: 1 !important;
  display: block;
  justify-self: center;
}

body.siscre-theme .siscre-user-panel {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

body.siscre-theme .siscre-user-panel .image img {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
}

body.siscre-theme .siscre-user-panel .info {
  padding-left: 0.7rem;
}

body.siscre-theme .main-footer a {
  color: #80a0ff;
}

body.siscre-theme .btn-primary {
  background-color: #3167f3;
  border-color: #3167f3;
}

body.siscre-theme .btn-success {
  background-color: #0da684;
  border-color: #0da684;
}

body.siscre-theme .btn-danger {
  background-color: #ef3463;
  border-color: #ef3463;
}

body.siscre-theme .main-footer {
  background: #0c1327;
  border-top: 1px solid #1f2945;
  color: #7f90bc;
  font-size: 12px;
  padding: 0.75rem 1rem;
}

body.siscre-theme .navbar-light .navbar-nav .nav-link {
  color: #a9b8df;
}

body.siscre-theme .navbar-light .navbar-nav .nav-link:hover {
  color: #ffffff;
}

body.siscre-theme .siscre-flag-icon {
  font-size: 28px;
  line-height: 1;
  padding-right: 0.25rem;
}

body.siscre-theme .siscre-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #26345b;
  background: #141d36;
  margin-left: 0.3rem;
  position: relative;
}

body.siscre-theme .siscre-icon-btn:hover {
  background: #1b2748;
}

body.siscre-theme .siscre-top-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #26345b;
  object-fit: cover;
  background: #101a33;
}

body.siscre-theme .dropdown-menu {
  background: #121c36;
  border: 1px solid #243152;
}

body.siscre-theme .dropdown-item,
body.siscre-theme .dropdown-item i {
  color: #c7d2f1;
}

body.siscre-theme .dropdown-item:hover {
  background: #1a2646;
  color: #ffffff;
}

body.siscre-theme .dropdown-divider {
  border-top: 1px solid #253055;
}

body.siscre-theme .siscre-user-dd {
  min-width: 320px;
  border-radius: 12px;
  overflow: hidden;
}

body.siscre-theme .siscre-user-dd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

body.siscre-theme .siscre-user-dd-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2b3961;
}

body.siscre-theme .siscre-user-dd-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: #e9f0ff;
}

body.siscre-theme .siscre-user-dd-role {
  color: #8ea0cb;
  font-weight: 600;
  font-size: 14px;
}

body.siscre-theme .siscre-user-dd-section {
  color: #7f90bc;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px 2px;
}

body.siscre-theme .siscre-user-dd .dropdown-item {
  padding: 10px 16px;
  font-size: 16px;
}

body.siscre-theme .siscre-user-dd .dropdown-item i {
  width: 18px;
  text-align: center;
}

body.siscre-theme .siscre-user-dd .siscre-logout-item,
body.siscre-theme .siscre-user-dd .siscre-logout-item i {
  color: #ff4f7b !important;
  font-weight: 600;
}

body.siscre-theme .siscre-notif-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 10px;
  padding: 0 5px;
}

body.siscre-theme .siscre-notif-dd {
  min-width: 420px;
  width: 420px;
  max-width: 92vw;
  border-radius: 12px;
  overflow: hidden;
}

body.siscre-theme .siscre-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #dbe4ff;
  font-weight: 600;
}

body.siscre-theme .siscre-notif-header .btn-link {
  color: #8fb0ff;
  text-decoration: none;
}

body.siscre-theme .siscre-notif-list {
  max-height: 300px;
  overflow-y: auto;
}

body.siscre-theme .siscre-notif-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #243152;
  cursor: pointer;
  border-left: 4px solid transparent;
  background: #101c3f;
}

body.siscre-theme .siscre-notif-item:last-child {
  border-bottom: 0;
}

body.siscre-theme .siscre-notif-item.siscre-notif-prio-alta {
  border-left-color: #c65397;
  background: rgba(198, 83, 151, 0.28);
}

body.siscre-theme .siscre-notif-item.siscre-notif-prio-media {
  border-left-color: #3f78c8;
  background: #182339;
}

body.siscre-theme .siscre-notif-item.siscre-notif-prio-baja {
  border-left-color: #6fb38a;
  background: #1a2921;
}

body.siscre-theme .siscre-notif-item .siscre-notif-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.siscre-theme .siscre-notif-item .siscre-notif-msg {
  display: block;
  color: #d7e3ff;
  font-size: 13px;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}

body.siscre-theme .siscre-notif-item .siscre-notif-desc {
  display: block;
  color: #c0cde9;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 2px;
}

body.siscre-theme .siscre-notif-item .siscre-notif-estado {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

body.siscre-theme .siscre-notif-item .siscre-notif-estado-pendiente {
  background: #2a3c6a;
  color: #dbe7ff;
}

body.siscre-theme .siscre-notif-item .siscre-notif-estado-proceso {
  background: #2f8f5e;
  color: #ffffff;
}

body.siscre-theme .siscre-notif-item .siscre-notif-estado-finalizada {
  background: #2f8f5e;
  color: #ffffff;
}

body.siscre-theme .siscre-notif-item .siscre-notif-estado-cancelada {
  background: #c65397;
  color: #ffffff;
}

body.siscre-theme .siscre-prioridad-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

body.siscre-theme .siscre-prioridad-baja {
  background: #8fc9a5;
  color: #163323;
}

body.siscre-theme .siscre-prioridad-media {
  background: #3f78c8;
  color: #ffffff;
}

body.siscre-theme .siscre-prioridad-alta {
  background: #c65397;
  color: #ffffff;
}

body.siscre-theme .siscre-notif-item .siscre-notif-time {
  display: block;
  color: #9db0dc;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 2px;
}

body.siscre-theme .siscre-notif-item .siscre-notif-time.siscre-notif-deadline-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #3f78c8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

body.siscre-theme .siscre-notif-item .siscre-notif-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 auto;
}

body.siscre-theme .siscre-notif-item .siscre-notif-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  min-width: 30px;
  text-align: center;
}

body.siscre-theme .siscre-notif-item .siscre-notif-action-btn.btn-warning {
  background: #3f78c8;
  border-color: #3f78c8;
  color: #ffffff;
}

body.siscre-theme .siscre-notif-item .siscre-notif-action-btn.btn-success {
  background: #1f6e46;
  border-color: #1f6e46;
  color: #ffffff;
}

/* Fallback styles if body does not include siscre-theme */
.siscre-notif-item {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.siscre-notif-item .siscre-notif-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.siscre-notif-item .siscre-notif-msg {
  display: block;
  color: #d7e3ff;
}

.siscre-notif-item .siscre-notif-desc {
  display: block;
  color: #c0cde9;
  margin-top: 2px;
}

.siscre-notif-item .siscre-notif-estado,
.siscre-notif-item .siscre-notif-time {
  display: inline-block;
}

/* Hard fallback for notification dropdown rendering */
#siscreNotifList .siscre-notif-item {
  display: block !important;
  text-decoration: none !important;
  color: #d7e3ff !important;
  background: #182339 !important;
  border-left: 4px solid #3f78c8 !important;
  border-bottom: 1px solid #243152 !important;
  padding: 14px 14px !important;
}

#siscreNotifList .siscre-notif-item.siscre-notif-prio-alta {
  background: rgba(198, 83, 151, 0.28) !important;
  border-left-color: #c65397 !important;
}

#siscreNotifList .siscre-notif-item.siscre-notif-prio-media {
  background: #182339 !important;
  border-left-color: #3f78c8 !important;
}

#siscreNotifList .siscre-notif-item.siscre-notif-prio-baja {
  background: #1a2921 !important;
  border-left-color: #6fb38a !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-msg,
#siscreNotifList .siscre-notif-item .siscre-notif-desc {
  display: block !important;
  color: #d7e3ff !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-desc {
  color: #c0cde9 !important;
  margin-top: 6px !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-estado {
  display: inline-block !important;
  margin-top: 10px !important;
  padding: 2px 12px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-time.siscre-notif-deadline-badge {
  display: inline-block !important;
  margin-top: 10px !important;
  margin-left: 8px !important;
  padding: 2px 12px !important;
  border-radius: 999px !important;
  background: #3f78c8 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-action-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-action-btn.btn-warning {
  background: #3f78c8 !important;
  border-color: #3f78c8 !important;
  color: #ffffff !important;
}

#siscreNotifList .siscre-notif-item .siscre-notif-action-btn.btn-success {
  background: #1f6e46 !important;
  border-color: #1f6e46 !important;
  color: #ffffff !important;
}

body.siscre-theme .siscre-top-search-item {
  margin-left: 0.5rem;
}

body.siscre-theme .siscre-top-search-form {
  width: 360px;
  max-width: 42vw;
}

body.siscre-theme .siscre-top-search-form .input-group-text,
body.siscre-theme .siscre-top-search-form .form-control {
  background: #141d36;
  border-color: #2a375f;
  color: #d5def5;
}

body.siscre-theme .siscre-top-search-form .form-control::placeholder {
  color: #7f90bc;
}

body.siscre-theme .page-item .page-link {
  background: #121d38;
  border-color: #243152;
  color: #9eb0db;
}

body.siscre-theme .page-item.active .page-link {
  background: #3167f3;
  border-color: #3167f3;
  color: #fff;
}

body.siscre-theme .content-wrapper .card-header,
body.siscre-theme .content-wrapper .card-footer {
  background: #121c36;
  border-color: #233050;
}

/* Dashboard stats cards: keep title contrast in both themes */
body.siscre-theme:not(.siscre-light-mode) .siscre-dashboard-stats > .card-header,
body.siscre-theme:not(.siscre-light-mode) .siscre-dashboard-stat-card > .card-header {
  background: #121e3c !important;
  border-bottom: 1px solid #26365e !important;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-dashboard-stats > .card-header .card-title,
body.siscre-theme:not(.siscre-light-mode) .siscre-dashboard-stat-card > .card-header .card-title {
  color: #e2ebff !important;
}

body.siscre-theme.siscre-light-mode .siscre-dashboard-stats > .card-header,
body.siscre-theme.siscre-light-mode .siscre-dashboard-stat-card > .card-header {
  background: #121e3c !important;
  border-bottom: 1px solid #26365e !important;
}

body.siscre-theme.siscre-light-mode .siscre-dashboard-stats > .card-header .card-title,
body.siscre-theme.siscre-light-mode .siscre-dashboard-stat-card > .card-header .card-title {
  color: #f3f7ff !important;
}

body.siscre-theme .content-wrapper .text-muted {
  color: #8ea0cb !important;
}

body.siscre-theme .siscre-credits-card {
  margin-top: 0.6rem;
}

body.siscre-theme .siscre-dt-tools {
  display: inline-flex;
  border: 2px solid #3f6af7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

body.siscre-theme .siscre-dt-tools .btn-tool-item {
  background: #1a2647;
  color: #7ea2ff;
  border: 0;
  border-right: 1px solid #3f6af7;
  padding: 8px 18px;
  font-weight: 600;
  line-height: 1.1;
}

body.siscre-theme .siscre-dt-tools .btn-tool-item:last-child {
  border-right: 0;
}

body.siscre-theme .siscre-dt-tools .btn-tool-item:hover {
  background: #23345f;
  color: #fff;
}

/* ===== Legacy modules: global normalization (dark) ===== */
body.siscre-theme:not(.siscre-light-mode) .content-wrapper label {
  color: #d9e4ff;
  font-weight: 600;
  letter-spacing: 0.1px;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .panel.panel-default {
  background: #0f1730 !important;
  border: 1px solid #1f2945 !important;
  border-radius: 10px;
  overflow: hidden;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .panel.panel-default .panel-heading {
  background: #121c36 !important;
  color: #e6eeff !important;
  border-bottom: 1px solid #253055 !important;
  font-size: 1.03rem;
  font-weight: 700;
  padding: 0.42rem 0.6rem;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .panel.panel-default .panel-footer {
  background: #101a33 !important;
  border-top: 1px solid #253055 !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .panel-heading.no-collapse {
  color: #e6eeff !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .table-bordered th,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper .table-bordered td,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display th,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display td {
  border-color: #26345b !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display thead th,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.table thead th {
  background: #17233f !important;
  color: #dfe8ff !important;
  font-weight: 700;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display tbody td,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.table tbody td {
  color: #d2ddf7 !important;
  background: #101a33 !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display tbody tr:nth-child(odd) td {
  background: #111d39 !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display tbody tr:nth-child(even) td {
  background: #0f1832 !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper table.display tbody tr:hover td {
  background: #1a2748 !important;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .form-control.form-control-sm.bg-primary,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper .form-control.form-control-sm.bg-danger,
body.siscre-theme:not(.siscre-light-mode) .content-wrapper .form-control.form-control-sm.bg-success {
  color: #f6fbff !important;
  font-weight: 700;
  letter-spacing: 0.15px;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .btn.btn-default {
  background: #14a17f;
  border-color: #14a17f;
  color: #fff;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .btn.btn-default:hover {
  background: #0f8f70;
  border-color: #0f8f70;
  color: #fff;
}

body.siscre-theme:not(.siscre-light-mode) .content-wrapper .btn.btn-xs.bg-primary {
  background: #1f7bff !important;
  border-color: #2f8bff !important;
  color: #fff !important;
  border-radius: 11px;
  min-width: 64px;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
}

/* ===== Legacy modules: global normalization (light) ===== */
body.siscre-theme.siscre-light-mode .content-wrapper .panel.panel-default {
  background: #fff !important;
  border: 1px solid #e3ebf6 !important;
  border-radius: 10px;
  overflow: hidden;
}

body.siscre-theme.siscre-light-mode .content-wrapper .panel.panel-default .panel-heading {
  background: #f7f9fc !important;
  color: #2d3448 !important;
  border-bottom: 1px solid #e3ebf6 !important;
  font-weight: 700;
}

body.siscre-theme.siscre-light-mode .content-wrapper .panel-heading.no-collapse {
  color: #2d3448 !important;
}

body.siscre-theme.siscre-light-mode .content-wrapper table.display thead th,
body.siscre-theme.siscre-light-mode .content-wrapper table.table thead th {
  background: #f4f6f9 !important;
  color: #344065 !important;
}

body.siscre-theme.siscre-light-mode .content-wrapper table.display tbody td,
body.siscre-theme.siscre-light-mode .content-wrapper table.table tbody td {
  color: #2d3448 !important;
  background: #fff !important;
}

body.siscre-theme.siscre-light-mode .content-wrapper table.display tbody tr:nth-child(even) td {
  background: #fafcff !important;
}

body.siscre-theme.siscre-light-mode .content-wrapper .btn.btn-default {
  background: #14a17f;
  border-color: #14a17f;
  color: #fff;
}

body.siscre-theme.siscre-light-mode .content-wrapper .btn.btn-default:hover {
  background: #0f8f70;
  border-color: #0f8f70;
  color: #fff;
}

/* Credito detalle: mejorar legibilidad de tablas internas (egresos/abonos) */
body.siscre-theme:not(.siscre-light-mode) #Desembolsos,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados,
body.siscre-theme:not(.siscre-light-mode) #tAnexos {
  width: 100%;
  border-collapse: collapse;
  background: #0f1730 !important;
  color: #d9e4ff !important;
  border: 1px solid #26345b;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos thead th,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados thead th,
body.siscre-theme:not(.siscre-light-mode) #tAnexos thead th {
  background: #17233f !important;
  color: #dfe8ff !important;
  border: 1px solid #2a385f !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.48rem 0.6rem;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos tbody td,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados tbody td,
body.siscre-theme:not(.siscre-light-mode) #tAnexos tbody td {
  background: #101a33 !important;
  color: #d2ddf7 !important;
  border: 1px solid #223055 !important;
  font-weight: 500 !important;
  font-size: 0.98rem;
  padding: 0.44rem 0.6rem;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos tbody tr:nth-child(odd) td,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados tbody tr:nth-child(odd) td,
body.siscre-theme:not(.siscre-light-mode) #tAnexos tbody tr:nth-child(odd) td {
  background: #111d39 !important;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos tbody tr:nth-child(even) td,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados tbody tr:nth-child(even) td,
body.siscre-theme:not(.siscre-light-mode) #tAnexos tbody tr:nth-child(even) td {
  background: #0e1730 !important;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos tbody tr:hover td,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados tbody tr:hover td,
body.siscre-theme:not(.siscre-light-mode) #tAnexos tbody tr:hover td {
  background: #182545 !important;
}

body.siscre-theme:not(.siscre-light-mode) #Desembolsos a.btn.bg-primary,
body.siscre-theme:not(.siscre-light-mode) #AbonosRealizados a.btn.bg-primary {
  background: #1f7bff !important;
  border: 1px solid #2f8bff !important;
  color: #fff !important;
  border-radius: 12px;
  min-width: 74px;
  font-weight: 700;
}

body.siscre-theme:not(.siscre-light-mode) .panel.panel-default {
  background: #0f1730 !important;
  border: 1px solid #1f2945 !important;
  border-radius: 10px;
  overflow: hidden;
}

body.siscre-theme:not(.siscre-light-mode) .panel.panel-default .panel-heading {
  background: #121c36 !important;
  color: #e6eeff !important;
  border-bottom: 1px solid #253055 !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.38rem 0.55rem;
}

body.siscre-theme .sidebar .form-control-sidebar,
body.siscre-theme .sidebar .btn-sidebar {
  background: #121c36;
  border-color: #243152;
  color: #b5c4e8;
}

body.siscre-theme .sidebar .form-control-sidebar::placeholder {
  color: #8091be;
}

body.siscre-theme.siscre-light-mode {
  background: #f4f6f9;
  color: #2d3448;
}

body.siscre-theme.siscre-light-mode .wrapper {
  background: #f4f6f9;
}

body.siscre-theme.siscre-light-mode .main-header.navbar {
  background: #f9fbfd !important;
  border-bottom: 1px solid #d9e1ec;
}

body.siscre-theme.siscre-light-mode .main-sidebar,
body.siscre-theme.siscre-light-mode .brand-link {
  background: #141824;
}

body.siscre-theme.siscre-light-mode .content-wrapper {
  background: #f4f6f9;
  color: #2d3448;
}

body.siscre-theme.siscre-light-mode .content-header h1 {
  color: #212529;
}

body.siscre-theme.siscre-light-mode .card,
body.siscre-theme.siscre-light-mode .info-box,
body.siscre-theme.siscre-light-mode .small-box {
  background: #ffffff;
  border-color: #e3ebf6;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.03);
  color: #2d3448;
}

body.siscre-theme.siscre-light-mode .table,
body.siscre-theme.siscre-light-mode table.dataTable {
  color: #2d3448;
  background: #ffffff;
  border-color: #e3ebf6 !important;
}

body.siscre-theme.siscre-light-mode .table thead th,
body.siscre-theme.siscre-light-mode table.dataTable thead th {
  background: #f4f6f9;
  color: #555b7e;
  border-bottom: 1px solid #e3ebf6;
}

body.siscre-theme.siscre-light-mode table.dataTable tbody tr,
body.siscre-theme.siscre-light-mode table.dataTable.stripe tbody tr.odd,
body.siscre-theme.siscre-light-mode table.dataTable.display tbody tr.odd {
  background: #ffffff;
}

body.siscre-theme.siscre-light-mode table.dataTable.display tbody tr.even > .sorting_1,
body.siscre-theme.siscre-light-mode table.dataTable.order-column.stripe tbody tr.even > .sorting_1,
body.siscre-theme.siscre-light-mode table.dataTable.display tbody tr.odd > .sorting_1,
body.siscre-theme.siscre-light-mode table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
  background: #f7f9ff !important;
}

body.siscre-theme.siscre-light-mode .dataTables_wrapper .dataTables_filter,
body.siscre-theme.siscre-light-mode .dataTables_wrapper .dataTables_length,
body.siscre-theme.siscre-light-mode .dataTables_wrapper .dataTables_info {
  color: #555b7e !important;
}

body.siscre-theme.siscre-light-mode .dataTables_wrapper .dataTables_filter input,
body.siscre-theme.siscre-light-mode .dataTables_wrapper .dataTables_length select,
body.siscre-theme.siscre-light-mode .form-control,
body.siscre-theme.siscre-light-mode .custom-select,
body.siscre-theme.siscre-light-mode select {
  background: #ffffff;
  border-color: #d9e1ec;
  color: #2d3448;
}

body.siscre-theme.siscre-light-mode .input-group-text {
  background: #f4f6f9;
  border-color: #d9e1ec;
  color: #7a82b1;
}

body.siscre-theme.siscre-light-mode .siscre-top-search-form .input-group-text,
body.siscre-theme.siscre-light-mode .siscre-top-search-form .form-control {
  background: #f4f6f9;
  border-color: #d9e1ec;
  color: #5b6386;
}

body.siscre-theme.siscre-light-mode .siscre-top-search-form .form-control::placeholder {
  color: #8d95b7;
}

body.siscre-theme.siscre-light-mode .navbar-light .navbar-nav .nav-link {
  color: #667299;
}

body.siscre-theme.siscre-light-mode .navbar-light .navbar-nav .nav-link:hover {
  color: #243766;
}

body.siscre-theme.siscre-light-mode .siscre-icon-btn {
  background: #ffffff;
  border-color: #d9e1ec;
}

body.siscre-theme.siscre-light-mode .siscre-icon-btn:hover {
  background: #f1f5ff;
}

body.siscre-theme.siscre-light-mode .siscre-top-avatar {
  border-color: #d9e1ec;
  background: #fff;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd {
  background: #ffffff;
  border: 1px solid #e0e6f2;
  box-shadow: 0 12px 30px rgba(16, 27, 62, 0.14);
}

body.siscre-theme.siscre-light-mode .siscre-user-dd-header {
  background: #ffffff;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd-avatar {
  border-color: #e0e6f2;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd-name {
  color: #2a3143;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd-role {
  color: #8a97b5;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd-section {
  color: #8a97b5;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd .dropdown-item,
body.siscre-theme.siscre-light-mode .siscre-user-dd .dropdown-item i {
  color: #2f3545;
}

body.siscre-theme.siscre-light-mode .siscre-user-dd .dropdown-item:hover {
  background: #f4f7ff;
}

body.siscre-theme.siscre-light-mode .main-footer {
  background: #ffffff;
  border-top: 1px solid #e3ebf6;
  color: #7a82b1;
}

body.siscre-theme.siscre-light-mode .siscre-credits-card {
  border: 1px solid #e6ebf5;
  border-radius: 12px;
  box-shadow: none;
}

body.siscre-theme.siscre-light-mode .siscre-dt-tools {
  border-color: #3f6af7;
  background: #f7f9ff;
}

body.siscre-theme.siscre-light-mode .siscre-dt-tools .btn-tool-item {
  background: #a9b8dd;
  color: #3064f2;
  border-right-color: #3f6af7;
}

body.siscre-theme.siscre-light-mode .siscre-dt-tools .btn-tool-item:hover {
  background: #8fa3d4;
  color: #214dbf;
}

body.siscre-theme.siscre-light-mode #dealList {
  border-collapse: separate;
  border-spacing: 0;
}

body.siscre-theme.siscre-light-mode #dealList thead th {
  background: #f1f4fb;
  color: #202532;
}

/* ===== Legacy modules: shared forms/buttons/table rhythm ===== */
body.siscre-theme .content-wrapper .form-control.input-sm,
body.siscre-theme .content-wrapper .custom-select.input-sm,
body.siscre-theme .content-wrapper select.input-sm,
body.siscre-theme .content-wrapper .form-control.form-control-sm,
body.siscre-theme .content-wrapper .custom-select.form-control-sm {
  min-height: 38px;
  font-size: 0.98rem;
  line-height: 1.2;
}

body.siscre-theme .content-wrapper textarea.form-control.input-sm,
body.siscre-theme .content-wrapper textarea.form-control.form-control-sm {
  min-height: 88px;
  height: auto;
}

body.siscre-theme .content-wrapper .btn.btn-sm,
body.siscre-theme .content-wrapper .btn.input-sm {
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 0.38rem 0.72rem;
}

body.siscre-theme .content-wrapper table.display thead th,
body.siscre-theme .content-wrapper table.dataTable thead th,
body.siscre-theme .content-wrapper #dealList thead th {
  font-size: 0.98rem !important;
  font-weight: 700;
}

body.siscre-theme .content-wrapper table.display tbody td,
body.siscre-theme .content-wrapper table.dataTable tbody td,
body.siscre-theme .content-wrapper #dealList tbody td {
  font-size: 0.92rem !important;
  font-weight: 500;
}

/* Dashboard tables: ensure rows are always visible in dark mode */
body.siscre-theme #CreditosxGirar thead th,
body.siscre-theme #VentasxAsesor thead th,
body.siscre-theme #Movxcruzar thead th {
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 8px 10px !important;
}

body.siscre-theme #CreditosxGirar tbody td,
body.siscre-theme #VentasxAsesor tbody td,
body.siscre-theme #Movxcruzar tbody td {
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 8px 10px !important;
}

body.siscre-theme #CreditosxGirar .btn.btn-xs,
body.siscre-theme #Movxcruzar .btn.btn-xs {
  font-size: 0.78rem;
  line-height: 1.1;
  padding: 4px 10px;
  border-radius: 10px;
}

body.siscre-theme:not(.siscre-light-mode) #CreditosxGirar,
body.siscre-theme:not(.siscre-light-mode) #VentasxAsesor,
body.siscre-theme:not(.siscre-light-mode) #Movxcruzar {
  width: 100%;
  border-collapse: collapse;
  background: #0f1730;
}

body.siscre-theme:not(.siscre-light-mode) #CreditosxGirar thead th,
body.siscre-theme:not(.siscre-light-mode) #VentasxAsesor thead th,
body.siscre-theme:not(.siscre-light-mode) #Movxcruzar thead th {
  background: #17233f !important;
  color: #e1e9ff !important;
  border: 1px solid #2b395f !important;
}

body.siscre-theme:not(.siscre-light-mode) #CreditosxGirar tbody td,
body.siscre-theme:not(.siscre-light-mode) #VentasxAsesor tbody td,
body.siscre-theme:not(.siscre-light-mode) #Movxcruzar tbody td {
  color: #d2ddf7 !important;
  border: 1px solid #223055 !important;
  background: #101a33 !important;
}

body.siscre-theme:not(.siscre-light-mode) #CreditosxGirar tbody tr:nth-child(odd) td,
body.siscre-theme:not(.siscre-light-mode) #VentasxAsesor tbody tr:nth-child(odd) td,
body.siscre-theme:not(.siscre-light-mode) #Movxcruzar tbody tr:nth-child(odd) td {
  background: #111d39 !important;
}

body.siscre-theme:not(.siscre-light-mode) #CreditosxGirar tbody tr:hover td,
body.siscre-theme:not(.siscre-light-mode) #VentasxAsesor tbody tr:hover td,
body.siscre-theme:not(.siscre-light-mode) #Movxcruzar tbody tr:hover td {
  background: #1a2748 !important;
}

@media (max-width: 767.98px) {
  body.siscre-theme .siscre-dashboard-stat-card .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  body.siscre-theme #CreditosxGirar,
  body.siscre-theme #Movxcruzar,
  body.siscre-theme #VentasxAsesor {
    min-width: 560px;
    width: 560px;
  }

  body.siscre-theme #CreditosxGirar thead th,
  body.siscre-theme #CreditosxGirar tbody td,
  body.siscre-theme #Movxcruzar thead th,
  body.siscre-theme #Movxcruzar tbody td,
  body.siscre-theme #VentasxAsesor thead th,
  body.siscre-theme #VentasxAsesor tbody td {
    white-space: nowrap;
    font-size: 0.74rem !important;
    padding: 7px 8px !important;
  }
}

/* Dashboard report-like chart: ventas por mes */
body.siscre-theme .siscre-report-chart-card .card-header {
  min-height: 58px;
}

body.siscre-theme .siscre-report-filter-btn {
  border-radius: 12px;
  padding: 0.5rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
}

body.siscre-theme .siscre-report-filter .dropdown-menu {
  border-radius: 12px;
  padding: 0.35rem 0;
  min-width: 180px;
}

body.siscre-theme .siscre-report-filter .dropdown-item {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

body.siscre-theme .siscre-report-inner-box {
  border-radius: 10px;
  padding: 10px 12px 8px;
}

body.siscre-theme .siscre-report-graph-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.siscre-theme .siscre-report-yaxis {
  width: 58px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: 8px;
  padding-bottom: 26px;
}

body.siscre-theme .siscre-report-plot {
  flex: 1 1 auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 2px;
}

body.siscre-theme .siscre-report-months {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

body.siscre-theme .siscre-report-col {
  position: relative;
  flex: 1 1 calc(100% / 12);
  min-width: 0;
  max-width: calc(100% / 12);
  text-align: center;
}

body.siscre-theme .siscre-report-col::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1px dashed rgba(156, 172, 208, 0.35);
}

body.siscre-theme .siscre-report-bars {
  height: 190px;
  width: 14px;
  margin: 0 auto 6px;
  position: relative;
}

body.siscre-theme .siscre-report-bar-pos {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  border-radius: 9px;
  display: block;
}

body.siscre-theme .siscre-report-bar-pos {
  bottom: 0;
  background: #1db58f;
}

body.siscre-theme .siscre-report-col:hover .siscre-report-bar-pos {
  filter: brightness(1.12);
}

body.siscre-theme .siscre-report-month-label {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
}

body.siscre-theme .siscre-report-tooltip {
  position: absolute;
  min-width: 190px;
  max-width: 240px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

body.siscre-theme .siscre-report-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.siscre-theme .siscre-report-tooltip-title {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.siscre-theme .siscre-report-tooltip-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.9rem;
}

body.siscre-theme .siscre-report-tooltip-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1db58f;
  flex: 0 0 auto;
}

body.siscre-theme .siscre-report-tooltip-label {
  font-size: 0.95rem;
  font-weight: 600;
}

body.siscre-theme .siscre-report-tooltip-value {
  font-size: 0.97rem;
  font-weight: 700;
}

@media (max-width: 1399.98px) {
  body.siscre-theme .siscre-report-yaxis {
    width: 50px;
    font-size: 0.8rem;
  }

  body.siscre-theme .siscre-report-month-label {
    font-size: 0.74rem;
  }

  body.siscre-theme .siscre-report-bars {
    height: 170px;
    width: 12px;
  }

  body.siscre-theme .siscre-report-bar-pos {
    width: 9px;
  }
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-chart-card {
  border: 1px solid #23345f;
  background: #0f1730;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-chart-card .card-header {
  background: #121e3c;
  border-bottom: 1px solid #26365e;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-chart-card .card-title {
  color: #dfe8ff;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-inner-box {
  border: 1px solid #2b395f;
  background: #111d39;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter-btn {
  background: #3f4a62;
  color: #ffffff;
  border: 1px solid #52607b;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter-btn:hover {
  background: #4b5772;
  color: #ffffff;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter .dropdown-menu {
  background: #17233f;
  border: 1px solid #2d3f69;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter .dropdown-item {
  color: #d5e2ff;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter .dropdown-item:hover,
body.siscre-theme:not(.siscre-light-mode) .siscre-report-filter .dropdown-item.active {
  background: #24355d;
  color: #ffffff;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-yaxis,
body.siscre-theme:not(.siscre-light-mode) .siscre-report-month-label {
  color: #cedaf7;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-tooltip {
  background: #1f273f;
  border: 1px solid #313e63;
  box-shadow: 0 8px 20px rgba(2, 8, 20, 0.45);
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-tooltip-title {
  color: #f3f7ff;
  border-bottom-color: rgba(194, 208, 240, 0.2);
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-tooltip-label {
  color: #d2ddf7;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-report-tooltip-value {
  color: #ffffff;
}

body.siscre-theme.siscre-light-mode .siscre-report-chart-card {
  border: 1px solid #dde4f2;
  background: #ffffff;
}

body.siscre-theme.siscre-light-mode .siscre-report-chart-card .card-header {
  background: #121e3c;
  border-bottom: 1px solid #26365e;
}

body.siscre-theme.siscre-light-mode .siscre-report-chart-card .card-title {
  color: #f3f7ff;
}

body.siscre-theme.siscre-light-mode .siscre-report-inner-box {
  border: 1px solid #d9e1ec;
  background: #ffffff;
}

body.siscre-theme.siscre-light-mode .siscre-report-filter-btn {
  background: #3f4a62;
  border: 1px solid #52607b;
  color: #ffffff;
}

body.siscre-theme.siscre-light-mode .siscre-report-filter .dropdown-menu {
  background: #ffffff;
  border: 1px solid #dbe2ef;
}

body.siscre-theme.siscre-light-mode .siscre-report-filter .dropdown-item {
  color: #232938;
}

body.siscre-theme.siscre-light-mode .siscre-report-filter .dropdown-item:hover,
body.siscre-theme.siscre-light-mode .siscre-report-filter .dropdown-item.active {
  background: #edf2ff;
  color: #1d2849;
}

body.siscre-theme.siscre-light-mode .siscre-report-yaxis,
body.siscre-theme.siscre-light-mode .siscre-report-month-label {
  color: #2f3547;
}

body.siscre-theme.siscre-light-mode .siscre-report-tooltip {
  background: #ffffff;
  border: 1px solid #dce4f1;
  box-shadow: 0 9px 22px rgba(32, 45, 80, 0.16);
}

body.siscre-theme.siscre-light-mode .siscre-report-tooltip-title {
  color: #202533;
  border-bottom-color: #e8edf6;
}

body.siscre-theme.siscre-light-mode .siscre-report-tooltip-label {
  color: #333b4d;
}

body.siscre-theme.siscre-light-mode .siscre-report-tooltip-value {
  color: #202533;
}

@media (max-width: 991.98px) {
  body.siscre-theme .siscre-top-search-item {
    display: none !important;
  }
}

body.siscre-theme-login {
  background: #eeeff3;
}

body.siscre-theme-login .login-box.siscre-login-box {
  width: 430px;
  max-width: 94vw;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

body.siscre-theme-login .card.siscre-login-card {
  border-radius: 14px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #dbe2ef !important;
  box-shadow: 0 14px 40px rgba(14, 29, 64, 0.11) !important;
}

body.siscre-theme-login .auth-header-box {
  background: #030509 !important;
  color: #ffffff;
}

body.siscre-theme-login .siscre-login-header-inner {
  padding: 22px 20px 20px;
}

body.siscre-theme-login .siscre-login-logo {
  width: 76px;
  max-width: 40%;
  margin-bottom: 8px;
}

body.siscre-theme-login .auth-header-box h2 {
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 1.05;
}

body.siscre-theme-login .auth-header-box p {
  font-size: 18px;
  font-weight: 600;
  color: #8f9ab8;
  line-height: 1.1;
}

body.siscre-theme-login .siscre-login-body {
  padding: 22px 22px 26px;
  background: #f9fafe;
}

body.siscre-theme-login .siscre-login-body label {
  color: #646f9d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

body.siscre-theme-login .form-control,
body.siscre-theme-login .input-group-text {
  height: 42px;
}

body.siscre-theme-login .form-control.siscre-login-input {
  width: 100%;
  border-radius: 12px;
  background: #e9eef9;
  border: 2px solid #e9eef9;
  color: #1f2431;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 14px;
}

body.siscre-theme-login .form-control.siscre-login-input:focus {
  border-color: #3f6af7;
  background: #f0f4ff;
  box-shadow: none;
}

body.siscre-theme-login .siscre-login-meta {
  margin-top: 8px;
}

body.siscre-theme-login .custom-control-label {
  color: #7e88aa;
  font-size: 13px;
  font-weight: 600;
}

body.siscre-theme-login .siscre-forgot-link {
  color: #8c96b4;
  font-size: 13px;
  font-weight: 600;
}

body.siscre-theme-login .siscre-forgot-link:hover {
  color: #496ff5;
  text-decoration: none;
}

body.siscre-theme-login .siscre-login-btn {
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: #3767e8;
  border-color: #3767e8;
  box-shadow: 0 8px 18px rgba(55, 103, 232, 0.25);
}

body.siscre-theme-login .btn-primary {
  background-color: #3767e8;
  border-color: #3767e8;
  font-weight: 700;
}

@media (max-width: 768px) {
  body.siscre-theme-login .auth-header-box h2 {
    font-size: 42px;
  }

  body.siscre-theme-login .auth-header-box p {
    font-size: 32px;
  }

  body.siscre-theme-login .siscre-login-body {
    padding: 30px 24px 36px;
  }

  body.siscre-theme-login .form-control.siscre-login-input {
    font-size: 24px;
    height: 52px;
  }
}

.siscre-user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dce3f2;
  background: #f8fbff;
}

.siscre-user-avatar-preview {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dce3f2;
  background: #f8fbff;
}

/* Compact view for users list screen */
body.siscre-users-compact .content-header h1 {
  font-size: 1.85rem;
}

body.siscre-users-compact .breadcrumb {
  font-size: 0.82rem;
}

body.siscre-users-compact .siscre-dt-tools .btn-tool-item,
body.siscre-users-compact .btn.btn-sm {
  font-size: 0.82rem;
}

body.siscre-users-compact #dealList thead th {
  font-size: 0.84rem !important;
  padding: 0.5rem 0.55rem !important;
}

body.siscre-users-compact #dealList tbody td {
  font-size: 0.82rem !important;
  padding: 0.5rem 0.55rem !important;
}

body.siscre-users-compact .dataTables_wrapper .dataTables_filter label,
body.siscre-users-compact .dataTables_wrapper .dataTables_length label,
body.siscre-users-compact .dataTables_wrapper .dataTables_info,
body.siscre-users-compact .dataTables_wrapper .dataTables_paginate {
  font-size: 0.9rem;
}

body.siscre-users-compact .card-body {
  overflow-x: auto;
}

body.siscre-users-compact #dealList {
  width: 100% !important;
  min-width: 0;
  table-layout: auto;
}

body.siscre-users-compact #dealList thead th,
body.siscre-users-compact #dealList tbody td {
  white-space: normal;
  word-break: break-word;
}

/* Compact view for creditos list screen */
body.siscre-theme .siscre-creditos-page .content-header h1 {
  font-size: 1.75rem;
}

body.siscre-theme .siscre-creditos-page label {
  font-size: 0.94rem;
}

body.siscre-theme .siscre-creditos-page .form-control.form-control-sm,
body.siscre-theme .siscre-creditos-page .form-control.input-sm,
body.siscre-theme .siscre-creditos-page select.form-control-sm,
body.siscre-theme .siscre-creditos-page select.input-sm {
  min-height: 34px;
  font-size: 0.94rem;
}

body.siscre-theme .siscre-creditos-page .btn.btn-sm {
  font-size: 0.92rem;
  padding: 0.32rem 0.62rem;
}

body.siscre-theme .siscre-creditos-page #creditosTools .btn-tool-item {
  font-size: 0.92rem;
  padding: 0.42rem 0.88rem;
}

body.siscre-theme .siscre-creditos-page .dataTables_wrapper .dataTables_filter label,
body.siscre-theme .siscre-creditos-page .dataTables_wrapper .dataTables_length label,
body.siscre-theme .siscre-creditos-page .dataTables_wrapper .dataTables_info,
body.siscre-theme .siscre-creditos-page .dataTables_wrapper .dataTables_paginate {
  font-size: 0.92rem;
}

body.siscre-theme .siscre-creditos-page .card-body {
  overflow-x: auto;
}

body.siscre-theme .siscre-creditos-page #dealList {
  min-width: 1160px;
}

body.siscre-theme .siscre-creditos-page #dealList thead th {
  font-size: 0.8rem !important;
  padding: 0.26rem 0.34rem !important;
}

body.siscre-theme .siscre-creditos-page #dealList tbody td {
  font-size: 0.78rem !important;
  padding: 0.28rem 0.34rem !important;
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-btn {
  width: 34px;
  height: 30px;
  padding: 0;
  border-radius: 7px !important;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(20, 31, 62, 0.2);
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-btn i {
  color: #ffffff !important;
  font-size: 0.78rem;
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-btn-edit {
  background: #3867f6 !important;
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-btn-delete {
  background: #f33f74 !important;
}

body.siscre-theme .siscre-creditos-page #dealList .siscre-action-btn:hover {
  filter: brightness(1.06);
}

/* Modales: contraste unificado en ambos modos */
body.siscre-theme .modal .modal-content {
  background: #0f1730 !important;
  border: 1px solid #26365e !important;
  color: #e7efff !important;
}

body.siscre-theme .modal .modal-header,
body.siscre-theme .modal .modal-footer {
  background: #0f1730 !important;
  border-color: #26365e !important;
}

body.siscre-theme .modal .modal-body {
  background: #0f1730 !important;
  color: #e7efff !important;
}

body.siscre-theme .modal .modal-title {
  color: #e7efff !important;
  font-weight: 700;
}

body.siscre-theme .modal label {
  color: #dce8ff !important;
  font-weight: 700;
}

body.siscre-theme .modal .form-control,
body.siscre-theme .modal .form-control:focus,
body.siscre-theme .modal select.form-control {
  color: #e7efff !important;
}

body.siscre-theme .modal .close,
body.siscre-theme .modal button.close span {
  color: #dce8ff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Descuentos nómina: botones de editar/borrar con estilo de Créditos */
body.siscre-theme .siscre-descuentos-page #dealList .siscre-action-btn,
body.siscre-theme .siscre-descuentos-page #tDescuentos .siscre-action-btn {
  width: 42px;
  height: 38px;
  padding: 0;
  border-radius: 8px !important;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(20, 31, 62, 0.2);
}

body.siscre-theme .siscre-descuentos-page #dealList .siscre-action-btn i,
body.siscre-theme .siscre-descuentos-page #tDescuentos .siscre-action-btn i {
  color: #ffffff !important;
  font-size: 0.92rem;
}

body.siscre-theme .siscre-descuentos-page #dealList .siscre-action-btn-edit,
body.siscre-theme .siscre-descuentos-page #tDescuentos .siscre-action-btn-edit {
  background: #3867f6 !important;
}

body.siscre-theme .siscre-descuentos-page #dealList .siscre-action-btn-delete,
body.siscre-theme .siscre-descuentos-page #tDescuentos .siscre-action-btn-delete {
  background: #f33f74 !important;
}

body.siscre-theme .siscre-descuentos-page #dealList .siscre-action-btn:hover,
body.siscre-theme .siscre-descuentos-page #tDescuentos .siscre-action-btn:hover {
  filter: brightness(1.06);
}

/* Tablas basicas: botones de editar/borrar como Creditos */
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fas.fa-edit,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-edit,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-pencil {
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #3867f6 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(20, 31, 62, 0.2);
}

body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fas.fa-trash,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-trash,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-trash-o {
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f33f74 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(20, 31, 62, 0.2);
}

body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fas.fa-edit:hover,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-edit:hover,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-pencil:hover,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fas.fa-trash:hover,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-trash:hover,
body.siscre-theme.siscre-basic-actions .content-wrapper #dealList tbody td a.fa.fa-trash-o:hover {
  filter: brightness(1.06);
}

/* Retiros de cuentas: evitar franja lateral en DataTables */
body.siscre-theme .siscre-retiros-page #dealList {
  width: 100% !important;
}

body.siscre-theme .siscre-retiros-page .table-responsive {
  overflow-x: auto;
}

body.siscre-theme.siscre-light-mode .siscre-retiros-page .dataTables_wrapper,
body.siscre-theme.siscre-light-mode .siscre-retiros-page .dataTables_wrapper .ui-toolbar,
body.siscre-theme.siscre-light-mode .siscre-retiros-page .dataTables_wrapper .dataTables_scroll,
body.siscre-theme.siscre-light-mode .siscre-retiros-page .dataTables_wrapper .dataTables_scrollHead,
body.siscre-theme.siscre-light-mode .siscre-retiros-page .dataTables_wrapper .dataTables_scrollBody {
  background: #ffffff !important;
}

body.siscre-theme:not(.siscre-light-mode) .siscre-retiros-page .dataTables_wrapper,
body.siscre-theme:not(.siscre-light-mode) .siscre-retiros-page .dataTables_wrapper .ui-toolbar,
body.siscre-theme:not(.siscre-light-mode) .siscre-retiros-page .dataTables_wrapper .dataTables_scroll,
body.siscre-theme:not(.siscre-light-mode) .siscre-retiros-page .dataTables_wrapper .dataTables_scrollHead,
body.siscre-theme:not(.siscre-light-mode) .siscre-retiros-page .dataTables_wrapper .dataTables_scrollBody {
  background: #0f1730 !important;
}

/* Fecha: botón calendario unificado en toda la app */
body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn {
  background: #3167f3 !important;
  border-color: #3167f3 !important;
  color: #ffffff !important;
  min-width: 42px;
  box-shadow: none !important;
  background-image: none !important;
}

body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn i,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn i {
  color: #ffffff !important;
}

body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn:hover,
body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn:focus,
body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn:active,
body.siscre-theme .content-wrapper .siscre-date-group .siscre-date-btn.active,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn:hover,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn:focus,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn:active,
body.siscre-theme .modal .siscre-date-group .siscre-date-btn.active {
  background: #3167f3 !important;
  border-color: #3167f3 !important;
  color: #ffffff !important;
  filter: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

body.siscre-theme .content-wrapper .siscre-date-group input[type="date"],
body.siscre-theme .modal .siscre-date-group input[type="date"] {
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
  background-image: none !important;
}

body.siscre-theme .content-wrapper .siscre-date-group input[type="date"]::-webkit-calendar-picker-indicator,
body.siscre-theme .modal .siscre-date-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.siscre-theme .content-wrapper .siscre-date-group input[type="date"]::-webkit-inner-spin-button,
body.siscre-theme .content-wrapper .siscre-date-group input[type="date"]::-webkit-clear-button,
body.siscre-theme .modal .siscre-date-group input[type="date"]::-webkit-inner-spin-button,
body.siscre-theme .modal .siscre-date-group input[type="date"]::-webkit-clear-button {
  display: none !important;
}

/* Fallback calendario unificado (sin depender de body.siscre-theme) */
.siscre-date-group .siscre-date-btn {
  background: #3167f3 !important;
  border-color: #3167f3 !important;
  color: #ffffff !important;
  min-width: 42px;
  box-shadow: none !important;
}

.siscre-date-group .siscre-date-btn i {
  color: #ffffff !important;
}

.siscre-date-group input[type="date"] {
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
  background-image: none !important;
}

.siscre-date-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
