.app-page {
  --app-ink: #07162f;
  --app-muted: #5c6d86;
  --app-line: #d7e1ee;
  --app-soft: #f5f8fc;
  --app-panel: #ffffff;
  --app-teal: #08767c;
  --app-teal-dark: #0b5965;
  --app-mint: #d9f8e8;
  --app-mint-text: #04643f;
  --app-sky: #c9f6ff;
  --app-blue: #2563eb;
  --app-red: #ef3d4f;
  --app-amber: #c87505;
  color: var(--app-ink);
}

/* Dashboard: lenguaje visual compartido con Productos. */
.dashboard-page {
  background: #f5f8fc;
  min-height: 100%;
  padding-bottom: 24px;
}

.dashboard-page .dashboard-hero {
  margin-bottom: 14px;
}

.dashboard-page .dashboard-stats-row {
  margin-left: -7px;
  margin-right: -7px;
}

.dashboard-page .dashboard-stats-row > [class*="col-"] {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.dashboard-page .dashboard-stats-row .small-box {
  background: #ffffff !important;
  border: 1px solid var(--app-line) !important;
  border-left: 4px solid var(--app-teal) !important;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 22, 47, 0.07);
  color: var(--app-ink) !important;
  min-height: 88px;
  overflow: hidden;
  position: relative;
}

.dashboard-page .dashboard-stats-row .small-box.bg-success {
  border-left-color: #21bd77 !important;
}

.dashboard-page .dashboard-stats-row .small-box.bg-warning {
  border-left-color: #f2b43d !important;
}

.dashboard-page .dashboard-stats-row .small-box.bg-danger {
  border-left-color: #ef3d4f !important;
}

.dashboard-page .dashboard-stats-row .small-box.bg-primary {
  border-left-color: #2563eb !important;
}

.dashboard-page .dashboard-stats-row .small-box.bg-secondary {
  border-left-color: #718198 !important;
}

.dashboard-page .dashboard-stats-row .small-box .inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  min-height: 86px;
  padding: 15px 58px 13px 14px !important;
  text-align: left !important;
}

.dashboard-page .dashboard-stats-row .small-box .inner h6 {
  color: var(--app-ink) !important;
  font-size: 17px;
  font-weight: 900 !important;
  line-height: 1;
  margin: 8px 0 0;
  order: 2;
}

.dashboard-page .dashboard-stats-row .small-box .inner p {
  color: #536783;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: -0.15px;
  line-height: 1.2;
  margin: 0;
  max-width: 100%;
  order: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-page .dashboard-stats-row .small-box .icon {
  align-items: center;
  background: #dffbf7;
  border: 1px solid #b8eee6;
  border-radius: 8px;
  color: var(--app-teal);
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

.dashboard-page .dashboard-stats-row .small-box .icon > i {
  color: inherit;
  font-size: 21px !important;
  position: static;
  transition: none;
}

.dashboard-page .dashboard-stats-row .small-box:hover .icon > i {
  font-size: 21px !important;
}

.dashboard-page .dashboard-panel.card {
  background: #ffffff;
  border: 1px solid var(--app-line) !important;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 22, 47, 0.07) !important;
  float: none !important;
  overflow: hidden;
}

.dashboard-page .dashboard-panel > .card-body {
  padding: 13px 14px !important;
  position: relative;
}

.dashboard-page .dashboard-panel .titulo-fieldset {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  font-size: 14px;
  left: 0;
  min-height: 38px;
  padding: 0 0 10px !important;
  width: 100%;
}

.dashboard-page .dashboard-panel .titulo-fieldset::before {
  background: transparent;
  border: 0;
  color: var(--app-ink);
  content: "\f080";
  height: auto;
  margin-right: 7px;
  width: auto;
}

.dashboard-page .dashboard-panel .titulo-fieldset::after {
  color: #93a2b7;
  content: "Indicadores y resultados";
  font-size: 10px;
  font-weight: 900;
  margin-left: auto;
  text-transform: none;
}

.dashboard-page .dashboard-wide-chart .titulo-fieldset::after {
  content: "Evolución mensual de ventas";
}

.dashboard-page .dashboard-table-card .titulo-fieldset::before {
  content: "\f03a";
}

.dashboard-page .dashboard-table-card .titulo-fieldset::after {
  content: "Productos y control de stock";
}

.dashboard-page .dashboard-panel .row.my-1 {
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 12px 0 0 !important;
  min-height: 0;
  padding: 12px;
}

.dashboard-page .dashboard-panel .row.my-1 > [class*="col-"] {
  padding: 0;
}

.dashboard-page .dashboard-panel .row.my-1 .card-body {
  padding: 0 !important;
}

.dashboard-page .dashboard-panel .chart {
  background: #ffffff;
  border-radius: 7px;
  overflow: hidden;
  padding: 8px;
  width: 100%;
}

.dashboard-page .dashboard-table-card .row.my-1 {
  background: transparent;
  padding: 0;
}

.dashboard-page .dashboard-table-card table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  margin: 0 !important;
  width: 100%;
}

.dashboard-page .dashboard-table-card thead th {
  background: #eef3f9 !important;
  border: 0 !important;
  color: #334b6c !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 11px 10px !important;
  text-transform: uppercase;
}

.dashboard-page .dashboard-table-card tbody td {
  background: #ffffff;
  border-bottom: 1px solid var(--app-line) !important;
  border-top: 1px solid var(--app-line) !important;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 10px !important;
  vertical-align: middle;
}

.dashboard-page .dashboard-table-card tbody td:first-child {
  border-left: 1px solid var(--app-line) !important;
  border-radius: 8px 0 0 8px;
}

.dashboard-page .dashboard-table-card tbody td:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--app-line) !important;
}

.dashboard-page #tbl_productos_mas_vendidos tbody td,
.dashboard-page #tbl_productos_poco_stock tbody td {
  padding: 10px !important;
}

@media (max-width: 767.98px) {
  .dashboard-page .dashboard-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-page .dashboard-hero .app-hero-badge {
    margin-left: 76px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-page .dashboard-hero .app-hero-badge {
    margin-left: 0;
  }

  .dashboard-page .dashboard-panel .row.my-1 {
    padding: 7px;
  }

  .dashboard-page .dashboard-panel .titulo-fieldset::after {
    display: none;
  }
}

/* Caja: lenguaje visual compartido con productos. */
.caja-page {
  --product-blue: #2f6ea8;
  --product-ink: #07162f;
  --product-muted: #7b8ba3;
  --product-line: #d8e2ef;
  --product-soft: #f5f8fc;
  --product-teal: #08767c;
  --product-green: #21bd77;
  --product-red: #ef3d4f;
  padding-bottom: 22px;
}

.caja-page .caja-hero {
  align-items: center;
  margin-bottom: 14px;
}

.caja-page .caja-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.caja-page #btnAbrirCerrarCaja,
.caja-page #btnImprimirArqueo {
  color: #ffffff !important;
  min-width: 155px;
}

.caja-page #btnAbrirCerrarCaja {
  background: var(--product-green) !important;
  border: 1px solid var(--product-green) !important;
}

.caja-page #btnAbrirCerrarCaja[estado-caja="1"] {
  background: #ff5869 !important;
  border-color: #ff5869 !important;
}

.caja-page #btnImprimirArqueo {
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
}

.caja-page #estado_caja {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.caja-page .caja-dashboard-grid {
  margin-left: -7px;
  margin-right: -7px;
}

.caja-page .caja-dashboard-grid > [class*="col-"] {
  padding-left: 7px;
  padding-right: 7px;
}

.caja-page .caja-section-card {
  height: 100%;
  padding: 13px 14px;
}

.caja-page .caja-movement-card {
  background: #ffffff;
  border: 1px solid var(--product-line);
  border-left: 4px solid #8aa0ba;
  border-radius: 8px;
  box-shadow: none !important;
  overflow: hidden;
}

.caja-page .caja-income-card {
  border-left-color: var(--product-green);
}

.caja-page .caja-refund-card {
  border-left-color: #f3b53f;
}

.caja-page .caja-expense-card {
  border-left-color: #38a3c7;
}

.caja-page .caja-movement-card > .card-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 145px 8px 11px;
  position: relative;
}

.caja-page .caja-movement-card:not(.collapsed-card) > .card-header {
  border-bottom: 1px solid #edf2f7;
}

.caja-page .caja-movement-card .card-title {
  color: var(--product-ink);
  font-size: 12px;
  font-weight: 900;
  margin: 0;
}

.caja-page .caja-movement-card .card-tools {
  align-items: center;
  display: flex;
  float: none !important;
  gap: 5px;
  justify-content: flex-end;
  margin: 0 !important;
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
}

.caja-page .caja-movement-card .card-tools > span {
  color: var(--product-ink);
  font-size: 16px !important;
  font-weight: 900;
  min-width: 96px;
  order: 2;
  padding: 3px 0 3px 6px;
  text-align: right;
}

.caja-page .caja-movement-card .card-tools button {
  align-items: center;
  background: var(--product-soft);
  border: 1px solid var(--product-line);
  border-radius: 7px;
  color: var(--product-teal);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  order: 1;
  padding: 0;
  width: 30px;
}

.caja-page .caja-movement-card > .card-body {
  background: #fbfcfe;
  padding: 12px;
}

.caja-page .caja-movement-card > .card-body > .row:first-child {
  align-items: end;
}

.caja-page .caja-movement-card > .card-body > .row:first-child > .col-2 {
  align-items: flex-end;
  display: flex;
  padding-bottom: 8px;
}

.caja-page .caja-add-movement {
  align-items: center;
  background: var(--product-teal);
  border: 1px solid var(--product-teal);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.caja-page .caja-totals-panel {
  background: #ffffff;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
  padding: 6px 10px 10px;
}

.caja-page .caja-total-row {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  color: #334b6c;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: space-between;
  min-height: 36px;
  padding: 7px 5px;
}

.caja-page .caja-total-row sub {
  color: #93a2b7;
  font-size: 9px;
}

.caja-page .caja-total-income {
  color: #08745b;
}

.caja-page .caja-total-expense {
  color: #d83b4e;
}

.caja-page .caja-total-final {
  background: var(--product-teal);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  margin-top: 8px;
  min-height: 44px;
  padding: 9px 11px;
}

.caja-page .caja-total-final sub {
  color: rgba(255, 255, 255, .75);
}

.caja-page .caja-chart-card .chart {
  align-items: center;
  background: var(--product-soft);
  border: 1px solid var(--product-line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 370px;
  padding: 12px;
}

.caja-page .caja-table-panel {
  overflow: hidden;
}

.caja-page .caja-main-table,
.caja-page .caja-mini-table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  box-shadow: none !important;
}

.caja-page .caja-main-table thead th,
.caja-page .caja-mini-table thead th {
  background: #eef3f9 !important;
  border: 0 !important;
  color: #334b6c !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 11px 9px !important;
  text-transform: uppercase;
}

.caja-page .caja-main-table tbody td,
.caja-page .caja-mini-table tbody td {
  background: #ffffff;
  border-bottom: 1px solid var(--product-line) !important;
  border-top: 1px solid var(--product-line) !important;
  color: var(--product-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 9px !important;
  vertical-align: middle;
}

.caja-page .caja-main-table tbody td:first-child,
.caja-page .caja-mini-table tbody td:first-child {
  border-left: 1px solid var(--product-line) !important;
  border-radius: 8px 0 0 8px;
}

.caja-page .caja-main-table tbody td:last-child,
.caja-page .caja-mini-table tbody td:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--product-line) !important;
}

#mdlMontoApertura.caja-modal .modal-dialog,
#mdlCerrarCaja.caja-modal .modal-dialog {
  max-width: 720px;
}

#mdlMontoApertura.caja-open-modal .modal-dialog {
  max-width: 580px;
}

#mdlMontoApertura.caja-modal .product-modal-body,
#mdlCerrarCaja.caja-modal .product-modal-body {
  padding: 14px;
}

@media (max-width: 767.98px) {
  .caja-page .caja-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .caja-page .caja-hero-actions {
    margin-left: 0;
    width: 100%;
  }

  .caja-page #btnAbrirCerrarCaja,
  .caja-page #btnImprimirArqueo {
    flex: 1 1 180px;
  }

  .caja-page .caja-dashboard-grid > [class*="col-"] + [class*="col-"] {
    margin-top: 14px;
  }
}

@media (max-width: 575.98px) {
  .caja-page .caja-movement-card > .card-body > .row:first-child > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .caja-page .caja-movement-card > .card-body > .row:first-child > .col-2 {
    padding-top: 0;
  }

  .caja-page .caja-total-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .caja-modal .product-modal-header,
  .caja-modal .product-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .caja-modal .product-modal-actions,
  .caja-modal .product-btn {
    width: 100%;
  }
}

/* Login */
.login-pro-page {
  --login-ink: #0f172a;
  --login-muted: #63728a;
  --login-line: #d9e3ef;
  --login-teal: #0d8587;
  --login-blue: #2668df;
  --login-green: #24c675;
  background:
    linear-gradient(90deg, rgba(7, 22, 39, 0.94), rgba(5, 40, 57, 0.88) 48%, rgba(10, 116, 107, 0.74)),
    url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
  color: var(--login-ink);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-pro-page::before {
  background: rgba(5, 15, 28, 0.28);
  backdrop-filter: blur(5px);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 0;
}

.login-pro-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 34px 18px;
  position: relative;
  z-index: 1;
}

.login-pro-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(4, 18, 32, 0.36);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  max-width: 980px;
  min-height: 624px;
  overflow: hidden;
  width: 100%;
}

.login-pro-showcase {
  background:
    linear-gradient(145deg, rgba(7, 25, 43, 0.92), rgba(8, 52, 65, 0.78) 58%, rgba(13, 133, 127, 0.58)),
    url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 624px;
  padding: 24px 26px 26px;
  position: relative;
}

.login-pro-brand {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  display: flex;
  gap: 10px;
  padding: 10px 13px;
}

.login-pro-brand > span,
.login-pro-features i {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.login-pro-brand > span {
  background: linear-gradient(135deg, #2495ee, #0d8587);
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  height: 38px;
  width: 38px;
}

.login-pro-brand strong,
.login-pro-brand small {
  display: block;
  line-height: 1.15;
}

.login-pro-brand strong {
  font-size: 13px;
  font-weight: 900;
}

.login-pro-brand small {
  color: #dbeafe;
  font-size: 10px;
  font-weight: 800;
  margin-top: 4px;
}

.login-pro-copy {
  margin-top: auto;
}

.login-pro-pill,
.login-pro-form-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  line-height: 1;
  text-transform: uppercase;
}

.login-pro-pill {
  background: rgba(36, 198, 117, 0.22);
  border: 1px solid rgba(36, 198, 117, 0.3);
  color: #dcfce7;
  margin-bottom: 16px;
  padding: 8px 12px;
}

.login-pro-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 4.3vw, 50px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 520px;
}

.login-pro-copy h1 strong {
  color: #86efac;
  display: block;
  font-weight: 900;
}

.login-pro-copy p {
  color: #d9e7f2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 540px;
}

.login-pro-features {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
}

.login-pro-features article {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  min-height: 116px;
  padding: 14px 13px;
}

.login-pro-features i {
  background: rgba(24, 143, 190, 0.48);
  border-radius: 12px;
  color: #e0f2fe;
  height: 34px;
  margin-bottom: 12px;
  width: 34px;
}

.login-pro-features strong,
.login-pro-features span {
  display: block;
}

.login-pro-features strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.login-pro-features span {
  color: #dbeafe;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
}

.login-pro-status {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
}

.login-pro-status span {
  align-items: center;
  color: #e5f4ff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 7px;
}

.login-pro-status span:last-child {
  background: rgba(36, 198, 117, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
}

.login-pro-status .fa-circle {
  color: #bbf7d0;
  font-size: 9px;
}

.login-pro-form-area {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  padding: 36px 34px;
}

.login-pro-form {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  padding: 24px 24px 22px;
  position: relative;
  width: 100%;
}

.login-pro-form::before {
  background: linear-gradient(90deg, var(--login-blue), #13b7d8, var(--login-green));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.login-pro-form-pill {
  background: #e8fff5;
  border: 1px solid #c5f5df;
  color: #08766a;
  margin-bottom: 15px;
  padding: 8px 12px;
}

.login-pro-form h2 {
  color: var(--login-ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.login-pro-form > p {
  color: #667891;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  margin: 9px 0 22px;
}

.login-pro-field {
  margin-bottom: 15px;
}

.login-pro-field label {
  color: #344258;
  display: block;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.login-pro-input {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--login-line);
  border-radius: 15px;
  display: flex;
  min-height: 46px;
  padding: 0 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-pro-input:focus-within {
  background: #ffffff;
  border-color: #72bfe6;
  box-shadow: 0 0 0 4px rgba(38, 104, 223, 0.1);
}

.login-pro-input > i {
  color: #9aaac0;
  flex: 0 0 30px;
  font-size: 13px;
  text-align: center;
}

.login-pro-input input {
  background: transparent;
  border: 0;
  color: var(--login-ink);
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  outline: 0;
}

.login-pro-input input::placeholder {
  color: #95a5bb;
}

.login-pro-eye {
  align-items: center;
  background: #edf4fb;
  border: 0;
  border-radius: 999px;
  color: #6c819a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.login-pro-actions-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 3px 0 14px;
}

.login-pro-actions-row span,
.login-pro-actions-row a {
  align-items: center;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 5px;
}

.login-pro-actions-row span {
  color: #65758d;
}

.login-pro-actions-row span i {
  color: #18b86d;
}

.login-pro-actions-row a {
  color: #08766a !important;
  cursor: pointer;
  text-decoration: none !important;
}

.login-pro-submit.btn {
  align-items: center;
  background: linear-gradient(90deg, #0d8587, var(--login-blue)) !important;
  border: 0 !important;
  border-radius: 15px !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  color: #ffffff !important;
  display: inline-flex;
  font-size: 13px !important;
  font-weight: 900 !important;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  min-height: 44px;
  padding: 12px 18px !important;
  text-transform: uppercase;
  width: 100%;
}

.login-pro-submit.btn:hover {
  filter: brightness(1.05);
}

.login-pro-message {
  border-radius: 12px;
  display: none;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  margin: -3px 0 12px;
  padding: 10px 12px;
}

.login-pro-message.is-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.login-pro-message.is-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
}

.login-pro-note {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e0e8f2;
  border-radius: 15px;
  color: #62728a;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 10px;
  line-height: 1.45;
  margin-top: 17px;
  padding: 14px;
}

.login-pro-note i {
  align-items: center;
  background: #e8fff5;
  border-radius: 999px;
  color: #08766a;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  margin-top: 1px;
}

.login-pro-footer {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  margin-top: 15px;
  text-align: center;
}

.login-pro-page .modal {
  color: var(--login-ink);
  font-family: "Poppins", sans-serif;
  z-index: 1050;
}

.login-pro-page .modal-backdrop {
  z-index: 1040;
}

.login-pro-loader {
  align-items: center;
  background: rgba(6, 19, 36, 0.7);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 20px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 1030;
}

.login-pro-loader.is-active {
  opacity: 1;
  pointer-events: all;
}

.login-pro-loading .login-pro-shell {
  filter: blur(7px);
  transform: scale(0.992);
}

.login-pro-loader-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
  color: var(--login-ink);
  min-height: 164px;
  overflow: hidden;
  padding: 22px 28px 20px;
  position: relative;
  text-align: center;
  width: min(290px, 100%);
}

.login-pro-loader-card::before {
  background: linear-gradient(90deg, var(--login-blue), #16bfd9);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.login-pro-spinner {
  display: inline-grid;
  height: 62px;
  margin: 0 auto 10px;
  place-items: center;
  position: relative;
  width: 62px;
}

.login-pro-spinner::before,
.login-pro-spinner::after {
  border-radius: 999px;
  content: "";
  inset: 0;
  position: absolute;
}

.login-pro-spinner::before {
  border: 3px solid #e4eaf2;
}

.login-pro-spinner::after {
  animation: login-pro-spin 0.9s linear infinite;
  border: 3px solid transparent;
  border-left-color: var(--login-teal);
  border-top-color: var(--login-blue);
}

.login-pro-spinner span {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #baf1d6;
  border-radius: 999px;
  color: var(--login-teal);
  display: inline-flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
  z-index: 1;
}

.login-pro-loader-card strong {
  color: var(--login-ink);
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 4px;
}

.login-pro-loader-card p {
  color: #60718a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  margin: 8px auto 0;
  max-width: 230px;
}

.reset-password-modal {
  --reset-blue-dark: #214d70;
  --reset-ink: #0d1728;
  --reset-line: #d9e2ef;
  --reset-soft: #f6f8fb;
  --reset-green: #20bd6f;
  --reset-red: #ef4444;
}

.reset-password-modal .modal-dialog {
  max-width: 505px;
}

.reset-password-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 22, 47, 0.32);
  overflow: hidden;
}

.reset-password-header {
  align-items: center;
  background: linear-gradient(90deg, var(--reset-blue-dark) 0%, #357ed7 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 14px 14px 20px;
}

.reset-password-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.reset-password-title > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.reset-password-title h5 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.reset-password-title p {
  color: #eaf6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 0;
}

.reset-password-close {
  align-items: center;
  background: var(--reset-red);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.reset-password-body {
  background: var(--reset-soft);
  padding: 12px 14px 0;
}

.reset-password-card {
  background: #ffffff;
  border: 1px solid var(--reset-line);
  border-radius: 8px;
  padding: 15px 14px 18px;
}

.reset-password-card-header {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  padding-bottom: 10px;
}

.reset-password-card-header h6 {
  align-items: center;
  color: var(--reset-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
  margin: 0;
}

.reset-password-card-header span {
  color: #93a2b7;
  font-size: 11px;
  font-weight: 900;
}

.reset-password-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reset-password-field-full {
  grid-column: 1 / -1;
}

.reset-password-field label {
  color: #32445d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.reset-password-field label span {
  color: var(--reset-red);
}

.reset-password-input {
  position: relative;
}

.reset-password-input > i {
  color: #9aaac0;
  font-size: 13px;
  left: 13px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.reset-password-input .form-control {
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--reset-ink);
  font-size: 12px !important;
  font-weight: 800;
  height: 39px !important;
  min-height: 39px;
  padding-left: 33px !important;
}

.reset-password-input .form-control:focus {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

.reset-password-footer {
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  margin: 14px -14px 0;
  padding: 18px 20px 16px;
}

.reset-password-footer > span {
  align-items: center;
  color: #51637d;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  margin-bottom: 14px;
}

.reset-password-footer > span i {
  color: #0f766e;
}

.reset-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.reset-password-btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  min-width: 116px;
  padding: 8px 16px;
  text-transform: uppercase;
}

.reset-password-btn-cancel {
  background: #ffffff;
  border: 1px solid #6b7280;
  color: #5b6678;
}

.reset-password-btn-save {
  background: var(--reset-green);
  border: 1px solid var(--reset-green);
  color: #ffffff;
}

@keyframes login-pro-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .login-pro-card {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .login-pro-showcase {
    min-height: auto;
  }

  .login-pro-form-area {
    padding: 26px;
  }
}

@media (max-width: 575.98px) {
  .reset-password-modal .modal-dialog {
    margin: 8px;
  }

  .reset-password-header {
    align-items: flex-start;
  }

  .reset-password-grid {
    grid-template-columns: 1fr;
  }

  .reset-password-actions,
  .reset-password-btn {
    width: 100%;
  }

  .login-pro-shell {
    align-items: stretch;
    padding: 14px;
  }

  .login-pro-card {
    border-radius: 18px;
  }

  .login-pro-showcase,
  .login-pro-form-area {
    padding: 20px;
  }

  .login-pro-features {
    grid-template-columns: 1fr;
  }

  .login-pro-status,
  .login-pro-actions-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-pro-form {
    padding: 22px 18px 20px;
  }
}

/* Modal de cierre de venta: mismo patrón visual del registro de productos. */
#mdlVenta.pos-sale-modal .modal-dialog {
  max-width: 980px;
}

#mdlVenta.pos-sale-modal .product-modal-body {
  padding: 12px 14px;
}

#mdlVenta.pos-sale-modal .product-form-main {
  gap: 10px;
}

#mdlVenta.pos-sale-modal .pos-sale-payment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mdlVenta.pos-sale-modal .pos-document-search > i {
  cursor: pointer;
}

#mdlVenta.pos-sale-modal .product-modal-footer {
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 767.98px) {
  #mdlVenta.pos-sale-modal .pos-sale-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #mdlVenta.pos-sale-modal .modal-dialog {
    margin: 8px;
  }

  #mdlVenta.pos-sale-modal .product-modal-header {
    align-items: center;
    flex-direction: row;
  }

  #mdlVenta.pos-sale-modal .product-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #mdlVenta.pos-sale-modal .product-modal-actions,
  #mdlVenta.pos-sale-modal .product-btn {
    width: 100%;
  }

  #mdlVenta.pos-sale-modal .pos-sale-payment-grid {
    grid-template-columns: 1fr;
  }
}

.app-page .container-fluid {
  max-width: 100%;
}

.app-page-header {
  padding: 14px 0 12px !important;
}

.app-title-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.app-title-block {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.app-title-icon,
.app-hero-icon,
.app-section-title > span {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.app-title-icon {
  background: #0d3b4c;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 47, 73, 0.16);
  color: #ffffff;
  height: 44px;
  width: 44px;
}

.app-title-block h2,
.app-hero-copy h3,
.app-section-title h3 {
  color: var(--app-ink);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.app-title-block h2 {
  font-size: 25px !important;
  line-height: 1.1;
}

.app-title-block p,
.app-hero-copy p,
.app-section-title p {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 0;
}

.app-breadcrumb {
  align-items: center;
  background: transparent;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.app-breadcrumb a {
  color: #006bff;
  font-weight: 800;
}

.app-page .content {
  padding-bottom: 18px;
}

.app-hero-panel {
  align-items: center;
  background: linear-gradient(120deg, #0d1d34 0%, #0b5965 100%);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(7, 22, 47, 0.12);
  color: #ffffff;
  display: flex;
  gap: 18px;
  margin: 16px 0 14px;
  min-height: 112px;
  padding: 18px 26px;
}

.app-hero-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  height: 58px;
  width: 58px;
}

.app-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.app-hero-copy h3,
.app-hero-copy p {
  color: #ffffff;
}

.app-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.app-pill,
.app-soft-badge,
.app-hero-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.app-pill-dark {
  background: rgba(8, 22, 47, 0.62);
  color: #ffffff;
}

.app-pill-success {
  background: rgba(13, 148, 136, 0.24);
  color: #ffffff;
}

.app-pill-warning {
  background: rgba(245, 158, 11, 0.24);
  color: #fff4ce;
}

.app-hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.app-stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.app-stat-card {
  align-items: center;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 22, 47, 0.07);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px;
}

.app-stat-card span {
  color: #536783;
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-stat-card strong {
  color: var(--app-ink);
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-top: 7px;
}

.app-stat-card > i {
  align-items: center;
  background: #dffbf7;
  border: 1px solid #b8eee6;
  border-radius: 8px;
  color: var(--app-teal);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.app-stat-warning > i {
  background: #fff7df;
  border-color: #ffe3a4;
  color: var(--app-amber);
}

.app-panel.card {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(7, 22, 47, 0.08) !important;
  overflow: hidden;
}

.app-panel .card-body {
  position: relative;
  padding: 20px 16px 14px !important;
}

.app-page .titulo-fieldset {
  background: transparent !important;
  color: var(--app-ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  left: 16px;
  letter-spacing: 0;
  line-height: 1.1;
  padding: 0 !important;
  position: relative;
  text-decoration: none;
  text-transform: none;
  top: 0;
}

.app-page .titulo-fieldset::before {
  align-items: center;
  background: #dffbf7;
  border: 1px solid #b8eee6;
  border-radius: 8px;
  color: var(--app-teal);
  content: "\f46d";
  display: inline-flex;
  font-family: "Font Awesome 5 Free";
  font-size: 14px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  margin-right: 10px;
  width: 36px;
}

.app-search-panel .titulo-fieldset::before {
  background: transparent;
  border: 0;
  color: var(--app-ink);
  content: "\f0b0";
  height: auto;
  width: auto;
}

.app-search-panel .row.my-2 {
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 16px 0 0 !important;
  padding: 14px 12px 8px;
}

.app-page label {
  color: var(--app-ink) !important;
  font-size: 11px !important;
  font-weight: 900;
  margin-bottom: 6px !important;
  text-transform: uppercase;
}

.app-page .form-control,
.app-page .form-select,
.app-page .select2-container--default .select2-selection--single {
  background-color: #ffffff !important;
  border: 1px solid #cfdbea !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--app-ink);
  min-height: 38px;
}

.app-page .form-control:focus,
.app-page .form-select:focus,
.app-page input[type="search"]:focus {
  border-color: var(--app-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.app-clear-button {
  background: #ffffff !important;
  border: 1px solid var(--app-red) !important;
  color: var(--app-red) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  min-height: 38px;
  text-transform: uppercase;
}

.app-table-panel .card-body {
  padding-top: 24px !important;
  padding-bottom: 16px !important;
}

.app-panel-action {
  background: var(--app-teal) !important;
  border: 1px solid var(--app-teal) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 24px rgba(8, 118, 124, 0.18);
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  min-height: 38px;
  padding: 8px 14px !important;
  position: absolute;
  right: 16px;
  top: 14px;
}

.app-panel-action:hover {
  background: var(--app-teal-dark) !important;
  border-color: var(--app-teal-dark) !important;
  color: #ffffff !important;
}

.app-table-panel .row.my-2 {
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 18px 0 0 !important;
  padding: 12px 10px;
}

.app-products-table {
  border-collapse: separate !important;
  border-spacing: 0 9px !important;
  margin: 0 !important;
  width: 100% !important;
}

.app-products-table thead th {
  background: #f2f6fb !important;
  border: 0 !important;
  color: #526780 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0;
  padding: 13px 10px !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-products-table tbody tr {
  box-shadow: 0 7px 18px rgba(7, 22, 47, 0.08);
}

.app-products-table tbody td {
  background: #ffffff;
  border-bottom: 1px solid #e2eaf4;
  border-top: 1px solid #e2eaf4;
  color: var(--app-ink);
  font-size: 13px !important;
  font-weight: 800;
  padding: 10px 9px !important;
  vertical-align: middle !important;
}

.app-products-table tbody td:first-child {
  border-left: 1px solid #e2eaf4;
  border-radius: 8px 0 0 8px;
}

.app-products-table tbody td:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid #e2eaf4;
}

.app-products-table tbody tr:hover td {
  background: #f8fbff;
}

.categorias-page .titulo-fieldset::before {
  content: "\f5fd";
}

.clientes-page .titulo-fieldset::before {
  content: "\f0c0";
}

.proveedores-page .titulo-fieldset::before {
  content: "\f0d1";
}

.configuraciones-page .titulo-fieldset::before {
  content: "\f085";
}

.app-category-info {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 220px;
  text-align: left;
}

.app-category-info > span {
  align-items: center;
  background: #0d3b4c;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.app-category-info strong {
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-date-cell {
  align-items: center;
  color: #536783;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  white-space: nowrap;
}

.app-date-cell i {
  color: var(--app-teal);
}

.app-categories-table thead th:nth-child(n+2),
.app-categories-table tbody td:nth-child(n+2) {
  text-align: center;
}

.app-clientes-table thead th:nth-child(n+2),
.app-clientes-table tbody td:nth-child(n+2) {
  text-align: center;
}

.app-clientes-table {
  table-layout: fixed;
}

.app-clientes-table th:nth-child(1),
.app-clientes-table td:nth-child(1) {
  width: 8%;
}

.app-clientes-table th:nth-child(2),
.app-clientes-table td:nth-child(2) {
  width: 14%;
}

.app-clientes-table th:nth-child(3),
.app-clientes-table td:nth-child(3) {
  width: 16%;
}

.app-clientes-table th:nth-child(4),
.app-clientes-table td:nth-child(4) {
  width: 40%;
}

.app-clientes-table th:nth-child(5),
.app-clientes-table td:nth-child(5) {
  width: 12%;
}

.app-clientes-table th:nth-child(6),
.app-clientes-table td:nth-child(6) {
  width: 10%;
}

.app-proveedores-table {
  table-layout: fixed;
}

.app-proveedores-table th:nth-child(1),
.app-proveedores-table td:nth-child(1) {
  width: 8%;
}

.app-proveedores-table th:nth-child(2),
.app-proveedores-table td:nth-child(2) {
  width: 14%;
}

.app-proveedores-table th:nth-child(3),
.app-proveedores-table td:nth-child(3) {
  width: 16%;
}

.app-proveedores-table th:nth-child(4),
.app-proveedores-table td:nth-child(4) {
  width: 40%;
}

.app-proveedores-table th:nth-child(5),
.app-proveedores-table td:nth-child(5) {
  width: 12%;
}

.app-proveedores-table th:nth-child(6),
.app-proveedores-table td:nth-child(6) {
  width: 10%;
}

.app-clientes-table tbody td {
  overflow: hidden;
}

.app-series-table {
  table-layout: fixed;
}

.app-series-table thead th:nth-child(n+2),
.app-series-table tbody td:nth-child(n+2) {
  text-align: center;
}

.app-series-table th:nth-child(1),
.app-series-table td:nth-child(1) {
  width: 8%;
}

.app-series-table th:nth-child(2),
.app-series-table td:nth-child(2) {
  width: 32%;
}

.app-series-table th:nth-child(3),
.app-series-table td:nth-child(3) {
  width: 16%;
}

.app-series-table th:nth-child(4),
.app-series-table td:nth-child(4) {
  width: 18%;
}

.app-series-table th:nth-child(5),
.app-series-table td:nth-child(5) {
  width: 16%;
}

.app-series-table th:nth-child(6),
.app-series-table td:nth-child(6) {
  width: 10%;
}

.app-series-table tbody td {
  overflow: hidden;
}

/* Listado de comprobantes electronicos */
.comprobantes-page > .content > .row {
  margin-left: 0;
  margin-right: 0;
  padding: 0 7.5px;
}

.comprobantes-page .comprobantes-table-panel > .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--app-line);
}

.comprobantes-page .comprobantes-table-panel > .card-body {
  background: #ffffff;
  padding: 12px 16px 16px !important;
}

.comprobantes-page .comprobantes-section-title {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 14px 16px 6px;
}

.comprobantes-page .comprobantes-section-title > span {
  background: #dffbf7;
  border: 1px solid #b8eee6;
  border-radius: 8px;
  color: var(--app-teal);
  height: 36px;
  width: 36px;
}

.comprobantes-page .comprobantes-section-title h3 {
  font-size: 18px;
}

.comprobantes-page .app-config-tabs {
  border-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}

.comprobantes-page .app-config-tabs .nav-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
}

.comprobantes-page .app-config-tabs .nav-link:not(.active) {
  background: #edf2f7 !important;
  border: 1px solid #d4dfeb !important;
  color: #344b65 !important;
}

.comprobantes-page .app-config-tabs .nav-link:not(.active) i {
  color: #60758a !important;
}

.comprobantes-page .app-config-tabs .nav-link:not(.active):hover,
.comprobantes-page .app-config-tabs .nav-link:not(.active):focus {
  background: #e2f6f4 !important;
  border-color: #a9ded8 !important;
  color: var(--app-teal) !important;
}

.comprobantes-page .app-config-tabs .nav-link:not(.active):hover i,
.comprobantes-page .app-config-tabs .nav-link:not(.active):focus i {
  color: var(--app-teal) !important;
}

.comprobantes-page .app-config-tabs .nav-link.active {
  background: var(--app-teal) !important;
  border: 1px solid var(--app-teal) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(8, 118, 124, 0.18);
}

.comprobantes-page .app-config-tabs .nav-link.active i {
  color: #ffffff !important;
}

.comprobantes-page .tab-content > .tab-pane > .row {
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 0 !important;
  padding: 12px 10px;
}

.comprobantes-page .app-comprobantes-table {
  table-layout: auto;
}

.comprobantes-page .app-comprobantes-table thead th {
  font-size: 10px !important;
  white-space: normal;
}

.comprobantes-page .app-comprobantes-table tbody td {
  background: #ffffff !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.comprobantes-page .app-comprobantes-table tbody tr:hover td {
  background: #f8fbff !important;
}

.comprobantes-page .app-comprobantes-table th:first-child,
.comprobantes-page .app-comprobantes-table td:first-child {
  min-width: 52px;
  width: 52px;
}

.comprobantes-page .app-comprobantes-table .btn-group > .dropdown-toggle {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--app-teal) !important;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.comprobantes-page .app-comprobantes-table .dropdown-menu {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 22, 47, 0.16);
  padding: 6px;
}

.comprobantes-page .app-comprobantes-table .dropdown-item {
  border-radius: 6px;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
}

.comprobantes-page .app-comprobantes-table .rounded-pill {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px !important;
  white-space: nowrap;
}

.comprobantes-page .app-comprobantes-table .bg-success {
  background: var(--app-mint) !important;
  border: 1px solid #a8ebc4;
  color: var(--app-mint-text) !important;
}

.comprobantes-page .app-comprobantes-table .bg-danger {
  background: #ffe4e8 !important;
  border: 1px solid #ffc0ca;
  color: #b7192d !important;
}

.comprobantes-page .app-comprobantes-table .bg-secondary {
  background: #eef2f7 !important;
  border: 1px solid #d7e1ee;
  color: #526780 !important;
}

.comprobantes-page .app-comprobantes-table .bg-warning {
  background: #fff4d6 !important;
  border: 1px solid #f5d684;
  color: #9a5b00 !important;
}

.comprobante-correo-modal .modal-dialog {
  max-width: 620px;
}

@media (max-width: 767.98px) {
  .comprobantes-page .app-config-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comprobantes-page .app-config-tabs .nav-link {
    justify-content: center;
    white-space: normal;
  }
}

/* Emision de boleta */
.venta-boleta-page {
  --product-blue: #2f6ea8;
  --product-blue-dark: #225b91;
  --product-ink: #07162f;
  --product-muted: #7b8ba3;
  --product-line: #d8e2ef;
  --product-soft: #f5f8fc;
  --product-teal: #08767c;
  --product-green: #21bd77;
  --product-red: #ef3d4f;
}

.venta-boleta-page > .content > .row {
  margin-left: 0;
  margin-right: 0;
}

.venta-boleta-page #frm-datos-venta {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.venta-boleta-page #frm-datos-venta > .row > .col-12.col-lg-6.text-center {
  margin-bottom: 0 !important;
}

.venta-boleta-page #frm-datos-venta > .row > .col-12.col-lg-6.text-center .form-group {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--app-line);
  min-height: 48px;
  padding: 8px 12px;
}

.venta-boleta-page #frm-datos-venta > .row > .col-12.col-lg-6.text-center:first-child .form-group {
  border-radius: 8px 0 0 8px;
}

.venta-boleta-page #frm-datos-venta > .row > .col-12.col-lg-6.text-center:nth-child(2) .form-group {
  border-radius: 0 8px 8px 0;
}

.venta-boleta-page .venta-form-card,
.venta-boleta-page .venta-productos-card,
.venta-boleta-page .venta-resumen-card {
  background: #ffffff;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  box-shadow: none !important;
  margin-top: 14px !important;
  padding: 0;
}

.venta-boleta-page .venta-form-card > .card-body,
.venta-boleta-page .venta-productos-card > .card-body,
.venta-boleta-page .venta-resumen-card > .card-body {
  padding: 13px 14px !important;
}

.venta-boleta-page .venta-form-card .row.my-1,
.venta-boleta-page .venta-productos-card .row.my-1,
.venta-boleta-page .venta-resumen-card .row.my-1 {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 -6px !important;
  padding: 0;
}

.venta-boleta-page .product-form-card-header {
  margin-bottom: 12px;
}

.venta-boleta-page label {
  color: #32445d !important;
  display: block;
  font-size: 11px !important;
  font-weight: 900;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.venta-boleta-page .form-control,
.venta-boleta-page .form-select,
.venta-boleta-page .select2-container--default .select2-selection--single {
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--product-ink);
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding: 7px 11px !important;
}

.venta-boleta-page .venta-input-icon > .form-control,
.venta-boleta-page .venta-input-icon > .form-select {
  padding-left: 31px !important;
}

.venta-boleta-page .venta-input-icon > i {
  color: #9aaac0;
  font-size: 12px;
  left: 11px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.venta-boleta-page .form-control::placeholder {
  color: #9aaac0;
  font-weight: 700;
}

.venta-boleta-page .form-control:focus,
.venta-boleta-page .form-select:focus,
.venta-boleta-page .select2-container--focus .select2-selection--single {
  border-color: var(--product-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.venta-boleta-page .form-control[readonly],
.venta-boleta-page .form-select[readonly] {
  background: #eef3f8 !important;
  color: #60758a;
}

.venta-boleta-page .select2-container--default .select2-selection--single {
  align-items: center;
  display: flex;
}

.venta-boleta-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--product-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 36px;
  padding-left: 0;
  padding-right: 24px;
}

.venta-boleta-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 6px;
}

.venta-boleta-page .input-group-text {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  color: #9aaac0 !important;
  height: 36px;
  justify-content: center;
  left: 1px;
  min-width: 36px;
  padding: 0 10px;
  position: absolute;
  top: 1px;
  z-index: 4;
}

.venta-boleta-page .input-group-text i {
  color: #9aaac0 !important;
  margin: 0 !important;
}

.venta-boleta-page .input-group > .form-control {
  border-radius: 8px !important;
  padding-left: 36px !important;
}

.venta-boleta-page .venta-productos-table {
  max-width: 100% !important;
  table-layout: fixed;
  width: 100% !important;
}

.venta-boleta-page .venta-productos-card,
.venta-boleta-page .venta-productos-card .card-body,
.venta-boleta-page .venta-productos-card .row,
.venta-boleta-page .venta-productos-card [class*="col-"] {
  min-width: 0;
}

.venta-boleta-page .venta-productos-card .dataTables_wrapper {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.venta-boleta-page .venta-productos-table thead th,
.venta-boleta-page .venta-productos-table tbody td {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venta-boleta-page .venta-productos-table tbody td:nth-child(3) {
  white-space: normal;
  word-break: break-word;
}

.venta-boleta-page .venta-productos-table tbody td:last-child {
  overflow: visible;
  text-overflow: clip;
}

.venta-boleta-page .venta-productos-table tbody td {
  background: #ffffff !important;
}

.venta-boleta-page .venta-productos-table .form-control {
  max-width: 100%;
  min-height: 32px;
  text-align: center;
  width: 100% !important;
}

.venta-boleta-page .btnEliminarproducto {
  align-items: center;
  background: #ffe4e8;
  border-radius: 7px;
  color: var(--app-red) !important;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.venta-boleta-page .venta-resumen-card .row.my-1 > div {
  border-bottom: 1px solid #dce5ef;
  color: #536783;
  font-size: 12px;
  padding-bottom: 9px;
  padding-top: 9px;
}

.venta-boleta-page .venta-resumen-card .row.my-1 > div:last-child {
  border-bottom: 0;
  color: var(--app-ink);
  font-size: 18px;
}

.venta-boleta-page .product-btn-save {
  background: #21bd77 !important;
  border: 1px solid #21bd77 !important;
  color: #ffffff !important;
}

.venta-boleta-page .product-btn-cancel {
  background: #ffffff !important;
  border: 1px solid #6b7280 !important;
  color: #5b6678 !important;
}

.venta-boleta-page #totalVenta {
  background: #0d3b4c !important;
  border-radius: 8px !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  .venta-boleta-page #frm-datos-venta > .row > .col-12.col-lg-6.text-center .form-group {
    border-radius: 8px !important;
    margin-bottom: 8px;
  }
}

.app-client-number,
.app-client-document {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  max-width: 100%;
  padding: 7px 9px;
  white-space: nowrap;
}

.app-client-number {
  background: #e7fbf2;
  border: 1px solid #bcefd8;
  color: #087f4f;
}

.app-client-document {
  background: #e8f8fc;
  border: 1px solid #c5edf4;
  color: #0b5965;
}

.app-client-document-number {
  background: #f2f6fb;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  color: #36516f;
  display: inline-block;
  font-size: 11px !important;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-client-info {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.app-client-info > span {
  align-items: center;
  background: #0d3b4c;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.app-client-info > div {
  min-width: 0;
}

.app-client-info strong,
.app-client-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-client-info strong {
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 900;
}

.app-client-info small {
  color: #71819a;
  font-size: 10px;
  font-weight: 800;
  margin-top: 4px;
}

.app-client-info small i {
  color: var(--app-teal);
}

.app-client-info small b {
  color: #a1aec0;
  margin: 0 3px;
}

.app-config-tabs {
  border-bottom: 1px solid var(--app-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
}

.app-config-tabs .nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--app-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  padding: 10px 12px;
}

.app-config-tabs .nav-link:hover {
  background: #f5f8fc;
  color: var(--app-teal);
}

.app-config-tabs .nav-link.active {
  background: #ffffff;
  border-color: var(--app-line) var(--app-line) #ffffff;
  color: var(--app-teal);
}

.app-config-tab-content {
  background: #f5f8fc;
  border: 1px solid var(--app-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 14px 12px 8px;
}

.config-table-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 2px 10px;
}

.config-table-heading h3 {
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.config-table-heading h3 i {
  color: var(--app-teal);
  margin-right: 6px;
}

.config-table-heading span {
  color: #93a2b7;
  font-size: 11px;
  font-weight: 900;
}

.app-config-table {
  table-layout: fixed;
}

.app-config-table th:nth-child(1),
.app-config-table td:nth-child(1) {
  width: 15%;
}

.app-config-table th:nth-child(2),
.app-config-table td:nth-child(2) {
  width: 12%;
}

.app-config-table th:nth-child(3),
.app-config-table td:nth-child(3) {
  width: 29%;
}

.app-config-table th:nth-child(4),
.app-config-table td:nth-child(4) {
  width: 32%;
}

.app-config-table th:nth-child(5),
.app-config-table td:nth-child(5) {
  width: 12%;
}

.app-config-table tbody td {
  overflow: hidden;
}

.app-config-code,
.app-config-ordinal,
.app-config-key,
.app-config-value {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-config-code {
  background: #e7fbf2;
  border: 1px solid #bcefd8;
  color: #087f4f;
}

.app-config-ordinal {
  background: #f2f6fb;
  border: 1px solid #dce5f0;
  color: #536783;
}

.app-config-key {
  color: var(--app-ink);
}

.app-config-key i {
  color: var(--app-teal);
}

.app-config-value {
  background: #e8f8fc;
  border: 1px solid #c5edf4;
  color: #0b5965;
}

.app-cliente-info {
  min-width: 250px;
}

.app-cliente-info strong {
  overflow-wrap: anywhere;
}

.app-critical-stock-row td {
  background: #f1f4f1 !important;
}

.app-product-image-wrap {
  align-items: center;
  background: #d2d5d9;
  border-radius: 8px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.app-product-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.app-product-info {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 230px;
  text-align: left;
}

.app-product-icon {
  align-items: center;
  background: #0d3b4c;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.app-product-info strong {
  color: #001333;
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.app-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.app-product-tags span,
.app-price-badge,
.app-stock-badge,
.app-status-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.app-product-tags span {
  background: #e9f7fb;
  border: 1px solid #ccebf3;
  color: #0b5965;
}

.app-category-text {
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
}

.app-code-cell {
  color: var(--app-ink);
  font-size: 14px !important;
  font-weight: 900 !important;
}

.app-price-badge,
.app-stock-badge,
.app-status-active {
  background: var(--app-mint);
  border: 1px solid #a8ebc4;
  color: var(--app-mint-text);
}

.app-status-inactive {
  background: #ffe4e8;
  border: 1px solid #ffc0ca;
  color: #b7192d;
}

.app-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}

.app-row-action {
  align-items: center;
  border: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  font-size: 12px !important;
  height: 30px;
  justify-content: center;
  padding: 0 !important;
  width: 30px;
}

.app-row-action-text {
  gap: 6px;
  min-width: 86px;
  padding: 0 10px !important;
  text-transform: uppercase;
  white-space: nowrap;
  width: auto;
}

.app-row-action-edit {
  background: #dceafe !important;
  color: var(--app-blue) !important;
}

.app-row-action-view {
  background: var(--app-sky) !important;
  color: #036477 !important;
}

.app-row-action-danger {
  background: #ffd9df !important;
  color: var(--app-red) !important;
}

.app-row-action-success {
  background: var(--app-mint) !important;
  color: var(--app-mint-text) !important;
}

.app-row-action-stock-in {
  background: #d9fbe8 !important;
  color: #087f4f !important;
}

.app-row-action-stock-out {
  background: #fff0c2 !important;
  color: #a35f00 !important;
}

.app-datatable-toolbar,
.app-datatable-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.app-datatable-toolbar {
  background: #ffffff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.app-datatable-toolbar .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-datatable-toolbar .dataTables_filter {
  margin-left: auto;
}

.app-page .dt-button,
.app-page .buttons-page-length {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 8px 12px !important;
}

.app-page .app-dt-button-primary {
  background: var(--app-teal) !important;
  border-color: var(--app-teal) !important;
  color: #ffffff !important;
}

.app-page .app-dt-button-muted,
.app-page .buttons-page-length {
  background: #ffffff !important;
  color: var(--app-ink) !important;
}

.app-page .app-dt-button-info {
  background: #e8f4ff !important;
  color: #0b5ca8 !important;
}

.app-page .app-dt-button-warning {
  background: #fff4d6 !important;
  color: #915c00 !important;
}

.app-page input[type="search"] {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
  min-height: 36px;
}

.app-datatable-footer {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  padding-top: 8px;
}

.app-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  color: var(--app-ink) !important;
  font-weight: 900;
  padding: 5px 10px !important;
}

.app-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.app-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--app-teal) !important;
  border-color: var(--app-teal) !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  .app-title-row,
  .app-hero-panel,
  .app-datatable-toolbar,
  .app-datatable-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .app-hero-badge {
    align-self: flex-start;
  }

  .app-stats-grid {
    grid-template-columns: 1fr;
  }

  .app-datatable-toolbar .dataTables_filter {
    margin-left: 0;
    width: 100%;
  }

  .app-datatable-toolbar .dataTables_filter input {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .app-title-block {
    align-items: flex-start;
  }

  .app-title-block h2 {
    font-size: 20px !important;
  }

  .app-hero-panel {
    padding: 16px;
  }

  .app-product-info {
    min-width: 180px;
  }

  .app-panel-action {
    margin-top: 12px;
    position: static;
    width: 100%;
  }
}

/* Catalogos protegidos: consulta y visualizacion sin acciones */
.catalogo-page .app-table-panel {
  overflow: hidden;
}

.catalogo-page .app-table-panel-header {
  background: #ffffff !important;
  border-bottom: 1px solid #dce5ee;
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.catalogo-page .app-table-panel.card > .card-header {
  background: #ffffff !important;
  color: var(--app-ink) !important;
}

.catalogo-page .app-table-panel .card-body {
  background: #ffffff !important;
}

.catalogo-page .app-products-table thead th {
  background: #f2f6fb !important;
  color: #526780 !important;
}

.catalogo-page .app-products-table tbody td {
  background: #ffffff !important;
}

.catalogo-page .app-products-table tbody tr:hover td {
  background: #f8fbff !important;
}

.catalogo-page .app-table-panel-header > div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.catalogo-page .app-table-panel-header h3 {
  color: #10243a;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.catalogo-page .app-table-panel-header p {
  color: #60758a;
  font-size: 10px;
  margin: 2px 0 0;
}

.catalogo-page .app-section-icon {
  align-items: center;
  background: #e9faf5;
  border: 1px solid #c9eee1;
  border-radius: 9px;
  color: #08767c;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.catalogo-page .app-table-panel-header {
  align-items: center;
}

.catalogo-page .app-readonly-badge {
  align-items: center;
  background: #edf8f7;
  border: 1px solid #c8ece7;
  border-radius: 999px;
  color: #08767c;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  padding: 7px 11px;
  white-space: nowrap;
}

.catalogo-page .app-table-panel .app-readonly-badge {
  position: absolute;
  right: 16px;
  top: 14px;
}

.catalogo-page .app-readonly-table {
  table-layout: fixed;
  width: 100% !important;
}

.catalogo-page .app-datatable-toolbar {
  background: #f6f9fc;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 0 0 12px;
  min-height: 54px;
  padding: 10px 12px;
}

.catalogo-page .app-datatable-toolbar .dataTables_length,
.catalogo-page .app-datatable-toolbar .dataTables_filter {
  align-items: center;
  color: var(--app-ink);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 6px;
  margin: 0;
  text-transform: uppercase;
}

.catalogo-page .app-datatable-toolbar .dataTables_length select {
  background: #ffffff;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 800;
  min-height: 34px;
  padding: 5px 25px 5px 9px;
}

.catalogo-page .app-datatable-toolbar .dataTables_filter input {
  background: #ffffff;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  color: var(--app-ink);
  font-size: 11px;
  font-weight: 700;
  min-height: 34px;
  margin-left: 0;
  padding: 6px 10px;
}

.catalogo-page .app-datatable-footer {
  border-top: 1px solid #e4ebf3;
  color: #60758a;
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 12px;
}

.catalogo-page .app-readonly-table th,
.catalogo-page .app-readonly-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.catalogo-page .app-readonly-table th:nth-child(1),
.catalogo-page .app-readonly-table td:nth-child(1) {
  width: 18%;
}

.catalogo-page .app-readonly-table th:nth-child(2),
.catalogo-page .app-readonly-table td:nth-child(2) {
  width: 42%;
}

.catalogo-page .app-readonly-table th:last-child,
.catalogo-page .app-readonly-table td:last-child {
  width: 20%;
}

.catalogo-page .app-code-pill,
.catalogo-page .app-info-pill,
.catalogo-page .app-money-pill {
  align-items: center;
  background: #eef8f8;
  border: 1px solid #ccebed;
  border-radius: 999px;
  color: #075f6b;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalogo-page .app-code-pill-blue {
  background: #edf4ff;
  border-color: #d0e0fa;
  color: #185cc0;
}

.catalogo-page .app-info-pill {
  background: #f3f6fb;
  border-color: #dce4ef;
  color: #38516b;
}

.catalogo-page .app-money-pill {
  background: #e9faf2;
  border-color: #bcefd1;
  color: #08794f;
}

.catalogo-page .app-primary-cell,
.catalogo-page .app-secondary-cell {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalogo-page .app-primary-cell {
  color: #10243a;
}

.catalogo-page .app-primary-cell i,
.catalogo-page .app-secondary-cell i {
  color: #08767c;
}

.catalogo-page .app-secondary-cell {
  color: #3c5269;
  font-weight: 700;
}

.catalogo-page .app-readonly-table tbody tr {
  cursor: default;
}

@media (max-width: 767.98px) {
  .catalogo-page .app-table-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .catalogo-page .app-readonly-badge {
    align-self: flex-start;
  }

  .catalogo-page .app-readonly-table th,
  .catalogo-page .app-readonly-table td {
    font-size: 10px;
  }
}

.main-sidebar.aside-pro {
  --aside-bg-1: #071827;
  --aside-bg-2: #092235;
  --aside-bg-3: #0f172a;
  --aside-text: #dbeafe;
  --aside-muted: #8fb3c7;
  --aside-line: rgba(148, 163, 184, 0.18);
  --aside-soft: rgba(255, 255, 255, 0.09);
  --aside-active: #0ea5e9;
  --aside-green: #22c55e;
  background:
    radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.22), transparent 30%),
    radial-gradient(circle at 100% 16%, rgba(34, 197, 94, 0.16), transparent 28%),
    linear-gradient(180deg, var(--aside-bg-1) 0%, var(--aside-bg-2) 42%, var(--aside-bg-3) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 28px rgba(2, 6, 23, 0.24) !important;
  overflow: hidden;
}

.main-sidebar.aside-pro::before {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6, #22c55e);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.aside-pro .sidebar {
  box-sizing: border-box;
  height: calc(100% - (3.5rem + 1px)) !important;
  max-height: calc(100vh - 3.5rem - 1px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 9px 14px;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  scrollbar-width: thin;
}

.aside-pro .sidebar::-webkit-scrollbar {
  width: 6px;
}

.aside-pro .sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.aside-pro .sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}

.aside-pro .aside-brand-card {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
  color: #ffffff !important;
  display: flex;
  gap: 10px;
  margin: 8px 0 14px;
  min-height: 66px;
  overflow: hidden;
  padding: 10px 11px;
  text-decoration: none !important;
}

.aside-pro .aside-brand-card:hover {
  border-color: rgba(34, 197, 94, 0.34);
  color: #ffffff !important;
}

.aside-pro .aside-brand-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.aside-pro .aside-brand-logo img {
  border-radius: 8px !important;
  height: 100% !important;
  margin: 0 !important;
  max-height: none !important;
  object-fit: cover;
  opacity: 1 !important;
  width: 100% !important;
}

.aside-pro .aside-brand-info {
  display: block;
  flex: 1 1 auto;
  line-height: 1.1;
  min-width: 0;
}

.aside-pro .aside-brand-title {
  color: #f8fafc;
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.aside-pro .aside-brand-subtitle {
  align-items: center;
  background: rgba(34, 197, 94, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  margin-top: 6px;
  padding: 5px 8px;
  white-space: nowrap;
}

.aside-pro .aside-brand-subtitle i {
  font-size: 7px;
}

.aside-pro .aside-user-mini {
  align-items: center;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 8px 9px !important;
}

.aside-pro .user-panel.aside-user-mini .image {
  align-items: center;
  background: rgba(14, 165, 233, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.aside-pro .user-panel.aside-user-mini .image img {
  border-radius: 8px;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.aside-pro .user-panel.aside-user-mini .info {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.aside-pro .aside-user-name {
  color: var(--aside-text) !important;
  font-size: 11px;
  font-weight: 900;
  margin: 0;
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-pro .aside-section-label {
  align-items: center;
  color: #7dd3fc;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 7px;
  margin: 10px 8px 8px;
  text-transform: uppercase;
}

.aside-pro .aside-section-label::after {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.26), transparent);
  content: "";
  flex: 1;
  height: 1px;
}

.aside-pro .nav-sidebar.flex-column {
  align-items: stretch;
  flex-wrap: nowrap;
}

.aside-pro .aside-menu-nav {
  padding-bottom: 16px;
}

.aside-pro .nav-sidebar > .nav-item {
  margin-bottom: 4px;
  max-width: 100%;
  width: 100%;
}

.aside-pro .nav-sidebar .nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px !important;
  box-sizing: border-box;
  color: var(--aside-text) !important;
  cursor: pointer;
  display: flex;
  gap: 9px;
  margin: 0;
  min-height: 40px;
  overflow: hidden;
  padding: 7px 9px !important;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 100%;
}

.aside-pro .nav-sidebar .nav-link::before {
  background: transparent;
  border-radius: 999px;
  bottom: 9px;
  content: "";
  left: 0;
  position: absolute;
  top: 9px;
  transition: background 0.16s ease;
  width: 3px;
}

.aside-pro .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.11);
  color: #ffffff !important;
  transform: translateX(2px);
}

.aside-pro .nav-sidebar .nav-link:hover::before,
.aside-pro .nav-sidebar .nav-link.active::before {
  background: var(--aside-green);
}

.aside-pro .nav-sidebar .nav-link.active {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(20, 184, 166, 0.2)) !important;
  border-color: rgba(125, 211, 252, 0.23);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
  color: #ffffff !important;
}

.aside-pro .nav-sidebar .aside-menu-icon,
.aside-pro .nav-sidebar .nav-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: inherit !important;
  display: inline-flex !important;
  flex: 0 0 28px;
  font-size: 13px !important;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  width: 28px !important;
}

.aside-pro .nav-sidebar .aside-menu-icon img {
  display: block;
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.aside-pro .nav-sidebar .nav-link p {
  color: inherit;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-pro .nav-sidebar .right {
  color: rgba(226, 232, 240, 0.72);
  right: 9px !important;
  top: auto !important;
  transition: transform 0.16s ease;
}

.aside-pro .nav-item.menu-open > .nav-link .right {
  transform: rotate(-90deg);
}

.aside-pro .nav-treeview {
  border-left: 1px dashed rgba(148, 163, 184, 0.22);
  margin: 4px 0 8px;
  padding: 4px 0 4px 14px !important;
}

.aside-pro .nav-treeview .nav-link {
  background: transparent !important;
  color: #bfdbfe !important;
  min-height: 34px;
  padding: 5px 8px !important;
}

.aside-pro .nav-treeview .nav-link:hover,
.aside-pro .nav-treeview .nav-link.active {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
}

.aside-pro .nav-treeview .aside-menu-icon,
.aside-pro .nav-treeview .nav-icon {
  flex-basis: 24px;
  font-size: 12px !important;
  height: 24px;
  width: 24px !important;
}

.aside-pro .nav-treeview .aside-menu-icon img {
  height: 16px;
  width: 16px;
}

.aside-pro .nav-treeview .nav-link p {
  font-size: 11px;
  font-weight: 850;
}

.aside-pro .aside-logout-link {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.16) !important;
  color: #fee2e2 !important;
  margin-top: 10px !important;
}

.aside-pro .aside-logout-link:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}

body.sidebar-collapse .aside-pro .aside-brand-info,
body.sidebar-collapse .aside-pro .aside-user-mini,
body.sidebar-collapse .aside-pro .aside-section-label,
body.sidebar-collapse .aside-pro .nav-sidebar .nav-link p,
body.sidebar-collapse .aside-pro .nav-sidebar .right {
  display: none !important;
}

body.sidebar-collapse .aside-pro .sidebar {
  padding-left: 8px;
  padding-right: 8px;
}

body.sidebar-collapse .aside-pro .aside-brand-card,
body.sidebar-collapse .aside-pro .nav-sidebar .nav-link {
  justify-content: center;
}

.product-modal {
  --product-blue: #2f6ea8;
  --product-blue-dark: #225b91;
  --product-ink: #07162f;
  --product-muted: #7b8ba3;
  --product-line: #d8e2ef;
  --product-soft: #f5f8fc;
  --product-teal: #08767c;
  --product-green: #21bd77;
  --product-red: #ef3d4f;
}

.product-modal .modal-dialog {
  max-width: 1180px;
}

.product-modal-content {
  border: 0;
  border-radius: 8px;
  display: flex;
  max-height: calc(100vh - 28px);
  box-shadow: 0 24px 70px rgba(7, 22, 47, 0.32);
  overflow: hidden;
}

.product-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.product-modal-header {
  align-items: center;
  background: linear-gradient(90deg, #184c73 0%, var(--product-blue) 55%, #347fd5 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 9px 12px;
}

.product-modal-title {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.product-modal-title > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.product-modal-title h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.product-modal-title p {
  color: #eaf6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin: 4px 0 0;
}

.product-modal-close {
  align-items: center;
  background: #ff5869;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.product-modal-body {
  background: #f8fafc;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 14px 8px;
}

.product-modal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.product-form-main {
  display: grid;
  gap: 10px;
}

.usuarios-page .usuario-modal-summary {
  align-items: center;
  background: linear-gradient(90deg, #091528 0%, #0d5d53 100%);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 16px;
}

.usuarios-page .usuario-summary-main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.usuarios-page .usuario-summary-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.usuarios-page .usuario-modal-summary h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
}

.usuarios-page .usuario-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.usuarios-page .usuario-summary-pills span,
.usuarios-page .usuario-summary-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  padding: 7px 10px;
}

.usuarios-page .usuario-summary-pills span.is-active {
  background: rgba(33, 189, 119, 0.28);
  border-color: rgba(33, 189, 119, 0.42);
}

.usuarios-page .usuario-modal-summary {
  order: 1;
}

.usuarios-page .usuario-datos-card {
  order: 2;
}

.usuarios-page #usuarioSeguridadCard {
  order: 3;
}

.usuarios-page .usuario-permisos-card {
  order: 4;
}

.product-form-card,
.product-image-card {
  background: #ffffff;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  padding: 13px 14px;
}

.product-form-card-header {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.product-form-card-header h4 {
  align-items: center;
  color: var(--product-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  margin: 0;
}

.product-form-card-header span {
  color: #93a2b7;
  font-size: 11px;
  font-weight: 900;
}

.product-form-grid {
  display: grid;
  gap: 12px;
}

.product-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-form-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.product-field label {
  color: #32445d !important;
  display: block;
  font-size: 11px !important;
  font-weight: 900;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.product-field label b {
  color: var(--product-red);
}

.product-input-icon {
  position: relative;
}

.product-input-icon > i {
  color: #9aaac0;
  font-size: 12px;
  left: 11px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.product-input-icon .select2-container {
  display: block;
  width: 100% !important;
}

.product-modal .form-control,
.product-modal .form-select {
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--product-ink);
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding-left: 31px !important;
}

.product-modal .select2-container--default .select2-selection--single {
  align-items: center;
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--product-ink);
  display: flex;
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding: 0 34px 0 31px !important;
  position: relative;
}

.product-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--product-ink);
  display: block;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.2 !important;
  margin-top: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.product-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
  right: 8px !important;
  top: 0 !important;
  width: 20px !important;
}

.product-modal .select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-left: -4px !important;
  margin-top: -2px !important;
}

.product-modal .form-control:focus,
.product-modal .form-select:focus,
.product-modal .select2-container--focus .select2-selection--single {
  border-color: var(--product-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.product-modal .form-control:disabled,
.product-modal .form-select:disabled,
.product-modal .form-control[readonly] {
  background-color: #f1f5f9 !important;
  color: #64748b;
}

.product-image-card {
  align-self: start;
}

.product-image-preview {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  height: 245px;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.product-image-preview img {
  background: #cfcfcf;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-image-preview > span {
  align-items: center;
  background: var(--product-teal);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 10px 22px rgba(8, 118, 124, 0.26);
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 18px;
  width: 34px;
}

.product-file-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.product-segmented {
  background: #ffffff;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  overflow: hidden;
}

.product-segmented span {
  align-items: center;
  color: var(--product-red);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.product-segmented span.active {
  background: #1a73f7;
  color: #ffffff;
}

.product-modal-footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 18px;
  position: relative;
  z-index: 4;
}

.product-modal-footer > span {
  align-items: center;
  color: #51637d;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.product-modal-footer > span i {
  color: var(--product-teal);
}

.product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-btn {
  align-items: center;
  border-radius: 8px !important;
  display: inline-flex;
  font-size: 12px !important;
  font-weight: 900 !important;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  min-width: 128px;
  padding: 8px 15px !important;
  text-transform: uppercase;
}

.product-btn-cancel {
  background: #ffffff !important;
  border: 1px solid #6b7280 !important;
  color: #5b6678 !important;
}

.product-btn-save {
  background: var(--product-green) !important;
  border: 1px solid var(--product-green) !important;
  color: #ffffff !important;
}

.product-modal .invalid-feedback {
  font-size: 11px;
  font-weight: 800;
}

.category-modal .modal-dialog {
  max-width: 620px;
}

.category-modal .product-modal-body {
  padding: 14px;
}

.category-modal .product-form-card {
  padding: 14px;
}

.configuraciones-page .app-config-panel .card-body {
  padding-top: 20px !important;
}

.configuracion-modal .modal-dialog {
  max-width: 760px;
}

.config-value-card {
  margin-top: 12px;
}

.cliente-modal .modal-dialog {
  max-width: 1080px;
}

.proveedor-modal .modal-dialog {
  max-width: 1080px;
}

.cliente-contact-grid {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.proveedor-contact-grid {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.cliente-summary-card,
.proveedor-summary-card {
  align-self: stretch;
}

.cliente-summary-note,
.proveedor-summary-note {
  align-items: flex-start;
  background: #eefcff;
  border: 1px solid #caeef5;
  border-radius: 8px;
  color: #17445c;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.35;
  margin-top: 18px;
  padding: 10px;
}

.cliente-summary-note i,
.proveedor-summary-note i {
  color: var(--product-teal);
  margin-top: 2px;
}

.product-image-preview-readonly {
  cursor: default;
}

@media (max-width: 991.98px) {
  .product-modal-grid,
  .product-form-split,
  .cliente-contact-grid,
  .proveedor-contact-grid,
  .product-form-grid-3,
  .product-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .product-image-card {
    order: -1;
  }

  .usuarios-page .usuario-modal-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .product-modal .modal-dialog {
    margin: 8px;
  }

  .product-modal-header,
  .product-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-modal-actions,
  .product-btn {
    width: 100%;
  }

  .config-table-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .app-config-tabs .nav-link {
    font-size: 10px;
    padding: 8px 9px;
  }

}

/* Emisión de guía de remisión remitente */
.guia-remision-page {
  --guia-ink: #07162f;
  --guia-line: #d8e2ef;
  --guia-soft: #f5f8fc;
  --guia-teal: #08767c;
}

.guia-remision-page .app-page-header {
  padding: 14px 0 12px !important;
}

.guia-remision-page .content-header .row {
  align-items: center;
}

.guia-remision-page .content-header h2 {
  align-items: center;
  color: var(--guia-ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 24px !important;
  font-weight: 900;
  gap: 0 12px;
  line-height: 1.1;
  text-transform: none;
}

.guia-remision-page .content-header h2::before {
  align-items: center;
  background: #0d3b4c;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 47, 73, 0.16);
  color: #ffffff;
  content: "\f0d1";
  display: inline-flex;
  font-family: "Font Awesome 5 Free";
  font-size: 18px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.guia-remision-page .content-header h2::after {
  color: #60758a;
  content: "Registra y administra los documentos de traslado de tus productos.";
  flex-basis: calc(100% - 56px);
  font-size: 11px;
  font-weight: 700;
  margin-left: 56px;
  margin-top: -17px;
  text-transform: none;
}

.guia-remision-page .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.guia-remision-page .guia-remision-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-top: 14px;
}

.guia-remision-page .guia-remision-shell > .card-body {
  padding: 0 !important;
}

.guia-remision-page #frm-datos-guia-remision-remitente > .row {
  margin: 0 -7px;
}

.guia-remision-page #frm-datos-guia-remision-remitente > .row > .col-12 {
  padding-left: 7px;
  padding-right: 7px;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card {
  background: #ffffff;
  border: 1px solid var(--guia-line);
  border-radius: 8px;
  box-shadow: none !important;
  margin-bottom: 14px;
  margin-top: 0;
  overflow: hidden;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  min-height: 48px;
  padding: 11px 14px;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-title {
  align-items: center;
  color: var(--guia-ink);
  display: flex;
  font-size: 14px !important;
  font-weight: 900;
  gap: 7px;
  margin: 0;
  text-transform: none;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-title::before {
  color: var(--guia-teal);
  content: "\f15c";
  font-family: "Font Awesome 5 Free";
  font-size: 13px;
  font-weight: 900;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-tools {
  display: none;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-body {
  padding: 14px !important;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-body > .row {
  margin-left: -6px;
  margin-right: -6px;
}

.guia-remision-page #frm-datos-guia-remision-remitente .card-body > .row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.guia-remision-page label {
  color: #32445d !important;
  display: block;
  font-size: 10px !important;
  font-weight: 900;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.guia-remision-page label > i {
  color: #8ea2ba !important;
  margin-right: 5px !important;
}

.guia-remision-page .form-control,
.guia-remision-page .form-select,
.guia-remision-page .select2-container--default .select2-selection--single {
  background: #ffffff !important;
  border: 1px solid #cfdbea !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--guia-ink);
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding: 7px 11px !important;
}

.guia-remision-page textarea.form-control {
  height: auto !important;
  min-height: 88px;
  resize: vertical;
}

.guia-remision-page .form-control::placeholder {
  color: #9aaac0;
  font-weight: 700;
}

.guia-remision-page .form-control:focus,
.guia-remision-page .form-select:focus {
  border-color: var(--guia-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.guia-remision-page .readonly,
.guia-remision-page .my-disabled,
.guia-remision-page .form-control[readonly] {
  background: #eef3f8 !important;
  color: #60758a !important;
}

.guia-remision-page .input-group {
  margin-bottom: 0 !important;
}

.guia-remision-page .input-group-text {
  background: #eef3f8;
  border: 1px solid #cfdbea;
  border-radius: 8px 0 0 8px;
  color: #8ea2ba;
}

.guia-remision-page .input-group-text i {
  color: #8ea2ba !important;
}

.guia-remision-page .input-group .form-control {
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
}

.guia-remision-page .app-products-table {
  margin: 0 !important;
}

.guia-remision-page .app-products-table thead th {
  font-size: 10px !important;
}

.guia-remision-page .app-products-table .form-control {
  height: 32px !important;
  min-height: 32px;
  padding: 4px 8px !important;
}

.guia-remision-page .guia-remision-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 4px 0 18px !important;
}

@media (max-width: 767.98px) {
  .guia-remision-page .content-header h2::after {
    margin-top: 4px;
  }

  .guia-remision-page .guia-remision-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guia-remision-page .guia-remision-actions > .product-btn {
    width: 100% !important;
  }
}

/* Componentes exactos del formulario de registro de productos en la guía. */
.guia-remision-page .guia-remision-product-form .product-form-card {
  margin-bottom: 14px;
}

.guia-remision-page .guia-remision-product-form .product-form-card-body > .row {
  margin-left: -6px;
  margin-right: -6px;
}

.guia-remision-page .guia-remision-product-form .product-form-card-body > .row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.guia-remision-page .guia-remision-product-form .card.product-form-card {
  background: #ffffff !important;
  border: 1px solid var(--product-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-bottom: 14px !important;
  overflow: visible;
  padding: 13px 14px !important;
}

.guia-remision-page .guia-remision-product-form .card.product-form-card > .product-form-card-header {
  align-items: center;
  background: transparent !important;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 0;
  padding: 0 0 10px !important;
}

.guia-remision-page .guia-remision-product-form .product-form-card-header h4 {
  align-items: center;
  color: var(--product-ink);
  display: inline-flex;
  font-size: 14px !important;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  margin: 0;
}

.guia-remision-page .guia-remision-product-form .product-form-card-header h4 i {
  color: var(--product-ink);
}

.guia-remision-page .guia-remision-product-form .product-form-card-header span {
  color: #93a2b7;
  font-size: 11px;
  font-weight: 900;
}

.guia-remision-page .guia-remision-product-form .card.product-form-card > .card-body {
  padding: 0 !important;
}

.guia-remision-page .guia-remision-product-form .product-field label {
  color: #32445d !important;
  display: block;
  font-size: 11px !important;
  font-weight: 900;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.guia-remision-page .guia-remision-product-form .product-field label > i {
  display: none;
}

.guia-remision-page .guia-remision-product-form .product-field label strong {
  color: var(--product-red) !important;
}

.guia-remision-page .guia-remision-product-form .product-field {
  min-width: 0;
}

.guia-remision-page .guia-remision-product-form .product-field .form-control,
.guia-remision-page .guia-remision-product-form .product-field .form-select {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
}

.guia-remision-page .guia-remision-product-form .product-input-icon {
  display: block;
  position: relative;
  width: 100%;
}

.guia-remision-page .guia-remision-product-form .product-input-icon > i {
  color: #9aaac0;
  font-size: 12px;
  left: 11px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.guia-remision-page .guia-remision-product-form .product-input-icon > .form-control,
.guia-remision-page .guia-remision-product-form .product-input-icon > .form-select {
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--product-ink);
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding: 7px 11px 7px 31px !important;
  width: 100% !important;
}

.guia-remision-page .guia-remision-product-form .product-input-icon > .form-control:focus,
.guia-remision-page .guia-remision-product-form .product-input-icon > .form-select:focus {
  border-color: var(--product-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.guia-remision-page .guia-remision-product-form .product-input-icon .select2-container {
  display: block;
  width: 100% !important;
}

.guia-remision-page .guia-remision-product-form .product-input-icon .select2-container--default .select2-selection--single {
  align-items: center;
  background-color: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--product-ink);
  display: flex;
  font-size: 12px !important;
  font-weight: 800;
  height: 38px !important;
  min-height: 38px;
  padding: 0 34px 0 31px !important;
}

.guia-remision-page .guia-remision-product-form .product-input-icon .select2-selection__rendered {
  color: var(--product-ink) !important;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.2 !important;
  padding: 0 !important;
}

.guia-remision-page .guia-remision-product-form .invalid-feedback {
  color: var(--product-red);
  display: none;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.guia-remision-page .guia-remision-product-form .invalid-feedback.guia-validation-visible {
  display: block !important;
}

.guia-remision-page .guia-remision-product-form .product-field-invalid .product-input-icon > .form-control,
.guia-remision-page .guia-remision-product-form .product-field-invalid .product-input-icon > .form-select,
.guia-remision-page .guia-remision-product-form .product-field-invalid .select2-container--default .select2-selection--single {
  border-color: var(--product-red) !important;
}

.guia-remision-page .guia-remision-product-form .product-field-invalid .product-input-icon > i {
  color: var(--product-red);
}

/* Administración de módulos y perfiles */
.seguridad-modulos-page {
  --product-blue: #2f6ea8;
  --product-blue-dark: #225b91;
  --product-ink: #07162f;
  --product-muted: #7b8ba3;
  --product-line: #d8e2ef;
  --product-soft: #f5f8fc;
  --product-teal: #08767c;
  --product-green: #21bd77;
  --product-red: #ef3d4f;
}

.seguridad-modulos-page .seguridad-modulos-legacy-header {
  display: none;
}

.seguridad-modulos-page .app-page-header {
  padding: 14px 0 12px !important;
}

.seguridad-modulos-page .seguridad-modulos-tabs {
  margin-top: 14px;
}

.seguridad-modulos-page #tabsContent-asignar-modulos-perfil > .tab-pane {
  margin-top: 14px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.seguridad-modulos-page .product-form-card.card {
  background: #ffffff;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  box-shadow: none !important;
  overflow: hidden;
  padding: 13px 14px;
}

.seguridad-modulos-page .product-form-card.card > .card-header {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 0;
  padding: 0 0 10px;
}

.seguridad-modulos-page .product-form-card.card > .card-header .card-title {
  align-items: center;
  color: var(--product-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  margin: 0;
}

.seguridad-modulos-page .product-form-card.card > .card-header .card-title i {
  color: var(--product-ink);
}

.seguridad-modulos-page .product-form-card.card > .card-header::after {
  color: #93a2b7;
  font-size: 11px;
  font-weight: 900;
}

.seguridad-modulos-page .seguridad-organizar-card > .card-header::after {
  content: "Jerarquía y orden de navegación";
}

.seguridad-modulos-page .seguridad-perfiles-card > .card-header::after {
  content: "Perfiles disponibles y estado";
}

.seguridad-modulos-page .seguridad-asignacion-card > .card-header::after {
  content: "Módulos, permisos e inicio";
}

.seguridad-modulos-page .product-form-card.card > .card-body {
  padding: 0 !important;
}

.seguridad-modulos-page .seguridad-organizar-card .product-form-card-body > div:first-child,
.seguridad-modulos-page #card-body-modulos > #modulos {
  background: var(--product-soft);
  border: 1px solid var(--product-line);
  border-radius: 8px;
  padding: 12px;
}

.seguridad-modulos-page .seguridad-organizar-card .product-form-card-body > div:first-child > div:first-child {
  color: #32445d;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.seguridad-modulos-page .seguridad-organizar-card hr {
  border-color: #edf2f7;
  margin: 14px 0;
}

.seguridad-modulos-page .seguridad-organizar-card .text-center {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.seguridad-modulos-page .seguridad-perfiles-card .dataTables_wrapper {
  width: 100%;
}

.seguridad-modulos-page .seguridad-perfiles-table {
  margin: 0 !important;
  table-layout: fixed;
  width: 100% !important;
}

.seguridad-modulos-page .seguridad-perfiles-table thead,
.seguridad-modulos-page .seguridad-perfiles-table tbody,
.seguridad-modulos-page .seguridad-perfiles-table tr {
  width: 100%;
}

.seguridad-modulos-page .seguridad-perfiles-table tbody tr.selected td {
  background: #eefcff !important;
  border-color: #bfe8ee;
}

.seguridad-modulos-page .seguridad-tree-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  text-transform: uppercase;
}

.seguridad-modulos-page .seguridad-tree-button-check {
  background: #e3f9ee;
  border: 1px solid #a8ebc4;
  color: #087a45;
}

.seguridad-modulos-page .seguridad-tree-button-clear {
  background: #fff0f2;
  border: 1px solid #ffc6cf;
  color: #c52a3e;
}

.seguridad-modulos-page #card-body-modulos > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.seguridad-modulos-page #card-body-modulos .product-field label {
  color: #32445d !important;
  display: block;
  font-size: 11px !important;
  font-weight: 900;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.seguridad-modulos-page #card-body-modulos .product-input-icon {
  position: relative;
  width: 100%;
}

.seguridad-modulos-page #card-body-modulos .product-input-icon > i {
  color: #9aaac0;
  font-size: 12px;
  left: 11px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.seguridad-modulos-page #card-body-modulos .select2-container {
  display: block;
  width: 100% !important;
}

.seguridad-modulos-page #card-body-modulos .select2-container--default .select2-selection--single {
  align-items: center;
  background: #ffffff !important;
  border: 1px solid #d5dfec !important;
  border-radius: 8px !important;
  display: flex;
  height: 38px !important;
  padding: 0 34px 0 31px !important;
}

.seguridad-modulos-page #card-body-modulos .select2-selection__rendered {
  color: var(--product-ink) !important;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.2 !important;
  padding: 0 !important;
}

.seguridad-modulos-page #card-body-modulos .select2-container--focus .select2-selection--single {
  border-color: var(--product-teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 118, 124, 0.12) !important;
}

.seguridad-modulos-page #card-body-modulos #asignar_modulos {
  width: 100%;
}

@media (max-width: 991.98px) {
  .seguridad-modulos-page .seguridad-asignacion-card {
    margin-top: 14px;
  }
}

@media (max-width: 575.98px) {
  .seguridad-modulos-page .product-form-card.card > .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seguridad-modulos-page .seguridad-organizar-card .text-center {
    align-items: stretch;
    flex-direction: column;
  }
}

/* POS: catálogo y carrito en una sola vista, usando el lenguaje visual del sistema. */
#mdlPos.pos-modal {
  --pos-ink: #07162f;
  --pos-muted: #7b8ba3;
  --pos-line: #d8e2ef;
  --pos-soft: #f5f8fc;
  --pos-teal: #08767c;
  padding: 0 !important;
}

#mdlPos .mdlVentaPos {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  max-width: 100vw;
  width: 100vw;
}

#mdlPos .pos-modal-content {
  border-radius: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 100vw;
}

#mdlPos .pos-modal-header {
  flex: 0 0 auto;
}

#mdlPos .pos-modal-body {
  overflow: hidden;
  padding: 12px !important;
}

#mdlPos .pos-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 38%);
  height: 100%;
  margin: 0;
}

#mdlPos .pos-catalog-column,
#mdlPos .pos-cart-column {
  max-width: none;
  min-height: 0;
  padding: 0;
  width: auto;
}

#mdlPos .pos-catalog-card,
#mdlPos .pos-cart-card {
  height: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

#mdlPos .pos-catalog-card > .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px !important;
}

#mdlPos .pos-section-header {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

#mdlPos .pos-clear-cart {
  align-items: center;
  background: #fff1f3;
  border: 1px solid #ffc5cd;
  border-radius: 8px;
  color: #dd3347;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

#mdlPos .pos-search-row {
  align-items: end;
  border-bottom: 1px solid #edf2f7;
  flex: 0 0 auto;
  margin: 0 0 12px;
  padding: 0 0 12px;
}

#mdlPos .pos-search-field {
  padding-left: 0;
}

#mdlPos .pos-barcode-toggle {
  color: #32445d;
  font-size: 11px;
  font-weight: 900;
  min-height: 59px;
  padding-right: 0;
  text-transform: uppercase;
}

#mdlPos .pos-catalog-layout {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  grid-template-columns: 190px minmax(0, 1fr);
  margin: 0;
  min-height: 0;
}

#mdlPos .pos-categories-column,
#mdlPos .pos-products-column {
  max-width: none;
  min-height: 0;
  padding: 0;
  width: auto;
}

#mdlPos .pos-categories-column .tab-content,
#mdlPos .pos-products-column .tab-content,
#mdlPos .h-productos-pos {
  height: 100%;
  min-height: 0;
}

#mdlPos .div-categorias {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 5px;
}

#mdlPos .btnCategoria {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid var(--pos-line) !important;
  border-radius: 8px !important;
  color: var(--pos-ink) !important;
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  gap: 8px;
  justify-content: space-between !important;
  margin: 0 !important;
  min-height: 44px;
  padding: 7px 10px !important;
  text-align: left;
  width: 100% !important;
}

#mdlPos .btnCategoria i {
  color: var(--pos-teal);
}

#mdlPos .btnCategoria .pos-category-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mdlPos .btnCategoria .pos-category-count {
  align-items: center;
  background: #e5f8f2;
  border: 1px solid #a8ead2;
  border-radius: 999px;
  color: #08745b;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  min-width: 26px;
  padding: 4px 7px;
}

#mdlPos .btnCategoria.bg-warning,
#mdlPos .btnCategoria.is-active {
  background: linear-gradient(90deg, #184c73 0%, var(--pos-teal) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

#mdlPos .btnCategoria.bg-warning i,
#mdlPos .btnCategoria.is-active i {
  color: #fff;
}

#mdlPos .div-productos {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  padding: 1px 5px 8px 1px;
}

#mdlPos .pos-product-card {
  background: #fff;
  border: 1px solid var(--pos-line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

#mdlPos .pos-product-card:hover {
  border-color: #9fc6dc;
  box-shadow: 0 10px 24px rgba(7, 22, 47, .1);
  transform: translateY(-2px);
}

#mdlPos .pos-product-image {
  align-items: center;
  background: var(--pos-soft);
  border-radius: 8px;
  display: flex;
  height: 112px;
  justify-content: center;
  overflow: hidden;
}

#mdlPos .pos-product-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

#mdlPos .pos-product-name {
  color: var(--pos-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 9px;
  min-height: 30px;
}

#mdlPos .pos-product-meta {
  color: var(--pos-muted);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

#mdlPos .pos-product-footer {
  align-items: end;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

#mdlPos .pos-product-price {
  color: var(--pos-teal);
  font-size: 16px;
  font-weight: 900;
}

#mdlPos .pos-product-stock {
  color: #64748b;
  display: block;
  font-size: 9px;
  font-weight: 800;
}

#mdlPos .pos-product-add {
  align-items: center;
  background: var(--pos-teal);
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

#mdlPos .pos-empty-state {
  align-items: center;
  color: var(--pos-muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 220px;
}

#mdlPos .pos-empty-state i {
  color: #a6b5c8;
  font-size: 38px;
}

#mdlPos .pos-cart-card > .card-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
  padding: 12px !important;
}

#mdlPos .pos-cart-products {
  min-height: 0;
  overflow: hidden;
}

#mdlPos .pos-cart-products > div {
  height: 100%;
  margin-top: 0 !important;
}

#mdlPos .pos-cart-summary-row,
#mdlPos .pos-cart-actions-row {
  flex: 0 0 auto;
  margin-left: -6px;
  margin-right: -6px;
  position: relative;
  z-index: 2;
}

#mdlPos .pos-cart-summary-row {
  background: #ffffff;
}

#mdlPos .pos-cart-actions-row {
  align-self: end;
  background: #ffffff;
}

#mdlPos .pos-cart-table {
  box-shadow: none !important;
  table-layout: fixed;
  width: 100% !important;
}

#mdlPos #tbl_ListadoProductos_POS_wrapper,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scroll,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollHead,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollBody,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollHeadInner,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollHeadInner > table,
#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollBody > table {
  box-sizing: border-box !important;
  width: 100% !important;
}

#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollHead {
  background: #eef3f9;
  border: 0;
  overflow: hidden !important;
}

#mdlPos #tbl_ListadoProductos_POS_wrapper .dataTables_scrollBody {
  border-bottom: 1px solid var(--pos-line);
}

#mdlPos .pos-cart-table thead th {
  background: #eef3f9 !important;
  color: #334b6c !important;
  font-size: 10px;
  font-weight: 900;
  padding: 11px 8px !important;
  text-transform: uppercase;
}

#mdlPos .pos-cart-table tbody td {
  color: var(--pos-ink);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

#mdlPos .pos-cart-table tbody td:first-child,
#mdlPos .pos-cart-table thead th:first-child {
  text-align: left !important;
}

#mdlPos .pos-cart-table td.dataTables_empty {
  background: var(--pos-soft);
  text-align: center !important;
}

#mdlPos .pos-cart-table .form-control {
  height: 32px !important;
  min-height: 32px;
  padding: 2px 6px !important;
}

#mdlPos .pos-summary-card {
  border: 1px solid var(--pos-line) !important;
  box-shadow: none !important;
  padding: 12px !important;
}

#mdlPos .pos-summary-card .card-body {
  padding: 0 !important;
}

#mdlPos .pos-summary-card .card-body .col-12 {
  border-bottom: 1px solid #edf2f7;
  color: #334b6c;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: space-between;
  padding: 7px 6px;
}

#mdlPos .pos-summary-card .card-body .col-12:last-child {
  align-items: center;
  background: var(--pos-teal);
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  font-size: 15px;
  margin-top: 7px;
  min-height: 42px;
  padding: 8px 10px;
}

#mdlPos .pos-summary-card hr {
  display: none;
}

#mdlPos .pos-actions .row {
  gap: 12px;
  justify-content: center;
  margin: 0;
}

#mdlPos .pos-actions .col-6 {
  flex: 0 1 190px;
  max-width: 190px;
  padding: 0;
}

#mdlPos .pos-actions {
  padding: 2px 0 12px;
}

#mdlPos .pos-actions .product-btn-cancel i {
  color: #5b6678 !important;
}

#mdlPos .pos-actions .product-btn {
  gap: 9px;
  height: 40px;
  min-height: 40px;
}

#mdlPos .pos-actions .product-btn i {
  font-size: 14px;
  line-height: 1;
  margin: 0;
}

@media (max-width: 1199.98px) {
  #mdlPos .pos-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 42%);
  }

  #mdlPos .pos-catalog-layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  #mdlPos .pos-modal-body {
    overflow-y: auto;
  }

  #mdlPos .pos-workspace {
    display: block;
  }

  #mdlPos .pos-catalog-card {
    min-height: calc(100vh - 100px);
  }

  #mdlPos .pos-catalog-layout {
    display: flex;
    flex-direction: column;
  }

  #mdlPos .div-categorias {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  #mdlPos .btnCategoria {
    min-width: 145px;
    width: auto !important;
  }
}

@media (max-width: 575.98px) {
  #mdlPos .mdlVentaPos {
    margin: 0;
    max-width: 100vw;
    width: 100vw;
  }

  #mdlPos .pos-modal-content {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  #mdlPos .pos-modal-header {
    align-items: center;
    flex-direction: row;
  }

  #mdlPos .product-modal-title p {
    display: none;
  }

  #mdlPos .pos-search-field,
  #mdlPos .pos-barcode-toggle {
    padding-left: 0;
    padding-right: 0;
  }

  #mdlPos .div-productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
