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

:root {
  /* === Paleta renovada con #12A4E6 como primario === */
  --primary-color: #12a4e6; /* Azul vibrante principal */
  --primary-dark: #0e7cb0; /* Oscurecido para hover/active */
  --primary-light: #e1f5fe; /* Muy claro para fondos suaves */

  /* Colores base neutrales y de apoyo */
  --bg-body: #f8fafc; /* Fondo general más limpio */
  --sidebar-bg: #ffffff;

  /* Sombras más suaves y modernas */
  --shadow-indigo: 0 8px 20px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);

  /* Bordes sutiles */
  --border-light: 1px solid rgba(0, 0, 0, 0.06);

  /* Variables compatibles con Bootstrap u otros frameworks */
  --bs-primary: #12a4e6;
  --bs-primary-dark: #0e7cb0;
  --bs-primary-light: #e1f5fe;
  --bs-secondary: #5b6b7c;
  --bs-success: #10b981;
  --bs-info: #06b6d4;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;

  /* Resto de variables manteniendo coherencia visual */
  --bs-header-bg: rgba(255, 255, 255, 0.96);
  --bs-header-item-color: #334155;
  --bs-header-item-sub-color: #64748b;
  --bs-header-height: 70px;

  --bs-sidebar-bg: #ffffff;
  --bs-sidebar-width: 260px;
  --bs-sidebar-collapsed-width: 70px;
  --bs-sidebar-width-sm: 160px;
  --bs-sidebar-menu-item-color: #475569;
  --bs-sidebar-menu-sub-item-color: #5b6b7c;
  --bs-sidebar-menu-item-icon-color: #94a3b8;
  --bs-sidebar-menu-item-hover-color: #12a4e6;
  --bs-sidebar-menu-item-active-color: #12a4e6;

  --bs-sidebar-dark-bg: #1e293b;
  --bs-sidebar-dark-menu-item-color: #94a3b8;
  --bs-sidebar-dark-menu-sub-item-color: #94a3b8;
  --bs-sidebar-dark-menu-item-icon-color: #6b7280;
  --bs-sidebar-dark-menu-item-hover-color: #7dd3fc;
  --bs-sidebar-dark-menu-item-active-color: #38bdf8;

  --bs-topbar-search-bg: #f1f5f9;
  --bs-topnav-bg: rgba(255, 255, 255, 0.96);
  --bs-topnav-item-color: #334155;
  --bs-topnav-item-color-active: #12a4e6;

  --bs-footer-bg: #ffffff;
  --bs-footer-color: #6b7280;
  --bs-footer-height: 60px;

  --bs-body-bg: #f8fafc;
  --bs-body-color: #1e293b;
  --bs-secondary-bg: #ffffff;
  --bs-secondary-color: #64748b;
  --bs-border-color: #E2E8F0;
  --bs-tertiary-bg: #f1f5f9;
  --bs-emphasis-color: #0f172a;
  --bs-link-color: #12a4e6;

  --bs-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  --bs-box-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.08);

  --bs-border-radius: 8px;
  --bs-border-radius-sm: 6px;

  --bs-rightbar-width: 280px;
  --bs-boxed-layout-width: 1280px;
  --bs-twocolumn-menu-iconview-bg: #ffffff;
  --bs-twocolumn-menu-bg: #ffffff;
  --bs-boxed-body-bg: #12A4E6;

  --bs-header-dark-bg: #1e293b;
  --bs-menu-item-color: #334155;
  --bs-menu-item-active-color: #12a4e6;

  /* Variables adicionales de consistencia */
  --card-radius: 8px;
  --transition-speed: 0.2s;
}
[data-bs-theme="dark"] {
  --primary-color: #60a5fa;
  --primary-dark: #2563eb;
  --primary-light: #bfdbfe;
  --bg-body: #0f172a;
  --sidebar-bg: #1e293b;
  --bs-primary: #60a5fa;
  --bs-primary-dark: #2563eb;
  --bs-primary-light: #bfdbfe;
  --bs-secondary: #94a3b8;
  --bs-success: #34d399;
  --bs-info: #22d3ee;
  --bs-warning: #fbbf24;
  --bs-danger: #f87171;
  --bs-header-bg: #1e293b;
  --bs-header-item-color: #94a3b8;
  --bs-header-item-sub-color: #94a3b8;
  --bs-sidebar-bg: #1e293b;
  --bs-sidebar-menu-item-color: #94a3b8;
  --bs-sidebar-menu-sub-item-color: #94a3b8;
  --bs-sidebar-menu-item-icon-color: #6b7280;
  --bs-sidebar-menu-item-hover-color: #93c5fd;
  --bs-sidebar-menu-item-active-color: #60a5fa;
  --bs-sidebar-dark-bg: #0f172a;
  --bs-sidebar-dark-menu-item-color: #94a3b8;
  --bs-sidebar-dark-menu-sub-item-color: #94a3b8;
  --bs-sidebar-dark-menu-item-icon-color: #6b7280;
  --bs-sidebar-dark-menu-item-hover-color: #bfdbfe;
  --bs-sidebar-dark-menu-item-active-color: #93c5fd;
  --bs-topbar-search-bg: #334155;
  --bs-topnav-bg: #1e293b;
  --bs-topnav-item-color: #94a3b8;
  --bs-topnav-item-color-active: #60a5fa;
  --bs-footer-bg: #1e293b;
  --bs-footer-color: #94a3b8;
  --bs-body-bg: #0f172a;
  --bs-body-color: #12A4E6;
  --bs-secondary-bg: #1e293b;
  --bs-secondary-color: #94a3b8;
  --bs-border-color: #334155;
  --bs-tertiary-bg: #1e293b;
  --bs-emphasis-color: #ffffff;
  --bs-link-color: #93c5fd;
  --bs-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  --bs-box-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.32);
  --bs-boxed-body-bg: #020617;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  background-color: var(--bg-body);
  color: var(--bs-body-color);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#page-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1002;
  background: var(--bs-header-bg);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-light);
  -webkit-box-shadow: var(--bs-box-shadow);
  box-shadow: var(--bs-box-shadow);
}

[data-bs-theme="dark"] #page-topbar {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
}

.navbar-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  height: 70px;
  padding: 0 calc(24px / 2) 0 0;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-header-item-color);
  min-width: 44px;
  height: 44px;
  border-radius: var(--bs-border-radius);
  transition:
    background-color var(--transition-speed),
    color var(--transition-speed);
}

.sidebar-toggle-btn:hover,
.sidebar-toggle-btn:focus {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
}

.navbar-brand-box {
  padding: 1px 1.5rem;
  width: 260px;
  transition: width var(--transition-speed);
}

.logo {
  line-height: 70px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: 0;
}

.logo .logo-sm {
  display: none;
}

.logo-light {
  display: none;
}

.logo-dark {
  display: block;
}

.app-search {
  padding: calc(32px / 2) 0;
  position: relative;
}

.app-search .form-control {
  border: 1px solid transparent;
  height: 38px;
  padding-left: 40px;
  padding-right: 20px;
  background-color: var(--bs-topbar-search-bg);
  border-radius: var(--bs-border-radius);
  -webkit-box-shadow: none;
  box-shadow: none;
  font-size: 0.875rem;
}

.app-search .form-control:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.app-search span {
  position: absolute;
  z-index: 10;
  font-size: 16px;
  line-height: 38px;
  left: 13px;
  top: 0;
  color: var(--bs-secondary-color);
}

.megamenu-list li {
  position: relative;
  padding: 5px 0;
}

.megamenu-list li a {
  color: var(--bs-secondary-color);
}

@media (max-width: 991px) {
  .navbar-brand-box {
    width: auto;
  }

  .logo span.logo-lg {
    display: none;
  }

  .logo span.logo-sm {
    display: inline-block;
  }
}

.page-content {
  padding: calc(70px + 24px) calc(24px / 2) 60px calc(24px / 2);
}

.header-item {
  height: 70px;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  color: var(--bs-header-item-color);
  border: 0;
  border-radius: var(--bs-border-radius);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.header-item-collapse {
  height: 70px;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  color: var(--bs-header-item-color);
  border: 0;
  border-radius: var(--bs-border-radius);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.header-item:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
}

.header-profile-user {
  height: 36px;
  width: 36px;
  background-color: var(--bs-tertiary-bg);
  padding: 3px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.user-dropdown .dropdown-item i {
  display: inline-block;
}

.noti-icon i {
  font-size: 22px;
  color: var(--bs-header-item-color);
}

.noti-icon {
  position: relative;
}

.noti-icon .noti-dot {
  position: absolute;
  display: inline-block;
  height: 8px;
  width: 8px;
  background-color: var(--bs-danger);
  border-radius: 50%;
  top: 18px;
  right: 12px;
  border: 2px solid white;
}

.notification-item .d-flex {
  padding: 0.75rem 1rem;
  border-radius: var(--bs-border-radius);
  transition: all var(--transition-speed);
}

.notification-item .d-flex:hover {
  background-color: rgba(37, 99, 235, 0.06);
}

.dropdown-icon-item {
  display: block;
  border-radius: var(--bs-border-radius);
  line-height: 34px;
  text-align: center;
  padding: 15px 0 9px;
  border: 1px solid transparent;
  color: var(--bs-secondary-color);
  transition: all var(--transition-speed);
}

.dropdown-icon-item img {
  height: 24px;
}

.dropdown-icon-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bs-secondary-color);
}

.dropdown-icon-item span:hover {
  color: var(--bs-link-color);
}

.dropdown-icon-item:hover {
  border-color: var(--bs-border-color);
  background-color: rgba(37, 99, 235, 0.06);
  color: var(--bs-link-color);
}

.fullscreen-enable [data-toggle="fullscreen"] .ri-fullscreen-line:before {
  content: "\ed73";
}

body[data-topbar="dark"] #page-topbar {
  background-color: var(--bs-header-dark-bg);
  backdrop-filter: none;
}

body[data-topbar="dark"] .navbar-header .dropdown .show.header-item {
  background-color: rgba(255, 255, 255, 0.05);
}

body[data-topbar="dark"] .header-item {
  color: #12A4E6;
}

body[data-topbar="dark"] .header-item:hover {
  color: var(--primary-light);
}

body[data-topbar="dark"] .header-profile-user {
  background-color: rgba(255, 255, 255, 0.25);
}

body[data-topbar="dark"] .noti-icon i {
  color: #12A4E6;
}

body[data-topbar="dark"] .logo-dark {
  display: none;
}

body[data-topbar="dark"] .logo-light {
  display: block;
}

body[data-topbar="dark"] .app-search .form-control {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body[data-topbar="dark"]
  .app-search
  input.form-control::-webkit-input-placeholder,
body[data-topbar="dark"] .app-search span {
  color: rgba(255, 255, 255, 0.5);
}

body[data-sidebar="dark"] .navbar-brand-box {
  background: var(--bs-sidebar-dark-bg) !important;
}

body[data-sidebar="dark"] .logo-dark {
  display: none;
}

body[data-sidebar="dark"] .logo-light {
  display: block;
}

@media (max-width: 600px) {
  .navbar-header .dropdown {
    position: static;
  }

  .navbar-header .dropdown .dropdown-menu {
    left: 10px !important;
    right: 10px !important;
  }
}

@media (max-width: 380px) {
  .navbar-brand-box {
    display: none;
  }
}

body[data-layout="horizontal"] .navbar-brand-box {
  width: auto;
}

body[data-layout="horizontal"] .page-content {
  margin-top: 70px;
  padding: calc(55px + 24px) calc(24px / 2) 60px calc(24px / 2);
}

@media (max-width: 992px) {
  body[data-layout="horizontal"] .page-content {
    margin-top: 15px;
  }
}

body[data-topbar="colored"] #page-topbar {
  background: var(--primary-dark);
  backdrop-filter: none;
}

body[data-topbar="colored"] .navbar-header .dropdown .show.header-item {
  background-color: rgba(255, 255, 255, 0.1);
}

body[data-topbar="colored"] .header-item {
  color: #ffffff;
}

body[data-topbar="colored"] .header-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

body[data-topbar="colored"] .header-profile-user {
  background-color: rgba(255, 255, 255, 0.25);
}

body[data-topbar="colored"] .noti-icon i {
  color: #ffffff;
}

body[data-topbar="colored"] .logo-dark {
  display: none;
}

body[data-topbar="colored"] .logo-light {
  display: block;
}

body[data-topbar="colored"] .app-search .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body[data-topbar="colored"]
  .app-search
  input.form-control::-webkit-input-placeholder,
body[data-topbar="colored"] .app-search span {
  color: rgba(255, 255, 255, 0.6);
}

.page-title-box {
  padding-bottom: 24px;
}

.page-title-box .breadcrumb {
  background-color: transparent;
  padding: 0;
}

.page-title-box h4 {
  font-size: 20px;
  font-weight: 600;
}

.footer {
  bottom: 0;
  padding: 20px calc(24px / 2);
  position: absolute;
  right: 0;
  color: var(--bs-footer-color);
  left: var(--bs-sidebar-width);
  height: 60px;
  border-top: var(--border-light);
  background-color: var(--bs-footer-bg);
}

@media (max-width: 992px) {
  .footer {
    left: 0;
  }
}

.vertical-collpsed .footer {
  left: var(--bs-sidebar-collapsed-width);
}

body[data-layout="horizontal"] .footer {
  left: 0 !important;
}

.right-bar {
  background-color: var(--bs-secondary-bg);
  -webkit-box-shadow: var(--bs-box-shadow-lg);
  box-shadow: var(--bs-box-shadow-lg);
  display: block;
  position: fixed;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  width: 280px;
  z-index: 9999;
  float: right !important;
  right: -290px;
  top: 0;
  bottom: 0;
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

.right-bar .right-bar-toggle {
  background-color: var(--primary-color);
  height: 24px;
  width: 24px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.right-bar .right-bar-toggle:hover {
  background-color: var(--primary-dark);
}

.rightbar-overlay {
  background-color: rgba(0, 0, 0, 0.55);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  z-index: 9998;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.right-bar-enabled .right-bar {
  right: 0;
}

.right-bar-enabled .rightbar-overlay {
  display: block;
}

@media (max-width: 767.98px) {
  .right-bar {
    overflow: auto;
  }

  .right-bar .slimscroll-menu {
    height: auto !important;
  }
}

.metismenu {
  margin: 0;
}

.metismenu li {
  display: block;
  width: 100%;
}

.metismenu .mm-collapse {
  display: none;
}

.metismenu .mm-collapse:not(.mm-show) {
  display: none;
}

.metismenu .mm-collapse.mm-show {
  display: block;
}

.metismenu .mm-collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-timing-function: ease;
  transition-timing-function: ease;
  -webkit-transition-duration: 0.35s;
  transition-duration: 0.35s;
  -webkit-transition-property: height, visibility;
  transition-property: height, visibility;
}

.vertical-menu {
  width: var(--bs-sidebar-width);
  z-index: 1002;
  background: var(--bs-sidebar-bg);
  bottom: 0;
  margin-top: 0;
  position: fixed;
  top: 70px;
  border-right: var(--border-light);
  -webkit-box-shadow: none;
  box-shadow: none;
  transition:
    width var(--transition-speed),
    transform var(--transition-speed),
    visibility var(--transition-speed);
}

.main-content {
  margin-left: var(--bs-sidebar-width);
  overflow: hidden;
  transition: margin-left var(--transition-speed);
}

.main-content .content {
  padding: 0 15px 10px 15px;
  margin-top: 70px;
}

#sidebar-menu {
  padding: 10px 0 30px 0;
}

#sidebar-menu .mm-active > .has-arrow:after {
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

#sidebar-menu .has-arrow:after {
  content: "\f0140";
  font-family: "Material Design Icons";
  display: block;
  float: right;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition:
    transform 0.2s,
    -webkit-transform 0.2s;
  font-size: 1rem;
}

#sidebar-menu ul li a {
  display: block;
  padding: 0.625rem 0.5rem;
  color: var(--bs-sidebar-menu-item-color);
  position: relative;
  font-size: 0.875rem;
  -webkit-transition: all var(--transition-speed);
  transition: all var(--transition-speed);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--bs-border-radius);
  margin: 0.2rem 0.8rem;
}

#sidebar-menu ul li a i {
  display: inline-block;
  min-width: 1.5rem;
  padding-bottom: 0.125em;
  font-size: 1.2rem;
  line-height: 1.40625rem;
  vertical-align: middle;
  color: var(--bs-sidebar-menu-item-icon-color);
  -webkit-transition: all var(--transition-speed);
  transition: all var(--transition-speed);
}

#sidebar-menu ul li a span {
  transition:
    opacity var(--transition-speed),
    visibility var(--transition-speed);
}

#sidebar-menu ul li a:hover {
  color: var(--bs-sidebar-menu-item-hover-color);
  background-color: rgba(37, 99, 235, 0.08);
}

#sidebar-menu ul li a:hover i {
  color: var(--bs-sidebar-menu-item-hover-color);
}

#sidebar-menu ul li .badge {
  margin-top: 4px;
}

#sidebar-menu ul li ul.sub-menu {
  padding: 0;
  list-style: none;
}

#sidebar-menu ul li ul.sub-menu li a {
  padding: 0.4rem 1.5rem 0.4rem 3rem;
  font-size: 0.8125rem;
  color: var(--bs-sidebar-menu-sub-item-color);
  margin: 0.1rem 0.8rem;
}

#sidebar-menu ul li ul.sub-menu li ul.sub-menu {
  padding: 0;
}

#sidebar-menu ul li ul.sub-menu li ul.sub-menu li a {
  padding: 0.4rem 1.5rem 0.4rem 4rem;
  font-size: 0.8125rem;
}

.menu-title {
  padding: 12px 20px !important;
  letter-spacing: 0;
  pointer-events: none;
  cursor: default;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--bs-sidebar-menu-item-icon-color);
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.mm-active {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

.mm-active > a {
  color: var(--bs-sidebar-menu-item-active-color) !important;
  background-color: rgba(37, 99, 235, 0.1) !important;
}

.mm-active > a i {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

.mm-active > i {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

.mm-active .active {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

.mm-active .active i {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

@media (max-width: 992px) {
  .vertical-menu {
    display: block;
    transform: translateX(-100%);
    visibility: hidden;
    z-index: 1004;
    box-shadow: var(--bs-box-shadow-lg);
  }

  .main-content {
    margin-left: 0 !important;
  }

  body.sidebar-enable .vertical-menu {
    transform: translateX(0);
    visibility: visible;
  }

  body.sidebar-enable::before {
    content: "";
    position: fixed;
    inset: 70px 0 0 0;
    z-index: 1003;
    background: rgba(15, 23, 42, 0.35);
  }
}

.vertical-collpsed .main-content {
  margin-left: var(--bs-sidebar-collapsed-width);
}

.vertical-collpsed .navbar-brand-box {
  width: var(--bs-sidebar-collapsed-width) !important;
}

.vertical-collpsed .logo span.logo-lg {
  display: none;
}

.vertical-collpsed .logo span.logo-sm {
  display: block;
}

.vertical-collpsed .vertical-menu {
  position: fixed;
  width: var(--bs-sidebar-collapsed-width) !important;
  z-index: 1002;
}

.vertical-collpsed .vertical-menu .simplebar-content-wrapper,
.vertical-collpsed .vertical-menu .simplebar-mask {
  overflow: visible !important;
}

.vertical-collpsed .vertical-menu .simplebar-scrollbar {
  display: none !important;
}

.vertical-collpsed .vertical-menu .simplebar-offset {
  bottom: 0 !important;
}

.vertical-collpsed .vertical-menu #sidebar-menu .badge,
.vertical-collpsed .vertical-menu #sidebar-menu .collapse.in,
.vertical-collpsed .vertical-menu #sidebar-menu .menu-title {
  display: none !important;
}

.vertical-collpsed .vertical-menu #sidebar-menu .nav.collapse {
  height: inherit !important;
}

.vertical-collpsed .vertical-menu #sidebar-menu .has-arrow:after {
  display: none;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a {
  padding: 15px 9px;
  min-height: 55px;
  -webkit-transition: none;
  transition: none;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a:active,
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a:focus,
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a:hover {
  color: var(--bs-sidebar-menu-item-hover-color);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a i {
  font-size: 20px;
  margin-left: 4px;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a span {
  display: none;
  padding-left: 25px;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > a {
  position: relative;
  width: calc(190px + var(--bs-sidebar-collapsed-width));
  z-index: 1005;
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
  -webkit-transition: none;
  transition: none;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > a i {
  color: var(--primary-color);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > a span {
  display: inline-flex !important;
  align-items: center;
  height: 100%;
  color: inherit;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > ul {
  display: none;
  left: var(--bs-sidebar-collapsed-width);
  position: absolute;
  width: 190px;
  height: auto !important;
  -webkit-box-shadow: var(--bs-box-shadow);
  box-shadow: var(--bs-box-shadow);
  border-radius: var(--bs-border-radius-sm);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > ul ul {
  -webkit-box-shadow: var(--bs-box-shadow);
  box-shadow: var(--bs-box-shadow);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > ul a {
  -webkit-box-shadow: none;
  box-shadow: none;
  padding: 8px 20px;
  position: relative;
  width: 190px;
  z-index: 6;
  color: var(--bs-sidebar-menu-sub-item-color);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > ul a:hover {
  color: var(--bs-sidebar-menu-item-hover-color);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul ul {
  padding: 5px 0;
  z-index: 9999;
  display: none;
  background-color: var(--bs-sidebar-bg);
  border-radius: var(--bs-border-radius-sm);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul ul li:hover > ul {
  display: block;
  left: 190px;
  height: auto !important;
  margin-top: -36px;
  position: absolute;
  width: 190px;
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul ul li > a span.pull-right {
  position: absolute;
  right: 20px;
  top: 12px;
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

.vertical-collpsed .vertical-menu #sidebar-menu > ul ul li.active a {
  color: var(--primary-light);
}

body[data-sidebar="dark"] .vertical-menu {
  background: var(--bs-sidebar-dark-bg);
}

body[data-sidebar="dark"] #sidebar-menu ul li a {
  color: var(--bs-sidebar-dark-menu-item-color);
}

body[data-sidebar="dark"] #sidebar-menu ul li a i {
  color: var(--bs-sidebar-dark-menu-item-icon-color);
}

body[data-sidebar="dark"] #sidebar-menu ul li a:hover {
  color: var(--bs-sidebar-dark-menu-item-hover-color);
}

body[data-sidebar="dark"] #sidebar-menu ul li a:hover i {
  color: var(--bs-sidebar-dark-menu-item-hover-color);
}

body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a {
  color: var(--bs-sidebar-dark-menu-sub-item-color);
}

body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li a:hover {
  color: var(--bs-sidebar-dark-menu-item-hover-color);
}

body[data-sidebar="dark"].vertical-collpsed {
  min-height: 1400px;
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > a {
  background-color: var(--bs-sidebar-dark-bg) !important;
  color: #ffffff !important;
  box-shadow: var(--bs-box-shadow);
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > a
  span {
  color: #ffffff !important;
  opacity: 1;
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > a
  i {
  color: var(--bs-sidebar-dark-menu-item-hover-color);
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > ul
  a {
  color: var(--bs-sidebar-dark-menu-sub-item-color);
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > ul
  a:hover {
  color: var(--bs-sidebar-menu-item-hover-color);
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  ul {
  background-color: var(--bs-secondary-bg);
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  ul
  > li
  > a.mm-active {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  ul
  li
  li.active
  > a,
body[data-sidebar="dark"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  ul
  li
  li.mm-active
  > a {
  color: var(--bs-sidebar-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active > a {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active > a i {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active > i {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active .active {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .mm-active .active i {
  color: var(--bs-sidebar-dark-menu-item-active-color) !important;
}

body[data-sidebar="dark"] .menu-title {
  color: var(--bs-sidebar-dark-menu-item-color);
}

body[data-layout="horizontal"] .main-content {
  margin-left: 0 !important;
}

body[data-sidebar-size="small"] .navbar-brand-box {
  width: var(--bs-sidebar-width-sm);
}

@media (max-width: 992px) {
  body[data-sidebar-size="small"] .navbar-brand-box {
    width: auto;
  }
}

body[data-sidebar-size="small"] .vertical-menu {
  width: var(--bs-sidebar-width-sm);
  text-align: center;
}

body[data-sidebar-size="small"] .vertical-menu .badge,
body[data-sidebar-size="small"] .vertical-menu .has-arrow:after {
  display: none !important;
}

body[data-sidebar-size="small"] .main-content {
  margin-left: var(--bs-sidebar-width-sm);
}

body[data-sidebar-size="small"] .footer {
  left: var(--bs-sidebar-width-sm);
}

@media (max-width: 991px) {
  body[data-sidebar-size="small"] .footer {
    left: 0;
  }
}

body[data-sidebar-size="small"] #sidebar-menu ul li a i {
  display: block;
}

body[data-sidebar-size="small"] #sidebar-menu ul li ul.sub-menu li a {
  padding-left: 1.5rem;
}

body[data-sidebar-size="small"]
  #sidebar-menu
  ul
  li
  ul.sub-menu
  li
  ul.sub-menu
  li
  a {
  padding-left: 1.5rem;
}

body[data-sidebar-size="small"].vertical-collpsed .main-content {
  margin-left: var(--bs-sidebar-collapsed-width);
}

body[data-sidebar-size="small"].vertical-collpsed .vertical-menu #sidebar-menu {
  text-align: left;
}

body[data-sidebar-size="small"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li
  > a
  i {
  display: inline-block;
}

body[data-sidebar-size="small"].vertical-collpsed .footer {
  left: var(--bs-sidebar-collapsed-width);
}

body[data-sidebar="colored"] .vertical-menu {
  background: var(--primary-dark);
}

body[data-sidebar="colored"] .navbar-brand-box {
  background: var(--primary-dark);
}

body[data-sidebar="colored"] .navbar-brand-box .logo-dark {
  display: none;
}

body[data-sidebar="colored"] .navbar-brand-box .logo-light {
  display: block;
}

body[data-sidebar="colored"] #sidebar-menu ul li.menu-title {
  color: rgba(255, 255, 255, 0.7);
}

body[data-sidebar="colored"] #sidebar-menu ul li a {
  color: rgba(255, 255, 255, 0.85);
}

body[data-sidebar="colored"] #sidebar-menu ul li a i {
  color: rgba(255, 255, 255, 0.85);
}

body[data-sidebar="colored"] #sidebar-menu ul li ul.sub-menu li a {
  color: rgba(255, 255, 255, 0.7);
}

body[data-sidebar="colored"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > a {
  background-color: var(--primary-dark);
  color: #fff;
}

body[data-sidebar="colored"].vertical-collpsed
  .vertical-menu
  #sidebar-menu
  > ul
  > li:hover
  > a
  i {
  color: #fff;
}

body[data-sidebar="colored"] .mm-active {
  color: #fff !important;
}

body[data-sidebar="colored"] .mm-active > a {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-sidebar="colored"] .mm-active > a i {
  color: #fff !important;
}

body[data-sidebar="colored"] .mm-active .active {
  color: #fff !important;
}

body[data-sidebar="colored"] .menu-title {
  color: #fff !important;
}

.topnav {
  background: var(--bs-topnav-bg);
  backdrop-filter: blur(14px);
  padding: 0 calc(24px / 2);
  -webkit-box-shadow: 0 1px 0 0 var(--bs-border-color);
  box-shadow: 0 1px 0 0 var(--bs-border-color);
  margin-top: 70px;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
}

[data-bs-theme="dark"] .topnav {
  background: rgba(30, 41, 59, 0.9);
}

.topnav .topnav-menu {
  margin: 0;
  padding: 0;
}

.topnav .navbar-nav .nav-link {
  font-size: 0.875rem;
  position: relative;
  padding: 1rem 1.3rem;
  color: var(--bs-topnav-item-color);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--bs-border-radius);
  transition: all var(--transition-speed);
}

.topnav .navbar-nav .nav-link i {
  font-size: 1rem;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

.topnav .navbar-nav .nav-link:focus,
.topnav .navbar-nav .nav-link:hover {
  color: var(--bs-topnav-item-color-active);
  background-color: rgba(37, 99, 235, 0.08);
}

.topnav .navbar-nav .dropdown-item {
  color: var(--bs-topnav-item-color);
}

.topnav .navbar-nav .dropdown-item.active,
.topnav .navbar-nav .dropdown-item:hover {
  color: var(--bs-topnav-item-color-active);
}

.topnav .navbar-nav .nav-item .nav-link.active {
  color: var(--bs-topnav-item-color-active);
  background-color: rgba(37, 99, 235, 0.1);
}

.topnav .navbar-nav .dropdown.active > a {
  color: var(--bs-topnav-item-color-active);
  background-color: rgba(37, 99, 235, 0.1);
}

@media (min-width: 1200px) {
  body[data-layout="horizontal"] .container-fluid,
  body[data-layout="horizontal"] .navbar-header {
    max-width: 85%;
  }
}

@media (min-width: 992px) {
  .topnav .navbar-nav .nav-item:first-of-type .nav-link {
    padding-left: 0;
  }

  .topnav .dropdown-item {
    padding: 0.5rem 1.5rem;
    min-width: 180px;
  }

  .topnav .dropdown.mega-dropdown .mega-dropdown-menu {
    left: 0;
    right: auto;
  }

  .topnav .dropdown .dropdown-menu {
    margin-top: 0;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
  }

  .topnav .dropdown .dropdown-menu .arrow-down::after {
    right: 15px;
    -webkit-transform: rotate(-135deg) translateY(-50%);
    transform: rotate(-135deg) translateY(-50%);
    position: absolute;
  }

  .topnav .dropdown .dropdown-menu .dropdown .dropdown-menu {
    position: absolute;
    top: 0 !important;
    left: 100%;
    display: none;
  }

  .topnav .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .topnav .dropdown:hover > .dropdown-menu > .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar-toggle {
    display: none;
  }
}

.arrow-down {
  display: inline-block;
}

.arrow-down:after {
  border-color: initial;
  border-style: solid;
  border-width: 0 0 1px 1px;
  content: "";
  height: 0.4em;
  display: inline-block;
  right: 5px;
  top: 50%;
  margin-left: 10px;
  -webkit-transform: rotate(-45deg) translateY(-50%);
  transform: rotate(-45deg) translateY(-50%);
  -webkit-transform-origin: top;
  transform-origin: top;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  width: 0.4em;
}

@media (max-width: 1199.98px) {
  .topnav-menu .navbar-nav li:last-of-type .dropdown .dropdown-menu {
    right: 100%;
    left: auto;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand-box .logo-dark {
    display: block;
  }

  .navbar-brand-box .logo-dark span.logo-sm {
    display: block;
  }

  .navbar-brand-box .logo-light {
    display: none;
  }

  .topnav {
    max-height: 360px;
    overflow-y: auto;
    padding: 0;
  }

  .topnav .navbar-nav .nav-link {
    padding: 0.75rem 1.1rem;
  }

  .topnav .dropdown .dropdown-menu {
    background-color: transparent;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .topnav .dropdown .dropdown-menu.dropdown-mega-menu-xl {
    width: auto;
  }

  .topnav .dropdown .dropdown-menu.dropdown-mega-menu-xl .row {
    margin: 0;
  }

  .topnav .dropdown .dropdown-item {
    position: relative;
    background-color: transparent;
  }

  .topnav .dropdown .dropdown-item.active,
  .topnav .dropdown .dropdown-item:active {
    color: var(--bs-topnav-item-color-active);
  }

  .topnav .arrow-down::after {
    right: 15px;
    position: absolute;
  }
}

@media (min-width: 992px) {
  body[data-layout="horizontal"][data-topbar="light"]
    .navbar-brand-box
    .logo-dark {
    display: block;
  }

  body[data-layout="horizontal"][data-topbar="light"]
    .navbar-brand-box
    .logo-light {
    display: none;
  }

  body[data-layout="horizontal"][data-topbar="light"] .topnav {
    background: var(--primary-dark);
  }

  body[data-layout="horizontal"][data-topbar="light"]
    .topnav
    .navbar-nav
    .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }

  body[data-layout="horizontal"][data-topbar="light"]
    .topnav
    .navbar-nav
    .nav-link:focus,
  body[data-layout="horizontal"][data-topbar="light"]
    .topnav
    .navbar-nav
    .nav-link:hover {
    color: #ffffff;
  }

  body[data-layout="horizontal"][data-topbar="light"]
    .topnav
    .navbar-nav
    > .dropdown.active
    > a {
    color: #ffffff !important;
  }
}

[data-layout="horizontal"][data-topbar="light"] .navbar-brand-box {
  background-color: transparent;
}

body[data-layout-size="boxed"] {
  background-color: var(--bs-boxed-body-bg);
}

body[data-layout-size="boxed"] #layout-wrapper {
  background-color: var(--bs-body-bg);
  max-width: 1300px;
  margin: 0 auto;
  border-radius: var(--card-radius);
  -webkit-box-shadow: var(--bs-box-shadow);
  box-shadow: var(--bs-box-shadow);
}

body[data-layout-size="boxed"] #page-topbar {
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

body[data-layout-size="boxed"] .footer {
  margin: 0 auto;
  max-width: calc(1300px - var(--bs-sidebar-width));
}

body[data-layout-size="boxed"].vertical-collpsed .footer {
  max-width: calc(1300px - var(--bs-sidebar-collapsed-width));
}

body[data-layout-size="boxed"].vertical-collpsed .main-content {
  min-height: 1400px;
}

body[data-layout="horizontal"][data-layout-size="boxed"] #layout-wrapper,
body[data-layout="horizontal"][data-layout-size="boxed"] #page-topbar,
body[data-layout="horizontal"][data-layout-size="boxed"] .footer {
  max-width: 100%;
}

body[data-layout="horizontal"][data-layout-size="boxed"] .container-fluid,
body[data-layout="horizontal"][data-layout-size="boxed"] .navbar-header {
  max-width: 1300px;
}

.avatar-xs {
  height: 2rem;
  width: 2rem;
}

.avatar-sm {
  height: 3rem;
  width: 3rem;
}

.avatar-md {
  height: 4.5rem;
  width: 4.5rem;
}

.avatar-lg {
  height: 6rem;
  width: 6rem;
}

.avatar-xl {
  height: 7.5rem;
  width: 7.5rem;
}

.avatar-title {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 500;
  height: 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  border-radius: 50%;
}

.avatar-group {
  padding-left: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.avatar-group .avatar-group-item {
  margin-left: -12px;
  border: 2px solid var(--bs-secondary-bg);
  border-radius: 50%;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.avatar-group .avatar-group-item:hover {
  position: relative;
  border-color: var(--primary-light);
}

.font-family-secondary {
  font-family: "Inter", sans-serif;
}

.font-size-10 {
  font-size: 10px !important;
}

.font-size-11 {
  font-size: 11px !important;
}

.font-size-12 {
  font-size: 12px !important;
}

.font-size-13 {
  font-size: 13px !important;
}

.font-size-14 {
  font-size: 14px !important;
}

.font-size-15 {
  font-size: 15px !important;
}

.font-size-16 {
  font-size: 16px !important;
}

.font-size-17 {
  font-size: 17px !important;
}

.font-size-18 {
  font-size: 18px !important;
}

.font-size-20 {
  font-size: 20px !important;
}

.font-size-22 {
  font-size: 22px !important;
}

.font-size-24 {
  font-size: 24px !important;
}

.w-xs {
  min-width: 80px;
}

.w-sm {
  min-width: 95px;
}

.w-md {
  min-width: 110px;
}

.w-lg {
  min-width: 140px;
}

.w-xl {
  min-width: 160px;
}

.bg-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.7);
}

.flex-1 {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.container-fluid {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.alert-dismissible .btn-close {
  font-size: 10px;
  padding: 1.05rem 1.25rem;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
}

.text-dark {
  color: var(--bs-emphasis-color) !important;
}

.bg-light {
  background-color: var(--bs-body-bg) !important;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bs-secondary-bg);
  z-index: 9999;
}

#status {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: -20px 0 0 -20px;
}

.spinner .spin-icon {
  font-size: 56px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  -webkit-animation: spin 1.6s infinite linear;
  animation: spin 1.6s infinite linear;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }

  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }

  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.form-check-right {
  padding-left: 0;
  display: inline-block;
  padding-right: 1.5em;
}

.form-check-right .form-check-input {
  float: right;
  margin-left: 0;
  margin-right: -1.5em;
}

.form-check-right .form-check-label {
  display: block;
}

.form-control {
  background-color: var(--bs-topbar-search-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  background-color: var(--bs-topbar-search-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
}

.form-check {
  position: relative;
  text-align: left;
}

.form-check-input {
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
}

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

.form-check-label {
  cursor: pointer;
  margin-bottom: 0;
}

.btn-close {
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  opacity: 0.5;
}

.btn-close:hover {
  opacity: 0.75;
}

.badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

.badge-primary {
  background: var(--primary-color);
  color: #fff;
}

.badge-secondary {
  background-color: var(--bs-secondary);
  color: #fff;
}

.badge-success {
  background-color: var(--bs-success);
  color: #fff;
}

.badge-info {
  background-color: var(--bs-info);
  color: #fff;
}

.badge-warning {
  background-color: var(--bs-warning);
  color: #fff;
}

.badge-danger {
  background-color: var(--bs-danger);
  color: #fff;
}

.bg-primary {
  background: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.bg-info {
  background-color: var(--bs-info) !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-info {
  color: var(--bs-info) !important;
}

.text-warning {
  color: var(--bs-warning) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-secondary {
  border-color: var(--bs-secondary) !important;
}

.border-success {
  border-color: var(--bs-success) !important;
}

.border-info {
  border-color: var(--bs-info) !important;
}

.border-warning {
  border-color: var(--bs-warning) !important;
}

.border-danger {
  border-color: var(--bs-danger) !important;
}

.activity-wid {
  margin-top: 8px;
  margin-left: 16px;
}

.activity-wid .activity-list {
  position: relative;
  padding: 0 0 40px 30px;
}

.activity-wid .activity-list:before {
  content: "";
  border-left: 2px dashed rgba(37, 99, 235, 0.25);
  position: absolute;
  left: 0;
  bottom: 0;
  top: 32px;
}

.activity-wid .activity-list .activity-icon {
  position: absolute;
  left: -15px;
  top: 0;
  z-index: 9;
  background: var(--primary-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.activity-wid .activity-list:last-child {
  padding-bottom: 0;
}

.button-items {
  margin-left: -8px;
  margin-bottom: -12px;
}

.button-items .btn {
  margin-bottom: 12px;
  margin-left: 8px;
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.btn-primary {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.mfp-popup-form {
  max-width: 1140px;
}

.bs-example-modal {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  display: block;
}

.icon-demo-content {
  color: var(--bs-secondary-color);
}

.icon-demo-content i {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 36px;
  font-size: 22px;
  color: var(--bs-secondary-color);
  border: 2px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  text-align: center;
  margin-right: 16px;
  vertical-align: middle;
}

.icon-demo-content .col-lg-4 {
  margin-top: 24px;
}

.icon-demo-content .col-lg-4:hover i {
  color: #fff;
  background: var(--primary-color);
  border-color: transparent;
}

.grid-structure .grid-container {
  background-color: var(--bs-tertiary-bg);
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--bs-border-radius);
}

.card-radio {
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  transition: all var(--transition-speed);
}

.card-radio:hover {
  cursor: pointer;
  border-color: var(--primary-color);
}

.card-radio-label {
  display: block;
}

.card-radio-input {
  display: none;
}

.card-radio-input:checked + .card-radio {
  border-color: var(--primary-color) !important;
  background-color: rgba(37, 99, 235, 0.06);
}

.navs-carousel .owl-nav {
  margin-top: 16px;
}

.navs-carousel .owl-nav button {
  width: 30px;
  height: 30px;
  line-height: 28px !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  background: var(--primary-color) !important;
  color: #fff !important;
  margin: 4px 8px !important;
}

@media print {
  .footer,
  .navbar-header,
  .page-title-box,
  .right-bar,
  .vertical-menu {
    display: none !important;
  }

  .card-body,
  .main-content,
  .page-content,
  .right-bar,
  body {
    padding: 0;
    margin: 0;
  }

  .card {
    border: 0;
  }
}

[data-simplebar] {
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.simplebar-wrapper {
  overflow: hidden;
  width: inherit;
  height: inherit;
  max-width: inherit;
  max-height: inherit;
}

.simplebar-mask {
  direction: inherit;
  position: absolute;
  overflow: hidden;
  padding: 0;
  margin: 0;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  z-index: 0;
}

.simplebar-offset {
  direction: inherit !important;
  -webkit-box-sizing: inherit !important;
  box-sizing: inherit !important;
  resize: none !important;
  position: absolute;
  top: 0;
  left: 0 !important;
  bottom: 0;
  right: 0 !important;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.simplebar-content-wrapper {
  direction: inherit;
  -webkit-box-sizing: border-box !important;
  box-sizing: border-box !important;
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  visibility: visible;
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
  scrollbar-width: none;
  padding: 0 !important;
}

.simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.simplebar-content:after,
.simplebar-content:before {
  content: " ";
  display: table;
}

.simplebar-placeholder {
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
}

.simplebar-height-auto-observer-wrapper {
  -webkit-box-sizing: inherit !important;
  box-sizing: inherit !important;
  height: 100%;
  width: 100%;
  max-width: 1px;
  position: relative;
  float: left;
  max-height: 1px;
  overflow: hidden;
  z-index: -1;
  padding: 0;
  margin: 0;
  pointer-events: none;
  -webkit-box-flex: inherit;
  -ms-flex-positive: inherit;
  flex-grow: inherit;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
}

.simplebar-height-auto-observer {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 1000%;
  width: 1000%;
  min-height: 1px;
  min-width: 1px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.simplebar-track {
  z-index: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

[data-simplebar].simplebar-dragging .simplebar-content {
  pointer-events: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-simplebar].simplebar-dragging .simplebar-track {
  pointer-events: all;
}

.simplebar-scrollbar {
  position: absolute;
  right: 2px;
  width: 6px;
  min-height: 10px;
}

.simplebar-scrollbar:before {
  position: absolute;
  content: "";
  background: var(--primary-color);
  border-radius: 7px;
  left: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
}

.simplebar-scrollbar.simplebar-visible:before {
  opacity: 0.5;
  -webkit-transition: opacity 0s linear;
  transition: opacity 0s linear;
}

.simplebar-track.simplebar-vertical {
  top: 0;
  width: 11px;
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  top: 2px;
  bottom: 2px;
}

.simplebar-track.simplebar-horizontal {
  left: 0;
  height: 11px;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
  height: 100%;
  left: 2px;
  right: 2px;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
  right: auto;
  left: 0;
  top: 2px;
  height: 7px;
  min-height: 0;
  min-width: 10px;
  width: auto;
}

[data-simplebar-direction="rtl"] .simplebar-track.simplebar-vertical {
  right: auto;
  left: 0;
}

.hs-dummy-scrollbar-size {
  direction: rtl;
  position: fixed;
  opacity: 0;
  visibility: hidden;
  height: 500px;
  width: 500px;
  overflow-y: hidden;
  overflow-x: scroll;
}

.simplebar-hide-scrollbar {
  position: fixed;
  left: 0;
  visibility: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
}

.custom-scroll {
  height: 100%;
}

.card {
  border: 0px solid var(--bs-border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-indigo);
  transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  background: var(--bs-secondary-bg);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.table thead th {
  background-color: var(--bs-tertiary-bg);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1rem;
  font-weight: 600;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: var(--bs-border-color);
}

.search-input {
  background-color: var(--bs-topbar-search-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding-left: 2.5rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
}

.badge-soft-success {
  background: #dcfce7;
  color: #16a34a;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-soft-warning {
  background: #fef9c3;
  color: #ca8a04;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-soft-indigo {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

[data-bs-theme="dark"] .badge-soft-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-bs-theme="dark"] .badge-soft-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

[data-bs-theme="dark"] .badge-soft-indigo {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bs-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.dot-indicator {
  height: 8px;
  width: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
  border: 2px solid white;
}

.crud-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.15rem;
}

.crud-page-title h4 {
  margin: 0;
  color: var(--bs-emphasis-color);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: 0;
}

.crud-page-title h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 0.45rem;
  border-radius: 8px;
  background: rgba(18, 164, 230, 0.11);
  color: var(--bs-primary) !important;
  font-size: 1rem;
}

.crud-page-title p {
  max-width: 760px;
  margin-top: 0.35rem;
  color: #64748b !important;
  font-size: 0.9rem;
}

.crud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #f8fafc;
}

.crud-toolbar .btn,
.dataTables_wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.crud-toolbar > .btn-primary,
.crud-toolbar > [data-bs-target] .btn-primary {
  margin-left: auto;
}

.crud-toolbar .btn {
  min-height: 34px;
  border-radius: 7px;
  font-weight: 650;
}

.crud-toolbar .btn-group {
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.16rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #ffffff;
}

.crud-toolbar .btn-group > .btn {
  border-radius: 6px !important;
  border-width: 0;
  min-height: 30px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  color: #475569;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.crud-toolbar .btn-group > .btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.crud-toolbar .btn-group > .btn.active {
  color: #EEE;
  background: #12A4E6;
  border-bottom-color: var(--primary-color, #2563eb);
  box-shadow: none;
}

/* ============================================================
   ESTANDARIZACIÓN CORPORATIVA DE FILTROS — #12A4E6
   Incorpora el color corporativo como acento visual en estados
   active, hover y focus, sin alterar los colores semánticos
   de cada filtro (success, secondary, danger, etc.).
   ============================================================ */

/* Active: subrayado corporativo en el borde inferior */
.btn-group[role="group"] > .btn.active {
  box-shadow: inset 0 -2px 0 0 var(--primary-color);
}

/* Hover: tinte corporativo muy suave en el fondo */
.btn-group[role="group"] > .btn:hover:not(.active) {
  background-color: rgba(18, 164, 230, 0.06);
}

/* Focus visible: anillo corporativo */
.btn-group[role="group"] > .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(18, 164, 230, 0.28);
}

/* DataTables search input: focus corporativo */
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.16rem rgba(18, 164, 230, 0.13);
  outline: none;
}

/* Search input genérico: focus corporativo */
.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.16rem rgba(18, 164, 230, 0.13);
  outline: none;
}

.btn.crud-bulk-disabled,
.btn.crud-bulk-disabled:disabled,
.btn[id^="btnEliminar"][disabled],
.btn[disabled] .crud-selected-count {
  pointer-events: none;
}

.btn.crud-bulk-disabled,
.btn.crud-bulk-disabled:disabled,
.btn[id^="btnEliminar"][disabled] {
  color: #94a3b8 !important;
  border-color: #d8dee8 !important;
  background-color: #f1f5f9 !important;
  opacity: 1;
  box-shadow: none !important;
}

.crud-check-all,
.crud-row-check {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.crud-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}

.modal-content {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--bs-border-color);
  background: #f8fafc;
  color: var(--bs-emphasis-color);
  padding: 1rem 1.15rem;
}

.modal-header.text-white {
  color: var(--bs-emphasis-color) !important;
}

.modal-header .modal-title {
  color: var(--bs-emphasis-color);
  font-weight: 750;
  letter-spacing: 0;
}

.modal-header .modal-title i {
  color: var(--bs-primary);
  margin-right: 0.35rem;
}

.modal-body {
  padding: 1.15rem;
}

.modal-footer {
  border-top: 1px solid var(--bs-border-color);
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  gap: 0.45rem;
}

.modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  font-weight: 650;
}

.dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 48px;
  left: 50%;
  z-index: 20;
  width: auto;
  min-width: 150px;
  margin: 0;
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_processing::before {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  vertical-align: -0.12rem;
  content: "";
  border: 2px solid #94a3b8;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: cami-datatables-processing-spin 0.75s linear infinite;
}

.dataTables_wrapper.dt-initial-processing-complete .dataTables_processing {
  display: none !important;
}

@keyframes cami-datatables-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal .cami-role-select,
.modal .select2-container {
  max-width: 100%;
  width: 100% !important;
}

.modal .select2-container .select2-selection {
  min-height: 38px;
}

.select2-container--default .select2-selection--single {
  min-height: 38px;
  height: 38px;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: #fff;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 2rem;
  color: var(--bs-body-color);
  line-height: 36px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #6c757d;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 36px;
  right: 0.5rem;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  height: 36px;
  margin-right: 1.8rem;
  color: #64748b;
  line-height: 36px;
}

.select2-container--default.select2-container--focus
  .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.modal .cami-role-select + .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 38px;
  height: 38px;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: #fff;
}

.modal
  .cami-role-select
  + .select2-container
  .select2-selection__rendered {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 2rem;
  color: var(--bs-body-color);
  line-height: 36px;
}

.modal .cami-role-select + .select2-container .select2-selection__arrow {
  height: 36px;
  right: 0.5rem;
}

.select2-dropdown {
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
}

.crud-invalid,
.form-control.crud-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

.crud-field-error {
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .crud-toolbar {
    justify-content: stretch;
  }

  .crud-toolbar .btn {
    flex: 1 1 100%;
  }
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block;
  }
}

/* DataTables compactos: densidad tipo ERP con columnas priorizadas por modulo */
.dataTables_wrapper {
  position: relative;
  overflow: visible;
  font-size: 0.8125rem;
}

.enterprise-card .table-responsive {
  overflow: visible;
}

.dataTables_wrapper .row {
  align-items: center;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.8125rem;
  color: #64748b;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: #475569;
  font-weight: 600;
}

table.dataTable,
.table.dataTable {
  table-layout: auto;
  width: 100% !important;
  margin-bottom: 0.75rem !important;
}

.table.dataTable thead th,
.table.dataTable thead td {
  padding: 0.42rem 0.52rem;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ea;
}

.table.dataTable tbody th,
.table.dataTable tbody td {
  padding: 0.36rem 0.52rem;
  line-height: 1.25;
  vertical-align: middle;
  color: #334155;
  border-color: #edf2f7;
}

.table.dataTable tbody tr:hover > * {
  background-color: #f8fafc;
}

.table-bordered > :not(caption) > * {
  border-color: #edf2f7;
}

.card > .card-body > .table-responsive,
.card > .card-body > table.dataTable,
.card > .card-body > .dataTables_wrapper {
  margin-top: 0.35rem;
}

.form-label {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 650;
  margin-bottom: 0.38rem;
}

.form-control,
.form-select {
  border-color: #dbe3ea;
  border-radius: 7px;
  min-height: 38px;
  color: #1e293b;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(18, 164, 230, 0.55);
  box-shadow: 0 0 0 0.16rem rgba(18, 164, 230, 0.13);
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  margin-bottom: 0;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0;
}

.form-check-label {
  color: #334155;
  font-weight: 600;
}

.input-group-text {
  border-color: #dbe3ea;
  border-radius: 7px;
  color: #64748b;
  background: #f8fafc;
}

.table.dataTable tbody td.dt-wrap-priority,
.table.dataTable tbody td.dt-col-description,
.table.dataTable tbody td.dt-col-reference {
  white-space: normal;
  overflow-wrap: anywhere;
}

.table.dataTable tbody td.dt-wrap-priority {
  min-width: 260px;
}

.table.dataTable tbody td.dt-col-id,
.table.dataTable tbody td.dt-col-code,
.table.dataTable tbody td.dt-col-document,
.table.dataTable tbody td.dt-col-date,
.table.dataTable tbody td.dt-col-currency,
.table.dataTable tbody td.dt-col-number,
.table.dataTable tbody td.dt-col-money {
  font-variant-numeric: tabular-nums;
}

.table.dataTable tbody td.dt-col-actions,
.table.dataTable tbody td.dt-col-check,
.table.dataTable tbody td.dt-col-control,
.table.dataTable tbody td.dt-col-status,
.table.dataTable tbody td.dt-col-flag,
.table.dataTable tbody td.dt-col-level,
.table.dataTable tbody td.dt-col-image {
  white-space: nowrap;
}

.table.dataTable tbody td.dt-col-actions .btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.table.dataTable .btn-group-sm > .btn,
.table.dataTable .btn-sm,
.table.dataTable .btn {
  padding: 0.2rem 0.38rem;
  font-size: 0.75rem;
  line-height: 1.15;
}

.table.dataTable .dt-col-actions .btn {
  min-width: 27px;
}

.table.dataTable .btn i {
  font-size: 0.75rem;
}

.table.dataTable .badge {
  padding: 0.18rem 0.42rem;
  font-size: 0.6875rem;
  line-height: 1.1;
  border-radius: 999px;
}

.table.dataTable .crud-row-check,
.table.dataTable .crud-check-all {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
}

.table.dataTable .crud-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.dataTables_wrapper .pagination .page-link {
  padding: 0.28rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.dataTables_scrollBody {
  border-bottom: 1px solid var(--bs-border-color) !important;
  overflow-x: auto !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  box-shadow: none;
  background-color: #12A4E6;
  color: #334155;
}

table.dataTable > tbody > tr.child ul.dtr-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 0.8rem;
  width: 100%;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

table.dataTable > tbody > tr.child span.dtr-title {
  color: #64748b;
  font-size: 0.6875rem;
  text-transform: uppercase;
}

table.dataTable > tbody > tr.child span.dtr-data {
  color: #1e293b;
  font-weight: 600;
}

#tablaMtroPartes .dt-col-actions .btn-group {
  gap: 0.15rem;
}

#tablaMtroPartes .dt-col-actions .btn {
  min-width: 28px;
}

#tablaMtroPartes .nom-count,
#tablaMtroPartes .ident-count {
  font-size: 0.6875rem;
}

#tablaItems td.dt-col-description,
#tablaPythonItems td.dt-col-description {
  max-width: 520px;
}

#tablaIdentificadores td.dt-col-description,
#tablaIdentificadoresAgregados td.dt-col-description,
#tablaMtroPartes td.dt-col-description,
#tablaFacturas td.dt-col-description {
  max-width: 460px;
}

.relation-manager-modal .relation-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-secondary-bg);
}

.relation-manager-modal .relation-context-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.relation-manager-modal .select2-container {
  width: 100% !important;
}

.relation-manager-modal .select2-container--default .select2-selection--single {
  min-height: 38px;
  border-color: var(--bs-border-color);
  border-radius: 0.375rem;
}

.relation-manager-modal
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding-left: 0.75rem;
  padding-right: 2rem;
  color: #1e293b;
  line-height: 38px;
}

.relation-manager-modal
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px;
  right: 0.5rem;
}

.relation-manager-modal
  .select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  height: 38px;
  margin-right: 1.5rem;
}

.relation-manager-modal
  .select2-container--default.select2-container--focus
  .select2-selection--single,
.relation-manager-modal
  .select2-container--default.select2-container--open
  .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.select2-dropdown {
  z-index: 1060;
}

.relation-manager-modal .relation-action-btn {
  min-height: 38px;
}

.relation-manager-modal .relation-divider {
  margin: 1rem 0;
}

.relation-manager-modal .relation-section-title {
  margin-bottom: 0.75rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Procesar Facturas */
.invoice-process-page {
  max-width: 1480px;
}

.invoice-process-hero,
.invoice-workflow,
.invoice-process-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-secondary-bg);
  box-shadow: var(--shadow-indigo);
}

.invoice-process-hero {
  padding: 1.25rem;
}

.invoice-process-hero.crud-page-title {
  align-items: center;
  padding: 1.25rem;
}

.invoice-process-hero.crud-page-title h4 {
  font-size: 1.35rem;
}

.invoice-process-hero.crud-page-title h4 i {
  display: inline;
  width: auto;
  height: auto;
  margin-right: 0;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  font-size: inherit;
}

.invoice-process-icon,
.invoice-mini-icon,
.invoice-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(18, 164, 230, 0.12);
  color: var(--bs-primary);
}

.invoice-process-icon {
  width: 48px;
  height: 48px;
  font-size: 1.55rem;
}

.invoice-mini-icon {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.invoice-placeholder-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: #64748b;
  background: #f1f5f9;
  font-size: 1.35rem;
}

.invoice-process-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.invoice-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.invoice-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--bs-border-color);
  color: #64748b;
}

.invoice-step:last-child {
  border-right: 0;
}

.invoice-step.is-active {
  color: #0f172a;
  background: linear-gradient(
    180deg,
    rgba(18, 164, 230, 0.09),
    rgba(18, 164, 230, 0.03)
  );
}

.invoice-step.is-complete {
  color: #0f766e;
  background: #f0fdfa;
}

.invoice-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #12A4E6;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 700;
}

.invoice-step.is-active .invoice-step-number {
  color: #ffffff;
  background: var(--bs-primary);
}

.invoice-step.is-complete .invoice-step-number {
  color: #ffffff;
  background: var(--bs-success);
}

.invoice-step strong,
.invoice-step span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-step strong {
  color: inherit;
  font-size: 0.875rem;
}

.invoice-step span {
  font-size: 0.75rem;
}

.invoice-section-kicker {
  display: block;
  color: var(--bs-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invoice-input-group .input-group-text {
  color: #64748b;
  background: #f8fafc;
  border-color: var(--bs-border-color);
}

.invoice-reference-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.invoice-reference-summary > div,
.invoice-metric {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #f8fafc;
}

.invoice-reference-summary span,
.invoice-metric span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.invoice-reference-summary strong,
.invoice-metric strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.invoice-dropzone {
  min-height: 270px;
  padding: 2rem 1.25rem;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.invoice-dropzone:hover {
  border-color: rgba(18, 164, 230, 0.65);
  background: #f0f9ff;
  box-shadow: inset 0 0 0 1px rgba(18, 164, 230, 0.08);
}

.invoice-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #fff1f2;
  color: #dc2626;
  font-size: 2rem;
}

.invoice-processing-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(18, 164, 230, 0.22);
  border-radius: 8px;
  background: #f0f9ff;
  color: #0e7490;
  font-size: 0.875rem;
  font-weight: 600;
}

.invoice-empty-upload {
  min-height: 100%;
}

#facturaPythonUploadCard:not(.d-none) + #invoiceUploadPlaceholder {
  display: none;
}

.invoice-placeholder-content {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.invoice-json-panel {
  max-height: 340px;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #0f172a;
}

.invoice-json-panel pre {
  color: #dbeafe;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 991.98px) {
  .invoice-workflow,
  .invoice-reference-summary {
    grid-template-columns: 1fr;
  }

  .invoice-step {
    border-right: 0;
    border-bottom: 1px solid var(--bs-border-color);
  }

  .invoice-step:last-child {
    border-bottom: 0;
  }
}

/* Invoice viewer */
.invoice-modal-header {
  align-items: flex-start;
  gap: 1rem;
}

.invoice-modal-body {
  background: #f5f6f8;
  padding: 0.75rem;
}

.invoice-detail-dialog {
  --bs-modal-width: min(1180px, calc(100vw - 2rem));
}

.invoice-viewer {
  max-width: 1120px;
  margin: 0 auto;
}

.invoice-document {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: none;
  padding: 0.42rem;
  color: #111827;
}

.invoice-reference-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.invoice-reference-row span {
  color: #111827;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.invoice-reference-row strong {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.invoice-info-card {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0.36rem 0.46rem;
}

.invoice-info-card span {
  display: block;
  color: #4b5563;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.invoice-info-card strong {
  display: block;
  margin-top: 0.16rem;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.invoice-top-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(380px, 1fr);
  gap: 0.95rem;
  align-items: start;
  margin-bottom: 0.38rem;
}

.invoice-addressee-box {
  min-height: 104px;
  border: 1px solid #1f2937;
  border-top: 0;
  padding: 0.32rem 0.42rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.invoice-top-right {
  display: grid;
  gap: 0.25rem;
}

.invoice-doc-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.invoice-doc-strip > div {
  min-width: 0;
  min-height: 74px;
  padding: 0.5rem;
  text-align: left;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.22rem;
}

.invoice-doc-strip > div:last-child {
  border-right: 0;
}

.invoice-destination-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.invoice-destination-box,
.invoice-customer-box {
  min-height: 70px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem;
}

.invoice-customer-box {
  min-height: 42px;
}

.invoice-reference-row span,
.invoice-doc-strip span,
.invoice-destination-box span,
.invoice-customer-box span,
.invoice-item-card span,
.invoice-vat-head span,
.invoice-vat-foot span,
.invoice-total-row span {
  display: block;
  color: #111827;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.1;
}

.invoice-doc-strip strong,
.invoice-destination-box strong,
.invoice-destination-box small,
.invoice-customer-box strong,
.invoice-vat-head strong,
.invoice-vat-foot strong,
.invoice-total-row strong {
  display: block;
  margin-top: 0.08rem;
  color: #111827;
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invoice-destination-box strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.invoice-destination-box small {
  white-space: pre-line;
}

.invoice-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.38rem 0 0.18rem;
  color: #111827;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.invoice-section-title small {
  color: #374151;
  font-size: 0.64rem;
  font-weight: 600;
}

.invoice-items-grid {
  display: grid;
  gap: 0.18rem;
}

.factura-items-editor {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.factura-items-editor table {
  min-width: 1980px;
  table-layout: fixed;
}

.factura-items-editor thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.32rem;
  background: #f8fafc;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.factura-items-editor td {
  padding: 0.28rem;
  vertical-align: middle;
}

.factura-items-editor th:nth-child(1) {
  width: 46px;
}

.factura-items-editor th:nth-child(2) {
  width: 88px;
}

.factura-items-editor th:nth-child(3) {
  width: 170px;
}

.factura-items-editor th:nth-child(4) {
  width: 360px;
}

.factura-items-editor th:nth-child(5) {
  width: 82px;
}

.factura-items-editor th:nth-child(6),
.factura-items-editor th:nth-child(7),
.factura-items-editor th:nth-child(8),
.factura-items-editor th:nth-child(9),
.factura-items-editor th:nth-child(10) {
  width: 132px;
}

.factura-items-editor th:nth-child(n + 11):nth-child(-n + 16) {
  width: 140px;
}

.factura-items-editor th:nth-child(17) {
  width: 72px;
}

.factura-items-editor .form-control-sm {
  min-height: 30px;
  padding: 0.24rem 0.38rem;
  border-color: transparent;
  background: #ffffff;
  font-size: 0.78rem;
}

.factura-items-editor .form-control-sm:focus {
  border-color: rgba(18, 164, 230, 0.65);
  box-shadow: 0 0 0 0.12rem rgba(18, 164, 230, 0.12);
}

.factura-item-row-number {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.invoice-item-card {
  border: 1px solid #1f2937;
  border-radius: 0;
  padding: 0.3rem 0.38rem;
  background: #ffffff;
}

.invoice-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.18rem;
}

.invoice-item-head strong {
  color: #111827;
  font-size: 0.74rem;
}

.invoice-item-main {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.48rem;
  align-items: start;
  margin-bottom: 0.22rem;
}

.invoice-item-code,
.invoice-item-desc {
  display: block;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.invoice-item-kpis,
.invoice-item-meta {
  display: grid;
  grid-template-columns: 52px 68px repeat(3, minmax(76px, 1fr));
  gap: 0.16rem 0.36rem;
}

.invoice-item-meta {
  grid-template-columns: repeat(6, minmax(84px, 1fr));
  margin-top: 0.22rem;
  padding-top: 0.22rem;
  border-top: 1px solid #d1d5db;
}

.invoice-item-kpis > div,
.invoice-item-meta > div {
  min-width: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.invoice-item-kpis strong,
.invoice-item-meta strong {
  display: block;
  color: #111827;
  font-size: 0.7rem;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.invoice-tax-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  gap: 0;
  margin-top: 0.32rem;
  border: 1px solid #1f2937;
  overflow: hidden;
}

.invoice-vat-area {
  min-width: 0;
  border-right: 1px solid #1f2937;
}

.invoice-vat-head {
  display: grid;
  grid-template-columns: 62px minmax(200px, 1fr) 104px 48px 104px;
  min-height: 64px;
  border-bottom: 1px solid #1f2937;
}

.invoice-vat-head > div,
.invoice-vat-foot > div {
  min-width: 0;
  padding: 0.16rem 0.2rem;
  border-right: 1px solid #1f2937;
  overflow: hidden;
}

.invoice-vat-head > div:last-child,
.invoice-vat-foot > div:last-child {
  border-right: 0;
}

.invoice-vat-head > div:nth-child(n + 3) {
  text-align: right;
}

.invoice-vat-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  min-height: 0;
}

.invoice-vat-foot > div {
  min-height: 48px;
  border-bottom: 1px solid #1f2937;
}

.invoice-condition-cell strong {
  white-space: normal;
}

.invoice-shipped-cell {
  min-width: min(100%, 180px);
}

.invoice-amount-cell {
  text-align: right;
}

.invoice-amount-cell strong,
.invoice-total-row strong {
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.invoice-totals-panel {
  background: #ffffff;
  border: 0;
  padding: 0;
  border-radius: 0;
  min-width: 0;
}

.invoice-total-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0.18rem 0.38rem;
  border-bottom: 1px solid #1f2937;
  overflow: hidden;
}

.invoice-total-row strong {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.15;
}

.invoice-total-row span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invoice-total-final {
  margin-top: 0;
  padding-top: 0.12rem;
}

.invoice-total-final strong {
  font-size: 0.92rem;
  font-weight: 800;
}

.invoice-totals-panel .invoice-total-row:last-child {
  border-bottom: 0;
}

.invoice-edit {
  margin-top: 0.08rem;
  min-height: 23px;
  padding: 0.1rem 0.22rem;
  font-size: 0.72rem;
  border-radius: 0;
}

.invoice-total-row .invoice-edit {
  margin-top: 0;
  text-align: right;
}

.invoice-editing .invoice-total-row .invoice-edit,
.invoice-editing .invoice-vat-head .invoice-edit,
.invoice-editing .invoice-vat-foot .invoice-edit,
.invoice-editing .invoice-edit-grid .invoice-edit,
.invoice-editing .invoice-destination-box .invoice-edit,
.invoice-editing .invoice-customer-box .invoice-edit {
  margin-top: 0.25rem;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  border-radius: var(--bs-border-radius);
  font-size: 0.875rem;
  line-height: 1.5;
}

.invoice-editing .invoice-destination-box textarea.invoice-edit {
  min-height: 74px;
}

.invoice-editing .pais-vendedor-select + .select2-container {
  margin-top: 0.25rem;
}

.invoice-editing
  .pais-vendedor-select
  + .select2-container
  .select2-selection--single {
  min-height: 38px;
  height: 38px;
}

.invoice-editing .invoice-pay-row {
  display: none;
}

.invoice-empty-item {
  padding: 0.5rem;
  color: #374151;
  background: #ffffff;
  border: 1px dashed #9ca3af;
  border-radius: 0;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .invoice-tax-summary {
    grid-template-columns: 1fr;
  }

  .invoice-vat-area {
    border-right: 0;
    border-bottom: 1px solid #1f2937;
  }

  .invoice-totals-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .invoice-total-row {
    min-height: 54px;
    border-right: 1px solid #1f2937;
  }

  .invoice-totals-panel .invoice-total-row:last-child {
    border-right: 0;
  }
}

@media (max-width: 991.98px) {
  .invoice-document {
    padding: 0.5rem;
  }

  .invoice-top-layout,
  .invoice-reference-row,
  .invoice-tax-summary {
    grid-template-columns: 1fr;
  }

  .invoice-addressee-box {
    border-right: 0;
  }

  .invoice-vat-head {
    grid-template-columns: 70px minmax(180px, 1fr) repeat(3, minmax(70px, 1fr));
  }

  .invoice-item-main,
  .invoice-item-kpis,
  .invoice-item-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .invoice-modal-header {
    flex-direction: column;
  }

  .invoice-modal-header .d-flex {
    width: 100%;
  }

  .invoice-modal-header .btn {
    flex: 1 1 auto;
  }

  .invoice-doc-strip,
  .invoice-reference-row,
  .invoice-vat-head,
  .invoice-vat-foot,
  .invoice-totals-panel,
  .invoice-item-main,
  .invoice-item-kpis,
  .invoice-item-meta {
    grid-template-columns: 1fr;
  }

  .invoice-doc-strip > div,
  .invoice-vat-head > div,
  .invoice-vat-foot > div,
  .invoice-total-row {
    border-right: 0;
    border-bottom: 1px solid #1f2937;
    text-align: left;
  }

  .invoice-amount-cell,
  .invoice-total-row strong {
    text-align: left;
  }
}
.crud-row-highlight {
  background-color: #edf7ff !important;
  box-shadow: inset 4px 0 0 #6ea8d9;
  transition: background-color 2.2s ease, box-shadow 2.2s ease;
}

.crud-row-highlight > * {
  background-color: #edf7ff !important;
  transition: background-color 2.2s ease;
}

.crud-row-highlight.is-fading {
  background-color: transparent !important;
  box-shadow: inset 4px 0 0 transparent;
}

.crud-row-highlight.is-fading > * {
  background-color: transparent !important;
}

.enterprise-page {
  max-width: 1480px;
}

.enterprise-card {
  border: 1px solid var(--bs-border-color);
  box-shadow: var(--shadow-indigo);
}

.enterprise-card .card-body {
  min-width: 0;
}

.dashboard-vigencia-link {
  display: block;
  color: inherit;
}

.dashboard-action-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow-lg);
}

.dashboard-action-card:focus-within {
  outline: 2px solid rgba(18, 164, 230, 0.35);
  outline-offset: 2px;
}

.dashboard-vigencias-card,
.dashboard-facturas-card {
  height: 360px;
  max-height: 360px;
}

.dashboard-vigencias-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: clip;
}

.dashboard-vigencias-header {
  flex: 0 0 auto;
}

.dashboard-vigencias-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dashboard-vigencias-scroll table {
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-vigencias-scroll thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
}

.dashboard-vigencias-scroll thead th {
  background: #ffffff;
}

.dashboard-vigencias-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dashboard-vigencias-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.dashboard-vigencias-scroll::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1199.98px) {
  .dashboard-vigencias-card,
  .dashboard-facturas-card {
    height: 340px;
    max-height: 340px;
  }
}

@media (max-width: 991.98px) {
  .dashboard-vigencias-card,
  .dashboard-facturas-card {
    height: 320px;
    max-height: 320px;
  }
}

.enterprise-card .table-responsive {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
}

.enterprise-card .dataTables_wrapper {
  padding: 0.2rem 0.2rem 0;
}

.enterprise-card table.dataTable {
  margin-top: 0 !important;
}

.nom-vigencias-hero {
  border-color: #e5e7eb;
  background: #ffffff;
}

.nom-vigencias-table-shell {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.nom-vigencias-table-shell .dataTables_wrapper {
  padding: 0.5rem 0.65rem 0.75rem;
}

#tablaNomAjax thead th {
  border-bottom-color: #dbe3ea;
  background: #f8fafc;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  vertical-align: middle;
}

#tablaNomAjax tbody td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  vertical-align: middle;
}

#tablaNomAjax tbody tr:hover > * {
  background-color: #f8fafc;
}

#tablaNomAjax .dt-col-actions .btn-group {
  justify-content: center;
  padding: 0.12rem;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
}

#tablaNomAjax .nom-sin-asignacion-badge {
  margin-left: 0.35rem;
  vertical-align: middle;
  white-space: nowrap;
}

.modal form .row {
  row-gap: 0.15rem;
}

.modal hr {
  margin: 0.9rem 0 1rem;
  border-color: #E2E8F0;
  opacity: 1;
}

.modal h6 {
  color: #0f172a;
  font-weight: 750;
}

.modal small.text-muted {
  color: #64748b !important;
}

.manual-items-grid {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 62vh;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior-x: contain;
}

.enterprise-card .manual-items-grid.table-responsive {
  overflow-x: auto;
  overflow-y: auto;
}

.manual-items-grid table {
  width: 2060px !important;
  min-width: 2060px;
  max-width: none;
  table-layout: fixed;
}

.manual-items-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.manual-items-grid th,
.manual-items-grid td {
  min-width: 0;
  padding: 0.32rem;
  vertical-align: middle;
  overflow: hidden;
}

.manual-items-grid .form-control-sm {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  padding: 0.24rem 0.38rem;
  border-color: transparent;
  background: #ffffff;
  font-size: 0.78rem;
  box-sizing: border-box;
}

.manual-items-grid .form-control-sm:focus {
  border-color: rgba(18, 164, 230, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 0.12rem rgba(18, 164, 230, 0.12);
}

.manual-items-grid .manual-col-num {
  width: 46px;
}

.manual-items-grid .manual-col-itm {
  width: 88px;
}

.manual-items-grid .manual-col-code {
  width: 170px;
}

.manual-items-grid .manual-col-desc {
  width: 360px;
}

.manual-items-grid .manual-col-um {
  width: 82px;
}

.manual-items-grid .manual-col-qty {
  width: 130px;
}

.manual-items-grid .manual-col-price,
.manual-items-grid .manual-col-net,
.manual-items-grid .manual-col-vat,
.manual-items-grid .manual-col-discount {
  width: 132px;
}

.manual-items-grid .manual-col-country {
  width: 130px;
}

.manual-items-grid .manual-col-ref {
  width: 140px;
}

.manual-items-grid .manual-col-actions {
  width: 112px;
}

.manual-items-grid [data-field="mc_item_code"] {
  min-width: 0;
}

.manual-items-grid .manual-col-code {
  width: 230px;
}

.manual-item-code-cell {
  position: relative;
  vertical-align: middle !important;
}

.manual-item-code-popover {
  position: absolute;
  z-index: 1085;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow: visible;
}

.manual-item-code-popover::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #ffffff;
}

.manual-item-code-popover.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #ffffff;
}

.manual-item-code-popover.is-found {
  border-color: rgba(25, 135, 84, 0.3);
}

.manual-item-code-popover.is-missing {
  border-color: rgba(255, 193, 7, 0.45);
}

.manual-item-code-popover-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: flex-start;
}

.manual-item-code-popover-title {
  color: #1f2937;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.manual-item-code-popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.manual-item-code-popover-actions .btn {
  min-height: 28px;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .manual-item-code-popover {
    min-width: min(280px, calc(100vw - 24px));
  }

  .manual-item-code-popover-actions .btn {
    flex: 1 1 100%;
    white-space: normal;
  }
}

.manual-items-grid [data-field="mc_descripcion"] {
  min-width: 0;
}

.manual-items-grid [data-field="mc_qty"],
.manual-items-grid [data-field="mc_price"],
.manual-items-grid [data-field="mc_net_amount"],
.manual-items-grid [data-field="mc_vat_type"],
.manual-items-grid [data-field="mc_disc"] {
  min-width: 0;
}

.manual-row-number {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.manual-items-toolbar .invoice-metric {
  background: #ffffff;
}

.login-background {
  background-color: #f2f9fc;
  background-image: url("../images/background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.vigencia-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.42rem 0.65rem;
  line-height: 1;
}

.crud-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.crud-responsive-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.35rem;
  min-width: 0;
}

.crud-responsive-label {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.crud-responsive-value {
  color: #212529;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.text-footer{
  color: var(--primary-color);
}

.icono_sm{
  margin-left: -10px;
}
