/**--------------------------------------------------------------*/
/** # General */
/**--------------------------------------------------------------*/

:root {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-default);
  background: var(--body-bg);
  color: var(--color-default);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

.inline-elements {
  display: flex;
  align-items: center;
}
.inline-elements p {
  margin: 0;
}
.inline-elements hr {
  margin: 0 0 0 5px;
  flex: 1;
  opacity: 1;
}

/**--------------------------------------------------------------*/
/** # Main */
/**--------------------------------------------------------------*/

#main {
  margin-top: 75px;
  padding: 20px 30px;
  transition: all 0.3s;
}

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

/**--------------------------------------------------------------*/
/** # Loading Animation Spinner*/
/**--------------------------------------------------------------*/

.loading-display {
  position: fixed;
  display: flex;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9989;
  background: var(--body-bg);
  color: var(--color-primary);
  opacity: 1;
}

.spinner-border-loading {
  --bs-spinner-width: 10rem;
  --bs-spinner-height: 10rem;
  --bs-spinner-vertical-align: -0.125em;
  --bs-spinner-border-width: 0.25em;
  --bs-spinner-animation-speed: 0.75s;
  --bs-spinner-animation-name: spinner-border;
  border: var(--bs-spinner-border-width) solid currentcolor;
  border-right-color: transparent;
  display: inline-block;
  width: var(--bs-spinner-width);
  height: var(--bs-spinner-height);
  vertical-align: var(--bs-spinner-vertical-align);
  border-radius: 50%;
  animation: var(--bs-spinner-animation-speed) linear infinite
    var(--bs-spinner-animation-name);
}

.spinner-border-sm {
  --bs-spinner-width: 1rem;
  --bs-spinner-height: 1rem;
  --bs-spinner-border-width: 0.1em;
}

.spinner-border-xs {
  --bs-spinner-width: 0.7rem;
  --bs-spinner-height: 0.7rem;
  --bs-spinner-border-width: 0.1em;
}

/**--------------------------------------------------------------*/
/** # Page Title */
/**--------------------------------------------------------------*/

.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #00097a;
}

/**--------------------------------------------------------------*/
/** # Back to top button */
/**--------------------------------------------------------------*/

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 1060;
  background: #00097a;
  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: rgb(0, 8, 122);
  color: #fff;
}

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

/**--------------------------------------------------------------*/
/** # Override some default Bootstrap stylings */
/**--------------------------------------------------------------*/

/**--------------------------------------------------------------*/
/** # Form */
/**--------------------------------------------------------------*/

/* form.font-smaller input,
form.font-smaller select,
form.font-smaller textarea,
form.font-smaller button {
  font-size: 1.15em;
} */

.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
  height: calc(3rem + calc(var(--bs-border-width) * 2));
  min-height: calc(3rem + calc(var(--bs-border-width) * 2));
  font-size: 0.8rem;
  line-height: 1.25;
  padding: 0.95rem 0.75 0rem 0.75rem;
}

.form-floating > .form-label {
  font-size: 0.8rem;
}

/* IVA trasladado: bloque de radios con etiqueta flotante dentro del control */
.accounts-payable-vat-rate-floating > .form-control {
  height: auto;
  min-height: calc(4.5rem + calc(var(--bs-border-width) * 2));
  padding-top: 1.40rem;
  padding-bottom: 0.4rem;
}

.accounts-payable-vat-rate-floating .accounts-payable-vat-retention-row {
  margin-top: 0.25rem !important;
}

.accounts-payable-vat-rate-floating .accounts-payable-vat-retention-row .form-check {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.accounts-payable-vat-rate-floating .accounts-payable-vat-retention-row .form-check-input {
  flex: 0 0 auto;
}

.accounts-payable-vat-rate-floating .accounts-payable-vat-retention-row .form-check-label {
  flex: 0 1 auto;
  text-align: left;
}

.accounts-payable-vat-rate-floating > .form-control ~ label {
  opacity: var(--bs-secondary-color, 0.65);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Resumen del folio — cuadros de origen/destino con fondo del modal */
.accounts-payable-folio-summary__endpoint {
  background-color: var(--body-bg);
}

/** Checkbox */
.form-check-input {
  margin-top: 0 !important;
}

/** 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: #444444;
  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: 10px 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: #f6f9ff;
}

@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;
  }

  0% {
    opacity: 0;
  }
}

/** Backgrounds */
.bg-warning {
  color: #000000;
}

/** 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: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

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

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  font-family: var(--font-primary);
}

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

.card-body {
  padding: 0 20px 20px 20px;
}

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

/* Filter dropdown */
.filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

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

.filter .icon:hover,
.filter .icon:focus {
  color: #00097a;
}

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

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

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

.summary-toggle-btn {
  right: 17px;
  bottom: 8px;
}

/** Info Cards */
.info-card {
  padding-bottom: 10px;
}

.info-card h6 {
  font-size: 28px;
  color: #00097a;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

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

.secondary-card .card-icon {
  color: #565656;
  background: rgb(86, 86, 86, 0.1);
}

.primary-card .card-icon {
  color: #00097a;
  background: rgb(0, 9, 122, 0.1);
}

.tertiary-card .card-icon {
  color: #760c02;
  background: rgb(118, 12, 2, 0.1);
}

.sales-card .card-icon {
  color: #00097a;
  background: #f6f6fe;
}

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

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

.success-card .card-icon {
  color: #198754;
  background: #e0f8e9;
}

/** Card Button */
.card-body-btn {
  padding: 0 20px 0 20px;
  font-family: var(--font-default);
  font-size: smaller;
}

.card-body-btn .card-title {
  padding-bottom: 0;
  margin-bottom: 0;
}

/** Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Dungeon Regular", sans-serif;
  font-size: 20px;
}

/** Close Button */
.btn-close {
  background-size: 25%;
}

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

/** Custom Button */
.custom-button::after {
  content: none; /* Esto oculta la flecha */
}

/** Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
  background-color: var(--body-bg) !important;
}

.accordion-item .accordion-tab {
  padding-left: 1em;
}

.accordion-item .form-check-input {
  max-width: 0.75em !important;
  max-height: 0.75em !important;
}

.accordion-item .form-switch .form-check-input {
  max-width: 1.5em !important;
  max-height: 0.75em !important;
}

.accordion-without-background {
  background-color: var(--body-bg) !important;
}

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

.accordion-button:not(.collapsed) {
  color: #00097a;
  background-color: #f6f9ff;
}

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

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #00097a;
}

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

/** Breadcrumbs */
.breadcrumb {
  font-size: 10px;
  font-family: "Dungeon Regular", sans-serif;
  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: #00097a;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #00097a;
  border-bottom: 2px solid #00097a;
}

.nav-tabs .nav-link.active {
  background-color: #fff;
  color: #00097a;
  border-bottom: 2px solid #00097a;
}

.nav-tabs .nav-link.btn-toggle-modal {
  color: rgba(33, 37, 41, 0.75);
}

.nav-tabs .nav-link.btn-toggle-modal:hover {
  color: #00034d;
}

.nav-tabs .nav-item .nav-link .rounded-pill {
  border-radius: 50% !important;
  font-size: 0.6rem !important;
  margin-top: -20px;
  padding: 3px 5px;
}

/** Modal */
/* .modal {
  z-index: 999999;
} */

/* Estilo del header del offcanvas */
/* .modal .modal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
} */

.modal .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-content {
  background-color: var(--body-bg);
}

/**--------------------------------------------------------------*/
/** # Header */
/**--------------------------------------------------------------*/

.logo {
  line-height: 1;
}

/* @media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
} */

.logo img {
  max-height: 40px;
  margin-right: 6px;
}

.logo img.login {
  max-height: 75px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #00097a;
  font-family: "Dungeon Regular", sans-serif;
}

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

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #00097a;
}

.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: #00097a;
  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(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

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

.header .search-form button i {
  color: #00097a;
}

/**--------------------------------------------------------------*/
/** # Header Nav */
/**--------------------------------------------------------------*/

.header-nav ul {
  list-style: none;
}

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

.header-nav .nav-icon {
  font-size: 22px;
  color: #00097a;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #00097a;
}

.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: #f6f9ff;
}

.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: #444444;
}

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

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.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: #444444;
}

.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: #f6f9ff;
}

/**--------------------------------------------------------------*/
/** Price Tab
/**--------------------------------------------------------------*/

.currency-tab-container {
  background-color: var(--color-primary);
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  overflow: hidden;
  position: fixed;
  top: 0;
  white-space: nowrap;
  width: 100vw;
  z-index: 995;
}

.currency-tab-container .currency-tab {
  animation: scroll 40s linear infinite;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: xx-small;
  margin-top: 60px;
  padding: 5px 0px;
  width: calc(200px * 24);
  white-space: nowrap;
}

.currency-tab-container .currency-tab span {
  width: 200px;
  text-align: center;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 12));
  }
}

.currency-tab-container .currency-tab:hover {
  background-color: var(--color-primary-light);
}

.currency-tab-container .currency-tab.expanded {
  height: auto;
  padding: 20px;
  font-size: small;
  animation-play-state: paused;
}

.currency-tab-container .currency-tab.dragging {
  animation-play-state: paused;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: -300px;
  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: 300px;
  }
} */

.toggle-sidebar .sidebar {
  left: 0;
}

@media (min-width: 1200px) {
  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }
}

.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;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

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

.sidebar-nav .nav-link.collapsed {
  color: var(--color-secondary-light);
  background: #fff;
}

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

.sidebar-nav .nav-link:hover {
  color: var(--color-primary);
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: var(--color-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-secondary-light);
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.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(--color-primary);
}

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

/* Módulos en construcción (WIP): aviso visual sin navegación por clic */
.sidebar-nav .nav-content a.nav-sublink-wip,
.sidebar-nav .nav-content a.nav-sublink-wip:hover,
.sidebar-nav .nav-content a.nav-sublink-wip.active {
  color: var(--color-red);
  cursor: not-allowed;
  pointer-events: none;
}

.sidebar-nav .nav-content a.nav-sublink-wip i {
  font-size: 14px;
  border-radius: 0;
  background-color: transparent;
}

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

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

.global-dashboard .filter .icon:hover,
.global-dashboard .filter .icon:focus {
  color: #00097a;
}

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

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

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

/* Info Cards */
.global-dashboard .info-card {
  padding-bottom: 10px;
}

.global-dashboard .info-card h6 {
  font-size: 28px;
  color: #00097a;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

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

.global-dashboard .sales-card .card-icon {
  color: #00097a;
  background: #f6f6fe;
}

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

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

/* Activity */
.global-dashboard .activity {
  font-size: 14px;
}

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

.global-dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.global-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;
}

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

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

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

/* News & Updates */
.global-dashboard .news .post-item + .post-item {
  margin-top: 15px;
}

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

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

.global-dashboard .news h4 a {
  color: #00097a;
  transition: 0.3s;
}

.global-dashboard .news h4 a:hover {
  color: #00097a;
}

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

/* Recent Sales */
.global-dashboard .recent-sales {
  font-size: 14px;
}

.global-dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

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

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

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

/* Top Selling */
.global-dashboard .top-selling {
  font-size: 14px;
}

.global-dashboard .top-selling .table thead {
  background: #f6f6fe;
}

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

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

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

/*****************************************************************/
/** # Services Calendar */
/*****************************************************************/

.activity-badge .activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--body-bg);
  padding: 5px 10px;
  border-radius: 15px;
  /* box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 0;
  color: #00097a;
  border: 1px solid var(--border-color);
}
.activity-badge .activity-content {
  margin-left: auto;
  font-size: smaller;
}

/******************************************************************/
/** # DataTables */
/******************************************************************/

.progress-bar {
  transition: width 0.6s ease;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  color: var(--color-primary-dark);
  background-color: var(--bs-table-bg);
  border-bottom-width: var(--bs-border-width);
  box-shadow: inset 0 0 0 9999px
    var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

table.table tr td.rowTextColor {
  color: var(--bs-gray-500) !important;
  /* Cambia 'red' por el color que prefieras */
}

table.table tr.rowSuspendedMuted td {
  color: var(--bs-gray-500) !important;
}

table.table tr.rowSuspendedMuted td .badge {
  opacity: 0.65;
}

table.table tr.rowSuspendedMuted td .btn-warning,
table.table tr.rowSuspendedMuted td .btn-warning * {
  opacity: 0.65;
}

table.table tr.rowSuspendedMuted td .btn-success,
table.table tr.rowSuspendedMuted td .btn-success *,
table.table tr.rowSuspendedMuted td .btn-danger,
table.table tr.rowSuspendedMuted td .btn-danger * {
  opacity: 1 !important;
}

table.table tr.rowSuspendedMuted td .btn-info,
table.table tr.rowSuspendedMuted td .btn-info * {
  opacity: 0.65;
}

table.table tr.rowDeletedMuted td {
  color: var(--bs-gray-500) !important;
}

table.table tr.rowDeletedMuted td .badge:not(.bg-danger),
table.table tr.rowDeletedMuted td .badge:not(.bg-danger) * {
  opacity: 0.45;
}

table.table tr.rowDeletedMuted td .badge.bg-danger,
table.table tr.rowDeletedMuted td .badge.bg-danger * {
  opacity: 0.45;
  filter: none !important;
}

table.table tr.rowDeletedMuted td .btn-warning,
table.table tr.rowDeletedMuted td .btn-warning *,
table.table tr.rowDeletedMuted td .btn-danger,
table.table tr.rowDeletedMuted td .btn-danger * {
  opacity: 0.65;
}

table.table tr.rowDeletedMuted td .btn-success {
  opacity: 1 !important;
  color: #fff !important;
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
  filter: none !important;
}

table.table tr.rowDeletedMuted td .btn-success *,
table.table tr.rowDeletedMuted td .btn-success i,
table.table tr.rowDeletedMuted td .btn-success:not(:disabled),
table.table tr.rowDeletedMuted td .btn-success:not(:disabled) * {
  opacity: 1 !important;
  color: #fff !important;
  filter: none !important;
}

table.table tr.rowDeletedMuted td .btn-success:disabled,
table.table tr.rowDeletedMuted td .btn-success:disabled *,
table.table tr.rowDeletedMuted td .btn-success.disabled,
table.table tr.rowDeletedMuted td .btn-success.disabled * {
  opacity: 1 !important;
  color: #fff !important;
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
  filter: none !important;
}

table.table tr.rowDeletedMuted td .btn-info,
table.table tr.rowDeletedMuted td .btn-info * {
  opacity: 1 !important;
  color: inherit !important;
}

table.table tr.rowDeletedMuted td:nth-last-child(7) .progress,
table.table tr.rowDeletedMuted td:nth-last-child(7) .progress-bar {
  opacity: 0.65;
}

table.table tbody tr:nth-child(odd) {
  background-color: var(
    --body-bg
  ) !important; /* Color de fondo para filas impares */
}

table.dataTable thead th,
table.dataTable tfoot th {
  text-align: center !important;
  vertical-align: middle !important;
  background-color: #fff !important;
  min-width: 140px !important;
  text-transform: uppercase !important;
  font-size: 0.75em !important;
  white-space: nowrap !important;
  /* font-size: smaller !important; */
}

table.table thead th,
table.table tfoot th {
  text-align: center !important;
  vertical-align: middle !important;
  background-color: #fff !important;
  text-transform: uppercase !important;
  font-size: 0.75em !important;
  /* font-size: smaller !important; */
}

table.table tbody td {
  vertical-align: middle;
  font-size: 0.8em !important;
  /* font-size: smaller !important; */
}

/* Programación de pago (CxP) — anula 0.8em global y tamaños legibles como las fechas */
.supplier-invoice-payment-schedule__credit-days {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

table.table.supplier-invoice-credit-days-table,
table.table.supplier-invoice-credit-days-table td {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  background-color: transparent !important;
}

table.table.supplier-invoice-credit-days-table > :not(caption) > * > * {
  border-bottom-width: 0 !important;
  box-shadow: none !important;
}

table.table.supplier-invoice-credit-days-table tbody td {
  font-size: inherit !important;
  border: 0 !important;
  text-align: center !important;
}

table.table.supplier-invoice-credit-days-table tbody td:first-child {
  text-align: center !important;
}

.supplier-invoice-payment-schedule__date-value,
table.table.supplier-invoice-credit-days-table .supplier-invoice-credit-days-table__secondary-value {
  line-height: 1.35;
}

table.table.supplier-invoice-credit-days-table .supplier-invoice-credit-days-table__credit-value {
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1.25;
}

.table {
  --bs-table-bg:               !important;
}

/* Evita el desbordamiento horizontal */
.table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

/* Estado de cuenta CxP — scroll horizontal y columnas sin comprimir */
.supplier-account-statement-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table.table.supplier-account-statement-table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  table-layout: auto;
}

table.table.supplier-account-statement-table > :not(caption) > * > * {
  white-space: nowrap;
  min-width: 7.5rem;
  vertical-align: middle;
}

table.table.supplier-account-statement-table .supplier-account-statement-table__sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 11rem;
  background-color: #fff;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  text-align: left !important;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

table.table.supplier-account-statement-table .supplier-account-statement-table__invoice-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

table.table.supplier-account-statement-table .supplier-account-statement-table__invoice-checkbox {
  flex: 0 0 1em;
  width: 1em;
  min-width: 1em;
  margin: 0;
}

table.table.supplier-account-statement-table thead .supplier-account-statement-table__sticky-col {
  z-index: 4;
}

table.table.supplier-account-statement-table tbody tr:nth-child(odd) .supplier-account-statement-table__sticky-col {
  background-color: var(--body-bg);
}

table.table.supplier-account-statement-table tbody tr:nth-child(even) .supplier-account-statement-table__sticky-col {
  background-color: #fff;
}

table.table.supplier-account-statement-table tbody td .dt-cell-clamp,
table.table.supplier-account-statement-table tbody td .dt-cell-clamp-inner {
  white-space: nowrap;
  max-height: none;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  display: block;
}

/* Alinea todo al centro excepto la primera columna */
.table th,
.table td {
  text-align: center;
  vertical-align: middle;
}

/* Primera columna alineada a la derecha */
.table th:first-child,
.table td:first-child {
  text-align: right;
}

.table .highlight {
  background-color: var(--color-primary-airy) !important;
  /* background-color: #e5eeff !important; */
}

.pagination {
  --bs-pagination-color: var(--color-primary);
  --bs-pagination-active-bg: var(--color-primary);
  --bs-pagination-active-border-color: var(--color-primary);
}

.dt-layout-table {
  overflow: auto;
}

button.page-link {
  padding: 0.25rem 0.5rem;
}

/* Estilo para la primera columna fija */
.table td.tdOpacity {
  background-color: #fff !important;
}

.table tr:nth-child(odd) td.tdOpacity {
  background-color: var(--body-bg) !important;
}

.table .highlight {
  background-color: var(--color-primary-airy) !important;
  /* background-color: #e5eeff !important; */
}

/******************************************************************/
/** # SimpleDataTables */
/******************************************************************/

.simpleDataTable th {
  background-color: var(--body-bg) !important;
  text-align: center;
}

.simpleDataTable th,
.simpleDataTable td {
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 0.8em !important;
  padding: 0.2rem 0.2rem;
  color: var(--color-primary-dark);
  /* font-size: smaller !important; */
  /* background-color: var(--bs-table-bg); */
  /* border-bottom-width: var(--bs-border-width); */
  /* box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg))); */
}

.simpleDataTable .form-sm .form-control,
.simpleDataTable .form-sm .form-select {
  /* background: transparent; */
  text-align: center;
  font-size: 1em;
  /* border: none; */
  /* padding: 0; */
  /* margin: 0; */
  width: 100%;
  min-width: 150px;
  /* border-radius: 0; */
  box-shadow: none;
  /* border: 1px solid rgba(1, 41, 112, 0.2); */
  transition: 0.3s;
  /* background-color: #fff; */
  /* color: #00097a; */
}

.simpleDataTable .sticky-col,
.simpleDataTable th.sticky-col,
.simpleDataTable td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 100%;
  min-width: 200px;
  padding: 0 !important;
  vertical-align: middle !important;
  /* font-size: smaller !important; */
  color: var(--color-primary-dark);
}

.simpleDataTable th.sticky-col {
  background: var(--body-bg) !important;
  text-align: center;
}

.simpleDataTable td.sticky-col {
  background: #cdd7ec !important;
  padding: 0 0 0 10px !important;
  text-align: right;
}

/*--------------------------------------------------------------
# chartFolios
--------------------------------------------------------------*/
#chartFolios {
  /* width: 100%; */
  height: 550px !important; /* Ajusta la altura según sea necesario */
}

.btn-md {
  padding: 0.8rem !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
}

.btn-xs {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.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: #00097a;
  padding: 15px 0;
}

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

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

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.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: #00097a;
}

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

.profile .profile-overview .card-title {
  color: #00097a;
}

.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;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #00097a;
}

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

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #00097a;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #00097a;
  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;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #00097a;
}

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

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

.contact .php-email-form button[type="submit"] {
  background: #00097a;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #5969f3;
}

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

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

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #00097a;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #00097a;
  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
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #00097a;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #00097a;
}

/*--------------------------------------------------------------
# Wrap Align Elements
--------------------------------------------------------------*/
.wrap-align-elements .font-smaller {
  font-size: 0.875rem;
}

/* Alineación horizontal perfecta */
.wrap-align-elements .checkbox-horizontal {
  display: flex;
  align-items: center; /* Centra verticalmente todo el contenido */
  gap: 8px; /* Espaciado entre checkbox y texto */
}

.wrap-align-elements .checkbox-input {
  flex-shrink: 0; /* Evita que el checkbox se reduzca */
  margin: 0; /* Remove any default margins */
}

.wrap-align-elements .text-content {
  flex: 1; /* El texto ocupa el espacio restante */
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Transport Table Control
--------------------------------------------------------------*/

/* Contenedor deshabilitado */
.transport-table-container.disabled-state {
  opacity: 0.8;
  pointer-events: none;
}

/* Tabla deshabilitada - solo afectar texto */
.table-disabled th,
.table-disabled td,
.table-disabled span {
  color: #6c757d !important; /* text-muted color */
}

/* Radio buttons deshabilitados */
.transport-radio:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alineación específica para tabla de transportes */
#transportTable th.text-end,
#transportTable td.text-end {
  text-align: right !important;
}

#transportTable th.text-start,
#transportTable td.text-start {
  text-align: left !important;
}

#transportTable th.text-center,
#transportTable td.text-center {
  text-align: center !important;
}

/* Interacción con filas de la tabla de transportes */
#transportTable tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* #transportTable tbody tr:hover:not(.disabled-state tr) {
  background-color: rgba(13, 110, 253, 0.1) !important;
}

#transportTable tbody tr.table-active {
  background-color: rgba(13, 110, 253, 0.2) !important;
} */

/* Evitar hover en estado deshabilitado */
.transport-table-container.disabled-state #transportTable tbody tr {
  cursor: default;
}

.transport-table-container.disabled-state #transportTable tbody tr:hover {
  background-color: transparent !important;
}

/**--------------------------------------------------------------*/
/** # Autocomplete Styles
/**--------------------------------------------------------------*/

/* Modal flotante dentro del modal principal */
.autocomplete-floating-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ) !important; /* Overlay semi-transparente */
  z-index: 99999 !important; /* Por encima del modal principal */
  align-items: center !important;
  justify-content: center !important;
}

/* Cuando está visible */
.autocomplete-floating-modal.show {
  display: flex !important;
}

/* Cuando está oculto */
.autocomplete-floating-modal.d-none {
  display: none !important;
}

/* Resto del CSS igual... */
.autocomplete-modal-content {
  background-color: var(--body-bg);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

/* Animación de entrada */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Input autocomplete que se ajusta automáticamente */
.autocomplete-trigger {
  min-width: 200px !important; /* Ancho mínimo */
  max-width: 400px !important; /* Ancho máximo para evitar que se extienda demasiado */
  width: auto !important;
  transition: width 0.3s ease; /* Transición suave al cambiar de tamaño */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Puntos suspensivos si es muy largo */
}

/* Contenedor flexible para el input */
.form-sm.d-flex.align-items-center.gap-2 {
  flex-wrap: nowrap;
}

/* Para tablas específicamente */
.table .autocomplete-trigger {
  font-size: 0.875rem; /* Texto ligeramente más pequeño en tablas */
}

/* Header del modal flotante */
.autocomplete-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

/* Body del modal flotante */
.autocomplete-modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Contenedor de resultados */
.autocomplete-results {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-top: 20px;
  background-color: #fff;
}

/* Items de resultados */
.autocomplete-results .autocomplete-item {
  padding: 5px 5px;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.autocomplete-results .autocomplete-item:hover {
  background-color: var(--color-primary-airy);
}

.autocomplete-results .autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-results .text-muted {
  font-size: 0.85rem;
  /* line-height: 1; */
}

/* Botón de cerrar */
.btn-close.btn-sm {
  font-size: 0.75rem;
  padding: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .autocomplete-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .autocomplete-modal-header,
  .autocomplete-modal-body {
    padding: 1rem;
  }
}

/* Input específico con z-index alto y sin interferencias */
.autocomplete-search-input {
  z-index: 999999 !important;
  position: relative;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding: 0.75rem;
  border: 2px solid #dee2e6 !important;
  border-radius: 0.375rem !important;
  background-color: #fff !important;
  color: #000 !important;
  width: 100% !important;
  pointer-events: auto !important; /* Asegurar que sea clickeable */
}

.autocomplete-search-input:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
  z-index: 1064 !important;
}

#autocomplete-suggestions {
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  border-top: none;
  margin-top: -1px;
}

/**--------------------------------------------------------------*/
/** # Offcanvas over Modal
/**--------------------------------------------------------------*/

/* Offcanvas sobre modal */
.offcanvas-over-modal {
  z-index: 1060 !important; /* Mayor que modal (1055) */
  transition: transform 0.3s ease-in-out;
}

/* Backdrop del offcanvas sobre modal */
.offcanvas-backdrop.show {
  z-index: 1059 !important; /* Justo debajo del offcanvas pero sobre el modal */
}

/* Asegurar que el modal mantenga su backdrop */
.modal-backdrop {
  z-index: 1050 !important;
}

/* Modal anidado (p. ej. confirmación sobre #modalDialogScrollable): el 2.º backdrop debe
   quedar por encima del primer modal (1055), no solo por encima del 1.º backdrop.
   Sin esto, el overlay oscuro queda detrás del modal de edición. */
.modal-backdrop.show ~ .modal-backdrop.show {
  z-index: 1056 !important;
}

/* Opcional: Evitar scroll en body cuando hay offcanvas */
body.offcanvas-open {
  overflow: hidden;
}

/* Backdrop con opacidad */
.offcanvas-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease-in-out;
}

/* Estilo del header del offcanvas */
.offcanvas-over-modal .offcanvas-header {
  /* background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); */
  /* color: white; */
  background-color: var(--body-bg);
}

.offcanvas-over-modal .offcanvas-header .btn-close {
  filter: brightness(0) invert(1);
}

/* Estilo del body del offcanvas */
.offcanvas-over-modal .offcanvas-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: var(--body-bg);
}

/* Tamaños modulares para el offcanvas (prevenir colisión con offcanvas responsivo de BS5) */
.offcanvas-w-sm {
  width: 300px !important;
}
.offcanvas-w-md {
  width: 500px !important;
} /* Tamaño estándar */
.offcanvas-w-lg {
  width: 800px !important;
}
.offcanvas-w-xl {
  width: 1140px !important;
}

@media (max-width: 768px) {
  .offcanvas-w-sm,
  .offcanvas-w-md,
  .offcanvas-w-lg,
  .offcanvas-w-xl,
  .offcanvas-over-modal.offcanvas-end {
    width: 90% !important; /* Responsive para celulares */
  }
}

.offcanvas-footer {
  margin-top: auto;
  background-color: var(--body-bg);
}

.offcanvas {
  display: flex;
  flex-direction: column;
}

/* Autocomplete dentro de offcanvas - ancho completo */
.offcanvas-over-modal .autocomplete-trigger {
  min-width: unset !important;
  max-width: unset !important;
  width: 100% !important;
}

/*--------------------------------------------------------------
# Module Toolbar Component (Reusable)
--------------------------------------------------------------*/

.module-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.module-toolbar-start {
  justify-self: start;
}

.module-toolbar-center {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.module-toolbar-end {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.module-toolbar-search {
  margin-bottom: 0;
}

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

  .module-toolbar-start,
  .module-toolbar-center,
  .module-toolbar-end {
    justify-self: stretch;
  }

  .module-toolbar-center {
    display: flex;
    justify-content: center;
  }

  .module-toolbar-end {
    justify-content: flex-start;
  }

  .module-toolbar-search {
    width: 100%;
  }

  .module-toolbar-search.row {
    margin-left: 0;
    margin-right: 0;
  }

  .module-toolbar-search.row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

/*--------------------------------------------------------------
# Module Tabs Component (Reusable)
--------------------------------------------------------------*/

.module-tabs {
  gap: 0.45rem;
  margin-bottom: -0.45rem;
  padding-bottom: 1rem;
}

.module-tabs .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  --module-tab-color: var(--color-primary);
  --module-tab-bg: rgba(0, 9, 122, 0.08);
  --module-tab-border: rgba(0, 9, 122, 0.25);
}

.module-tabs.nav-tabs-bordered .nav-link {
  margin-bottom: 0;
}

.module-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999rem;
  border: 1px solid var(--module-tab-border);
  background: var(--module-tab-bg);
  color: var(--module-tab-color);
  padding: 0.4rem 0.75rem;
  gap: 0.3rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .module-tabs .nav-link {
    font-size: 0.8rem;
    height: 1.9rem;
    padding: 0 0.55rem;
  }
}

.module-tabs .nav-link:hover,
.module-tabs .nav-link:focus,
.module-tabs .nav-link.active,
.module-tabs.nav-tabs-bordered .nav-link.active {
  background: var(--module-tab-bg);
  color: var(--module-tab-color);
  border-color: var(--module-tab-border);
}

.module-tabs .tab-label,
.module-tabs .tab-icon {
  color: var(--module-tab-color) !important;
}

.module-tabs .tab-label {
  display: inline-flex;
  align-items: center;
}

.module-tabs .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0 !important;
  font-size: 0.8rem;
  line-height: 1;
  vertical-align: middle;
}

.module-tabs .tab-badge {
  position: absolute;
  right: 0;
  top: -0.625rem;
  z-index: 2;
}

.module-tabs .theme-primary {
  --module-tab-color: var(--color-primary);
  --module-tab-bg: rgba(0, 9, 122, 0.08);
  --module-tab-border: rgba(0, 9, 122, 0.25);
}

.module-tabs .theme-secondary {
  --module-tab-color: var(--color-secondary);
  --module-tab-bg: rgba(108, 117, 125, 0.08);
  --module-tab-border: rgba(108, 117, 125, 0.25);
}

.module-tabs .theme-tertiary {
  --module-tab-color: var(--color-tertiary);
  --module-tab-bg: rgba(118, 12, 2, 0.08);
  --module-tab-border: rgba(118, 12, 2, 0.25);
}

.module-tabs .theme-success {
  --module-tab-color: var(--color-success);
  --module-tab-bg: rgba(25, 135, 84, 0.08);
  --module-tab-border: rgba(25, 135, 84, 0.25);
}

.module-tabs .theme-warning {
  --module-tab-color: var(--color-warning);
  --module-tab-bg: rgba(255, 193, 7, 0.08);
  --module-tab-border: rgba(255, 193, 7, 0.25);
}

.module-tabs .theme-danger {
  --module-tab-color: var(--color-danger);
  --module-tab-bg: rgba(220, 53, 69, 0.08);
  --module-tab-border: rgba(220, 53, 69, 0.25);
}

.module-tabs .theme-info {
  --module-tab-color: var(--color-info);
  --module-tab-bg: rgba(13, 110, 253, 0.08);
  --module-tab-border: rgba(13, 110, 253, 0.25);
}

@media (max-width: 768px) {
  .module-tabs .nav-link {
    font-size: 0.75rem;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    padding: 0 !important;
    background: var(--module-tab-bg) !important;
    border: 1px solid var(--module-tab-border);
    border-radius: 50%;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.55),
      0 1px 2px rgba(1, 41, 112, 0.12);
  }

  .module-tabs .tab-label {
    display: none;
  }

  .module-tabs .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
    line-height: 1;
    padding: 0.1rem 0.25rem;
  }
}

/* Custom: Search button full width on mobile */
@media (max-width: 767.98px) {
  #searchFoliosContent > div:last-child {
    width: 100%;
  }

  #searchFoliosContent > div:last-child .btn {
    width: 100%;
  }
}

/**--------------------------------------------------------------*/
/** # DataTables Cell Text Truncation (2 lines max) */
/**--------------------------------------------------------------*/

/* Contenedor externo para centrado vertical */
.dataTable tbody td .dt-cell-clamp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3em;
  max-height: 3em;
  overflow: hidden;
}

/* Contenedor interno para truncado a 2 líneas */
.dataTable tbody td .dt-cell-clamp-inner {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

/* Tooltip personalizado para mostrar contenido completo */
.datatable-tooltip {
  position: absolute;
  background-color: var(--color-default);
  color: var(--body-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  z-index: 9999;
  max-width: 400px;
  word-wrap: break-word;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease-in-out;
}

/* Animación de tooltip */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**--------------------------------------------------------------*/
/** # DataTables FixedHeader - Sticky thead */
/**--------------------------------------------------------------*/

/* Contenedor del header fijo generado por FixedHeader */
.dtfh-floatingparent {
  z-index: 994 !important; /* Justo debajo del header principal (997) */
}

/* Estilo visual del thead flotante para que no sea transparente */
.dtfh-floatingparent thead th {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/*--------------------------------------------------------------
# Session Warning Modal (siempre encima de otros modales)
--------------------------------------------------------------*/
#sessionWarningModal {
  z-index: 1065 !important;
}
