/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
*/

/*--------------------------------------------------------------
# Variables por defecto (se sobreescriben desde _theme.php)
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --bs-primary: #013185;
  --color-primary-dark: #012a71;
  --color-primary-light: #8da2c8;
  --color-primary-bg: #e1e6f0;
  --color-primary-rgb: 1, 49, 133;
  --color-text: #444444;
  --color-text-dark: #2d2d2d;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--color-primary-bg);
  color: var(--color-text) !important;
}

a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

i {
  line-height: 1;
}

.text-blue {
  color: #0d6efd !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  /* -webkit-text-fill-color: var(--color-text) !important; */
  transition: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
  /* Color del scroll */
  border-radius: 10px;
  /* Bordes redondeados */
  border: none;
  /* Espacio alrededor del thumb */
}

/* 4. Efecto hover en el manejador */
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
  /* Color al pasar el mouse */
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--bs-primary);
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--bs-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Loader
--------------------------------------------------------------*/
.loader {
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.jimu-primary-loading:before,
.jimu-primary-loading:after {
  position: absolute;
  top: 0;
  content: '';
}

.jimu-primary-loading:before {
  left: -19.992px;
}

.jimu-primary-loading:after {
  left: 19.992px;
  -webkit-animation-delay: 0.32s !important;
  animation-delay: 0.32s !important;
}

.jimu-primary-loading:before,
.jimu-primary-loading:after,
.jimu-primary-loading {
  background: #076fe5;
  -webkit-animation: loading-keys-app-loading 0.8s infinite ease-in-out;
  animation: loading-keys-app-loading 0.8s infinite ease-in-out;
  width: 13.6px;
  height: 32px;
}

.jimu-primary-loading {
  text-indent: -9999em;
  margin: auto;
  position: absolute;
  right: calc(50% - 6.8px);
  top: calc(50% - 16px);
  -webkit-animation-delay: 0.16s !important;
  animation-delay: 0.16s !important;
}

@-webkit-keyframes loading-keys-app-loading {

  0%,
  80%,
  100% {
    opacity: .75;
    box-shadow: 0 0 #076fe5;
    height: 32px;
  }

  40% {
    opacity: 1;
    box-shadow: 0 -8px #076fe5;
    height: 40px;
  }
}

@keyframes loading-keys-app-loading {

  0%,
  80%,
  100% {
    opacity: .75;
    box-shadow: 0 0 #076fe5;
    height: 32px;
  }

  40% {
    opacity: 1;
    box-shadow: 0 -8px #076fe5;
    height: 40px;
  }
}

/*--------------------------------------------------------------
# Dropdown menus
--------------------------------------------------------------*/
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: var(--color-text);
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 8px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--color-primary-bg);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*--------------------------------------------------------------
# Light Backgrounds
--------------------------------------------------------------*/
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/*--------------------------------------------------------------
# Card
--------------------------------------------------------------*/
.card {
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bs-primary);
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}


.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/*--------------------------------------------------------------
# Alerts / Close / Accordion
--------------------------------------------------------------*/
.alert-heading {
  font-weight: 500;
  font-size: 20px;
}

.btn-close {
  background-size: 25%;
  font-size: 30px;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--color-text-dark);
  background-color: var(--color-primary-bg);
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--bs-primary);
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumb {
  font-size: 14px;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Bordered Tabs
--------------------------------------------------------------*/
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--bs-primary);
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: var(--bs-primary);
  border-bottom: 2px solid var(--bs-primary);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

.logo-header img {
  max-height: 50px;
  margin-right: 15px;
  margin-left: 15px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--bs-primary);
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 10px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--bs-primary);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: var(--color-text-dark);
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(var(--color-primary-rgb), 0.2);
  border: 1px solid rgba(var(--color-primary-rgb), 0.4);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: var(--color-text-dark);
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: var(--color-text-dark);
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: var(--color-text-dark);
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: var(--color-primary-bg);
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-text);
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: var(--color-primary-bg);
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-text);
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: var(--color-primary-bg);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 325px;
    zoom: 95%;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

/* Activo */
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--bs-primary);
  transition: 0.3s;
  background: var(--color-primary-bg);
  padding: 5px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--bs-primary);
}

/* Inactivo */
.sidebar-nav .nav-link.collapsed {
  color: var(--color-text);
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

/* Hover */
.sidebar-nav .nav-link:hover {
  color: var(--bs-primary);
  background: var(--color-primary-bg);
}

.sidebar-nav .nav-link:hover i {
  color: var(--bs-primary);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: 0.3s;
  padding: 10px 0 10px 40px;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--bs-primary);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--bs-primary);
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: var(--bs-primary);
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: var(--color-text-dark);
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: var(--bs-primary);
  background: var(--color-primary-bg);
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: var(--color-primary-bg);
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: var(--color-text-dark);
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: var(--bs-primary);
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: var(--color-primary-bg);
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: var(--color-primary-bg);
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

.nav.nav-tabs {
  position: relative;
  z-index: 1;
  top: 4px;
  border-bottom: none;
}

.nav.nav-tabs .nav-link {
  border: none;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Resto de secciones
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: var(--color-text-dark);
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: var(--color-text-dark);
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: var(--color-text-dark);
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bs-primary);
}

.faq .basic p {
  color: #6980aa;
}

.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: var(--bs-primary);
}

.contact .info-box h3 {
  font-size: 20px;
  color: var(--color-text-dark);
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--bs-primary);
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: var(--bs-primary);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--color-primary-dark);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: var(--color-text-dark);
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dark);
}

/*--------------------------------------------------------------
# Formularios
--------------------------------------------------------------*/
.form-label {
    margin-bottom: 4px;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a96a8;
}
.form-control,
.form-select,
.input-group-text {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid 3px var(--bs-primary);
  box-shadow: none !important;
}

textarea.form-control {
  border: solid 1px var(--bs-gray-200) !important;
  border-bottom: solid 3px var(--bs-primary) !important;
}

.form-control:focus,
.form-select:focus {
  border-bottom-color: var(--color-primary-dark) !important;
  outline: none;
}

.form-check-input {
  margin-top: 0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 10px 0 rgba(var(--color-primary-rgb), 0.2);
  border-color: var(--bs-primary);
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

select option:checked,
select option:hover {
  background-color: var(--bs-primary) !important;
  color: #fff;
}

select {
  cursor: pointer;
}

/* ── Select2 ─────────────── */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  min-height: 38px;
  border: none;
  border: solid 1px var(--bs-gray-200);
  border-bottom: 3px solid var(--bs-primary);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  border-radius: 0.375rem;
}
.select2-container .select2-selection--multiple {
  flex-direction: column;
  align-items: start;
}

.select2-container .select2-selection--multiple .select2-selection__rendered{
  margin-bottom: 0px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  top: 1px;
}

.select2-dropdown {
  border: 1px solid #dee2e6 !important;
  font-size: .875rem;
  overflow: hidden;
  border-radius: 0.375rem;
}

.select2-container {
  width: 100% !important;
  flex: 1 !important;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #dee2e6 !important;
  border-radius: 0.375rem;
  font-size: .875rem;
  outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 0;
}

.select2-container .select2-selection--multiple .select2-search .select2-search--inline{
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--color-primary-bg);
  border: 1px solid var(--bs-primary);
  border-radius: 5px;
  padding-left: 20px;
  white-space: normal;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__remove {
  border-right: none;
  color: var(--bs-primary);
  padding: 0 7px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  font-size: .8rem;
}

.select2-container--default .select2-search--inline .select2-search__field{
  font-family: "Nunito", sans-serif;
}

.select2-search.select2-search--inline{
  width: 100%;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Botones
--------------------------------------------------------------*/
.btn {
  display: flex;
  align-items: center !important;
  gap: 0.5rem !important;
  justify-content: center !important;
}

/*--------------------------------------------------------------
# Report Card
--------------------------------------------------------------*/
.report-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: all 0.25s ease;
  overflow: hidden;
  border-left: 5px solid var(--color-primary-dark)
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
  border-color: var(--bs-primary);
}

.report-card .btn {
  padding: 6px 0 3px;
  border-radius: 20px;
}

.report-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bs-primary) 12%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-icon-wrap i {
  font-size: 1.2rem;
  color: var(--bs-primary);
}

/*--------------------------------------------------------------
# Drop Zone
--------------------------------------------------------------*/
.drop-zone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: .6rem .8rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fafafa;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--bs-primary);
  background: var(--color-primary-bg);
}

.drop-zone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  pointer-events: none;
}

.drop-zone__preview {
  display: flex;
  align-items: center;
}

.drop-zone__preview.d-none {
  display: none !important;
}

.btn-clear-drop {
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.table-responsive {
  overflow: visible !important;
}

.dataTables_wrapper {
  overflow: visible !important;
}

.card-body {
  overflow: visible !important;
}

.dataTables_scrollBody {
  overflow: visible !important;
}

/* ── DataTables general ─────────────────────────────────────────── */

table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1)>* {
  box-shadow: none;
  background: rgba(var(--color-primary-rgb), 0.05) !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  box-shadow: none;
  background: rgba(var(--color-primary-rgb), 0.05) !important;
}

/* Wrapper superior: length + search */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  font-size: .82rem;
  color: #6c757d;
  margin-bottom: .5rem;
}

.dataTables_wrapper .dataTables_length select {
  padding: .15rem .4rem;
  padding-right: 2rem;
  font-size: .82rem;
  color: #444;
}

.dataTables_wrapper .dataTables_filter input {
  padding: .15rem .4rem;
  font-size: .82rem;
  color: #444;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-bottom-color: var(--color-primary-dark);
  box-shadow: none;
}

/* Separador sutil entre controles y tabla */
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper>.row:first-child {
  padding-bottom: .4rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: .5rem;
}

/* Footer: info + paginación */
.dataTables_wrapper .dataTables_info {
  font-size: .78rem;
  color: #9aa0a6;
  padding-top: .6rem;
}

.dataTables_wrapper .dataTables_paginate {
  font-size: .78rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  gap: 1px;
  margin-top: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
  padding: .2rem .55rem !important;
  font-size: .78rem !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--bs-primary) !important;
  color: #fff !important;
  border-color: var(--bs-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled, .active) .page-link {
  background: var(--color-primary-bg) !important;
  color: var(--bs-primary) !important;
  /* border-color: var(--bs-primary) !important; */
}

/* Fecha */
.text-date {
  font-size: .82rem;
  color: var(--color-primary-dark);
  font-weight: 500;
}

table.table>thead+tbody>tr.inactivo>td,
table.table.table-striped>thead+tbody>tr.inactivo>td {
  background-color: #ffd3d3 !important;
}

.modal-content{
  border: none;
}

/* ── Pagetitle ───────────────────────────────────────────────── */
.pagetitle-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(var(--bs-primary-rgb, 1, 49, 133), .07);
    padding: 14px 22px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;    
    gap: 12px;
    border-left: 4px solid var(--bs-primary);
}

.pagetitle-wrap h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin: 0;
}