/*
 * Base administrativa: Tabler + Bootstrap 5 + Alpine.js.
 * Este archivo reemplaza la capa Tailwind/TailSuite y mantiene compatibilidad
 * con las clases historicas apex-* usadas por las vistas CodeIgniter.
 */
:root {
  --fp-sidebar-width: 256px;
  --fp-sidebar-collapsed-width: 74px;
  --fp-topbar-height: 58px;
  --fp-shell-bg: #edf6f4;
  --fp-panel-bg: rgba(255, 255, 255, .94);
  --fp-panel-solid: #ffffff;
  --fp-border: #dbe7f1;
  --fp-border-strong: #c8d8e7;
  --fp-ink: #142034;
  --fp-muted: #75859a;
  --fp-primary: #1f6feb;
  --fp-primary-soft: #eaf2ff;
  --fp-success: #29b978;
  --fp-success-dark: #0f7e68;
  --fp-soft: #f6fafc;
  --fp-warning: #f59f00;
  --fp-danger: #d63939;
  --fp-shadow: 0 14px 36px rgba(20, 36, 64, .08);
  --fp-shadow-soft: 0 8px 22px rgba(20, 36, 64, .06);
}

html,
body {
  min-height: 100%;
}

body.tabler-admin-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--fp-shell-bg);
  color: var(--fp-ink);
  --fp-page-shell-content-top: calc(var(--fp-topbar-height) + 18px);
  --fp-page-shell-content-inline: 18px;
  --fp-page-shell-content-bottom: 20px;
}

body.tabler-admin-shell .fp-page-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fp-shell-bg);
}

body.tabler-admin-shell .fp-page-shell__content {
  align-self: stretch;
  min-height: 0;
  padding: var(--fp-page-shell-content-top)
    var(--fp-page-shell-content-inline)
    var(--fp-page-shell-content-bottom) !important;
}

body.tabler-admin-shell .fp-page-shell__footer {
  align-self: end;
  min-height: 0;
  padding: 10px var(--fp-page-shell-content-inline);
}

body.tabler-admin-shell.pos-menu-hidden .fp-page-shell__content {
  min-height: 100dvh;
  padding: .75rem !important;
}

body.tabler-admin-shell .apex-topbar .navbar-nav {
  align-items: center;
}

body.tabler-admin-shell .apex-topbar .nav-link,
body.tabler-admin-shell .apex-topbar .btn,
body.tabler-admin-shell .apex-topbar .dropdown-toggle {
  color: var(--fp-ink) !important;
}

body.tabler-admin-shell .fp-menu-toggle,
body.tabler-admin-shell .fp-topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0 !important;
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--fp-primary) !important;
  text-decoration: none;
}

body.tabler-admin-shell .fp-topbar-actions {
  gap: .45rem;
  flex-wrap: nowrap;
}

body.tabler-admin-shell .fp-topbar-actions .nav-item {
  position: relative;
}

body.tabler-admin-shell .apex-topbar-badge {
  position: absolute;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 .32rem;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .68rem;
  line-height: 15px;
}

body.tabler-admin-shell .fp-user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 42px;
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  font-weight: 700;
}

body.tabler-admin-shell .fp-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .dropdown-menu {
  border-color: var(--fp-border);
  border-radius: 12px;
  box-shadow: var(--fp-shadow);
}

body.tabler-admin-shell .dropdown-item {
  border-radius: 8px;
  color: var(--fp-ink);
  font-weight: 600;
}

body.tabler-admin-shell .dropdown-item i {
  width: 1.2rem;
  color: var(--fp-primary);
}

body.tabler-admin-shell .apex-sidebar {
  position: fixed;
  z-index: 1035;
  overflow: hidden;
}

body.tabler-admin-shell .apex-sidebar-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: .9rem;
}

body.tabler-admin-shell .apex-company-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .45rem .35rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  text-align: center;
}

body.tabler-admin-shell .apex-company-logo {
  width: min(150px, 78%);
  max-height: 72px;
  object-fit: contain;
}

body.tabler-admin-shell .apex-company-mark strong {
  display: block;
  max-width: 100%;
  color: var(--fp-ink);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.tabler-admin-shell .apex-menu-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .9rem 0 .65rem;
  padding: .62rem .72rem;
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--fp-muted);
}

body.tabler-admin-shell .apex-menu-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fp-ink);
  font-size: .88rem;
  font-weight: 600;
}

body.tabler-admin-shell .apex-sidebar-nav {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: .15rem;
}

body.tabler-admin-shell .apex-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

body.tabler-admin-shell .apex-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

body.tabler-admin-shell .apex-nav {
  gap: .15rem;
}

body.tabler-admin-shell .apex-nav,
body.tabler-admin-shell .apex-nav-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tabler-admin-shell .apex-nav .nav-item {
  width: 100%;
}

body.tabler-admin-shell .apex-nav .nav-link {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  gap: .68rem;
  padding: .55rem .68rem;
  border-radius: 10px;
  color: #35445a;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
}

body.tabler-admin-shell .apex-nav .nav-link p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .apex-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  color: #61718a;
  font-size: 1.05rem;
  text-align: center;
}

body.tabler-admin-shell .apex-tree-caret {
  margin-left: auto;
  color: #8a9ab0;
  font-size: .75rem;
}

body.tabler-admin-shell .apex-nav .nav-link.active,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link {
  background: var(--fp-primary-soft);
  color: #0f4f9d !important;
}

body.tabler-admin-shell .apex-nav .nav-link.active .apex-nav-icon,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link .apex-nav-icon {
  color: var(--fp-primary);
}

body.tabler-admin-shell .apex-nav-tree {
  display: none;
  margin: .15rem 0 .35rem 2.15rem;
  padding-left: .45rem;
  border-left: 1px solid var(--fp-border);
}

body.tabler-admin-shell .apex-menu-open > .apex-nav-tree {
  display: block;
}

body.tabler-admin-shell .apex-nav-tree .nav-link {
  min-height: 36px;
  padding: .42rem .58rem;
  border-radius: 0;
  color: #4d5d74;
  font-size: .83rem;
  font-weight: 650;
}

body.tabler-admin-shell .apex-nav-tree .nav-link.active {
  background: transparent;
  color: var(--fp-primary) !important;
}

body.tabler-admin-shell .apex-menu-filter-hidden {
  display: none !important;
}

body.tabler-admin-shell .apex-footer {
  border-top: 1px solid var(--fp-border);
  background: transparent;
  color: var(--fp-muted);
  font-size: .78rem;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-mark strong,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search input,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search i,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link p,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-tree-caret {
  display: none;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-logo {
  width: 46px;
  max-height: 46px;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-body {
  padding: .75rem .55rem;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search {
  justify-content: center;
  padding: .55rem;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link {
  justify-content: center;
  padding: .62rem .35rem;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav-tree {
  display: none !important;
}

body.tabler-admin-shell.apex-layout-topnav .apex-topbar {
  left: 16px;
}

body.tabler-admin-shell.apex-layout-topnav .apex-content,
body.tabler-admin-shell.apex-layout-topnav .apex-footer,
body.tabler-admin-shell.apex-login-page .apex-content,
body.tabler-admin-shell.apex-login-page .apex-footer {
  margin-left: 0;
}

body.tabler-admin-shell.apex-login-page {
  display: flex;
  min-height: 100vh;
}

body.tabler-admin-shell.apex-login-page .apex-preloader {
  position: fixed;
}

body.tabler-admin-shell .card,
body.tabler-admin-shell .box,
body.tabler-admin-shell .modal-content,
body.tabler-admin-shell .dataTables_wrapper {
  border-color: var(--fp-border) !important;
  box-shadow: var(--fp-shadow-soft);
}

body.tabler-admin-shell .table thead th {
  background: #17243a;
  color: #fff;
  border-color: #17243a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  vertical-align: middle;
}

body.tabler-admin-shell .table td,
body.tabler-admin-shell .table th {
  vertical-align: middle;
}

body.tabler-admin-shell .dataTables_wrapper .row {
  align-items: center;
}

body.tabler-admin-shell .dataTables_filter input,
body.tabler-admin-shell .dataTables_length select,
body.tabler-admin-shell .form-control,
body.tabler-admin-shell .form-select,
body.tabler-admin-shell .select2-container .select2-selection--single,
body.tabler-admin-shell .select2-container .select2-selection--multiple {
  border-color: var(--fp-border);
  border-radius: 10px;
}

body.tabler-admin-shell .choices {
  margin-bottom: 0;
}

body.tabler-admin-shell .choices__inner {
  min-height: 38px;
  border: 1px solid var(--fp-border);
  border-radius: 10px;
  background: #fff;
  color: var(--fp-ink);
  font-size: .9rem;
  box-shadow: none;
}

body.tabler-admin-shell .is-focused .choices__inner,
body.tabler-admin-shell .is-open .choices__inner {
  border-color: rgba(13, 148, 136, .45);
  box-shadow: 0 0 0 .18rem rgba(13, 148, 136, .13);
}

body.tabler-admin-shell .choices__list--dropdown,
body.tabler-admin-shell .choices__list[aria-expanded] {
  z-index: 2060;
  border-color: var(--fp-border);
  border-radius: 14px;
  box-shadow: var(--fp-shadow-soft);
}

body.tabler-admin-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
body.tabler-admin-shell .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: rgba(13, 148, 136, .1);
  color: var(--fp-ink);
}

body.tabler-admin-shell .btn {
  border-radius: 10px;
  font-weight: 750;
}

body.tabler-admin-shell .btn-primary,
body.tabler-admin-shell .btn-success,
body.tabler-admin-shell .btn-info {
  box-shadow: 0 8px 18px rgba(32, 107, 196, .12);
}

body.tabler-admin-shell .modal-dialog {
  margin: 1.5rem auto;
}

body.tabler-admin-shell .modal-content {
  overflow: hidden;
  border-radius: 16px;
}

body.tabler-admin-shell .modal-header {
  min-height: auto;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  background: #fff;
}

body.tabler-admin-shell .modal-title {
  color: var(--fp-ink);
  font-size: 1rem;
  font-weight: 800;
}

body.tabler-admin-shell .modal-body {
  color: var(--fp-ink);
}

body.tabler-admin-shell .btn-close,
body.tabler-admin-shell .close {
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1032;
  display: none;
  background: rgba(15, 23, 42, .36);
}

body.tabler-admin-shell.apex-sidebar-open .apex-sidebar-backdrop {
  display: block;
}

body.tabler-admin-shell .apex-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  background: rgba(244, 247, 251, .9);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.tabler-admin-shell.apex-loading .apex-preloader,
body.tabler-admin-shell .apex-preloader.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.tabler-admin-shell.modal-open .apex-preloader {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.tabler-admin-shell .ios-preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  color: var(--fp-muted);
  font-weight: 800;
}

body.tabler-admin-shell .ios-transfer-loader {
  position: relative;
  width: 82px;
  height: 82px;
}

body.tabler-admin-shell .ios-dot-ring span {
  position: absolute;
  top: 38px;
  left: 38px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dot-color, var(--fp-primary));
  transform: rotate(var(--angle)) translate(34px);
  opacity: .72;
  animation: fp-loader-pulse 1.4s linear infinite;
  animation-delay: var(--dot-delay);
}

body.tabler-admin-shell .ios-loader-center,
body.tabler-admin-shell .ios-cloud-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

body.tabler-admin-shell .ios-loader-center {
  inset: 22px;
  background: #fff;
  color: var(--fp-primary);
  box-shadow: var(--fp-shadow-soft);
}

body.tabler-admin-shell .ios-cloud-badge {
  right: 3px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  background: var(--fp-primary);
  color: #fff;
  font-size: .72rem;
}

@keyframes fp-loader-pulse {
  0%, 100% { opacity: .25; }
  45% { opacity: 1; }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar {
    left: 12px;
    right: 12px;
    top: 8px;
    min-height: 58px;
    border-radius: 14px;
  }

  body.tabler-admin-shell .apex-sidebar {
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: min(86vw, 306px);
    transform: translateX(calc(-100% - 16px));
  }

  body.tabler-admin-shell.apex-sidebar-open .apex-sidebar {
    transform: translateX(0);
  }

  body.tabler-admin-shell .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content {
    margin-left: 0;
  }

  body.tabler-admin-shell {
    --fp-page-shell-content-top: calc(var(--fp-topbar-height) + 14px);
    --fp-page-shell-content-inline: 10px;
    --fp-page-shell-content-bottom: 16px;
  }

  body.tabler-admin-shell .apex-footer,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: 0;
  }

  body.tabler-admin-shell .fp-topbar-actions {
    gap: .28rem;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.tabler-admin-shell .fp-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.tabler-admin-shell .fp-topbar-action,
  body.tabler-admin-shell .fp-menu-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
  }

  body.tabler-admin-shell .fp-user-name {
    max-width: 92px;
  }
}

/*
 * Topbar profesional: lectura clara, acciones agrupadas y responsive estable.
 */
body.tabler-admin-shell .apex-topbar-start,
body.tabler-admin-shell .fp-topbar-actions {
  min-width: 0;
}

body.tabler-admin-shell .apex-topbar-start {
  flex: 0 1 auto;
}

body.tabler-admin-shell .fp-topbar-dashboard .apex-topbar-start {
  flex: 0 1 430px;
}

body.tabler-admin-shell .fp-topbar-standard .apex-topbar-start {
  flex: 1 1 auto;
}

body.tabler-admin-shell .fp-menu-toggle {
  border-color: rgba(37, 99, 235, .18) !important;
  background: linear-gradient(135deg, #eef6ff, #f8fbff) !important;
  color: #1d4ed8 !important;
}

body.tabler-admin-shell .fp-menu-toggle i {
  font-size: .95rem;
}

body.tabler-admin-shell .fp-top-context {
  align-items: center;
  gap: .68rem;
  min-width: 0;
  padding-left: .12rem;
}

body.tabler-admin-shell .fp-top-context-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 13px;
  background: rgba(15, 118, 110, .08);
  color: #0f766e;
}

body.tabler-admin-shell .fp-top-context > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.08;
}

body.tabler-admin-shell .fp-top-context-title {
  max-width: 320px;
  overflow: hidden;
  color: #111827;
  font-size: .92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .fp-top-context-branch {
  max-width: 320px;
  overflow: hidden;
  color: #74839a;
  font-size: .72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .fp-dashboard-top-title {
  position: relative;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

body.tabler-admin-shell .fp-dashboard-top-title::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(20, 184, 166, .1));
  color: #1d4ed8;
  content: "\f201";
  font-family: "Font Awesome 5 Free";
  font-size: .9rem;
  font-weight: 900;
}

body.tabler-admin-shell .fp-dashboard-top-title strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .fp-dashboard-top-title small {
  max-width: 100%;
  color: #6f7f96;
  font-size: .71rem;
}

body.tabler-admin-shell .fp-dashboard-top-search {
  flex: 1 1 360px;
  max-width: 520px;
}

body.tabler-admin-shell .fp-dashboard-top-search input {
  height: 42px;
  border-color: rgba(203, 213, 225, .88);
  background:
    linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

body.tabler-admin-shell .fp-dashboard-top-search input::placeholder {
  color: #9aa8ba;
  font-weight: 700;
}

body.tabler-admin-shell .fp-dashboard-top-pills {
  gap: .45rem;
}

body.tabler-admin-shell .fp-dashboard-top-pills span {
  min-height: 40px;
  padding: 0 .78rem;
  border-radius: 13px;
  font-size: .74rem;
}

body.tabler-admin-shell .fp-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: .38rem;
  padding-left: .45rem;
  border-left: 1px solid rgba(203, 213, 225, .62);
}

body.tabler-admin-shell .fp-topbar-action {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 13px;
  border-color: rgba(203, 213, 225, .82) !important;
  background: #fff !important;
  color: #31506f !important;
}

body.tabler-admin-shell .fp-topbar-action i {
  font-size: .88rem;
}

body.tabler-admin-shell .fp-action-plm,
body.tabler-admin-shell .fp-action-cobros {
  color: #0f766e !important;
  background: rgba(15, 118, 110, .08) !important;
  border-color: rgba(15, 118, 110, .18) !important;
}

body.tabler-admin-shell .fp-action-vigilancia,
body.tabler-admin-shell .fp-action-reposicion,
body.tabler-admin-shell .fp-action-stock {
  color: #2563eb !important;
  background: rgba(37, 99, 235, .08) !important;
  border-color: rgba(37, 99, 235, .18) !important;
}

body.tabler-admin-shell .fp-action-digemid,
body.tabler-admin-shell .fp-action-vencer {
  color: #b45309 !important;
  background: rgba(245, 158, 11, .1) !important;
  border-color: rgba(245, 158, 11, .24) !important;
}

body.tabler-admin-shell .fp-action-envio,
body.tabler-admin-shell .fp-action-rectifica,
body.tabler-admin-shell .fp-action-anula,
body.tabler-admin-shell .fp-action-resumen,
body.tabler-admin-shell .fp-action-consulta {
  color: #be123c !important;
  background: rgba(244, 63, 94, .08) !important;
  border-color: rgba(244, 63, 94, .18) !important;
}

body.tabler-admin-shell .apex-topbar-badge {
  top: -6px !important;
  right: -6px;
  height: 18px;
  min-width: 18px;
  border-width: 2px;
  font-size: .62rem;
  font-weight: 900;
  line-height: 14px;
}

body.tabler-admin-shell .fp-user-menu-button {
  min-height: 40px;
  gap: .55rem;
  padding: .26rem .68rem .26rem .35rem !important;
  border-color: rgba(203, 213, 225, .82) !important;
  border-radius: 999px;
  background: #fff !important;
  color: #27364a !important;
  font-size: .78rem;
  font-weight: 850;
}

body.tabler-admin-shell .fp-user-menu-button .fa-user-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin-right: 0 !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #16b981, #0ea5e9);
  color: #fff !important;
  font-size: .8rem;
}

body.tabler-admin-shell .fp-user-name {
  max-width: 132px;
  font-weight: 850;
}

body.tabler-admin-shell .fp-user-dropdown-menu {
  min-width: 190px;
  margin-top: .55rem !important;
  padding: .45rem;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

@media (max-width: 1499.98px) {
  body.tabler-admin-shell .fp-dashboard-top-search {
    max-width: 360px;
  }

  body.tabler-admin-shell .fp-dashboard-top-title {
    max-width: 350px;
  }
}

@media (max-width: 1299.98px) {
  body.tabler-admin-shell .fp-topbar-dashboard .fp-dashboard-top-pills {
    display: none !important;
  }

  body.tabler-admin-shell .fp-dashboard-top-search {
    max-width: none;
  }
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .fp-topbar-dashboard .apex-topbar-start {
    flex: 0 0 auto;
  }

  body.tabler-admin-shell .fp-topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar {
    gap: .48rem;
    overflow: visible;
  }

  body.tabler-admin-shell .fp-topbar-actions {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    padding-left: .25rem;
    border-left: 0;
    scrollbar-width: none;
  }

  body.tabler-admin-shell .fp-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.tabler-admin-shell .fp-user-menu-button {
    padding-right: .48rem !important;
  }

  body.tabler-admin-shell .fp-user-name {
    max-width: 96px;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar {
    min-height: 54px;
    padding: .42rem;
  }

  body.tabler-admin-shell .fp-menu-toggle,
  body.tabler-admin-shell .fp-topbar-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
  }

  body.tabler-admin-shell .fp-user-menu-button {
    width: 38px;
    min-width: 38px;
    padding: .2rem !important;
  }

  body.tabler-admin-shell .fp-user-menu-button .fa-user-shield {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  body.tabler-admin-shell .fp-user-name,
  body.tabler-admin-shell .fp-user-menu-button::after {
    display: none !important;
  }
}

/*
 * Dashboard operativo TOMASALUD: sidebar oscuro, topbar operativo y tarjetas
 * compactas inspiradas en la propuesta visual entregada por el usuario.
 */
body.tabler-admin-shell {
  --fp-shell-bg: #edf4fb;
  --fp-panel-bg: rgba(255, 255, 255, .96);
  --fp-border: #dce7f3;
  --fp-ink: #111827;
  --fp-muted: #66758e;
  --fp-primary: #2474e8;
  --fp-primary-2: #16a3e6;
  --fp-success: #16b981;
  --fp-danger: #ef4444;
  --fp-warning: #f59e0b;
  --fp-sidebar-bg: #0d1524;
  --fp-sidebar-bg-2: #08251f;
  --fp-sidebar-line: rgba(148, 163, 184, .18);
  --fp-card-radius: 20px;
  --fp-soft-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, .16), transparent 28%),
    linear-gradient(135deg, #eef5fc 0%, #f7fbff 48%, #edf7f2 100%) !important;
}

body.tabler-admin-shell .apex-sidebar-body {
  padding: 1rem 1rem 1.1rem;
}

body.tabler-admin-shell .apex-company-mark {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  padding: .9rem .6rem 1.15rem;
  border-bottom: 1px solid var(--fp-sidebar-line);
  text-align: left;
}

body.tabler-admin-shell .apex-company-logo {
  width: 46px;
  height: 46px;
  max-height: 46px;
  padding: .35rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #27d3a2, #246be8);
  object-fit: contain;
  box-shadow: 0 14px 28px rgba(36, 107, 232, .28);
}

body.tabler-admin-shell .apex-company-mark strong {
  color: #f8fafc;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.12;
  white-space: normal;
}

body.tabler-admin-shell .apex-menu-search {
  display: none !important;
}

body.tabler-admin-shell .apex-sidebar-nav {
  margin-top: 1rem;
  padding-right: .2rem;
}

body.tabler-admin-shell .apex-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .34);
}

body.tabler-admin-shell .apex-nav {
  gap: .24rem;
}

body.tabler-admin-shell .apex-nav .nav-link {
  min-height: 46px;
  padding: .68rem .72rem;
  border-radius: 14px;
  color: #c7d2e2 !important;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.15;
}

body.tabler-admin-shell .apex-nav .nav-link p {
  color: inherit;
}

body.tabler-admin-shell .apex-nav-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #b9c6d8 !important;
  font-size: .88rem;
}

body.tabler-admin-shell .apex-tree-caret {
  color: rgba(203, 213, 225, .68);
  font-size: .66rem;
}

body.tabler-admin-shell .apex-nav .nav-link.active,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
}

body.tabler-admin-shell .apex-nav .nav-link.active .apex-nav-icon,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link .apex-nav-icon {
  background: rgba(255, 255, 255, .14);
  color: #fff !important;
}

body.tabler-admin-shell .apex-nav-tree {
  margin: .25rem 0 .55rem 2.18rem;
  padding-left: .7rem;
  border-left: 1px solid rgba(148, 163, 184, .22);
}

body.tabler-admin-shell .apex-nav-tree .nav-link {
  min-height: 34px;
  padding: .42rem .56rem;
  border-radius: 10px;
  background: transparent !important;
  color: #95a4b8 !important;
  font-size: .76rem;
  font-weight: 750;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link.active {
  color: #6ee7b7 !important;
}

body.tabler-admin-shell .apex-nav-tree .apex-nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: transparent;
  color: currentColor !important;
  font-size: .72rem;
}

body.tabler-admin-shell .apex-topbar-start {
  gap: .7rem;
  min-width: 0;
}

body.tabler-admin-shell .fp-menu-toggle,
body.tabler-admin-shell .fp-topbar-action {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid #dce7f3;
  border-radius: 14px;
  background: #f8fbff !important;
  color: #2474e8 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .fp-dashboard-top-title {
  align-items: center;
  min-width: 280px;
  max-width: 520px;
}

body.tabler-admin-shell .fp-dashboard-top-title span {
  display: grid;
  min-width: 0;
}

body.tabler-admin-shell .fp-dashboard-top-title strong {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.08;
}

body.tabler-admin-shell .fp-dashboard-top-title small {
  color: #73839a;
  font-size: .74rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .fp-dashboard-top-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 470px;
  min-width: 240px;
  align-items: center;
}

body.tabler-admin-shell .fp-dashboard-top-search i {
  position: absolute;
  left: .95rem;
  color: #9aa8bb;
  font-size: .78rem;
}

body.tabler-admin-shell .fp-dashboard-top-search input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.25rem;
  border: 1px solid #dce7f3;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: #111827;
  font-size: .82rem;
  font-weight: 650;
}

body.tabler-admin-shell .fp-dashboard-top-pills {
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
}

body.tabler-admin-shell .fp-dashboard-top-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .9rem;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

body.tabler-admin-shell .fp-dashboard-branch-pill {
  border: 1px solid rgba(22, 185, 129, .24);
  background: rgba(22, 185, 129, .08);
  color: #08745d;
}

body.tabler-admin-shell .fp-dashboard-date-pill {
  border: 1px solid rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
}

body.tabler-admin-shell .fp-user-menu-button {
  min-height: 42px;
  border-radius: 14px;
  background: #fff !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-mark {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-logo {
  width: 44px;
  height: 44px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  --dash-ink: #111827;
  --dash-muted: #718198;
  --dash-border: #dce7f3;
  --dash-soft: #f8fbff;
  --dash-teal: #108376;
  padding: 0;
  color: var(--dash-ink);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .container-fluid {
  display: grid;
  gap: 1.05rem;
  max-width: 100%;
  padding: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(340px, .95fr);
  grid-template-areas:
    "title meta"
    "summary summary";
  gap: 1rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-pill-top {
  display: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
  grid-area: title;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 238px;
  padding: 1.45rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 24%, rgba(45, 212, 191, .16), transparent 28%),
    linear-gradient(135deg, #111827 0%, #0e2d34 52%, #0e5b4a 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon {
  display: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
  max-width: 760px;
  color: #fff !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  font-weight: 900;
  line-height: 1.08;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title p {
  max-width: 780px;
  color: rgba(226, 232, 240, .82) !important;
  font-size: .86rem !important;
  line-height: 1.45;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading {
  margin-top: 1.25rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading span {
  color: #8cf4ce !important;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .02em;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .72rem;
  margin-top: .72rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
  min-height: 76px;
  padding: .72rem;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action span span {
  color: rgba(226, 232, 240, .68) !important;
  font-size: .66rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action strong {
  color: #fff !important;
  font-size: .86rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-action-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
  grid-area: meta;
  display: grid;
  align-content: stretch;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #dce7f3;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-period {
  border-radius: 16px;
  background: #f8fbff !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .75fr) minmax(0, .75fr) auto;
  padding: .65rem;
  border-radius: 18px;
  background: #f8fbff;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-select,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-date-input {
  height: 38px !important;
  border-radius: 13px !important;
  font-size: .76rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
  height: 38px;
  min-width: 96px;
  border-radius: 14px;
  background: #108376 !important;
  font-size: .78rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
  grid-area: summary;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat {
  min-height: 96px;
  padding: .9rem 1rem;
  border: 1px solid #dce7f3 !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 15px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat strong {
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.inicio-pulse-card, .inicio-panel, .inicio-goals-panel, .inicio-analytics-panel, .inicio-period-ratio, .inicio-profit-card) {
  border: 1px solid #dce7f3 !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
  display: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid.inicio-operational-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr);
  gap: 1rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, .8fr);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-panel-header,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-card-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-card-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-header,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-performance-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-head {
  padding-bottom: .55rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-title h5, .inicio-finance-header h5, .inicio-panel-title h5, .inicio-branch-performance-head h5, .inicio-sellers-performance-head h5, .inicio-goals-activity-head h5) {
  font-size: .98rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-donut, .inicio-finance-ring, .inicio-cash-chart, .inicio-goals-ring-wrap, .pulse-profit-gauge, .inicio-period-ratio-chart, .inicio-profit-gauge) {
  width: min(100%, 205px);
  max-width: 205px;
  min-height: 180px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-chart {
  min-height: 285px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div {
  border-radius: 16px !important;
}

@media (max-width: 1399.98px) {
  body.tabler-admin-shell .fp-dashboard-top-title {
    max-width: 360px;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid.inicio-operational-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .apex-sidebar {
    left: 14px;
    top: 14px;
    bottom: 14px;
  }

  body.tabler-admin-shell .apex-topbar {
    top: 14px;
    right: 14px;
    left: calc(var(--fp-sidebar-width) + 28px);
  }

  body.tabler-admin-shell .apex-content {
    margin-left: calc(var(--fp-sidebar-width) + 20px);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid.inicio-operational-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    grid-template-areas:
      "title"
      "meta"
      "summary";
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar {
    left: 14px !important;
  }

  body.tabler-admin-shell .apex-content,
  body.tabler-admin-shell .apex-footer,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: 0 !important;
  }

  body.tabler-admin-shell .apex-sidebar {
    border-radius: 24px;
  }

  body.tabler-admin-shell .fp-dashboard-top-search {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body.tabler-admin-shell .apex-topbar {
    right: 10px;
    left: 10px !important;
    min-height: 58px;
    padding: .46rem .5rem;
    border-radius: 18px;
  }

  body.tabler-admin-shell .fp-menu-toggle,
  body.tabler-admin-shell .fp-topbar-action {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  body.tabler-admin-shell .fp-topbar-actions {
    gap: .32rem;
    overflow-x: auto;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
    border-radius: 20px;
    padding: 1rem;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
    min-height: auto;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
    font-size: clamp(1.25rem, 7vw, 1.75rem) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
    min-height: 64px !important;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar {
    padding: .45rem;
  }

  body.tabler-admin-shell .navbar-resource-item {
    display: none;
  }

  body.tabler-admin-shell .fp-user-menu-button {
    min-width: 42px;
    padding-right: .55rem;
    padding-left: .55rem;
  }

  body.tabler-admin-shell .fp-user-name {
    display: none;
  }

}

/*
 * Capa de estabilizacion visual post-migracion.
 * Mantiene Bootstrap 5 + Tabler como base y absorbe restos visuales de
 * vistas antiguas que todavia usan clases historicas del sistema.
 */
body.tabler-admin-shell,
body.tabler-admin-shell * {
  box-sizing: border-box;
}

body.tabler-admin-shell a {
  text-decoration: none;
}

body.tabler-admin-shell img,
body.tabler-admin-shell svg,
body.tabler-admin-shell canvas {
  max-width: 100%;
}

body.tabler-admin-shell .content,
body.tabler-admin-shell .content-wrapper,
body.tabler-admin-shell .main-panel,
body.tabler-admin-shell .page-wrapper {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.tabler-admin-shell .container,
body.tabler-admin-shell .container-fluid {
  max-width: 100%;
}

body.tabler-admin-shell .apex-topbar-actions {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

body.tabler-admin-shell .apex-topbar .nav-item,
body.tabler-admin-shell .apex-topbar .btn-group {
  flex: 0 0 auto;
}

body.tabler-admin-shell .apex-topbar .dropdown-menu {
  z-index: 2070;
}

body.tabler-admin-shell .apex-content {
  width: auto;
  min-width: 0;
  overflow-x: clip;
}

body.tabler-admin-shell .card,
body.tabler-admin-shell .box,
body.tabler-admin-shell .small-box,
body.tabler-admin-shell .info-box,
body.tabler-admin-shell .inicio-panel,
body.tabler-admin-shell .inicio-pulse-card,
body.tabler-admin-shell .inicio-analytics-panel {
  border: 1px solid var(--fp-border);
  border-radius: 16px;
  background: #fff;
  color: var(--fp-ink);
}

body.tabler-admin-shell .card-header,
body.tabler-admin-shell .box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  background: #fff;
  color: var(--fp-ink);
}

body.tabler-admin-shell .card-body,
body.tabler-admin-shell .box-body {
  min-width: 0;
}

body.tabler-admin-shell :where(h1, h2, h3, h4, h5, h6, p, span, strong, small, label, a, button, th, td) {
  min-width: 0;
}

body.tabler-admin-shell .btn,
body.tabler-admin-shell button,
body.tabler-admin-shell .dropdown-item {
  white-space: normal;
}

body.tabler-admin-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 36px;
  line-height: 1.15;
}

body.tabler-admin-shell .btn-sm {
  min-height: 31px;
  padding: .36rem .62rem;
  font-size: .82rem;
}

body.tabler-admin-shell .btn i,
body.tabler-admin-shell .dropdown-item i {
  flex: 0 0 auto;
}

body.tabler-admin-shell .form-group,
body.tabler-admin-shell .mb-3 {
  min-width: 0;
}

body.tabler-admin-shell label,
body.tabler-admin-shell .control-label {
  color: #51617a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
}

body.tabler-admin-shell .form-control,
body.tabler-admin-shell .form-select,
body.tabler-admin-shell .custom-select,
body.tabler-admin-shell select.form-control,
body.tabler-admin-shell textarea.form-control,
body.tabler-admin-shell .input-group-text {
  min-height: 38px;
  border-color: var(--fp-border);
  background-color: #fff;
  color: var(--fp-ink);
  font-weight: 650;
  box-shadow: none;
}

body.tabler-admin-shell .form-control:focus,
body.tabler-admin-shell .form-select:focus,
body.tabler-admin-shell .custom-select:focus {
  border-color: rgba(32, 107, 196, .45);
  box-shadow: 0 0 0 .18rem rgba(32, 107, 196, .14);
}

body.tabler-admin-shell .input-group {
  min-width: 0;
  flex-wrap: nowrap;
}

body.tabler-admin-shell .input-group > .form-control,
body.tabler-admin-shell .input-group > .form-select,
body.tabler-admin-shell .input-group > .custom-select {
  min-width: 0;
}

body.tabler-admin-shell .table-responsive {
  width: 100%;
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  background: #fff;
}

body.tabler-admin-shell .table {
  width: 100% !important;
  margin-bottom: 0;
  color: var(--fp-ink);
}

body.tabler-admin-shell .table thead th {
  padding: .68rem .72rem;
  border-bottom: 0;
  white-space: nowrap;
}

body.tabler-admin-shell .table tbody td,
body.tabler-admin-shell .table tbody th {
  padding: .62rem .72rem;
  border-color: #e7edf5;
  color: #1b283b;
}

body.tabler-admin-shell .table tbody tr:hover {
  background: #f8fbff;
}

body.tabler-admin-shell table.dataTable {
  border-collapse: collapse !important;
}

body.tabler-admin-shell table.dataTable.nowrap td,
body.tabler-admin-shell table.dataTable.nowrap th {
  white-space: nowrap;
}

body.tabler-admin-shell table.dataTable td,
body.tabler-admin-shell table.dataTable th {
  box-sizing: border-box;
}

body.tabler-admin-shell div.dataTables_wrapper {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--fp-border) !important;
  border-radius: 16px;
  background: #fff;
}

body.tabler-admin-shell div.dataTables_wrapper > .row {
  row-gap: .65rem;
}

body.tabler-admin-shell div.dataTables_wrapper div.dataTables_length,
body.tabler-admin-shell div.dataTables_wrapper div.dataTables_filter,
body.tabler-admin-shell div.dataTables_wrapper div.dataTables_info,
body.tabler-admin-shell div.dataTables_wrapper div.dataTables_paginate {
  color: var(--fp-muted);
  font-size: .82rem;
  font-weight: 700;
}

body.tabler-admin-shell div.dataTables_wrapper div.dataTables_filter input,
body.tabler-admin-shell div.dataTables_wrapper div.dataTables_length select {
  min-height: 34px;
  border-radius: 10px;
}

body.tabler-admin-shell .page-link {
  border-color: var(--fp-border);
  color: var(--fp-primary);
  font-weight: 750;
}

body.tabler-admin-shell .page-item.active .page-link {
  border-color: var(--fp-primary);
  background: var(--fp-primary);
  color: #fff;
}

body.tabler-admin-shell .modal {
  --bs-modal-padding: 1rem;
}

body.tabler-admin-shell .modal-dialog {
  width: min(96vw, var(--bs-modal-width, 500px));
  max-width: calc(100vw - 24px);
}

body.tabler-admin-shell .modal-dialog.modal-lg {
  --bs-modal-width: 920px;
}

body.tabler-admin-shell .modal-dialog.modal-xl {
  --bs-modal-width: 1140px;
}

body.tabler-admin-shell .modal-content {
  max-height: calc(100vh - 32px);
  border: 1px solid var(--fp-border);
  background: #fff;
}

body.tabler-admin-shell .modal-header {
  flex-wrap: nowrap;
  gap: .75rem;
}

body.tabler-admin-shell .modal-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .modal-body {
  max-height: calc(100vh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
}

body.tabler-admin-shell .modal-footer {
  gap: .5rem;
  border-top: 1px solid var(--fp-border);
}

body.tabler-admin-shell .close,
body.tabler-admin-shell .btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0;
  border: 1px solid var(--fp-border);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1rem;
  line-height: 1;
  opacity: 1;
}

body.tabler-admin-shell .close span {
  display: inline-flex;
  line-height: 1;
}

body.tabler-admin-shell .swal2-popup {
  border-radius: 16px;
  color: var(--fp-ink);
}

body.tabler-admin-shell .alert {
  border-radius: 14px;
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .apex-topbar {
    right: 12px;
    left: calc(var(--fp-sidebar-width) + 12px);
  }

  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar {
    left: calc(var(--fp-sidebar-collapsed-width) + 12px);
  }

  body.tabler-admin-shell .apex-content {
    margin-left: calc(var(--fp-sidebar-width) + 12px);
  }

  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: calc(var(--fp-sidebar-collapsed-width) + 12px);
  }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.tabler-admin-shell .apex-topbar-actions {
    justify-content: flex-end;
    max-width: 100%;
    padding-bottom: 1px;
  }

  body.tabler-admin-shell .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content,
  body.tabler-admin-shell .apex-footer,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: 0;
  }

  body.tabler-admin-shell .card-header,
  body.tabler-admin-shell .box-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.tabler-admin-shell div.dataTables_wrapper {
    padding: .55rem;
  }

  body.tabler-admin-shell div.dataTables_wrapper div.dataTables_length,
  body.tabler-admin-shell div.dataTables_wrapper div.dataTables_filter,
  body.tabler-admin-shell div.dataTables_wrapper div.dataTables_info,
  body.tabler-admin-shell div.dataTables_wrapper div.dataTables_paginate {
    text-align: left;
  }

  body.tabler-admin-shell div.dataTables_wrapper div.dataTables_filter input {
    width: min(100%, 260px);
    margin-left: 0;
    display: block;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar {
    right: 6px;
    left: 6px;
    gap: .35rem;
  }

  body.tabler-admin-shell .card,
  body.tabler-admin-shell .box,
  body.tabler-admin-shell .small-box,
  body.tabler-admin-shell .info-box {
    border-radius: 14px;
  }

  body.tabler-admin-shell .modal-dialog {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    margin: .55rem auto;
  }

  body.tabler-admin-shell .modal-content {
    max-height: calc(100vh - 18px);
    border-radius: 14px;
  }

  body.tabler-admin-shell .modal-body {
    max-height: calc(100vh - 124px);
    padding: .85rem;
  }

  body.tabler-admin-shell .table thead th,
  body.tabler-admin-shell .table tbody td,
  body.tabler-admin-shell .table tbody th {
    padding: .54rem .58rem;
    font-size: .8rem;
  }

  body.tabler-admin-shell .btn {
    min-height: 34px;
    font-size: .83rem;
  }
}

/*
 * Dashboard Tabler real.
 * Ordena el dashboard con tarjetas fluidas para escritorio, tablet y movil.
 */
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  --dash-bg: #f4f7fb;
  --dash-card: #ffffff;
  --dash-soft: #f8fbff;
  --dash-border: #d9e5f2;
  --dash-ink: #101827;
  --dash-muted: #66758c;
  --dash-primary: #206bc4;
  --dash-teal: #0f766e;
  --dash-green: #16a34a;
  --dash-amber: #f59e0b;
  --dash-rose: #e11d48;
  --dash-shadow: 0 14px 32px rgba(15, 23, 42, .055);
  width: 100%;
  min-width: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8fbff 0%, var(--dash-bg) 100%);
  color: var(--dash-ink);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard *,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard *::before,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard *::after {
  box-sizing: border-box;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .container-fluid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 1rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-hero,
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .tabler-dashboard-stat,
  .inicio-live-action,
  .inicio-payment-mini-card,
  .inicio-goal-mini,
  .inicio-list-item,
  .inicio-finance-card,
  .inicio-branch-performance-summary > div,
  .inicio-sellers-performance-summary > div,
  .pulse-document-footer > div
) {
  min-width: 0;
  border: 1px solid var(--dash-border) !important;
  background: var(--dash-card) !important;
  color: var(--dash-ink) !important;
  box-shadow: var(--dash-shadow);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card
) {
  overflow: hidden;
  border-radius: 18px !important;
  padding: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card::before,
  .inicio-pulse-card::after,
  .inicio-panel::before,
  .inicio-panel::after,
  .inicio-goals-panel::before,
  .inicio-goals-panel::after,
  .inicio-analytics-panel::before,
  .inicio-analytics-panel::after,
  .inicio-hero::before
) {
  display: none !important;
  opacity: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,label,a,button,div) {
  min-width: 0;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
  word-break: normal;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.2rem !important;
  border-radius: 22px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-pill-top {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 28px;
  padding: .28rem .68rem;
  border: 1px solid rgba(15, 118, 110, .25);
  border-radius: 999px;
  background: rgba(15, 118, 110, .08);
  color: var(--dash-teal);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-content: start;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-action-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-panel-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-head-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-title > span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-performance-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1px solid rgba(15, 118, 110, .2) !important;
  border-radius: 14px;
  background: rgba(15, 118, 110, .08) !important;
  color: var(--dash-teal) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
  margin: 0;
  color: var(--dash-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title p {
  max-width: 780px;
  margin: .5rem 0 0;
  color: #475569;
  font-size: clamp(.92rem, 1vw, 1.05rem);
  line-height: 1.45;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading {
  margin-top: 1rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading span {
  color: var(--dash-teal);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .72rem;
  align-items: center;
  min-height: 76px;
  padding: .8rem;
  border-radius: 16px !important;
  box-shadow: none;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action span span {
  display: block;
  color: var(--dash-muted) !important;
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action strong {
  display: block;
  color: var(--dash-ink) !important;
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.08;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
  display: grid;
  align-content: start;
  gap: .75rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-row {
  display: grid;
  gap: .75rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-period {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--dash-border) !important;
  border-radius: 14px;
  background: var(--dash-soft) !important;
  color: var(--dash-ink) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill {
  justify-content: space-between;
  flex-wrap: wrap;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-copy {
  display: grid;
  line-height: 1.1;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-copy small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-field label {
  color: var(--dash-muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-copy strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch {
  font-weight: 900;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill em {
  padding: .3rem .6rem;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 999px;
  background: rgba(22, 163, 74, .08);
  color: #047857;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .8fr) minmax(130px, .8fr) auto;
  gap: .55rem;
  align-items: end;
  padding: .65rem;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  background: var(--dash-soft);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-field {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-leading-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter-icon {
  position: absolute;
  z-index: 1;
  color: var(--dash-teal);
  pointer-events: none;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-leading-icon {
  left: .68rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter-icon {
  right: .68rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-select,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-date-input {
  width: 100%;
  min-width: 0;
  height: 42px !important;
  padding: .48rem 2rem .48rem 2rem;
  border: 1px solid var(--dash-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--dash-ink) !important;
  font-size: .85rem !important;
  font-weight: 850 !important;
  line-height: 1.1;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 42px;
  min-width: 106px;
  padding: 0 .9rem;
  border: 0;
  border-radius: 13px;
  background: var(--dash-teal) !important;
  color: #fff !important;
  font-weight: 900;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-clinical-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: .85rem;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background: #fff;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-height: 78px;
  padding: .78rem;
  border-radius: 15px !important;
  box-shadow: none;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-card-head small, .pulse-document-title p, .inicio-finance-header p, .inicio-panel-title small, .inicio-branch-performance-head p, .inicio-sellers-performance-head p) {
  color: var(--dash-muted) !important;
  font-size: .72rem;
  font-weight: 850;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat strong {
  display: block;
  color: var(--dash-ink) !important;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 900;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat em {
  color: var(--dash-teal) !important;
  font-size: .76rem;
  font-style: normal;
  font-weight: 850;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-utilidad,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-ticket,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-compras,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-ventas-periodo {
  grid-column: auto !important;
  width: 100%;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-card-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-card-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-header,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-panel-header,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-performance-head,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 0 .75rem !important;
  border: 0 !important;
  background: transparent !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-title h5, .inicio-finance-header h5, .inicio-panel-title h5, .inicio-branch-performance-head h5, .inicio-sellers-performance-head h5, .inicio-goals-activity-head h5) {
  margin: 0;
  color: var(--dash-ink) !important;
  font-size: clamp(.95rem, 1.1vw, 1.1rem) !important;
  font-weight: 900 !important;
  line-height: 1.15;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-main-value,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-ring-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-profit-gauge-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-chart-center strong {
  color: var(--dash-ink) !important;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-dark,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-cobros,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-flujo {
  background: #fff !important;
  color: var(--dash-ink) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-dark :where(strong, b, h5),
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-cobros :where(strong, b, h5),
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-flujo :where(strong, b, h5) {
  color: var(--dash-ink) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-dark :where(small, span, p, em),
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-cobros :where(small, span, p, em),
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-flujo :where(small, span, p, em) {
  color: var(--dash-muted) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-badge, .pulse-document-badge, .inicio-finance-paid, .inicio-cash-status, .inicio-branch-performance-badge, .inicio-sellers-performance-badge, .inicio-goals-period, .inicio-goals-action, .inicio-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  padding: .28rem .62rem;
  border: 1px solid var(--dash-border) !important;
  border-radius: 999px !important;
  background: var(--dash-soft) !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: .75rem;
  font-weight: 850;
  white-space: normal;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-paid.positive,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-status.active,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .positive {
  color: #047857 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-paid.negative,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-status.pending,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .negative {
  color: #be123c !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-body,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-composition,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-donut,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-ring,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-chart,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-ring-wrap,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-profit-gauge {
  position: relative;
  width: min(100%, 230px);
  max-width: 230px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-list,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-ranking,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-bars-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-activity-card {
  display: grid;
  gap: .65rem;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-row, .inicio-finance-legend > div, .inicio-payment-mini-card, .inicio-goal-mini, .inicio-branch-row, .inicio-seller-bar, .inicio-list-item) {
  border-radius: 14px !important;
  border: 1px solid var(--dash-border) !important;
  background: var(--dash-soft) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .7rem .78rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row > div,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item > div:first-child {
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--dash-ink) !important;
  font-weight: 900;
  white-space: normal;
  word-break: normal;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div span i,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row > span {
  width: .7rem;
  height: .7rem;
  min-width: .7rem;
  border-radius: 999px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row em,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-value {
  color: var(--dash-ink) !important;
  font-weight: 900;
  text-align: right;
  white-space: normal;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item h6,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar strong {
  color: var(--dash-ink) !important;
  font-weight: 900 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar em,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar small {
  color: var(--dash-muted) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-footer,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-cards,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-summary,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-performance-summary,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-metric-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-ring-stats,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: .75rem;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-footer > div, .inicio-finance-card, .inicio-branch-performance-summary > div, .inicio-sellers-performance-summary > div, .inicio-cash-metric-grid > div, .inicio-goals-ring-stats > div) {
  padding: .75rem;
  border-radius: 14px !important;
  background: var(--dash-soft) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-footer small, .inicio-finance-card small, .inicio-branch-performance-summary small, .inicio-sellers-performance-summary small, .inicio-cash-metric-grid span, .inicio-goals-ring-stats small) {
  color: var(--dash-muted) !important;
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-footer strong, .inicio-finance-card strong, .inicio-branch-performance-summary strong, .inicio-sellers-performance-summary strong, .inicio-cash-metric-grid strong, .inicio-goals-ring-stats strong) {
  color: var(--dash-ink) !important;
  font-size: clamp(.98rem, 1.2vw, 1.14rem);
  font-weight: 900;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard {
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-donut-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-activity-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-ring-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-chart-shell,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-ranking,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-bars-card {
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  background: #fff;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--dash-border);
  border-radius: 13px;
  background: #fff;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid.inicio-operational-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-side-stack {
  grid-template-columns: minmax(0, 1fr);
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: .8rem;
  align-items: end;
  min-height: 230px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar {
  display: grid;
  justify-items: center;
  gap: .35rem;
  min-height: 180px;
  padding: .7rem .45rem;
  text-align: center;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar-track {
  display: flex;
  align-items: end;
  width: 42px;
  height: 96px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar-track span {
  display: block;
  width: 100%;
  min-height: 6%;
  height: max(6%, var(--seller-height, 6%));
  border-radius: 999px;
  background: var(--seller-color, var(--dash-teal));
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar em,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar small {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar strong {
  -webkit-line-clamp: 2;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar em,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar small {
  -webkit-line-clamp: 1;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: .25rem 0 -.2rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading h4 {
  margin: .1rem 0 0;
  color: var(--dash-ink);
  font-size: clamp(1.04rem, 1.35vw, 1.3rem);
  font-weight: 900;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--dash-muted);
  font-size: .9rem;
  line-height: 1.35;
  text-align: right;
}

@media (min-width: 1300px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-utilidad {
    grid-column: span 1 !important;
  }
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-composition,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .container-fluid {
    gap: .8rem;
    padding: .65rem;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon {
    display: none;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    min-height: 92px;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-bars {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.inicio-pulse-card, .inicio-panel, .inicio-goals-panel, .inicio-analytics-panel, .inicio-period-ratio, .inicio-profit-card) {
    padding: .85rem !important;
    border-radius: 16px !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row em,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend strong,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-value {
    grid-column: 2;
    text-align: left;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
    display: grid;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 420px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * Capa final de saneamiento visual.
 * Mantiene Tabler/Bootstrap como base y neutraliza restos de estilos antiguos.
 */
body.tabler-admin-shell {
  --fp-final-bg: #f4f7fb;
  --fp-final-card: #ffffff;
  --fp-final-border: #dbe6f2;
  --fp-final-ink: #101827;
  --fp-final-muted: #64748b;
  --fp-final-primary: #206bc4;
  --fp-final-teal: #0f766e;
  --fp-final-shadow: 0 12px 28px rgba(15, 23, 42, .055);
  font-family: var(--fp-font-sans, "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  background: var(--fp-final-bg) !important;
  color: var(--fp-final-ink) !important;
}

body.tabler-admin-shell :where(.content-wrapper, .apex-content, .content) {
  min-width: 0;
  background: transparent !important;
}

body.tabler-admin-shell :where(.card, .box, .panel, .info-box, .small-box, .callout, .well) {
  border: 1px solid var(--fp-final-border) !important;
  border-radius: 14px !important;
  background: var(--fp-final-card) !important;
  color: var(--fp-final-ink) !important;
  box-shadow: var(--fp-final-shadow) !important;
}

body.tabler-admin-shell :where(.card-header, .box-header, .panel-heading, .modal-header) {
  border-color: var(--fp-final-border) !important;
  background: #fff !important;
  color: var(--fp-final-ink) !important;
}

body.tabler-admin-shell :where(.card-title, .box-title, .modal-title, h1, h2, h3, h4, h5, h6) {
  color: var(--fp-final-ink) !important;
  font-weight: 750;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell :where(p, small, .text-muted, .help-block, .form-text, .description, .card-subtitle) {
  color: var(--fp-final-muted) !important;
}

body.tabler-admin-shell :where(.form-control, .form-select, .custom-select, select.form-control, textarea.form-control) {
  min-height: 38px;
  border: 1px solid var(--fp-final-border) !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: var(--fp-final-ink) !important;
  font-size: .88rem !important;
  font-weight: 600;
  box-shadow: none !important;
}

body.tabler-admin-shell :where(.form-control, .form-select, .custom-select, select.form-control, textarea.form-control):focus {
  border-color: rgba(32, 107, 196, .55) !important;
  box-shadow: 0 0 0 .2rem rgba(32, 107, 196, .12) !important;
}

body.tabler-admin-shell :where(label, .control-label) {
  color: #53647d !important;
  font-size: .78rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell :where(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 36px;
  border-radius: 10px !important;
  font-size: .86rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell :where(.btn-primary, .btn-info) {
  border-color: var(--fp-final-primary) !important;
  background: var(--fp-final-primary) !important;
  color: #fff !important;
}

body.tabler-admin-shell :where(.btn-success) {
  border-color: var(--fp-final-teal) !important;
  background: var(--fp-final-teal) !important;
  color: #fff !important;
}

body.tabler-admin-shell :where(.btn-warning) {
  border-color: #f59f00 !important;
  background: #f59f00 !important;
  color: #101827 !important;
}

body.tabler-admin-shell :where(.btn-danger) {
  border-color: #d63939 !important;
  background: #d63939 !important;
  color: #fff !important;
}

body.tabler-admin-shell :where(.btn-default, .btn-light, .btn-secondary) {
  border-color: var(--fp-final-border) !important;
  background: #fff !important;
  color: var(--fp-final-ink) !important;
}

body.tabler-admin-shell :where(.table-responsive, .dataTables_wrapper) {
  width: 100%;
  min-width: 0;
}

body.tabler-admin-shell :where(table.table, table.dataTable) {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--fp-final-ink) !important;
  font-size: .84rem !important;
}

body.tabler-admin-shell :where(.table thead th, table.dataTable thead th) {
  border: 0 !important;
  border-bottom: 1px solid #c8d6e5 !important;
  background: #17447c !important;
  color: #fff !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

body.tabler-admin-shell :where(.table tbody td, table.dataTable tbody td) {
  border-top: 1px solid #edf2f7 !important;
  background: #fff !important;
  color: var(--fp-final-ink) !important;
  font-size: .84rem !important;
  vertical-align: middle !important;
}

body.tabler-admin-shell :where(.table tbody tr:nth-child(even) td, table.dataTable tbody tr:nth-child(even) td) {
  background: #f8fbff !important;
}

body.tabler-admin-shell :where(.badge, .label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  border-radius: 999px !important;
  padding: .3rem .58rem !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell :where(.modal-content) {
  overflow: hidden;
  border: 1px solid var(--fp-final-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--fp-final-ink) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18) !important;
}

body.tabler-admin-shell :where(.modal-body) {
  color: var(--fp-final-ink) !important;
}

body.tabler-admin-shell .modal-backdrop {
  background: rgba(15, 23, 42, .55) !important;
}

body.tabler-admin-shell :where(.apex-sidebar, .apex-topbar) {
  color: var(--fp-final-ink) !important;
}

body.tabler-admin-shell :where(.apex-nav-link, .apex-nav-toggle, .apex-nav-tree-link) {
  color: #24364f !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell :where(.apex-nav-link.is-active, .apex-nav-link.active, .apex-nav-tree-link.is-active, .apex-nav-tree-link.active) {
  background: #eef5ff !important;
  color: var(--fp-final-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .pulse-dark,
  .pulse-cobros,
  .pulse-flujo,
  .pulse-ticket,
  .pulse-compras,
  .pulse-ventas-periodo,
  .pulse-utilidad,
  .inicio-finance-panel-pulse
) {
  border: 1px solid var(--dash-border) !important;
  background: #fff !important;
  color: var(--dash-ink) !important;
  box-shadow: var(--dash-shadow) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-dark,
  .pulse-cobros,
  .pulse-flujo,
  .pulse-ticket,
  .pulse-compras,
  .pulse-ventas-periodo,
  .pulse-utilidad
) :where(h5, h6, p, span, small, strong, em, b) {
  color: inherit;
  text-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-main-value, .pulse-document-center strong, .inicio-finance-ring-center strong, .pulse-profit-gauge-center strong, .inicio-cash-chart-center strong) {
  color: var(--dash-ink) !important;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-card-head, .pulse-document-card-head, .inicio-finance-header, .inicio-panel-header, .inicio-branch-performance-head, .inicio-sellers-performance-head, .inicio-goals-activity-head) {
  min-width: 0;
  gap: .7rem;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-row, .inicio-finance-legend > div, .inicio-payment-mini-card, .inicio-goal-mini, .inicio-branch-row, .inicio-seller-bar, .inicio-list-item) {
  border: 1px solid #e5edf6 !important;
  background: #f8fbff !important;
  color: var(--dash-ink) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.inicio-branch-filter, .inicio-license-pill, .inicio-branch, .inicio-period) {
  background: #f8fbff !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell :where(.apex-topbar) {
    right: 8px;
    left: 8px;
    border-radius: 14px;
  }

  body.tabler-admin-shell :where(.table thead th, table.dataTable thead th, .table tbody td, table.dataTable tbody td) {
    padding: .5rem .55rem !important;
    font-size: .78rem !important;
  }
}

/*
 * Correccion profesional del dashboard.
 * Esta capa se mantiene al final para neutralizar reglas acumuladas sin tocar
 * otros modulos del sistema.
 */
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  container-type: inline-size;
  overflow-x: clip;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .container-fluid {
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-hero,
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .tabler-dashboard-summary,
  .inicio-payment-donut-card,
  .inicio-payment-activity-card,
  .inicio-goals-ring-card,
  .inicio-branch-chart-shell,
  .inicio-branch-ranking,
  .inicio-sellers-bars-card
) {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card
) {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card > *,
  .inicio-panel > *,
  .inicio-goals-panel > *,
  .inicio-analytics-panel > *,
  .inicio-period-ratio > *,
  .inicio-profit-card > *,
  .inicio-hero > *,
  .tabler-dashboard-stat > *,
  .inicio-live-action > *
) {
  max-width: 100%;
  min-width: 0;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  h1,h2,h3,h4,h5,h6,p,span,strong,small,em,label,a,button,div
) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-row,
  .inicio-finance-legend > div,
  .inicio-list-item,
  .inicio-branch-row,
  .inicio-payment-mini-head,
  .inicio-goal-mini-head
) {
  align-items: center;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-row em,
  .inicio-finance-legend strong,
  .inicio-list-value,
  .inicio-branch-row-top strong,
  .inicio-payment-mini-head em,
  .inicio-goal-mini-head em
) {
  min-width: max-content;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-donut,
  .inicio-finance-ring,
  .inicio-cash-chart,
  .inicio-goals-ring-wrap,
  .pulse-profit-gauge,
  .inicio-period-ratio-chart,
  .inicio-profit-gauge
) {
  width: min(100%, 220px);
  max-width: 220px;
  min-height: 180px;
  aspect-ratio: 1 / 1;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-donut canvas,
  .inicio-finance-ring canvas,
  .inicio-cash-chart canvas,
  .inicio-goals-ring-wrap canvas,
  .pulse-profit-gauge canvas,
  .inicio-period-ratio-chart canvas,
  .inicio-profit-gauge canvas,
  .inicio-analytics-chart canvas,
  .inicio-goal-mini-chart canvas,
  .inicio-payment-mini-chart canvas
) {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-donut canvas,
  .inicio-finance-ring canvas,
  .inicio-cash-chart canvas,
  .inicio-goals-ring-wrap canvas,
  .pulse-profit-gauge canvas,
  .inicio-period-ratio-chart canvas,
  .inicio-profit-gauge canvas
) {
  height: 100% !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-chart {
  position: relative;
  width: 100%;
  min-height: 280px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goal-mini-chart,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-chart {
  position: relative;
  width: 100%;
  min-height: 72px;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-branch-filter,
  .inicio-live-actions,
  .tabler-dashboard-summary,
  .inicio-pulse-cards,
  .inicio-dashboard-grid,
  .inicio-bottom-grid,
  .inicio-analytics-grid,
  .inicio-decision-grid,
  .inicio-payment-dashboard,
  .inicio-goals-activity-layout,
  .inicio-branch-performance-body
) {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse {
    grid-column: span 1 !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-operational-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
    grid-column: auto !important;
    width: auto !important;
    min-width: 116px;
  }
}

@media (max-width: 767.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
    overflow-x: hidden;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .container-fluid {
    padding: .55rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    padding: .9rem !important;
    border-radius: 18px !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title p {
    font-size: .86rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-sellers-bars {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
    grid-template-columns: auto minmax(0, 1fr) !important;
    min-height: 66px !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-action-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: .75rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
    width: 100% !important;
    min-height: 46px !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-composition {
    justify-items: center;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
    .pulse-document-donut,
    .inicio-finance-ring,
    .inicio-cash-chart,
    .inicio-goals-ring-wrap,
    .pulse-profit-gauge,
    .inicio-period-ratio-chart,
    .inicio-profit-gauge
  ) {
    width: min(100%, 190px);
    max-width: 190px;
    min-height: 166px;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-chart {
    min-height: 230px;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goal-mini-head {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
    .pulse-document-row em,
    .inicio-finance-legend strong,
    .inicio-list-value,
    .inicio-payment-mini-head em,
    .inicio-goal-mini-head em
  ) {
    grid-column: 2 !important;
    min-width: 0;
    text-align: left !important;
  }
}

body.tabler-admin-shell :where(.fp-dashboard-top-title, .fp-dashboard-top-search, .fp-dashboard-top-pills) {
  display: none !important;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-start {
  flex: 0 0 auto !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  margin-left: auto !important;
}

body.tabler-admin-shell {
  background:
    radial-gradient(circle at 18% 12%, rgba(41, 185, 120, .14), transparent 28%),
    linear-gradient(135deg, #f5f9fc 0%, #eef7f5 42%, #eaf3f8 100%) !important;
  color: var(--fp-ink);
}

body.tabler-admin-shell .apex-wrapper,
body.tabler-admin-shell .apex-content {
  background: transparent !important;
}

body.tabler-admin-shell .apex-sidebar {
  top: 16px !important;
  bottom: 16px !important;
  left: 16px !important;
  width: var(--fp-sidebar-width) !important;
  border: 1px solid rgba(214, 226, 238, .9) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .08) !important;
  backdrop-filter: blur(18px);
}

body.tabler-admin-shell .apex-sidebar-body {
  padding: 1rem .9rem !important;
  gap: .55rem;
}

body.tabler-admin-shell .apex-company-mark {
  align-items: center !important;
  padding: .35rem .35rem .85rem !important;
  border-bottom: 0 !important;
}

body.tabler-admin-shell .apex-company-logo {
  width: min(166px, 88%) !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

body.tabler-admin-shell .apex-company-mark strong {
  display: none !important;
}

body.tabler-admin-shell .apex-company-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .68rem;
  min-height: 52px;
  padding: .55rem .62rem;
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--fp-ink);
}

body.tabler-admin-shell .apex-company-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #33c37b, #28a5e6);
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.tabler-admin-shell .apex-company-card-copy {
  display: grid;
  min-width: 0;
  line-height: 1.08;
}

body.tabler-admin-shell .apex-company-card-copy strong,
body.tabler-admin-shell .apex-sidebar-user-copy strong {
  overflow: hidden;
  color: var(--fp-ink);
  font-size: .74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .apex-company-card-copy small,
body.tabler-admin-shell .apex-sidebar-user-copy small {
  overflow: hidden;
  color: var(--fp-muted);
  font-size: .64rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tabler-admin-shell .apex-company-card > i {
  color: #6b7c91;
  font-size: .68rem;
}

body.tabler-admin-shell .apex-menu-search {
  min-height: 44px !important;
  margin: .55rem 0 .35rem !important;
  padding: .55rem .68rem !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: 14px !important;
  background: #f5f8fc !important;
  color: #8b9caf !important;
}

body.tabler-admin-shell .apex-menu-search input {
  color: var(--fp-ink) !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
}

body.tabler-admin-shell .apex-menu-search input::placeholder {
  color: #9aa8b9;
}

body.tabler-admin-shell .apex-sidebar-nav {
  padding: .2rem .05rem .25rem 0 !important;
}

body.tabler-admin-shell .apex-nav-label {
  margin: .35rem .45rem .45rem;
  color: #a1adbc;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.tabler-admin-shell .apex-nav {
  gap: .16rem !important;
}

body.tabler-admin-shell .apex-nav .nav-link {
  min-height: 39px !important;
  gap: .66rem !important;
  padding: .48rem .62rem !important;
  border-radius: 12px !important;
  color: #516075 !important;
  font-size: .76rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  transition: none !important;
}

body.tabler-admin-shell .apex-nav .nav-link:hover,
body.tabler-admin-shell .apex-nav .nav-link:focus {
  background: transparent !important;
  color: #516075 !important;
}

body.tabler-admin-shell .apex-nav .nav-link.active,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link {
  background: linear-gradient(135deg, #33c37b, #27aee8) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(39, 174, 232, .16) !important;
}

body.tabler-admin-shell .apex-nav-icon {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  border-radius: 8px !important;
  background: rgba(20, 32, 52, .05) !important;
  color: #36475d !important;
  font-size: .78rem !important;
}

body.tabler-admin-shell .apex-nav .nav-link.active .apex-nav-icon,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link .apex-nav-icon {
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
}

body.tabler-admin-shell .apex-tree-caret {
  color: currentColor !important;
  font-size: .62rem !important;
  opacity: .72;
  transform: none !important;
}

body.tabler-admin-shell .apex-menu-open > .nav-link .apex-tree-caret {
  transform: rotate(90deg) !important;
}

body.tabler-admin-shell .apex-nav-tree {
  margin: .2rem 0 .35rem 2.05rem !important;
  padding-left: .55rem !important;
  border-left: 1px solid rgba(203, 213, 225, .8) !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link {
  min-height: 31px !important;
  padding: .34rem .45rem !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #738196 !important;
  font-size: .68rem !important;
  font-weight: 720 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link:hover,
body.tabler-admin-shell .apex-nav-tree .nav-link:focus {
  color: #738196 !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link.active {
  color: var(--fp-success-dark) !important;
}

body.tabler-admin-shell .apex-nav-tree .apex-nav-icon {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  background: transparent !important;
  color: currentColor !important;
  font-size: .58rem !important;
}

body.tabler-admin-shell .apex-sidebar-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: .62rem;
  margin-top: auto;
  padding: .7rem .55rem .15rem;
  border-top: 1px solid rgba(219, 231, 241, .9);
}

body.tabler-admin-shell .apex-sidebar-user-avatar,
body.tabler-admin-shell .fp-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #26b98a, #2496d8);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

body.tabler-admin-shell .apex-sidebar-user-avatar {
  width: 34px;
  height: 34px;
  font-size: .66rem;
}

body.tabler-admin-shell .apex-sidebar-user-copy,
body.tabler-admin-shell .fp-user-copy {
  display: grid;
  min-width: 0;
  line-height: 1.08;
}

body.tabler-admin-shell .apex-sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #61718a;
  text-decoration: none;
}

body.tabler-admin-shell .apex-topbar-start {
  flex: 0 0 auto !important;
  gap: .55rem !important;
}

body.tabler-admin-shell .fp-menu-toggle,
body.tabler-admin-shell .fp-topbar-action {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  color: #27364a !important;
  box-shadow: none !important;
  transition: none !important;
}

body.tabler-admin-shell .fp-global-search {
  position: relative;
  flex: 1 1 360px;
  max-width: 430px;
  min-width: 220px;
  margin-left: auto;
}

body.tabler-admin-shell .fp-global-search i {
  position: absolute;
  left: .86rem;
  top: 50%;
  color: #8a99ad;
  font-size: .78rem;
  transform: translateY(-50%);
}

body.tabler-admin-shell .fp-global-search input {
  width: 100%;
  height: 38px;
  padding: 0 .9rem 0 2.12rem;
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  outline: 0;
  background: #f8fbff;
  color: var(--fp-ink);
  font-size: .76rem;
  font-weight: 700;
}

body.tabler-admin-shell .fp-global-search input::placeholder {
  color: #9aa8b9;
  font-weight: 700;
}

body.tabler-admin-shell .fp-topbar-actions {
  flex: 0 0 auto !important;
  gap: .32rem !important;
  margin-left: .55rem !important;
  padding-left: .55rem !important;
  border-left: 1px solid rgba(203, 213, 225, .75) !important;
}

body.tabler-admin-shell .fp-topbar-action i {
  font-size: .78rem !important;
}

body.tabler-admin-shell .apex-topbar-badge {
  top: -5px !important;
  right: -5px !important;
  height: 17px !important;
  min-width: 17px !important;
  border: 2px solid #fff !important;
  font-size: .58rem !important;
  line-height: 13px !important;
}

body.tabler-admin-shell .fp-user-menu-button {
  min-height: 38px !important;
  gap: .55rem !important;
  padding: .2rem .68rem .2rem .25rem !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--fp-ink) !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .fp-user-avatar {
  width: 31px;
  height: 31px;
  min-width: 31px;
  font-size: .62rem;
}

body.tabler-admin-shell .fp-user-name {
  max-width: 112px !important;
  color: var(--fp-ink);
  font-size: .72rem;
  font-weight: 850;
}

body.tabler-admin-shell .fp-user-copy small {
  color: var(--fp-muted);
  font-size: .6rem;
  font-weight: 700;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-card,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav-label,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-user-copy,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-logout {
  display: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-logo {
  width: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-footer {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: .1rem;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search {
  justify-content: center;
  padding: .52rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search input,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link p,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-tree-caret {
  display: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search i {
  display: inline-flex !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link {
  justify-content: center !important;
  padding: .5rem .25rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav-tree {
  display: none !important;
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .fp-global-search {
    max-width: 300px;
  }

  body.tabler-admin-shell .navbar-resource-item {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-sidebar {
    top: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: min(286px, calc(100vw - 24px)) !important;
    transform: translateX(calc(-100% - 18px));
  }

  body.tabler-admin-shell.apex-sidebar-open .apex-sidebar {
    transform: translateX(0);
  }

  body.tabler-admin-shell .apex-topbar,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    border-radius: 18px !important;
  }

  body.tabler-admin-shell .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content {
    margin-left: 0 !important;
  }

  body.tabler-admin-shell .apex-footer,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: 0 !important;
  }

  body.tabler-admin-shell .fp-global-search {
    display: none !important;
  }

  body.tabler-admin-shell .fp-topbar-actions {
    flex: 1 1 auto !important;
    overflow-x: auto !important;
    margin-left: .2rem !important;
    padding-left: .2rem !important;
    border-left: 0 !important;
    scrollbar-width: none;
  }

  body.tabler-admin-shell .fp-topbar-actions::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar {
    min-height: 54px !important;
    padding: .42rem .5rem !important;
  }

  body.tabler-admin-shell .fp-menu-toggle,
  body.tabler-admin-shell .fp-topbar-action {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
  }

  body.tabler-admin-shell .fp-user-menu-button {
    width: 36px !important;
    min-width: 36px !important;
    padding: .15rem !important;
    border-radius: 12px !important;
  }

  body.tabler-admin-shell .fp-user-copy,
  body.tabler-admin-shell .fp-user-menu-button::after {
    display: none !important;
  }

  body.tabler-admin-shell .fp-user-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
}

 * Bandeja de notificaciones: posicion estable dentro del topbar.
 */
body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  align-self: center !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 46px !important;
  gap: .34rem !important;
  margin: 0 !important;
  padding: .28rem .34rem .28rem .72rem !important;
  border-left: 1px solid rgba(203, 213, 225, .74) !important;
  border-radius: 16px !important;
  background: rgba(248, 251, 255, .72) !important;
  overflow: visible !important;
  transform: none !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .nav-item,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .user-menu-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions .btn-group {
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action,
body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  z-index: 3 !important;
  transform: none !important;
}

body.tabler-admin-shell .apex-topbar .user-menu-item {
  margin-left: .18rem !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  justify-content: flex-start !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
    justify-self: end !important;
    min-height: 42px !important;
    gap: .26rem !important;
    padding: .2rem .24rem !important;
    border-left: 0 !important;
    background: transparent !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .nav-item,
  body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .user-menu-item,
  body.tabler-admin-shell .apex-topbar .fp-topbar-actions .btn-group {
    height: 36px !important;
    min-height: 36px !important;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
    max-width: calc(100vw - 78px) !important;
  }
}

/*
 * Dashboard completo: regulariza ancho, alto y grillas para evitar recortes.
 */
body.tabler-admin-shell .apex-content {
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-hero,
  .inicio-title,
  .inicio-hero-meta,
  .tabler-dashboard-summary,
  .inicio-pulse-cards,
  .inicio-dashboard-grid,
  .inicio-analytics-grid,
  .inicio-bottom-grid,
  .inicio-decision-grid,
  .inicio-goals-activity-layout,
  .inicio-payment-dashboard,
  .inicio-branch-performance-body,
  .inicio-side-stack,
  .inicio-panel-body,
  .inicio-list,
  .inicio-payment-mini-grid,
  .inicio-goals-mini-grid
) {
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr) !important;
  grid-template-areas:
    "title meta"
    "summary summary" !important;
  align-items: stretch !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
  grid-area: title !important;
  min-height: 0 !important;
  align-content: center !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
  grid-area: meta !important;
  align-content: start !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
  grid-area: summary !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: .85rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
  gap: .7rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
  display: grid !important;
  grid-template-columns: minmax(210px, 1.2fr) minmax(145px, .75fr) minmax(145px, .75fr) auto !important;
  align-items: end !important;
  gap: .62rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
  width: auto !important;
  min-width: 104px !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card {
  grid-column: span 4 !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide {
  grid-column: span 6 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-dashboard-grid,
  .inicio-analytics-grid,
  .inicio-bottom-grid,
  .inicio-decision-grid
) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .tabler-dashboard-stat
) {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-body,
  .inicio-finance-composition,
  .inicio-payment-dashboard,
  .inicio-goals-activity-layout,
  .inicio-branch-performance-body
) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  align-items: center !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-footer,
  .inicio-finance-cards,
  .inicio-cash-metric-grid,
  .inicio-goals-ring-stats,
  .inicio-branch-performance-summary,
  .inicio-sellers-performance-summary
) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: .72rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-donut,
  .inicio-finance-ring,
  .inicio-cash-chart,
  .inicio-goals-ring-wrap,
  .pulse-profit-gauge,
  .inicio-period-ratio-chart,
  .inicio-profit-gauge
) {
  width: min(100%, 210px) !important;
  max-width: 210px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard canvas {
  max-width: 100% !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-row,
  .inicio-finance-legend > div,
  .inicio-payment-mini-card,
  .inicio-goal-mini,
  .inicio-branch-row,
  .inicio-seller-bar,
  .inicio-list-item,
  .inicio-live-action,
  .tabler-dashboard-stat
) {
  min-width: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  strong,
  small,
  em,
  label
) {
  max-width: 100%;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-live-action strong,
  .inicio-live-action span,
  .pulse-document-row strong,
  .pulse-document-row small,
  .pulse-document-row em,
  .inicio-finance-legend strong,
  .inicio-list-item h6,
  .inicio-list-item span,
  .inicio-filter-field label,
  .inicio-branch-select,
  .inicio-date-input
) {
  overflow-wrap: anywhere !important;
}

@media (min-width: 1500px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card {
    grid-column: span 3 !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide {
    grid-column: span 6 !important;
  }
}

@media (max-width: 1399.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide {
    grid-column: span 6 !important;
  }
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "title"
      "meta"
      "summary" !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
    grid-column: 1 / -1;
    width: 100% !important;
  }
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
    gap: .85rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide {
    grid-column: 1 / -1 !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell {
    --fp-page-shell-content-inline: 8px;
    --fp-page-shell-content-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
    .inicio-title,
    .inicio-hero-meta,
    .inicio-pulse-card,
    .inicio-panel,
    .inicio-goals-panel,
    .inicio-period-ratio,
    .inicio-profit-card
  ) {
    border-radius: 18px !important;
    padding: .9rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
    font-size: clamp(1.15rem, 7vw, 1.55rem) !important;
  }
}

/*
 * Topbar limpio: retira contexto y buscador superior del dashboard/sistema.
 */
body.tabler-admin-shell .fp-top-context,
body.tabler-admin-shell .fp-global-search,
body.tabler-admin-shell :where(.fp-dashboard-top-title, .fp-dashboard-top-search, .fp-dashboard-top-pills) {
  display: none !important;
}

/*
 * Topbar plano: barra de sistema sin apariencia de tarjeta.
 */
body.tabler-admin-shell {
  --fp-topbar-height: 56px;
}

body.tabler-admin-shell .apex-topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: calc(var(--fp-sidebar-width) - 1px) !important;
  z-index: 1030 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: .5rem !important;
  width: auto !important;
  min-height: var(--fp-topbar-height) !important;
  height: var(--fp-topbar-height) !important;
  padding: 0 1.55rem 0 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(214, 226, 238, .95) !important;
  border-radius: 0 !important;
  background: rgba(247, 250, 253, .98) !important;
  color: #132033 !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar {
  left: calc(var(--fp-sidebar-collapsed-width) - 1px) !important;
}

body.tabler-admin-shell .apex-topbar::before,
body.tabler-admin-shell .apex-topbar::after {
  display: none !important;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-start,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-start {
  grid-column: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  padding: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  grid-column: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  width: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .nav-item,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .user-menu-item,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions .btn-group {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-menu-toggle {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #40526b !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-topbar .fp-menu-toggle:hover,
body.tabler-admin-shell .apex-topbar .fp-menu-toggle:focus {
  border-color: rgba(202, 216, 231, .8) !important;
  background: rgba(231, 238, 247, .58) !important;
  color: #0f766e !important;
  transform: none !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action i,
body.tabler-admin-shell .apex-topbar .fp-menu-toggle i {
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  font-size: .86rem !important;
  line-height: 1 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 0 0 .65rem !important;
  margin-left: .38rem !important;
  border: 0 !important;
  border-left: 1px solid rgba(207, 220, 234, .95) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #132033 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-avatar {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #0f8f73 !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-copy {
  display: grid !important;
  gap: .02rem !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-name {
  max-width: 130px !important;
  color: #132033 !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-copy small {
  max-width: 130px !important;
  overflow: hidden !important;
  color: #6a7a90 !important;
  font-size: .64rem !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-badge {
  top: -4px !important;
  right: -4px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 .24rem !important;
  border: 2px solid #f7fafd !important;
  font-size: .6rem !important;
  line-height: 13px !important;
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell {
    --fp-topbar-height: 54px;
  }

  body.tabler-admin-shell.pos-menu-hidden .fp-page-shell__content {
    padding: .55rem !important;
  }

}

/*
 * Menu plano profesional: sidebar normal, sin tarjetas flotantes ni paneles internos.
 */
body.tabler-admin-shell .apex-sidebar {
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
}

body.tabler-admin-shell .apex-sidebar-body {
  height: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
}

body.tabler-admin-shell .apex-company-mark {
  min-height: 76px !important;
  padding: .95rem 1rem .7rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(224, 233, 242, .95) !important;
  background: transparent !important;
}

body.tabler-admin-shell .apex-company-logo {
  width: min(168px, 100%) !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

body.tabler-admin-shell .apex-company-mark strong {
  display: none !important;
}

body.tabler-admin-shell .apex-company-card {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: .58rem !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: .62rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(224, 233, 242, .95) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #132033 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-company-card-icon {
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #e9f7f2 !important;
  color: #0f8f73 !important;
  font-size: .58rem !important;
  font-weight: 900 !important;
}

body.tabler-admin-shell .apex-company-card-copy strong {
  color: #172236 !important;
  font-size: .72rem !important;
  font-weight: 820 !important;
}

body.tabler-admin-shell .apex-company-card-copy small {
  color: #75859a !important;
  font-size: .61rem !important;
  font-weight: 650 !important;
}

body.tabler-admin-shell .apex-company-card > i {
  color: #8a99ad !important;
  font-size: .65rem !important;
}

body.tabler-admin-shell .apex-menu-search {
  min-height: 42px !important;
  margin: 0 !important;
  padding: .55rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(224, 233, 242, .95) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7c8ca2 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-menu-search input {
  color: #172236 !important;
  font-size: .73rem !important;
  font-weight: 700 !important;
}

body.tabler-admin-shell .apex-menu-search input::placeholder {
  color: #9aa8b9 !important;
}

body.tabler-admin-shell .apex-sidebar-nav {
  flex: 1 1 auto !important;
  padding: .7rem .65rem .8rem !important;
  background: transparent !important;
}

body.tabler-admin-shell .apex-nav-label {
  margin: .45rem .35rem .5rem !important;
  color: #8b98aa !important;
  font-size: .58rem !important;
  font-weight: 850 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .apex-nav {
  gap: .04rem !important;
}

body.tabler-admin-shell .apex-nav .nav-link {
  position: relative !important;
  min-height: 38px !important;
  gap: .58rem !important;
  padding: .48rem .62rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #536174 !important;
  box-shadow: none !important;
  font-size: .74rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  transition: none !important;
}

body.tabler-admin-shell .apex-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: .42rem auto .42rem 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

body.tabler-admin-shell .apex-nav .nav-link:hover,
body.tabler-admin-shell .apex-nav .nav-link:focus {
  background: #f6f9fc !important;
  color: #132033 !important;
  transform: none !important;
}

body.tabler-admin-shell .apex-nav .nav-link.active,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link {
  background: #edf8f4 !important;
  color: #0f7e68 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-nav .nav-link.active::before,
body.tabler-admin-shell .apex-nav .apex-menu-open > .nav-link::before {
  background: #0f8f73;
}

body.tabler-admin-shell .apex-nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
  font-size: .86rem !important;
}

body.tabler-admin-shell .apex-tree-caret {
  margin-left: auto !important;
  color: #9aa8b9 !important;
  font-size: .62rem !important;
}

body.tabler-admin-shell .apex-nav-tree {
  margin: .08rem 0 .18rem 1.18rem !important;
  padding: .12rem 0 .18rem .52rem !important;
  border: 0 !important;
  border-left: 1px solid rgba(215, 226, 238, .95) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link {
  min-height: 32px !important;
  padding: .34rem .5rem !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: .68rem !important;
  font-weight: 720 !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link:hover,
body.tabler-admin-shell .apex-nav-tree .nav-link:focus {
  background: #f7fafc !important;
  color: #132033 !important;
}

body.tabler-admin-shell .apex-nav-tree .nav-link.active {
  background: transparent !important;
  color: #0f7e68 !important;
}

body.tabler-admin-shell .apex-sidebar-footer {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  gap: .55rem !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: .62rem 1rem !important;
  border: 0 !important;
  border-top: 1px solid rgba(224, 233, 242, .95) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-sidebar-user-avatar {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #e9f7f2 !important;
  color: #0f8f73 !important;
  box-shadow: none !important;
  font-size: .66rem !important;
}

body.tabler-admin-shell .apex-sidebar-logout {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7b8798 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-mark {
  min-height: 64px !important;
  padding: .78rem .55rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-logo {
  width: 40px !important;
  max-height: 40px !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-company-card,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav-label,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-user-copy,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-logout {
  display: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search {
  justify-content: center !important;
  padding: .58rem 0 !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-menu-search input,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link p,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-tree-caret {
  display: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-nav {
  padding: .65rem .42rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-nav .nav-link {
  justify-content: center !important;
  padding: .48rem .2rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar-footer {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  padding: .7rem 0 !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-sidebar {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(286px, 88vw) !important;
    border-radius: 0 !important;
  }
}

/*
 * Dashboard plano profesional: elimina tarjetas flotantes y deja secciones
 * operativas con divisores limpios.
 */
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: #f8fafc !important;
  color: #142034 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
  display: grid !important;
  gap: 1.15rem !important;
  width: 100% !important;
  max-width: none !important;
  padding: .35rem 1rem 1.25rem !important;
  margin: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-hero,
  .inicio-title,
  .inicio-hero-meta,
  .tabler-dashboard-summary,
  .tabler-dashboard-stat,
  .inicio-live-action,
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .inicio-decision-card,
  .inicio-goal-mini,
  .inicio-payment-mini-card,
  .inicio-list-item,
  .pulse-document-row,
  .pulse-document-footer > div,
  .inicio-finance-legend > div,
  .inicio-finance-cards > div,
  .inicio-cash-metric-grid > div,
  .inicio-goals-ring-card,
  .inicio-goals-ring-stats > div,
  .inicio-branch-performance-summary > div,
  .inicio-branch-chart-shell,
  .inicio-branch-ranking,
  .inicio-branch-row,
  .inicio-sellers-bars-card,
  .inicio-seller-bar,
  .inicio-sellers-performance-summary > div,
  .inicio-profit-metrics > div,
  .pulse-ticket-footer > div,
  .pulse-dark-list > div
) {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card,
  .inicio-panel,
  .inicio-goals-panel,
  .inicio-analytics-panel,
  .inicio-period-ratio,
  .inicio-profit-card,
  .inicio-decision-card
) {
  padding: 1rem 0 !important;
  border: 0 !important;
  border-top: 1px solid #dfe8f2 !important;
  color: #142034 !important;
  overflow: visible !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-card::before,
  .inicio-pulse-card::after,
  .inicio-panel::before,
  .inicio-panel::after,
  .inicio-goals-panel::before,
  .inicio-goals-panel::after,
  .inicio-profit-card::before,
  .inicio-profit-card::after,
  .inicio-period-ratio::before,
  .inicio-period-ratio::after,
  .inicio-hero::before,
  .inicio-hero::after
) {
  display: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr) !important;
  grid-template-areas:
    "title meta"
    "summary summary" !important;
  gap: 1rem !important;
  padding: 0 0 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe8f2 !important;
  background: transparent !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-pill-top {
  position: static !important;
  grid-column: 1 / -1 !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: .18rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f8f73 !important;
  font-size: .68rem !important;
  letter-spacing: .03em !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
  grid-area: title !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: .85rem !important;
  align-items: start !important;
  padding: .15rem 0 0 !important;
  border: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-action-icon,
  .tabler-dashboard-stat-icon,
  .inicio-panel-icon,
  .inicio-finance-head-icon,
  .pulse-document-title > span,
  .inicio-sellers-performance-icon,
  .inicio-branch-performance-icon,
  .pulse-heart-icon,
  .inicio-goal-mini-icon
) {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  border: 1px solid #dce7f2 !important;
  border-radius: 9px !important;
  background: #f4f8fc !important;
  color: #0f766e !important;
  box-shadow: none !important;
  font-size: .86rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(1.3rem, 2.2vw, 2rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title p,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading p,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-title p, .inicio-panel-title small, .inicio-finance-header p, .inicio-branch-performance-head p, .inicio-sellers-performance-head p, .inicio-goals-activity-head p) {
  color: #64748b !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading {
  margin: .9rem 0 .35rem !important;
  color: #0f766e !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap: .55rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
  min-height: 48px !important;
  padding: .45rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2ebf4 !important;
  color: #172236 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action:hover,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action:focus {
  background: transparent !important;
  color: #0f766e !important;
  transform: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action span span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.tabler-dashboard-stat small, .pulse-card-head small, .inicio-eyebrow) {
  color: #718096 !important;
  font-size: .64rem !important;
  font-weight: 820 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action strong {
  color: #172236 !important;
  font-size: .82rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
  grid-area: meta !important;
  display: grid !important;
  gap: .65rem !important;
  align-content: start !important;
  padding: .1rem 0 0 !important;
  border: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-branch,
  .inicio-license-pill,
  .inicio-period
) {
  min-height: 0 !important;
  padding: .38rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2ebf4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #172236 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill em {
  padding: .12rem .42rem !important;
  border: 1px solid #c8f0df !important;
  border-radius: 999px !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: .66rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
  display: grid !important;
  grid-template-columns: minmax(190px, 1.2fr) minmax(135px, .75fr) minmax(135px, .75fr) auto !important;
  align-items: end !important;
  gap: .55rem !important;
  padding: .2rem 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-field {
  gap: .18rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-field label {
  color: #718096 !important;
  font-size: .62rem !important;
  font-weight: 850 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-control {
  min-height: 38px !important;
  border: 1px solid #d9e5f1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-select,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-date-input {
  height: 36px !important;
  color: #172236 !important;
  font-size: .76rem !important;
  font-weight: 780 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
  min-height: 38px !important;
  min-width: 94px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #0f766e !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: .76rem !important;
  font-weight: 820 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
  grid-area: summary !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 0 !important;
  padding: .35rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #dfe8f2 !important;
  background: transparent !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: .65rem !important;
  min-height: 68px !important;
  padding: .7rem .85rem .7rem 0 !important;
  border: 0 !important;
  border-right: 1px solid #e2ebf4 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat:last-child {
  border-right: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat strong {
  color: #111827 !important;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat em {
  color: #64748b !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .inicio-pulse-cards,
  .inicio-dashboard-grid,
  .inicio-analytics-grid,
  .inicio-bottom-grid,
  .inicio-decision-grid,
  .inicio-payment-dashboard,
  .inicio-goals-activity-layout,
  .inicio-branch-performance-body
) {
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: .25rem 0 -.55rem !important;
  padding-top: .4rem !important;
  border-top: 1px solid #dfe8f2 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading span {
  color: #0f766e !important;
  font-size: .66rem !important;
  font-weight: 850 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading h4,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-document-title h5, .inicio-finance-header h5, .inicio-panel-title h5, .inicio-branch-performance-head h5, .inicio-sellers-performance-head h5, .inicio-goals-activity-head h5) {
  color: #111827 !important;
  font-size: clamp(.95rem, 1.4vw, 1.12rem) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-card-head,
  .pulse-document-card-head,
  .inicio-finance-header,
  .inicio-panel-header,
  .inicio-branch-performance-head,
  .inicio-sellers-performance-head,
  .inicio-goals-activity-head,
  .inicio-profit-header
) {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: .85rem !important;
  padding: 0 0 .65rem !important;
  border: 0 !important;
  border-bottom: 1px solid #e2ebf4 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-badge,
  .pulse-document-badge,
  .inicio-finance-paid,
  .inicio-cash-status,
  .inicio-branch-performance-badge,
  .inicio-sellers-performance-badge,
  .inicio-goals-period,
  .inicio-goals-action,
  .inicio-badge,
  .inicio-profit-status
) {
  min-height: 0 !important;
  padding: .16rem .45rem !important;
  border: 1px solid #dce7f2 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #536174 !important;
  box-shadow: none !important;
  font-size: .66rem !important;
  font-weight: 800 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.pulse-main-value, .pulse-document-center strong, .inicio-finance-ring-center strong, .pulse-profit-gauge-center strong, .inicio-cash-chart-center strong, .inicio-period-ratio-center strong, .inicio-profit-gauge-center strong) {
  color: #111827 !important;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem) !important;
  font-weight: 880 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-dark,
  .pulse-cobros,
  .pulse-flujo,
  .pulse-ticket,
  .pulse-compras,
  .pulse-ventas-periodo,
  .pulse-utilidad,
  .inicio-finance-panel-pulse
) {
  background: transparent !important;
  color: #142034 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-dark *,
  .pulse-cobros *,
  .pulse-flujo *,
  .pulse-ticket *,
  .pulse-compras *,
  .pulse-ventas-periodo *,
  .pulse-utilidad *,
  .inicio-finance-panel-pulse *
) {
  text-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-dark strong,
  .pulse-dark b,
  .pulse-dark h5,
  .pulse-cobros strong,
  .pulse-cobros b,
  .pulse-cobros h5,
  .pulse-ticket strong,
  .pulse-compras strong,
  .pulse-ventas-periodo strong
) {
  color: #111827 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-row,
  .inicio-finance-legend > div,
  .inicio-payment-mini-card,
  .inicio-goal-mini,
  .inicio-branch-row,
  .inicio-seller-bar,
  .inicio-list-item
) {
  min-height: 0 !important;
  padding: .55rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6edf5 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-row:last-child,
  .inicio-finance-legend > div:last-child,
  .inicio-branch-row:last-child,
  .inicio-seller-bar:last-child,
  .inicio-list-item:last-child
) {
  border-bottom: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-footer,
  .inicio-finance-cards,
  .inicio-cash-metric-grid,
  .inicio-goals-ring-stats,
  .inicio-branch-performance-summary,
  .inicio-sellers-performance-summary,
  .inicio-profit-metrics,
  .pulse-ticket-footer,
  .pulse-dark-list
) {
  gap: 0 !important;
  border-top: 1px solid #e2ebf4 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-footer > div,
  .inicio-finance-cards > div,
  .inicio-cash-metric-grid > div,
  .inicio-goals-ring-stats > div,
  .inicio-branch-performance-summary > div,
  .inicio-sellers-performance-summary > div,
  .inicio-profit-metrics > div,
  .pulse-ticket-footer > div,
  .pulse-dark-list > div
) {
  padding: .58rem .75rem .58rem 0 !important;
  border: 0 !important;
  border-right: 1px solid #e2ebf4 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-footer > div:last-child,
  .inicio-finance-cards > div:last-child,
  .inicio-cash-metric-grid > div:last-child,
  .inicio-goals-ring-stats > div:last-child,
  .inicio-branch-performance-summary > div:last-child,
  .inicio-sellers-performance-summary > div:last-child,
  .inicio-profit-metrics > div:last-child,
  .pulse-ticket-footer > div:last-child,
  .pulse-dark-list > div:last-child
) {
  border-right: 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
  .pulse-document-donut,
  .inicio-finance-ring,
  .inicio-cash-chart,
  .inicio-goals-ring-wrap,
  .pulse-profit-gauge,
  .inicio-period-ratio-chart,
  .inicio-profit-gauge
) {
  width: min(100%, 198px) !important;
  max-width: 198px !important;
  margin-inline: auto !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-chart {
  min-height: 220px !important;
  padding: .4rem 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.inicio-branch-row-bar, .inicio-seller-bar-track, .pulse-ltv-rows b, .pulse-double-track div, .inicio-goal-mini-chart, .inicio-payment-mini-chart) {
  border-radius: 999px !important;
  background: #e8eef5 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(.inicio-branch-row-bar span, .inicio-seller-bar-track span, .pulse-ltv-rows b i, .pulse-double-track b) {
  border-radius: 999px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard canvas {
  max-width: 100% !important;
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "title"
      "meta"
      "summary" !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
    gap: .9rem !important;
    padding: .25rem .45rem 1rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
    grid-template-columns: 1fr !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon {
    display: none !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-grid,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-mini-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-wide {
    grid-column: 1 / -1 !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard :where(
    .pulse-document-footer > div,
    .inicio-finance-cards > div,
    .inicio-cash-metric-grid > div,
    .inicio-goals-ring-stats > div,
    .inicio-branch-performance-summary > div,
    .inicio-sellers-performance-summary > div,
    .inicio-profit-metrics > div,
    .pulse-ticket-footer > div,
    .pulse-dark-list > div
  ) {
    border-right: 0 !important;
    border-bottom: 1px solid #e2ebf4 !important;
  }
}

/*
 * Index moderno e intuitivo: lectura ejecutiva, acciones claras y secciones
 * planas sin apariencia de tarjetas.
 */
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard {
  --idx-bg: #f6f8fb;
  --idx-line: #dbe5ef;
  --idx-line-soft: #e8eef5;
  --idx-ink: #111827;
  --idx-muted: #66758a;
  --idx-soft: #eef4f8;
  --idx-primary: #0f766e;
  --idx-primary-2: #1f6feb;
  background: var(--idx-bg) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
  gap: 1rem !important;
  padding: .15rem 1rem 1.5rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px) !important;
  grid-template-areas:
    "live live"
    "title meta"
    "summary summary" !important;
  gap: .9rem 1.25rem !important;
  padding: .25rem 0 1.05rem !important;
  border-bottom: 1px solid var(--idx-line) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-pill-top {
  grid-area: live !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .45rem !important;
  width: fit-content !important;
  padding: .18rem .55rem !important;
  border: 1px solid rgba(15, 118, 110, .18) !important;
  border-radius: 999px !important;
  background: rgba(236, 253, 245, .7) !important;
  color: var(--idx-primary) !important;
  font-size: .67rem !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-pill-top > span {
  width: .5rem !important;
  height: .5rem !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
  grid-area: title !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: .9rem !important;
  align-items: start !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(15, 118, 110, .2) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(15, 118, 110, .1), rgba(31, 111, 235, .08)) !important;
  color: var(--idx-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title h3 {
  max-width: 920px !important;
  margin: 0 !important;
  color: var(--idx-ink) !important;
  font-size: clamp(1.45rem, 2.3vw, 2.3rem) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title p {
  max-width: 850px !important;
  margin: .34rem 0 0 !important;
  color: var(--idx-muted) !important;
  font-size: .84rem !important;
  font-weight: 650 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading {
  margin: 1rem 0 .45rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-shortcut-heading span {
  display: inline-flex !important;
  align-items: center !important;
  gap: .38rem !important;
  color: var(--idx-primary) !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) !important;
  gap: .55rem !important;
  max-width: 860px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: .55rem !important;
  min-height: 54px !important;
  padding: .48rem .5rem !important;
  border: 1px solid var(--idx-line-soft) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .62) !important;
  color: var(--idx-ink) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action:hover,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action:focus {
  border-color: rgba(15, 118, 110, .28) !important;
  background: #fff !important;
  color: var(--idx-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-action-icon {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(219, 229, 239, .95) !important;
  border-radius: 10px !important;
  background: #f8fbfd !important;
  color: var(--idx-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action span span {
  color: #75859a !important;
  font-size: .61rem !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-action strong {
  color: var(--idx-ink) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero-meta {
  grid-area: meta !important;
  display: grid !important;
  align-content: start !important;
  gap: .55rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-row {
  display: grid !important;
  gap: .45rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-period {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  min-height: 38px !important;
  padding: .38rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--idx-line-soft) !important;
  color: var(--idx-ink) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(16, 185, 129, .2) !important;
  border-radius: 9px !important;
  background: rgba(236, 253, 245, .72) !important;
  color: var(--idx-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-copy small {
  color: #75859a !important;
  font-size: .62rem !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-copy strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch {
  font-size: .78rem !important;
  font-weight: 850 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-license-pill em {
  margin-left: auto !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter {
  display: grid !important;
  grid-template-columns: minmax(170px, 1.2fr) minmax(124px, .8fr) minmax(124px, .8fr) auto !important;
  align-items: end !important;
  gap: .45rem !important;
  padding: .2rem 0 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-control {
  min-height: 36px !important;
  border: 1px solid var(--idx-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-leading-icon,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter-icon {
  color: var(--idx-primary-2) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-filter-btn {
  min-height: 36px !important;
  min-width: 90px !important;
  border-radius: 8px !important;
  background: var(--idx-primary) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
  grid-area: summary !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: .3rem !important;
  padding-top: .7rem !important;
  border-top: 1px solid var(--idx-line) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat {
  min-height: 72px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: .7rem !important;
  padding: .35rem 1rem .35rem 0 !important;
  border-right: 1px solid var(--idx-line-soft) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat-icon {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat strong {
  color: var(--idx-ink) !important;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem) !important;
  font-weight: 900 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-cards {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card {
  grid-column: span 4 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse {
  grid-column: span 6 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-utilidad {
  grid-column: span 6 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-panel,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-panel,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-panel,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-period-ratio,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-profit-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-card {
  min-width: 0 !important;
  padding: .95rem 0 !important;
  border-top: 1px solid var(--idx-line) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-body,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-composition,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body {
  display: grid !important;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.15fr) !important;
  align-items: center !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-legend > div,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-row,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-seller-bar,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-card,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goal-mini {
  border-bottom: 1px solid var(--idx-line-soft) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item h6,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goal-mini-head strong {
  color: var(--idx-ink) !important;
  font-size: .8rem !important;
  font-weight: 850 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-row small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-list-item span,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-mini-head small,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goal-mini-head small {
  color: var(--idx-muted) !important;
  font-size: .7rem !important;
  font-weight: 650 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-donut,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-ring,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-chart,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-ring-wrap,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-profit-gauge,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-period-ratio-chart,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-profit-gauge {
  width: min(100%, 188px) !important;
  max-width: 188px !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-main-value,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-ring-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-profit-gauge-center strong,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-cash-chart-center strong {
  font-size: clamp(1.22rem, 2vw, 2rem) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
  align-items: flex-end !important;
  margin: .15rem 0 -.55rem !important;
  padding: .75rem 0 0 !important;
  border-top: 1px solid var(--idx-line) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading h4 {
  margin: .1rem 0 0 !important;
  color: var(--idx-ink) !important;
  font-size: clamp(1rem, 1.35vw, 1.22rem) !important;
  font-weight: 900 !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-dashboard-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-analytics-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-bottom-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-decision-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)) !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-operational-grid,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-insight-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-side-stack {
  display: grid !important;
  gap: 1rem !important;
}

body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-empty,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-access-warning,
body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-empty {
  border: 1px dashed #cfdbea !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .5) !important;
  color: var(--idx-muted) !important;
}

@media (min-width: 1400px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
    padding-inline: 1.25rem !important;
  }
}

@media (max-width: 1199.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "live"
      "title"
      "meta"
      "summary" !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-utilidad {
    grid-column: span 6 !important;
  }
}

@media (max-width: 767.98px) {
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard > .container-fluid {
    padding-inline: .55rem !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-title-icon {
    display: none !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-live-actions,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-summary,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-filter,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-document-body,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-composition,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-payment-dashboard,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-goals-activity-layout,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-branch-performance-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-pulse-card,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-sales-today,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-finance-panel-pulse,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .pulse-utilidad {
    grid-column: 1 / -1 !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat,
  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .tabler-dashboard-stat:last-child {
    border-right: 0 !important;
    border-bottom: 1px solid var(--idx-line-soft) !important;
  }

  body.tabler-admin-shell .inicio-dashboard.tabler-dashboard .inicio-section-heading {
    display: grid !important;
    gap: .25rem !important;
  }
}

/*
 * Geometria definitiva del shell administrativo.
 * Centraliza sidebar, topbar, contenido y footer para evitar cascadas de ajuste.
 */
body.tabler-admin-shell {
  --fp-sidebar-width: 236px;
  --fp-sidebar-collapsed-width: 70px;
}

body.tabler-admin-shell .apex-sidebar {
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: var(--fp-sidebar-width) !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

body.tabler-admin-shell .apex-content,
body.tabler-admin-shell .apex-footer {
  margin-left: var(--fp-sidebar-width) !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  justify-self: end !important;
  margin-right: .45rem !important;
  padding-right: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  margin-right: .25rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar {
  width: var(--fp-sidebar-collapsed-width) !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-content,
body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
  margin-left: var(--fp-sidebar-collapsed-width) !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar {
    left: 0 !important;
    right: 0 !important;
    padding-left: .72rem !important;
    padding-right: .92rem !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-topbar-actions,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar .fp-topbar-actions {
    max-width: calc(100vw - 66px) !important;
    margin-right: .1rem !important;
  }

  body.tabler-admin-shell .apex-content,
  body.tabler-admin-shell .apex-footer,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-content,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-footer {
    margin-left: 0 !important;
  }
}

/*
 * Topbar responsive funcional: conserva todos los iconos visibles en tablet y
 * movil, evita recortes y mantiene operativo el desplegable de usuario.
 */
body.tabler-admin-shell .apex-topbar {
  overflow: visible !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  max-width: calc(100vw - var(--fp-sidebar-width) - 32px) !important;
  overflow: visible !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar .fp-topbar-actions {
  max-width: calc(100vw - var(--fp-sidebar-collapsed-width) - 32px) !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .nav-item,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions > .user-menu-item,
body.tabler-admin-shell .apex-topbar .fp-topbar-actions .btn-group {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions .nav-item:nth-child(n+5):not(.user-menu-item) {
  display: inline-flex !important;
}

body.tabler-admin-shell .apex-topbar .fp-menu-toggle,
body.tabler-admin-shell .apex-topbar .fp-topbar-action {
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  color: #334155 !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action i,
body.tabler-admin-shell .apex-topbar .fp-menu-toggle i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  min-width: 1em !important;
  height: 1em !important;
  color: currentColor !important;
  font-size: .92rem !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  flex: 0 0 auto !important;
  min-width: 128px !important;
  max-width: 156px !important;
  overflow: visible !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu {
  z-index: 2147483000 !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: .35rem !important;
    padding-inline: .55rem !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-topbar-actions,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar .fp-topbar-actions {
    max-width: calc(100vw - 52px) !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.tabler-admin-shell .apex-topbar .fp-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
    min-width: 44px !important;
    max-width: 44px !important;
    width: 44px !important;
    padding-inline: .2rem !important;
    margin-left: .12rem !important;
    border-left: 0 !important;
    justify-content: center !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-copy,
  body.tabler-admin-shell .apex-topbar .fp-user-menu-button::after {
    display: none !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu.show {
    position: fixed !important;
    top: calc(var(--fp-topbar-height) + 6px) !important;
    right: .65rem !important;
    left: auto !important;
    transform: none !important;
    min-width: 210px !important;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar .fp-topbar-actions,
  body.tabler-admin-shell.apex-sidebar-collapsed .apex-topbar .fp-topbar-actions {
    max-width: calc(100vw - 48px) !important;
    gap: .1rem !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-menu-toggle,
  body.tabler-admin-shell .apex-topbar .fp-topbar-action {
    flex-basis: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  body.tabler-admin-shell .apex-topbar .apex-topbar-badge {
    top: -3px !important;
    right: -3px !important;
  }
}

/*
 * Dropdown de usuario estable: el boton debe abrir siempre por encima del
 * topbar y sin quedar recortado por la fila responsive de iconos.
 */
body.tabler-admin-shell .apex-topbar .user-menu-item,
body.tabler-admin-shell .apex-topbar .user-menu-item .btn-group {
  position: relative !important;
  overflow: visible !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu {
  min-width: 210px !important;
  padding: .45rem !important;
  border: 1px solid rgba(203, 213, 225, .95) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16) !important;
  z-index: 2147483000 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  color: #172033 !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu .dropdown-item i {
  width: 16px !important;
  min-width: 16px !important;
  color: #0f766e !important;
  text-align: center !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-caret {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  margin-left: .32rem !important;
  color: #475569 !important;
  font-size: .66rem !important;
  line-height: 1 !important;
  transition: transform .16s ease;
}

body.tabler-admin-shell .apex-topbar .apex-user-menu-open .fp-user-caret,
body.tabler-admin-shell .apex-topbar .fp-user-menu-button.show .fp-user-caret {
  transform: rotate(180deg);
}

body.tabler-admin-shell .apex-topbar .apex-user-menu-open .fp-user-menu-button {
  color: #0f766e !important;
}

@media (max-width: 991.98px) {
  body.tabler-admin-shell .apex-topbar .fp-user-caret {
    display: none !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-dropdown-menu.show {
    position: fixed !important;
    top: calc(var(--fp-topbar-height) + 8px) !important;
    right: .65rem !important;
    left: auto !important;
    transform: none !important;
  }
}

/*
 * Topbar acciones modernas: iconos mas visibles, tactiles y consistentes.
 */
body.tabler-admin-shell .apex-topbar {
  --top-action-size: 38px;
  --top-action-icon-size: 1rem;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
  gap: .34rem !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action {
  --top-action-color: #334155;
  --top-action-bg: rgba(248, 250, 252, .92);
  --top-action-border: rgba(203, 213, 225, .92);
  align-items: center !important;
  background: var(--top-action-bg) !important;
  border: 1px solid var(--top-action-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04) !important;
  color: var(--top-action-color) !important;
  display: inline-flex !important;
  flex: 0 0 var(--top-action-size) !important;
  height: var(--top-action-size) !important;
  justify-content: center !important;
  min-height: var(--top-action-size) !important;
  min-width: var(--top-action-size) !important;
  padding: 0 !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  width: var(--top-action-size) !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action:hover,
body.tabler-admin-shell .apex-topbar .fp-topbar-action:focus {
  background: color-mix(in srgb, var(--top-action-color) 10%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--top-action-color) 32%, #cbd5e1) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
  color: var(--top-action-color) !important;
  outline: 0 !important;
  transform: none !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--top-action-color) 18%, transparent) !important;
}

body.tabler-admin-shell .apex-topbar .fp-topbar-action i {
  color: currentColor !important;
  font-size: var(--top-action-icon-size) !important;
  line-height: 1 !important;
}

body.tabler-admin-shell .apex-topbar .fp-action-plm {
  --top-action-color: #2563eb;
  --top-action-bg: #eff6ff;
  --top-action-border: #bfdbfe;
}

body.tabler-admin-shell .apex-topbar .fp-action-vigilancia {
  --top-action-color: #0f766e;
  --top-action-bg: #f0fdfa;
  --top-action-border: #99f6e4;
}

body.tabler-admin-shell .apex-topbar .fp-action-digemid,
body.tabler-admin-shell .apex-topbar .fp-action-vencer,
body.tabler-admin-shell .apex-topbar .fp-action-rectifica,
body.tabler-admin-shell .apex-topbar .fp-action-anula {
  --top-action-color: #b45309;
  --top-action-bg: #fffbeb;
  --top-action-border: #fde68a;
}

body.tabler-admin-shell .apex-topbar .fp-action-cobros {
  --top-action-color: #0f766e;
  --top-action-bg: #ecfdf5;
  --top-action-border: #bbf7d0;
}

body.tabler-admin-shell .apex-topbar .fp-action-reposicion,
body.tabler-admin-shell .apex-topbar .fp-action-stock {
  --top-action-color: #1d4ed8;
  --top-action-bg: #eef6ff;
  --top-action-border: #bfdbfe;
}

body.tabler-admin-shell .apex-topbar .fp-action-envio,
body.tabler-admin-shell .apex-topbar .fp-action-resumen,
body.tabler-admin-shell .apex-topbar .fp-action-consulta {
  --top-action-color: #7c3aed;
  --top-action-bg: #f5f3ff;
  --top-action-border: #ddd6fe;
}

body.tabler-admin-shell .apex-topbar .fp-action-fullscreen {
  --top-action-color: #334155;
  --top-action-bg: #f8fafc;
  --top-action-border: #cbd5e1;
}

body.tabler-admin-shell .apex-topbar .apex-topbar-badge {
  align-items: center !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .12) !important;
  display: inline-flex !important;
  font-size: .62rem !important;
  font-weight: 900 !important;
  height: 18px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: 18px !important;
  padding: 0 .24rem !important;
  right: -5px !important;
  top: -6px !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
  min-height: 40px !important;
  height: 40px !important;
  border: 1px solid #dbe6f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04) !important;
  gap: .54rem !important;
  padding: .25rem .68rem .25rem .34rem !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-avatar {
  align-items: center !important;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
  border: 2px solid #e7fff8 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(20, 184, 166, .22) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  height: 32px !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  min-width: 32px !important;
  width: 32px !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-copy {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.08 !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-name {
  color: #0f172a !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  max-width: 94px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-copy small {
  color: #64748b !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.tabler-admin-shell .apex-topbar .fp-user-caret {
  color: #334155 !important;
  font-size: .72rem !important;
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell .apex-topbar {
    --top-action-size: 36px;
    --top-action-icon-size: .95rem;
  }

  body.tabler-admin-shell .apex-topbar .fp-topbar-actions {
    gap: .2rem !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-menu-button {
    height: 38px !important;
    min-height: 38px !important;
    padding: .18rem .42rem !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-copy {
    display: none !important;
  }

  body.tabler-admin-shell .apex-topbar .fp-user-avatar {
    height: 30px !important;
    min-width: 30px !important;
    width: 30px !important;
  }
}

/*
 * Menu lateral: iconos modernos, visibles y consistentes por modulo.
 */
body.tabler-admin-shell .apex-sidebar .apex-nav-section {
  --menu-accent: #2563eb;
  --menu-accent-bg: rgba(37, 99, 235, .12);
  --menu-accent-border: rgba(96, 165, 250, .32);
}

body.tabler-admin-shell .apex-sidebar .apex-nav-inicio { --menu-accent: #0f766e; --menu-accent-bg: rgba(20, 184, 166, .13); --menu-accent-border: rgba(45, 212, 191, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-analisis { --menu-accent: #7c3aed; --menu-accent-bg: rgba(124, 58, 237, .13); --menu-accent-border: rgba(167, 139, 250, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-venta { --menu-accent: #2563eb; --menu-accent-bg: rgba(37, 99, 235, .13); --menu-accent-border: rgba(96, 165, 250, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-facturacion { --menu-accent: #0284c7; --menu-accent-bg: rgba(14, 165, 233, .13); --menu-accent-border: rgba(125, 211, 252, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-compra { --menu-accent: #d97706; --menu-accent-bg: rgba(245, 158, 11, .14); --menu-accent-border: rgba(251, 191, 36, .36); }
body.tabler-admin-shell .apex-sidebar .apex-nav-caja { --menu-accent: #059669; --menu-accent-bg: rgba(16, 185, 129, .14); --menu-accent-border: rgba(110, 231, 183, .36); }
body.tabler-admin-shell .apex-sidebar .apex-nav-reportes { --menu-accent: #0891b2; --menu-accent-bg: rgba(6, 182, 212, .13); --menu-accent-border: rgba(103, 232, 249, .34); }
body.tabler-admin-shell .apex-sidebar .apex-nav-consultas { --menu-accent: #4f46e5; --menu-accent-bg: rgba(99, 102, 241, .13); --menu-accent-border: rgba(129, 140, 248, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-publicacion { --menu-accent: #ea580c; --menu-accent-bg: rgba(249, 115, 22, .13); --menu-accent-border: rgba(251, 146, 60, .35); }
body.tabler-admin-shell .apex-sidebar .apex-nav-almacen { --menu-accent: #0e7490; --menu-accent-bg: rgba(8, 145, 178, .14); --menu-accent-border: rgba(103, 232, 249, .34); }
body.tabler-admin-shell .apex-sidebar .apex-nav-configuracion { --menu-accent: #475569; --menu-accent-bg: rgba(148, 163, 184, .14); --menu-accent-border: rgba(203, 213, 225, .28); }

body.tabler-admin-shell .apex-sidebar .apex-nav .nav-link {
  align-items: center !important;
  gap: .62rem !important;
}

body.tabler-admin-shell .apex-sidebar .apex-nav .nav-link .apex-nav-icon {
  align-items: center !important;
  background: var(--menu-accent-bg) !important;
  border: 1px solid var(--menu-accent-border) !important;
  border-radius: 11px !important;
  color: color-mix(in srgb, var(--menu-accent) 78%, #ffffff 22%) !important;
  display: inline-flex !important;
  flex: 0 0 32px !important;
  font-size: .94rem !important;
  height: 32px !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-width: 32px !important;
  text-align: center !important;
  width: 32px !important;
}

body.tabler-admin-shell .apex-sidebar .apex-nav-tree .nav-link .apex-nav-icon {
  border-radius: 9px !important;
  flex-basis: 27px !important;
  font-size: .78rem !important;
  height: 27px !important;
  min-width: 27px !important;
  width: 27px !important;
}

body.tabler-admin-shell .apex-sidebar .apex-nav .nav-link.active .apex-nav-icon,
body.tabler-admin-shell .apex-sidebar .apex-nav .apex-menu-open > .nav-link .apex-nav-icon {
  background: var(--menu-accent) !important;
  border-color: color-mix(in srgb, var(--menu-accent) 82%, #ffffff 18%) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--menu-accent) 28%, transparent) !important;
  color: #ffffff !important;
}

body.tabler-admin-shell .apex-sidebar .apex-nav .nav-link:hover .apex-nav-icon,
body.tabler-admin-shell .apex-sidebar .apex-nav .nav-link:focus .apex-nav-icon {
  color: #ffffff !important;
  background: var(--menu-accent) !important;
  border-color: var(--menu-accent) !important;
  transform: none !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar .apex-nav .nav-link {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar .apex-nav .nav-link .apex-nav-icon {
  flex-basis: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  width: 34px !important;
}

/*
 * Cabecera institucional del menu: logo limpio, sin fondo ni tarjeta.
 */
body.tabler-admin-shell .apex-sidebar .apex-company-mark {
  align-items: center !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #e3edf7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 92px !important;
  padding: 1.05rem .95rem .86rem !important;
  text-align: center !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-mark.has-logo {
  gap: 0 !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-mark.no-logo {
  justify-content: flex-start !important;
  min-height: 74px !important;
  padding: .92rem 1rem !important;
  text-align: left !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  height: auto !important;
  margin: 0 auto !important;
  max-height: 56px !important;
  max-width: 172px !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  width: auto !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-mark.has-logo strong {
  display: none !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-mark.no-logo strong {
  color: #0f172a !important;
  display: block !important;
  font-size: .86rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card {
  align-items: center !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 0 !important;
  border-bottom: 1px solid #e3edf7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0f172a !important;
  display: grid !important;
  gap: .7rem !important;
  grid-template-columns: 36px minmax(0, 1fr) 16px !important;
  min-height: 62px !important;
  padding: .72rem 1rem !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card-icon {
  align-items: center !important;
  background: #ecfdf5 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #0f766e !important;
  display: inline-flex !important;
  font-size: .62rem !important;
  font-weight: 900 !important;
  height: 36px !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  min-width: 36px !important;
  width: 36px !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card-copy {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  min-width: 0 !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card-copy strong {
  color: #0f172a !important;
  display: block !important;
  font-size: .75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card-copy small {
  color: #64748b !important;
  display: block !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  margin-top: .1rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.tabler-admin-shell .apex-sidebar .apex-company-card > i {
  color: #94a3b8 !important;
  font-size: .72rem !important;
  justify-self: end !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar .apex-company-mark {
  background: #ffffff !important;
  min-height: 70px !important;
  padding: .9rem .55rem .75rem !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar .apex-company-logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  max-height: 38px !important;
  max-width: 46px !important;
  padding: 0 !important;
  width: auto !important;
}

body.tabler-admin-shell.apex-sidebar-collapsed .apex-sidebar .apex-company-card {
  display: none !important;
}

/*
 * Busqueda de productos en ventas/cotizaciones: estructura estable para que
 * nombre, codigo y stock no se compriman en columnas ilegibles.
 */
body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-search-grid,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-search-grid {
  align-items: start !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-search-panel,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-search-panel,
body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-list,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-list,
body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-card,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-card {
  min-width: 0 !important;
  width: 100% !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-card,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-card {
  display: grid !important;
  gap: .58rem !important;
  padding: .72rem !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-summary,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-summary {
  align-items: flex-start !important;
  display: grid !important;
  gap: .62rem !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-thumb,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-thumb {
  align-items: center !important;
  background: #eef7ff !important;
  border: 1px solid #d6eaff !important;
  border-radius: 12px !important;
  color: #0f7ed9 !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  height: 38px !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  width: 38px !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-primary,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-primary {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0f172a !important;
  display: block !important;
  font: inherit !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  width: 100% !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-name,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-name {
  color: #0f172a !important;
  display: block !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.24 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
  text-orientation: mixed !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-meta,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-meta {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px 7px !important;
  margin-top: .38rem !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-meta > span,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-meta > span {
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #dbe7f3 !important;
  border-radius: 999px !important;
  color: #475569 !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  font-size: .66rem !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 3px 7px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-meta > span:last-child,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-meta > span:last-child {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #047857 !important;
}

body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-main,
body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-main {
  grid-template-columns: 38px minmax(0, 1fr) !important;
}

@media (max-width: 1100px) {
  body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-search-grid,
  body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-search-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 575.98px) {
  body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-summary,
  body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-summary {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-thumb,
  body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-thumb {
    flex-basis: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
  }

  body.tabler-admin-shell #busdatos.fp-modal-product-search .venta-product-modal-name,
  body.tabler-admin-shell #busproductosz.cotizacion-product-modal .venta-product-modal-name {
    font-size: .8rem !important;
  }
}
