@charset "UTF-8";
:root {
  --accent: #1c5bad;
  --accent-dark: #164a8f;
  --accent-soft: #eaf1fb;
  --dark: #1e293b;
  --mid: #2e3a52;
  --sidebar-w: 248px;
  --bs-body-font-family: IBM Plex Sans, Segoe UI, system-ui, -apple-system, sans-serif;
  --bs-body-color: #1e293b;
  --bs-emphasis-color: #0f172a;
  --bs-heading-color: #0f172a;
  --bs-secondary-color: #5b6577;
  --bs-border-color: #e3ded5;
  --bs-border-radius: 7px;
  --bs-border-radius-sm: 5px;
  --bs-border-radius-lg: 10px;
  --bs-border-radius-xl: 14px;
  --bs-link-color: #1c5bad;
  --bs-link-color-rgb: 28, 91, 173;
  --bs-link-hover-color: #164a8f;
  --bs-link-hover-color-rgb: 22, 74, 143;
  --bs-primary: #1c5bad;
  --bs-primary-rgb: 28, 91, 173;
  --bs-box-shadow-sm: 0 1px 3px rgba(41, 33, 20, 0.07), 0 1px 2px rgba(41, 33, 20, 0.04);
  --bs-box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
  --bs-box-shadow-lg: 0 20px 44px -12px rgba(41, 33, 20, 0.24);
  --bs-focus-ring-color: rgba(28, 91, 173, 0.22);
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #1e293b;
  background: #f3f1ec;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  letter-spacing: -0.01em;
}

.main-content h4.fw-bold,
.main-content h4.fw-semibold,
.page-title,
.ventas-productos__title {
  font-size: 1.4rem;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.main-content h4.fw-bold .ic,
.main-content h4.fw-semibold .ic,
.page-title .ic,
.ventas-productos__title .ic {
  color: #1c5bad;
  width: 20px;
  height: 20px;
}

.table,
.table-modern,
.data-table,
.stat-card__value,
.total-display,
.transaccion-monto,
.rs-total-value,
.input-total {
  font-variant-numeric: tabular-nums;
}

.mono,
td.fw-semibold.text-orange,
.stat-card__value,
.total-display,
.rs-total-value,
.transaccion-monto,
.cart-total-bar #cartTotalValor,
.input-total,
.ventas-card__precio {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: -0.01em;
}

td.fw-semibold.text-orange {
  font-weight: 600 !important;
  font-size: 0.8rem;
  white-space: nowrap;
}

.form-control:focus,
.form-select:focus {
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role=button]:focus-visible {
  outline: 2px solid #1c5bad;
  outline-offset: 2px;
  box-shadow: none;
}

::selection {
  background: rgba(232, 145, 42, 0.28);
}

.form-control:not(textarea):not(.form-control-sm):not([type=file]),
.form-select:not(.form-select-sm):not([multiple]) {
  min-height: 40px;
}

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 7px;
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: color 0.15s cubic-bezier(0.2, 0, 0, 1), background-color 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.06s;
}
.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  --bs-btn-border-radius: 7px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .modal-box,
  .stat-card:hover,
  .module-card:hover {
    animation: none !important;
    transform: none !important;
  }
}
body::-webkit-scrollbar {
  width: 6px;
}
body::-webkit-scrollbar-track {
  background: #f1f1f1;
}
body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #1c5bad;
}

@media print {
  .no-print, .btn, #sidebar, .app-sidebar, .app-navbar, form {
    display: none !important;
  }
  .card-header-orange,
  .card-header-light {
    background: #eee !important;
    color: #000 !important;
  }
}
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.75rem 2rem 2.5rem;
  background: #f3f1ec;
}
@media (max-width: 767.98px) {
  .main-content {
    padding: 1rem 1rem 2rem;
  }
}

.app-sidebar {
  width: 248px;
  min-width: 248px;
  height: 100vh;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px), linear-gradient(180deg, #0b1a33 0%, #0f2242 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  z-index: 100;
}
@media (max-width: 767.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 284px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25);
  }
  .app-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .app-sidebar {
    transition: margin-left 0.25s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0s;
  }
  .sidebar-collapsed .app-sidebar {
    margin-left: -248px;
    visibility: hidden;
    transition: margin-left 0.25s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0.25s;
  }
}
.sidebar-backdrop {
  display: none;
}
@media (max-width: 767.98px) {
  .sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 99;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem 1.1rem;
  position: relative;
}
.sidebar-brand::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: 0.35rem;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8912a 0 33.33%, #d9b98a 33.33% 66.66%, #1c5bad 66.66% 100%);
}
.sidebar-brand .brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), opacity 0.15s;
}
.sidebar-brand .brand-logo-link:hover {
  opacity: 0.9;
}
.sidebar-brand .brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sidebar-brand .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sidebar-brand .brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sidebar-brand .brand-sub {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.75rem 0.5rem;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8912a 0%, #c97520 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.user-info {
  min-width: 0;
}

.user-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0 0.75rem;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%);
}
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-section {
  padding: 0.4rem 0 0.5rem;
}
.nav-section + .nav-section {
  position: relative;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}
.nav-section + .nav-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.35rem;
  right: 1.35rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-section-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 1.35rem 0.45rem;
}

.nav-group-label {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.35rem 0.25rem 1.35rem;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1px 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  position: relative;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.app-sidebar .nav-link:focus-visible {
  outline: 2px solid rgba(232, 145, 42, 0.8);
  outline-offset: -2px;
}
.app-sidebar .nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}
.app-sidebar .nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #e8912a 0 50%, #d9b98a 50% 100%);
}
.app-sidebar .nav-link.is-active .nav-icon {
  color: #e8912a;
  opacity: 1;
}
.app-sidebar .nav-link.is-indent {
  padding-left: 1.35rem;
  font-size: 0.82rem;
}
.app-sidebar .nav-link.text-muted-nav {
  opacity: 0.55;
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.8;
  color: currentColor;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.25rem 0.6rem 0.75rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 -12px 0 -11px rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1);
  margin-top: auto;
  flex-shrink: 0;
}
.sidebar-logout:hover {
  color: #ffb4ad;
  background: rgba(220, 58, 47, 0.12);
  border-color: rgba(220, 58, 47, 0.3);
}
@media (max-width: 767.98px) {
  .sidebar-logout {
    background: rgba(220, 58, 47, 0.12);
    color: #ffb4ad;
    font-weight: 600;
    border-color: rgba(220, 58, 47, 0.3);
  }
  .sidebar-logout:hover, .sidebar-logout:active {
    color: #fff;
    background: rgba(220, 58, 47, 0.25);
  }
}

.app-sidebar .badge {
  text-transform: none;
  letter-spacing: 0;
}
.app-sidebar .badge::before {
  display: none !important;
}

.badge-sprint {
  background: #eaf1fb;
  color: #1c5bad;
  border: 1px solid #1c5bad;
  font-size: 0.6rem;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-weight: 700;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #e3ded5;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.app-navbar::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #e8912a 0 33.33%, #d9b98a 33.33% 66.66%, #1c5bad 66.66% 100%);
}
@media (max-width: 767.98px) {
  .app-navbar {
    padding: 0.6rem 1rem;
  }
  .app-navbar::after {
    left: 1rem;
  }
}
.app-navbar .nav-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #0f172a;
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-navbar .nav-date {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 500;
  display: inline-block;
}
.app-navbar .nav-date::first-letter {
  text-transform: uppercase;
}
.app-navbar .nav-date {
  background: #f3f1ec;
  border: 1px solid #e3ded5;
  border-radius: 5px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .app-navbar .nav-date {
    display: none;
  }
}

.navbar-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  border: 1px solid #e3ded5;
  background: #fff;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.navbar-toggle:hover {
  background: #f3f1ec;
  border-color: #cfc8bc;
}
@media (max-width: 767.98px) {
  .navbar-toggle {
    display: inline-flex;
  }
}
.navbar-toggle svg {
  width: 20px;
  height: 20px;
}

.btn-naranja {
  background: #1c5bad;
  color: #fff;
  border: 1px solid #1c5bad;
  border-radius: 7px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 91, 173, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-naranja:hover, .btn-naranja:focus-visible {
  background: #164a8f;
  border-color: #164a8f;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(28, 91, 173, 0.4);
}
.btn-naranja:active {
  background: #164a8f;
  color: #fff;
}

.btn-logout {
  background: #2e3a52;
  color: #1c5bad;
  border: 1px solid #1c5bad;
}

.btn-primary-modern {
  background: #1c5bad;
  color: #fff;
  border: 1px solid #1c5bad;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.05s;
}
.btn-primary-modern:hover {
  background: #164a8f;
  border-color: #164a8f;
  color: #fff;
}
.btn-primary-modern:active {
  transform: translateY(1px);
}

.btn-secondary-modern {
  background: #fff;
  color: #334155;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.btn-secondary-modern:hover {
  background: #faf8f4;
  border-color: #b0a797;
  color: #0f172a;
}

.btn-ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cfc8bc;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  transition: color 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.btn-ghost:hover {
  color: #0f172a;
  background: #faf8f4;
  border-color: #b0a797;
}

.btn-outline-secondary {
  --bs-btn-color: #334155;
  --bs-btn-border-color: #cfc8bc;
  --bs-btn-bg: #fff;
  --bs-btn-hover-color: #164a8f;
  --bs-btn-hover-bg: #eaf1fb;
  --bs-btn-hover-border-color: #1c5bad;
  --bs-btn-active-color: #164a8f;
  --bs-btn-active-bg: #eaf1fb;
  --bs-btn-active-border-color: #1c5bad;
  --bs-btn-font-weight: 600;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}

.btn-outline-primary {
  --bs-btn-color: #1c5bad;
  --bs-btn-border-color: #1c5bad;
  --bs-btn-hover-bg: #1c5bad;
  --bs-btn-hover-border-color: #1c5bad;
  --bs-btn-active-bg: #164a8f;
  --bs-btn-active-border-color: #164a8f;
}

.btn-outline-success {
  --bs-btn-color: #1a8f4c;
  --bs-btn-border-color: #1a8f4c;
  --bs-btn-hover-bg: #1a8f4c;
  --bs-btn-hover-border-color: #1a8f4c;
  --bs-btn-active-bg: #157a40;
  --bs-btn-active-border-color: #157a40;
  --bs-btn-font-weight: 600;
}

.btn-outline-danger {
  --bs-btn-color: #dc3a2f;
  --bs-btn-border-color: #dc3a2f;
  --bs-btn-hover-bg: #dc3a2f;
  --bs-btn-hover-border-color: #dc3a2f;
  --bs-btn-active-bg: #bf2e24;
  --bs-btn-active-border-color: #bf2e24;
  --bs-btn-font-weight: 600;
}

.btn-success {
  --bs-btn-bg: #1a8f4c;
  --bs-btn-border-color: #1a8f4c;
  --bs-btn-hover-bg: #157a40;
  --bs-btn-hover-border-color: #157a40;
  --bs-btn-active-bg: #136b38;
  --bs-btn-active-border-color: #136b38;
}

.btn-warning {
  --bs-btn-bg: #e8912a;
  --bs-btn-border-color: #e8912a;
  --bs-btn-color: #0f172a;
  --bs-btn-hover-bg: #f0a444;
  --bs-btn-hover-border-color: #c97520;
  --bs-btn-hover-color: #0f172a;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}
.btn-whatsapp:active {
  transform: translateY(1px);
}
.btn-whatsapp svg {
  flex-shrink: 0;
}

.btn-icon-danger {
  background: transparent;
  border: none;
  color: #dc3a2f;
  font-size: 1.1rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.btn-icon-danger:hover {
  background: #fdf1f0;
}

.btn-finalizar, .btn-danger, .btn-primary-green, .btn-secondary-yellow, .btn-outline-accent, .btn-secondary, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), color 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.06s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-finalizar:disabled, .btn-danger:disabled, .btn-primary-green:disabled, .btn-secondary-yellow:disabled, .btn-outline-accent:disabled, .btn-secondary:disabled, .btn-primary:disabled, .is-disabled.btn-finalizar, .is-disabled.btn-danger, .is-disabled.btn-primary-green, .is-disabled.btn-secondary-yellow, .is-disabled.btn-outline-accent, .is-disabled.btn-secondary, .is-disabled.btn-primary {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm.btn-finalizar, .btn-sm.btn-danger, .btn-sm.btn-primary-green, .btn-sm.btn-secondary-yellow, .btn-sm.btn-outline-accent, .btn-sm.btn-secondary, .btn-sm.btn-primary {
  min-height: 32px;
  padding: 0 0.8rem;
  font-size: 0.75rem;
}
.btn-finalizar:focus-visible, .btn-danger:focus-visible, .btn-primary-green:focus-visible, .btn-secondary-yellow:focus-visible, .btn-outline-accent:focus-visible, .btn-secondary:focus-visible, .btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}
.btn-finalizar:active, .btn-danger:active, .btn-primary-green:active, .btn-secondary-yellow:active, .btn-outline-accent:active, .btn-secondary:active, .btn-primary:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #1c5bad;
  color: #fff;
  border-color: #1c5bad;
  box-shadow: 0 1px 2px rgba(28, 91, 173, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  background: #164a8f;
  border-color: #164a8f;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(28, 91, 173, 0.4);
}

.btn-secondary {
  background: #fff;
  color: #334155;
  border-color: #cfc8bc;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}
.btn-secondary:hover {
  background: #faf8f4;
  border-color: #b0a797;
  color: #0f172a;
}

.btn-outline-accent {
  background: #fff;
  color: #1c5bad;
  border: 1.5px solid #1c5bad;
}
.btn-outline-accent:hover {
  background: #1c5bad;
  border-color: #1c5bad;
  color: #fff;
}

.btn-secondary-yellow {
  background: #e8912a;
  color: #0f172a;
  border-color: #e8912a;
  box-shadow: 0 1px 2px rgba(232, 145, 42, 0.3);
}
.btn-secondary-yellow:hover {
  background: #f0a444;
  border-color: #c97520;
  color: #0f172a;
}

.btn-primary-green {
  background: #1a8f4c;
  color: #fff;
  border-color: #1a8f4c;
  box-shadow: 0 1px 2px rgba(26, 143, 76, 0.25);
}
.btn-primary-green:hover {
  background: #157a40;
  border-color: #157a40;
  color: #fff;
}

.btn-danger {
  background: #dc3a2f;
  color: #fff;
  border-color: #dc3a2f;
}
.btn-danger:hover {
  background: #bf2e24;
  border-color: #bf2e24;
  color: #fff;
}

.btn-finalizar {
  width: 100%;
  background: #1c5bad;
  color: #fff;
  border-color: #1c5bad;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(28, 91, 173, 0.3);
}
.btn-finalizar:hover {
  background: #164a8f;
  border-color: #164a8f;
  color: #fff;
}

.card {
  --bs-card-border-color: #e3ded5;
  --bs-card-border-radius: 10px;
  --bs-card-inner-border-radius: 9px;
  --bs-card-cap-bg: #ffffff;
  --bs-card-cap-padding-y: 0.8rem;
  --bs-card-cap-padding-x: 1.1rem;
  --bs-card-spacer-x: 1.1rem;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}

.card-header {
  font-weight: 600;
  color: #0f172a;
  border-bottom-color: #ece8e1;
}

.card-footer {
  background: #faf8f4;
  border-top-color: #ece8e1;
}

.card-header-light {
  background: #faf8f4;
  border-bottom: 1px solid #ece8e1;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.card-header-orange {
  background: #eaf1fb;
  color: #164a8f;
  border-bottom: 1px solid rgba(28, 91, 173, 0.12);
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.card-accent-orange,
.card-accent-green,
.card-accent-blue {
  position: relative;
  overflow: hidden;
}
.card-accent-orange::before,
.card-accent-green::before,
.card-accent-blue::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.card-accent-orange::before {
  background: #e8912a;
}

.card-accent-green::before {
  background: #1a8f4c;
}

.card-accent-blue::before {
  background: #1f73b7;
}

.card-modern {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  overflow: hidden;
}

.card-modern-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #ece8e1;
  background: #ffffff;
}

.card-modern-title {
  font-weight: 700;
  font-size: 0.72rem;
  color: #334155;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-modern-body {
  padding: 1.15rem;
  overflow-x: auto;
}
.card-modern-body.p-0 {
  padding: 0;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 767.98px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-cards--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 991.98px) {
  .stat-cards--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 575.98px) {
  .stat-cards--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  --stat-color: #5b6577;
  --stat-soft: #f3f1ec;
  --stat-text: #334155;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--stat-color);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
  border-color: color-mix(in srgb, var(--stat-color) 45%, #e3ded5);
}
.stat-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 7px;
  background: var(--stat-soft);
  color: var(--stat-color);
  line-height: 1;
}
.stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.stat-card__value {
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.stat-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stat-text);
}
.stat-card--neutral {
  --stat-color: #1c5bad;
  --stat-soft: #eaf1fb;
  --stat-text: #164a8f;
}
.stat-card--warning {
  --stat-color: #e08a0b;
  --stat-soft: #fff8eb;
  --stat-text: #8a4b06;
}
.stat-card--info {
  --stat-color: #1f73b7;
  --stat-soft: #e9f3fb;
  --stat-text: #174e7d;
}
.stat-card--success {
  --stat-color: #1a8f4c;
  --stat-soft: #ecf8f1;
  --stat-text: #14532d;
}
.stat-card--danger {
  --stat-color: #dc3a2f;
  --stat-soft: #fdf1f0;
  --stat-text: #962218;
}
@media (max-width: 575.98px) {
  .stat-card {
    padding: 0.8rem 0.85rem;
    gap: 0.6rem;
  }
  .stat-card__icon {
    display: none;
  }
  .stat-card__value {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }
  .stat-card__label {
    font-size: 0.62rem;
  }
}
.stat-card--active {
  border-color: var(--stat-color);
  background: var(--stat-soft);
  box-shadow: inset 0 0 0 1px var(--stat-color), 0 1px 2px rgba(41, 33, 20, 0.05);
}
.stat-card--active .stat-card__value {
  color: var(--stat-text);
}

.kpi-card {
  border-radius: 10px;
}
.kpi-card .card-body > p.small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.45rem !important;
}
.kpi-card h3 {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 600 !important;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.kpi-card h3.text-orange {
  color: #a3540b !important;
}
.kpi-card h3.text-green {
  color: #14532d !important;
}
.kpi-card h3.text-blue {
  color: #164a8f !important;
}

.placeholder-card {
  border-radius: 10px;
}

.resumen-card {
  border: 1px solid #e3ded5;
}

.box-credenciales {
  background: #f3f1ec;
  border: 1px dashed #cfc8bc;
  border-radius: 7px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.main-content > .d-flex.justify-content-between:has(+ .card.maxw-480) {
  max-width: 480px;
}

.main-content > .d-flex.justify-content-between:has(+ .card.maxw-500) {
  max-width: 500px;
}

.main-content > .d-flex.justify-content-between:has(+ .card.maxw-600) {
  max-width: 600px;
}

.table {
  --bs-table-border-color: #f0ede7;
  --bs-table-hover-bg: #f7f4ee;
  --bs-table-striped-bg: #faf8f4;
  margin-bottom: 0;
}
.table thead th {
  background: #faf8f4;
  color: #5b6577;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-bottom: 1px solid #e3ded5;
  padding: 0.7rem 1rem;
  white-space: nowrap;
}
.table tbody td {
  border-color: #f0ede7;
  padding: 0.72rem 1rem;
  font-size: 0.85rem;
  color: #1e293b;
  vertical-align: middle;
}
.table tbody tr {
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.table tbody tr:hover {
  background: #f7f4ee;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tfoot tr.total-row {
  background: #eaf1fb;
  font-weight: 700;
}
.table tbody tr.venta-cc-pendiente > td {
  box-shadow: inset 0 0 0 9999px #fff8eb;
}
.table tbody tr.venta-cc-pendiente:hover > td {
  box-shadow: inset 0 0 0 9999px color-mix(in srgb, #fff8eb 65%, #f7f4ee);
}
.table tbody tr.venta-cc-pendiente > td:first-child {
  box-shadow: inset 3px 0 0 #e08a0b, inset 0 0 0 9999px #fff8eb;
}
.table tbody tr.venta-cc-pendiente:hover > td:first-child {
  box-shadow: inset 3px 0 0 #e08a0b, inset 0 0 0 9999px color-mix(in srgb, #fff8eb 65%, #f7f4ee);
}

.table-light {
  --bs-table-bg: #faf8f4;
  --bs-table-color: #5b6577;
  --bs-table-border-color: #e3ded5;
}

.table-modern {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.table-modern thead th {
  background: #faf8f4;
  color: #5b6577;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e3ded5;
  text-align: left;
}
.table-modern tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f0ede7;
  font-size: 0.85rem;
  vertical-align: middle;
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}
.table-modern tbody tr:hover {
  background: #f7f4ee;
}
.table-modern .form-control,
.table-modern .form-select {
  font-size: 0.85rem;
}

.th-sort {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s;
}
.th-sort:hover {
  color: #1c5bad;
}
.th-sort.is-active {
  color: #1c5bad;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767.98px) {
  .table-wrap {
    margin: 0 -1rem;
    border-radius: 0;
    padding: 0 1rem;
  }
}

.form-control,
.form-select {
  border-color: #cfc8bc;
  border-radius: 7px;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.form-control:hover:not(:focus):not(:disabled):not([readonly]),
.form-select:hover:not(:focus):not(:disabled):not([readonly]) {
  border-color: #b0a797;
}
.form-control::placeholder,
.form-select::placeholder {
  color: #94a3b8;
}
.form-control:disabled, .form-control[readonly],
.form-select:disabled,
.form-select[readonly] {
  background-color: #faf8f4;
}

.form-control-sm,
.form-select-sm {
  border-radius: 7px;
}

.input-group-text {
  background: #faf8f4;
  border-color: #cfc8bc;
  color: #5b6577;
}

.form-check-input {
  border-color: #b0a797;
}
.form-check-input:checked {
  background-color: #1c5bad;
  border-color: #1c5bad;
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
  border-color: #1c5bad;
}

.form-text {
  color: #5b6577;
}

.pwd-input-wrap {
  position: relative;
}
.pwd-input-wrap .form-control {
  padding-right: 2.6rem;
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #5b6577;
}
.pwd-toggle-btn:hover {
  color: #0f172a;
}

.form-control:focus,
.form-select:focus {
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.modalidad-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 767.98px) {
  .modalidad-group {
    grid-template-columns: 1fr;
  }
}

.modalidad-option {
  display: block;
  border: 1px solid #cfc8bc;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
  margin: 0;
}
.modalidad-option:hover {
  border-color: #b0a797;
  background: #faf8f4;
}
.modalidad-option input[type=radio] {
  display: none;
}
.modalidad-option input[type=radio]:checked + .modalidad-label .modalidad-title {
  color: #164a8f;
}
.modalidad-option:has(input[type=radio]:checked) {
  border-color: #1c5bad;
  background: #eaf1fb;
  box-shadow: inset 0 0 0 1px #1c5bad;
}

.modalidad-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modalidad-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
}

.modalidad-sub {
  font-size: 0.75rem;
  color: #5b6577;
}

.pago-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
@media (max-width: 767.98px) {
  .pago-group {
    grid-template-columns: 1fr 1fr;
  }
}

.pago-option {
  display: block;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
  margin: 0;
}
.pago-option input[type=radio] {
  display: none;
}
.pago-option:hover {
  border-color: #b0a797;
  background: #faf8f4;
}
.pago-option:has(input[type=radio]:checked) {
  border-color: #1c5bad;
  background: #eaf1fb;
  box-shadow: inset 0 0 0 1px #1c5bad;
}
.pago-option:has(input[type=radio]:checked) .pago-label {
  color: #164a8f;
  font-weight: 600;
}

.pago-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
}

.form-section {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}
.form-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.9rem;
}
@media (max-width: 767.98px) {
  .form-section {
    padding: 1rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}
.form-group input:not([type=radio]):not([type=checkbox]),
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.form-group input:not([type=radio]):not([type=checkbox]):hover:not(:focus):not(:disabled):not([readonly]),
.form-group select:hover:not(:focus):not(:disabled):not([readonly]),
.form-group textarea:hover:not(:focus):not(:disabled):not([readonly]) {
  border-color: #b0a797;
}
.form-group input:not([type=radio]):not([type=checkbox]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}
.form-group input:not([type=radio]):not([type=checkbox]):disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: #faf8f4;
  color: #5b6577;
}
.form-group input:not([type=radio]):not([type=checkbox])::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}
.form-group input[type=radio],
.form-group input[type=checkbox] {
  width: auto;
  min-height: 0;
  accent-color: #1c5bad;
  flex-shrink: 0;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
  padding: 0.6rem 0.75rem;
  line-height: 1.5;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 575.98px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.form-grid-2 .form-section {
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.empleado-form {
  width: 100%;
}

.form-hint {
  font-size: 0.75rem;
  color: #5b6577;
  margin: 0.4rem 0 0;
}

.form-group--action {
  align-self: end;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
}

.btn-buscar-mapa {
  align-self: stretch;
  width: 100%;
  height: 40px;
  min-height: 40px;
  font-weight: 600;
  gap: 0.4rem;
  background: #fff;
  color: #1c5bad;
  border: 1.5px solid #1c5bad;
  border-radius: 7px;
}
.btn-buscar-mapa:hover {
  background: #1c5bad;
  color: #fff;
  border-color: #1c5bad;
}

.direccion-acciones {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
}
.direccion-acciones .form-group {
  flex: 1 1 auto;
  margin-bottom: 0;
}
.direccion-acciones .direccion-mapbtn {
  flex: 0 0 auto;
  width: auto;
  align-self: flex-end;
  padding: 0 1.1rem;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .direccion-acciones {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .direccion-acciones .direccion-mapbtn {
    width: 100%;
  }
}

.input-sm {
  width: 100%;
  min-height: 32px;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.input-sm:hover:not(:focus) {
  border-color: #b0a797;
}
.input-sm:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.input-readonly {
  background: #faf8f4 !important;
  color: #0f172a;
  font-weight: 600;
  cursor: default;
}

.input-total {
  font-size: 1.1rem;
  color: #1c5bad;
  font-weight: 700;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.toggle-row input[type=checkbox] {
  accent-color: #1c5bad;
}

.toggle-sm {
  font-size: 0.75rem;
  color: #5b6577;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  cursor: pointer;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.radio-option:hover {
  border-color: #b0a797;
  background: #faf8f4;
}
.radio-option input[type=radio] {
  accent-color: #1c5bad;
}
.radio-option:has(input[type=radio]:checked) {
  border-color: #1c5bad;
  background: #eaf1fb;
  color: #164a8f;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #1c5bad;
}

.precio-total-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.precio-total-row > input {
  flex: 1;
}

.badge-en-transito,
.badge-alerta,
.badge-activo,
.badge-pendiente {
  font-size: 0.72rem;
  font-weight: 600;
}

:is(.table, .table-modern, .data-table) :is(.badge-en-transito, .badge-alerta, .badge-activo, .badge-pendiente)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.35em;
  opacity: 0.85;
  flex-shrink: 0;
}

.badge-pendiente {
  background: #fff8eb;
  color: #8a4b06;
  border: 1px solid #f8dfa6;
}

.badge-activo {
  background: #ecf8f1;
  color: #14532d;
  border: 1px solid #b9e5cb;
}

.badge-alerta {
  background: #fdf1f0;
  color: #962218;
  border: 1px solid #f6c6c1;
}

.badge-en-transito {
  background: #e9f3fb;
  color: #174e7d;
  border: 1px solid #bcd8f0;
}

.badge-rol {
  background: #eaf1fb;
  color: #164a8f;
  border: 1px solid rgba(28, 91, 173, 0.3);
  font-size: 0.65rem;
}

.badge-rol-lg {
  background: #1c5bad;
  color: #fff;
}

.dias-ok {
  color: #1a8f4c;
  font-weight: 700;
}

.dias-alerta {
  color: #8a4b06;
  font-weight: 700;
}

.dias-rojo {
  color: #dc3a2f;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3em 0.62em;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--con-stock, .badge--disponible {
  background: #ecf8f1;
  color: #14532d;
  border-color: #b9e5cb;
}
.badge--sin-stock {
  background: #fdf1f0;
  color: #962218;
  border-color: #f6c6c1;
}
.badge--alquilado, .badge--pendiente {
  background: #fff8eb;
  color: #8a4b06;
  border-color: #f8dfa6;
}
.badge--en-transito, .badge--despachado {
  background: #e9f3fb;
  color: #174e7d;
  border-color: #bcd8f0;
}
.badge--anulado {
  background: #f1f5f9;
  color: #5b6577;
  border-color: #cfc8bc;
}

.alert {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}
.alert .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert.alert-success {
  background: #ecf8f1;
  border-color: #b9e5cb;
  color: #14532d;
}
.alert.alert-success .alert-dot {
  background: #1a8f4c;
  box-shadow: 0 0 0 3px rgba(26, 143, 76, 0.18);
}
.alert.alert-danger {
  background: #fdf1f0;
  border-color: #f6c6c1;
  color: #962218;
}
.alert.alert-danger .alert-dot {
  background: #dc3a2f;
  box-shadow: 0 0 0 3px rgba(220, 58, 47, 0.18);
}
.alert.alert-warning {
  background: #fff8eb;
  border-color: #f8dfa6;
  color: #8a4b06;
}
.alert.alert-warning .alert-dot {
  background: #e08a0b;
  box-shadow: 0 0 0 3px rgba(224, 138, 11, 0.2);
}
.alert.alert-info {
  background: #e9f3fb;
  border-color: #bcd8f0;
  color: #174e7d;
}

.modal-header-dark {
  background: #1e293b;
  color: #fff;
}
.modal-header-dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-content {
  border-radius: 14px;
  border: 1px solid #e3ded5;
  box-shadow: 0 20px 44px -12px rgba(41, 33, 20, 0.24);
  overflow: hidden;
}

.modal-backdrop.show {
  opacity: 0.55;
}

.modal-footer {
  background: #faf8f4;
  border-top-color: #ece8e1;
}

@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0.5rem;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal-box {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  animation: modal-pop 0.16s ease-out;
}
.modal-box--lg {
  max-width: 800px;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #ece8e1;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  z-index: 1;
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}
.modal-title span {
  color: #1c5bad;
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: #5b6577;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 5px;
}
.modal-close:hover {
  color: #1e293b;
  background: #f3f1ec;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-body .form-section {
  margin: 0;
  background: #faf8f4;
  border: 1px solid #ece8e1;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.modal-body .form-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #1c5bad;
  border-bottom: 1px solid #ece8e1;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.abonar-resumen {
  background: #fdf1f0;
  border: 1px solid #f6c6c1;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.15rem;
}
.abonar-resumen__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #962218;
  margin: 0 0 0.15rem;
}
.abonar-resumen__monto {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #962218;
  line-height: 1.15;
}
.abonar-resumen__concepto {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #962218;
}

.abonar-quickfill {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1c5bad;
  cursor: pointer;
}
.abonar-quickfill:hover, .abonar-quickfill:focus-visible {
  text-decoration: underline;
}

.abonar-input-monto {
  position: relative;
}
.abonar-input-monto::before {
  content: "$";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5b6577;
  font-weight: 600;
  font-size: 0.85rem;
  pointer-events: none;
}
.abonar-input-monto input {
  padding-left: 1.65rem !important;
}

.pagination-orange {
  --bs-pagination-active-bg: #1c5bad;
  --bs-pagination-active-border-color: #1c5bad;
  --bs-pagination-color: #1c5bad;
  --bs-pagination-hover-color: #164a8f;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state__icon {
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.55;
}
.empty-state__msg {
  margin: 0;
  color: #5b6577;
  font-size: 0.85rem;
  font-weight: 500;
}
.empty-state--compact {
  padding: 1.5rem 1rem;
  gap: 0.4rem;
}
.empty-state--compact .empty-state__icon {
  font-size: 1.75rem;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #ece8e1;
}

.filtros-bar {
  display: flex;
}
.filtros-bar > .btn-primary, .filtros-bar > .btn-secondary, .filtros-bar > button, .filtros-bar > a {
  flex: 0 0 auto;
}
.filtros-bar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}

.filtro-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 118px;
  min-width: 0;
}
.filtro-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}
.filtro-group input,
.filtro-group select {
  min-height: 40px;
  width: 100%;
  min-width: 0;
  border: 1px solid #cfc8bc;
  border-radius: 7px;
  padding: 0 0.7rem;
  font-size: 0.85rem;
  background: #fff;
  color: #1e293b;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.filtro-group input:focus,
.filtro-group select:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.periodo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.periodo-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  border: 1px solid #cfc8bc;
  background: #ffffff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1), color 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.periodo-chip:hover {
  border-color: #1c5bad;
  color: #164a8f;
  background: #eaf1fb;
}
.periodo-chip.is-active {
  background: #1c5bad;
  border-color: #1c5bad;
  color: #fff;
  box-shadow: 0 2px 6px -1px rgba(28, 91, 173, 0.4);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(41, 33, 20, 0.07), 0 1px 2px rgba(41, 33, 20, 0.04);
}

.data-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table thead th {
  background: #faf8f4;
  color: #5b6577;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e3ded5;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f0ede7;
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover {
  background: #f7f4ee;
}
.data-table tbody tr.venta-cc-pendiente {
  background: #fff8eb;
  box-shadow: inset 3px 0 0 #e08a0b;
}
.data-table tbody tr.venta-cc-pendiente:hover {
  background: color-mix(in srgb, #fff8eb 65%, #f7f4ee);
}

.td-vacia {
  text-align: center;
  color: #5b6577;
  font-style: italic;
  padding: 2.25rem 1rem !important;
}

.td-acciones {
  white-space: nowrap;
  text-align: right;
}

.transaccion-monto {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  text-align: right;
}

.total-mes-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  background: #eaf1fb;
  border: 1px solid #e3ded5;
  border-radius: 7px;
  font-weight: 700;
  color: #164a8f;
}

.badge[class*="--tipo-"] {
  background: #eaf1fb;
  color: #164a8f;
  border-color: rgba(28, 91, 173, 0.35);
}

.tabla-toolbar__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.tabla-toolbar__search {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  min-width: 200px;
  max-width: 480px;
}
.tabla-toolbar__search .form-control {
  flex: 1;
}
.tabla-toolbar__btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tabla-toolbar__filtros-btn {
  flex-shrink: 0;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tabla-toolbar__extras {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tabla-toolbar__filtros-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 0.85rem;
  background: #faf8f4;
  border-radius: 7px;
  border: 1px solid #e3ded5;
}
.tabla-toolbar__filtro {
  min-width: 160px;
  flex: 1 1 160px;
}
.tabla-toolbar__filtro-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .tabla-toolbar__search {
    max-width: 100%;
  }
  .tabla-toolbar__filtro {
    min-width: 100%;
  }
}

.th-sort__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.1s;
}
.th-sort__link:hover {
  color: #1c5bad;
}
.th-sort__link.is-active {
  color: #1c5bad;
}
.th-sort__arrow {
  font-size: 0.75em;
  opacity: 0.55;
}
.is-active .th-sort__arrow {
  opacity: 1;
}

.total-display {
  font-size: 2rem;
  font-weight: 700;
  color: #1c5bad;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0.5rem 0;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem 1.25rem;
}
@media (max-width: 991.98px) {
  .resumen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767.98px) {
  .resumen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .resumen-grid {
    grid-template-columns: 1fr;
  }
}
.resumen-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rs-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5b6577;
  font-weight: 600;
}

.rs-value {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

.resumen-items {
  border-top: 1px dashed #e3ded5;
  padding-top: 0.75rem;
}
.resumen-items .rs-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0ede7;
}
.resumen-items .rs-item:last-child {
  border-bottom: none;
}
.resumen-items .rs-item-sub {
  font-weight: 600;
  color: #1e293b;
}

.resumen-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #1c5bad;
  border-radius: 7px;
  color: #fff;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.resumen-total .rs-total-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
}
.resumen-total .rs-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.por-finalizar-list {
  border: 1px solid #eaf1fb;
  border-radius: 7px;
  padding: 0.65rem;
  background: #f5f9ff;
  max-height: 280px;
  overflow-y: auto;
}

.por-finalizar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
  margin: 0;
}
.por-finalizar-item:hover {
  background: rgba(28, 91, 173, 0.05);
}
.por-finalizar-item input[type=radio] {
  margin-top: 4px;
  flex-shrink: 0;
}
.por-finalizar-item:has(input[type=radio]:checked) {
  background: rgba(28, 91, 173, 0.12);
  outline: 1px solid #1c5bad;
}

.por-finalizar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}

.por-finalizar-num {
  font-weight: 700;
  color: #1e293b;
}

.por-finalizar-fecha {
  color: #164a8f;
  font-weight: 500;
}

.por-finalizar-dir {
  color: #5b6577;
  font-size: 0.76rem;
}

.map-container {
  height: 360px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e3ded5;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  color: #1c5bad;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.12s;
}
.back-link:hover {
  color: #164a8f;
  text-decoration: underline;
}

.buscar-cliente {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.buscar-cliente__search {
  position: relative;
  width: 100%;
}
.buscar-cliente__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 575.98px) {
  .buscar-cliente__inputs {
    grid-template-columns: 1fr;
  }
}
.buscar-cliente__btns {
  grid-column: 1/-1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.buscar-cliente__btns #btnBuscarCliente {
  background: #fff;
  color: #1c5bad;
  border: 1.5px solid #1c5bad;
}
.buscar-cliente__btns #btnBuscarCliente:hover {
  background: #1c5bad;
  color: #fff;
  border-color: #1c5bad;
}
.buscar-cliente__resultado {
  background: #faf8f4;
  border: 1px solid #e3ded5;
  border-radius: 7px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
}
.buscar-cliente__resultado .resultado-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ede7;
  cursor: pointer;
}
.buscar-cliente__resultado .resultado-item:last-child {
  border-bottom: none;
}
.buscar-cliente__resultado .resultado-item:hover {
  background: #eaf1fb;
}
.buscar-cliente__seleccionado {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #eaf1fb;
  border: 1px solid #1c5bad;
  border-radius: 7px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #164a8f;
  flex-wrap: wrap;
}
.buscar-cliente__seleccionado > .btn-sm {
  margin-left: auto;
}
.buscar-cliente__crear {
  background: #faf8f4;
  border: 1px dashed #e3ded5;
  border-radius: 7px;
  padding: 0.85rem;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 7px;
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
}
.autocomplete-item:hover {
  background: #eaf1fb;
}
.autocomplete-item__nombre {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
}
.autocomplete-item__meta {
  font-size: 0.75rem;
  color: #5b6577;
}

.autocomplete-empty {
  padding: 0.6rem;
  font-size: 0.85rem;
  color: #5b6577;
  text-align: center;
}

.autocomplete-crear {
  background: transparent;
  border: 0;
  color: #1c5bad;
  font-weight: 600;
  cursor: pointer;
}

.select-buscable {
  position: relative;
}
.select-buscable .autocomplete-item.is-activa {
  background: #eaf1fb;
}

.select-buscable__vacio {
  color: #5b6577;
  cursor: default;
}
.select-buscable__vacio:hover {
  background: transparent;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: rgba(13, 27, 53, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.app-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.app-loader__core {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(232, 145, 42, 0.18);
  border-top-color: #e8912a;
  animation: app-loader-spin 0.9s linear infinite;
}

.app-loader__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  animation: app-loader-pulse 1.6s ease-in-out infinite;
}

.app-loader__text {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.85;
  animation: app-loader-fade 1.6s ease-in-out infinite;
}

@keyframes app-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes app-loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.7;
  }
}
@keyframes app-loader-fade {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.45;
  }
}
.app-loader--inline {
  position: static;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  padding: 2rem 0;
}
.app-loader--inline .app-loader__core {
  width: 64px;
  height: 64px;
}
.app-loader--inline .app-loader__logo {
  width: 36px;
  height: 36px;
}
.app-loader--inline .app-loader__text {
  color: #5b6577;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.875rem;
}
@media (max-width: 575.98px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  text-decoration: none;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.module-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mc, #e3ded5);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
  border-color: var(--mc, #e3ded5);
  color: #1e293b;
}
.module-card:hover::after {
  opacity: 1;
}
.module-card:hover .mc-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.mc-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--mc-soft, #f3f1ec);
  color: var(--mc, #5b6577);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.mc-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mc-desc {
  font-size: 0.73rem;
  color: #5b6577;
  line-height: 1.45;
  flex: 1;
}

.mc-arrow {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mc, #5b6577);
  letter-spacing: 0.1px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.dashboard-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #5b6577;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ece8e1;
}

.auth-body {
  min-height: 100vh;
  background: radial-gradient(900px 520px at 12% -8%, rgba(28, 91, 173, 0.42), transparent 62%), radial-gradient(760px 460px at 105% 108%, rgba(232, 145, 42, 0.2), transparent 60%), #0b1a33;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.auth-body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(217, 185, 138, 0.07) 18% 38%, rgba(232, 145, 42, 0.13) 38% 58%, rgba(217, 185, 138, 0.1) 58% 76%, rgba(28, 91, 173, 0.22) 76% 100%);
}
.auth-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(255, 255, 255, 0.035) 11px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.auth-body > .login-card {
  z-index: 1;
}

.login-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  padding: 2.6rem 2.25rem 2rem;
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8912a 0 33.33%, #d9b98a 33.33% 66.66%, #1c5bad 66.66% 100%);
}
@media (max-width: 575.98px) {
  .login-card {
    padding: 2.2rem 1.4rem 1.6rem;
    border-radius: 10px;
  }
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #faf8f4;
  border: 1px solid #e3ded5;
  margin-bottom: 1.2rem;
}

.login-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
  letter-spacing: -0.025em;
}

.login-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  margin: 0 0 0.15rem;
}

.login-desc {
  font-size: 0.84rem;
  color: #5b6577;
  margin: 0 0 1.75rem;
}

.login-desc-accent {
  color: #1c5bad;
  font-weight: 500;
}

.login-form {
  text-align: left;
}

.login-field {
  margin-bottom: 1rem;
}
.login-field:last-of-type {
  margin-bottom: 1.5rem;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.login-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px solid #cfc8bc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.login-input::placeholder {
  color: #94a3b8;
}
.login-input:hover:not(:focus) {
  border-color: #b0a797;
}
.login-input:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.login-pwd-wrap {
  position: relative;
}
.login-pwd-wrap .login-input {
  padding-right: 2.9rem;
}

.login-eye {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 0;
  cursor: pointer;
  color: #5b6577;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.login-eye:hover {
  color: #1c5bad;
  background: #eaf1fb;
}

.login-submit {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem;
  background: #1c5bad;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.005em;
  box-shadow: 0 6px 16px -4px rgba(28, 91, 173, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.06s;
}
.login-submit:hover {
  background: #164a8f;
  box-shadow: 0 8px 20px -4px rgba(28, 91, 173, 0.6);
}
.login-submit:active {
  transform: translateY(1px);
}
.login-submit:focus-visible {
  outline: 2px solid #1c5bad;
  outline-offset: 3px;
}

.login-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #5b6577;
  text-align: center;
}

.login-footer-link {
  color: #1c5bad;
  font-weight: 500;
  text-decoration: none;
}
.login-footer-link:hover {
  text-decoration: underline;
}

.error-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.error-icon {
  font-size: 4rem;
}

.error-back-btn {
  background: #1c5bad;
  color: #fff;
  border-radius: 7px;
}
.error-back-btn:hover {
  background: #164a8f;
  color: #fff;
}

.placeholder-icon {
  font-size: 3rem;
}

.remito-body {
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: #1e293b;
  padding: 1.5rem;
}

.remito-brand {
  color: #1c5bad;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.remito-title {
  color: #1c5bad;
}

.remito-total td {
  color: #1c5bad;
  font-size: 1.1rem;
}

.remito-total-row td {
  background: #eaf1fb;
  font-weight: bold;
}

.remito-print-btn {
  background: #1c5bad;
  color: #fff;
  font-weight: 600;
}
.remito-print-btn:hover {
  background: #164a8f;
  color: #fff;
}

.firma-box {
  border-top: 1px solid #ccc;
  width: 200px;
  text-align: center;
  padding-top: 6px;
  font-size: 0.8rem;
  color: #748196;
}

@media print {
  .remito-body {
    font-size: 0.85rem;
  }
}
.liq-tipos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.liq-tipo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.liq-resumen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .liq-resumen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.liq-resumen__caja {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 7px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.liq-resumen__caja span {
  font-size: 0.75rem;
  color: #5b6577;
  text-transform: uppercase;
  font-weight: 600;
}
.liq-resumen__caja strong {
  font-size: 1.25rem;
}

.liq-cliente-titulo {
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
}

.liq-op {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-left: 4px solid #e3ded5;
  border-radius: 7px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.liq-op--pagada {
  border-left-color: #15803d;
}
.liq-op--parcial {
  border-left-color: #e8912a;
}
.liq-op--pendiente {
  border-left-color: #b91c1c;
}
.liq-op--a_convenir {
  border-left-color: #6b7280;
}
.liq-op__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e3ded5;
}
.liq-op__titulo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.85rem;
}
.liq-op__titulo span {
  color: #5b6577;
}
.liq-op__acciones {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.liq-op__tabla {
  font-size: 0.85rem;
}
.liq-op__tabla th {
  font-size: 0.75rem;
  color: #5b6577;
  text-transform: uppercase;
}
.liq-op__pie {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}
.liq-op__pie > :first-child {
  margin-right: auto;
}

.liq-estado {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.liq-estado--pagada {
  background: #dcfce7;
  color: #15803d;
}
.liq-estado--parcial {
  background: #fff1dc;
  color: #b45309;
}
.liq-estado--pendiente {
  background: #fee2e2;
  color: #b91c1c;
}
.liq-estado--a_convenir {
  background: #f3f4f6;
  color: #6b7280;
}

.ventas-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .ventas-layout {
    grid-template-columns: 1fr 320px;
  }
}
@media (max-width: 767.98px) {
  .ventas-layout {
    grid-template-columns: 1fr;
  }
}

.ventas-productos__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ventas-productos__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.25rem 0 0;
  letter-spacing: -0.3px;
}

.ventas-lista-productos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
@media (max-width: 575.98px) {
  .ventas-lista-productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}
.ventas-lista-productos > li:has(.ventas-card--sin-stock) {
  order: 1;
}

.ventas-card {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  height: 100%;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}
.ventas-card:hover {
  border-color: #1c5bad;
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
}
.ventas-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ventas-card__nombre {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1e293b;
}
.ventas-card__precio {
  font-size: 1.3rem;
  font-weight: 600;
  color: #164a8f;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
@media (max-width: 575.98px) {
  .ventas-card {
    padding: 0.75rem;
    min-width: 0;
  }
  .ventas-card__top {
    flex-wrap: wrap;
  }
  .ventas-card__precio {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }
}
.ventas-card--sin-stock {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.ventas-card--sin-stock:hover {
  border-color: #cfc8bc;
  box-shadow: none;
}
.ventas-card--sin-stock .ventas-card__nombre {
  color: #5b6577;
}
.ventas-card--sin-stock .ventas-card__precio {
  color: #b4bfcd;
}
.ventas-card--sin-stock .addToCart,
.ventas-card--sin-stock .addToCart:disabled {
  background: transparent !important;
  border: 1px solid #e3ded5 !important;
  color: #5b6577 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.ventas-card .addToCart {
  width: 100%;
  margin-top: 0.25rem;
}

.carrito-aside {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1.15rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.carrito-aside > * {
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .carrito-aside {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(90%, 360px);
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border: none;
    border-left: 1px solid #e3ded5;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1050;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.22);
  }
  .carrito-aside.is-open {
    transform: translateX(0);
  }
}

.cart-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .cart-toggle {
    display: inline-flex;
  }
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.cart-count--has {
  background: #164a8f;
}

.cart-close {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: none;
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #5b6577;
}
@media (max-width: 767.98px) {
  .cart-close {
    display: block;
  }
}
.cart-close:hover {
  color: #1e293b;
}

.cart-backdrop {
  display: none;
}
@media (max-width: 767.98px) {
  .cart-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
  }
}

.carrito-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1e293b;
  margin: 0 0 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e3ded5;
}

#cartItemsContainer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 60px;
}
#cartItemsContainer:empty::before {
  content: "Carrito vacío";
  color: #5b6577;
  font-size: 0.85rem;
  font-style: italic;
  display: block;
  text-align: center;
  padding: 1rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #f3f1ec;
  border: 1px solid #ece8e1;
  border-radius: 7px;
  font-size: 0.85rem;
}
.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.cart-item__nombre {
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__meta {
  font-size: 0.75rem;
  color: #5b6577;
  line-height: 1.2;
}
.cart-item__meta b {
  color: #1e293b;
  font-weight: 700;
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e3ded5;
  border-radius: 5px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.qty-btn:hover {
  background: #eaf1fb;
  border-color: #1c5bad;
  color: #1c5bad;
}
.qty-btn:active {
  transform: translateY(1px);
}
.qty-btn.qty-remove {
  margin-left: 0.2rem;
  color: #dc3a2f;
}
.qty-btn.qty-remove:hover {
  background: #fdf1f0;
  border-color: #f6c6c1;
  color: #dc3a2f;
}

.qty-display {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.85rem;
}

.dias-contenedor,
.cantidad-cantera {
  width: 3.6rem;
  min-height: 28px;
  height: 28px;
  padding: 0 0.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #cfc8bc;
  border-radius: 5px;
  box-shadow: none;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.dias-contenedor:hover:not(:focus),
.cantidad-cantera:hover:not(:focus) {
  border-color: #b0a797;
}
.dias-contenedor:focus,
.cantidad-cantera:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.precio-cantera {
  width: 4.4rem;
  min-height: 20px;
  height: 20px;
  padding: 0 0.3rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid #cfc8bc;
  border-radius: 5px;
  box-shadow: none;
  background: #fff;
  color: #1e293b;
  vertical-align: middle;
  transition: border-color 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.precio-cantera:hover:not(:focus) {
  border-color: #b0a797;
}
.precio-cantera:focus {
  outline: none;
  border-color: #1c5bad;
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.cart_empty {
  color: #5b6577;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

.cart-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #1c5bad;
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
}

.precio-editable-section {
  background: #f3f1ec;
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.carrito-seccion {
  padding-top: 0.5rem;
  border-top: 1px dashed #e3ded5;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e3ded5;
}

.viaje-form-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .viaje-form-layout {
    grid-template-columns: 1fr 340px;
  }
}
@media (max-width: 767.98px) {
  .viaje-form-layout {
    grid-template-columns: 1fr;
  }
}

.viaje-form-main,
.viaje-form-aside {
  display: flex;
  flex-direction: column;
}

.viaje-form-aside {
  position: sticky;
  top: 1rem;
}
@media (max-width: 767.98px) {
  .viaje-form-aside {
    position: static;
  }
}

#venta-viaje .form-section {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
#venta-viaje .form-section__title {
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f0ede7;
}
#venta-viaje .form-group {
  margin-bottom: 0.6rem;
}
#venta-viaje .viaje-form-aside .form-section {
  padding: 0.8rem 0.9rem;
}
#venta-viaje .input-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: #164a8f;
  background: #eaf1fb;
  border-color: rgba(28, 91, 173, 0.3);
}
#venta-viaje .btn-finalizar {
  margin-top: 0.25rem;
}

.alquiler-form-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .alquiler-form-layout {
    grid-template-columns: 1fr 340px;
  }
}
@media (max-width: 767.98px) {
  .alquiler-form-layout {
    grid-template-columns: 1fr;
  }
}

.alquiler-form-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alquiler-form-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
@media (max-width: 767.98px) {
  .alquiler-form-aside {
    position: static;
  }
}

.alquiler-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.alquiler-card {
  border: 2px solid #e3ded5;
  border-radius: 7px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}
.alquiler-card:hover {
  border-color: #1c5bad;
}
.alquiler-card--selected {
  border-color: #1c5bad;
  background: #eaf1fb;
}
.alquiler-card--por-liberar {
  border-color: #e08a0b;
  background: #fef9e7;
  opacity: 0.9;
}
.alquiler-card__numero {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  letter-spacing: 0.2px;
}

.seleccion-bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border: 1px solid #1c5bad;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.seleccion-bar #seleccionTexto {
  font-weight: 600;
  margin-right: auto;
}

.multi-cont-lista {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.multi-cont-fila {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e3ded5;
  border-radius: 7px;
}
.multi-cont-fila__num {
  font-weight: 700;
  min-width: 3.5rem;
  align-self: center;
}
.multi-cont-fila label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.alquiler-resumen {
  background: #faf8f4;
  border-radius: 7px;
  padding: 1rem;
}

.resumen-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.resumen-label {
  color: #5b6577;
  font-weight: 500;
}

.resumen-valor {
  font-weight: 600;
  color: #1e293b;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e3ded5;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-confirmar-alquiler--ready {
  animation: pulse-confirm 1s ease-in-out infinite alternate;
}

@keyframes pulse-confirm {
  from {
    box-shadow: 0 0 0 0 rgba(28, 91, 173, 0.3);
  }
  to {
    box-shadow: 0 0 0 8px rgba(28, 91, 173, 0);
  }
}
.modalidad-group {
  display: flex;
  gap: 1rem;
}

.modalidad-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.cont-tabs {
  display: inline-flex;
  gap: 0.35rem;
  background: #f3f1ec;
  border: 1px solid #e3ded5;
  border-radius: 999px;
  padding: 0.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cont-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #5b6577;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cont-tab:hover {
  color: #0f172a;
}
.cont-tab.is-active {
  background: #1c5bad;
  color: #fff;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}
.cont-tab--warn.is-active {
  background: #e8912a;
}
.cont-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0 0.35em;
  height: 1.4em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.78em;
  font-weight: 700;
}
.cont-tab.is-active .cont-tab__count {
  background: rgba(255, 255, 255, 0.28);
}

.cont-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.cont-tabs-row .cont-tabs {
  margin-top: 0;
}

.config-page {
  max-width: 800px;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.config-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.detail-card {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(41, 33, 20, 0.07), 0 1px 2px rgba(41, 33, 20, 0.04);
}

.detalle-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1e293b;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #ece8e1;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 767.98px) {
  .detalle-grid {
    grid-template-columns: 1fr;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem 1.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ede7;
}
.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #5b6577;
  font-size: 0.85rem;
  font-weight: 500;
}

.info-value {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: right;
}

.detalle-precio {
  color: #1c5bad;
  font-weight: 700;
  font-size: 1.1rem;
}

.saldo-negativo {
  color: #dc3a2f;
}

.saldo-positivo {
  color: #1a8f4c;
}

.historial-filtros-card {
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
}

.clientes-historial {
  margin-bottom: 1.75rem;
}
.clientes-historial__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
}
.clientes-historial__empty {
  color: #5b6577;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px dashed #e3ded5;
  border-radius: 7px;
}

.cuentas-section {
  margin-bottom: 2rem;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #5b6577;
}

.alquiler-resumen__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.alquiler-resumen__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #ece8e1;
}
.alquiler-resumen__row:last-child {
  border-bottom: none;
}

.alquiler-resumen__label {
  color: #5b6577;
  font-size: 0.85rem;
  font-weight: 500;
}

.confirmacion-card {
  max-width: 480px;
  margin: 3rem auto;
  background: #ffffff;
  border: 1px solid #e3ded5;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
}

.confirmacion-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: #ecf8f1;
  color: #1a8f4c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
}

.confirmacion-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem;
}

.confirmacion-detalles {
  text-align: left;
  background: #faf8f4;
  border: 1px solid #ece8e1;
  border-radius: 7px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.5rem;
}

.confirmacion-acciones {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tx-modal {
  max-width: 540px;
}

.tx-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tx-modal__id {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  background: #eaf1fb;
  border: 1px solid rgba(28, 91, 173, 0.2);
  color: #164a8f;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tx-modal__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf8f4 0%, #eaf1fb 100%);
  border: 1px solid #e3ded5;
}

.tx-hero__label {
  display: block;
  color: #5b6577;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.2rem;
}

.tx-hero__value {
  display: block;
  color: #1a8f4c;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.tx-datos {
  display: flex;
  flex-direction: column;
}

.tx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0ede7;
}
.tx-row:last-child {
  border-bottom: 0;
}

.tx-row__label {
  color: #5b6577;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tx-row__value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tx-row--bloque {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}
.tx-row--bloque .tx-row__value {
  text-align: left;
  font-weight: 500;
  line-height: 1.45;
}

.tx-pago {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #faf8f4;
  border: 1px solid #e3ded5;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
}

.tx-link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1c5bad;
  cursor: pointer;
}
.tx-link-btn:hover, .tx-link-btn:focus-visible {
  text-decoration: underline;
}

.tx-metodo-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0ede7;
}
.tx-metodo-edit select {
  flex: 1 1 auto;
  min-height: 32px;
  border: 1px solid #cfc8bc;
  border-radius: 5px;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  background: #ffffff;
  color: #0f172a;
}

.tx-files__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #5b6577;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.6rem;
}

.tx-files__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tx-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  border: 1px solid #e3ded5;
  background: #ffffff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(41, 33, 20, 0.05);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tx-file-link:hover {
  background: #eaf1fb;
  border-color: rgba(28, 91, 173, 0.35);
  color: #164a8f;
}
.tx-file-link--firmado {
  background: #ecf8f1;
  border-color: #b9e5cb;
  color: #14532d;
}
.tx-file-link--firmado:hover {
  background: #d1fae5;
  border-color: #1a8f4c;
  color: #14532d;
}

.tx-files__empty {
  color: #b4bfcd;
  font-size: 0.85rem;
  font-style: italic;
}

.tx-modal__actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #ece8e1;
  background: #faf8f4;
}

@media (max-width: 575.98px) {
  .tx-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .tx-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .tx-row .tx-row__value {
    text-align: left;
  }
}
.tx-alerta-borrado {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #fdf1f0;
  border: 1px solid #f6c6c1;
  color: #962218;
}
.tx-alerta-borrado p {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.45;
}
.tx-alerta-borrado .ic {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.card-accent-red {
  border-left: 3px solid #dc3a2f;
}

.fact-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  height: 220px;
  padding-top: 1.75rem;
  border-bottom: 1px solid #cfc8bc;
  background-image: linear-gradient(#f0ede7 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: 0 1.75rem;
  background-repeat: repeat-y;
  background-clip: content-box;
}

.fact-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 5px;
  cursor: default;
  outline: none;
}
.fact-col:hover .fact-bar, .fact-col:focus-visible .fact-bar {
  background: #164a8f;
}
.fact-col:hover .fact-tip, .fact-col:focus-visible .fact-tip {
  opacity: 1;
}
.fact-col:hover .fact-val, .fact-col:focus-visible .fact-val {
  visibility: hidden;
}
.fact-col:focus-visible {
  box-shadow: 0 0 0 3px rgba(28, 91, 173, 0.22);
}

.fact-bar {
  width: min(44px, 70%);
  background: #1c5bad;
  border-radius: 4px 4px 0 0;
  transition: background 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.fact-val {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fact-tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 8px 20px -6px rgba(41, 33, 20, 0.14), 0 2px 4px rgba(41, 33, 20, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.2, 0, 0, 1);
  font-variant-numeric: tabular-nums;
}

.fact-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.fact-axis span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5b6577;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-tipo {
  margin-bottom: 0.8rem;
}
.fact-tipo__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.fact-track {
  height: 6px;
  background: #f0ede7;
  border-radius: 3px;
  overflow: hidden;
}

.fact-fill {
  height: 100%;
  background: #1c5bad;
  border-radius: 3px;
}

.fact-top {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: top;
}
.fact-top li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ede7;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.fact-top li:last-child {
  border-bottom: none;
}

.fact-filtro-q {
  flex: 1 1 220px;
}

.fact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #fdf1f0;
  border: 1px solid #f6c6c1;
  border-radius: 10px;
  color: #962218;
  font-size: 0.85rem;
  font-weight: 500;
}

.fact-sel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #ece8e1;
  background: #faf8f4;
  font-size: 0.85rem;
  color: #334155;
}

.fact-col-sel {
  width: 40px;
}

.fact-sel {
  width: 18px;
  height: 18px;
  accent-color: #1c5bad;
  cursor: pointer;
}

.fact-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: #faf8f4;
  border: 1px solid #e3ded5;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.fact-preview span {
  display: block;
  font-size: 0.7rem;
  color: #5b6577;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.fact-preview strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.fact-modo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fact-modo .radio-option {
  margin: 0;
}
.fact-modo .radio-option:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.fact-estado .card-body {
  padding: 0.85rem 1.1rem;
}

.cfg-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.cfg-ayuda code {
  display: block;
  margin: 0.35rem 0;
  padding: 0.45rem 0.6rem;
  background: #faf8f4;
  border: 1px solid #e3ded5;
  border-radius: 5px;
  color: #0f172a;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.text-orange {
  color: #a3540b !important;
}

.text-orange-dark {
  color: #c97520 !important;
}

.text-accent {
  color: #1c5bad !important;
}

.text-dark-title {
  color: #1e293b !important;
}

.text-green {
  color: #1a8f4c !important;
}

.text-blue {
  color: #1f73b7 !important;
}

.text-muted-soft {
  color: #748196 !important;
}

.text-muted-light {
  color: #b4bfcd !important;
}

.bg-dark-custom {
  background: #1e293b !important;
}

.bg-mid {
  background: #2e3a52 !important;
}

.bg-light-soft {
  background: #f3f1ec !important;
}

.bg-orange {
  background: #1c5bad !important;
}

.bg-orange-soft {
  background: #eaf1fb !important;
}

.ic {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.page-title .ic,
h1 .ic, h2 .ic, h4 .ic {
  margin-right: 0.15rem;
}

.icon-sm {
  font-size: 1.2rem;
}

.icon-md {
  font-size: 1.4rem;
}

.icon-lg {
  font-size: 2.5rem;
}

.icon-xl {
  font-size: 3rem;
}

.icon-xxl {
  font-size: 4rem;
}

.rounded-8 {
  border-radius: 7px !important;
}

.rounded-10 {
  border-radius: 10px !important;
}

.rounded-14 {
  border-radius: 14px !important;
}

.col-w-50 {
  width: 50px;
}

.col-w-100 {
  width: 100px;
}

.col-w-resto {
  width: 100%;
}

.col-w-140 {
  width: 140px;
}

.col-w-160 {
  width: 160px;
}

.tile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tile-grid > * {
  flex: 1 1 130px;
}

.min-vh-100 {
  min-height: 100vh;
}

.min-vh-60 {
  min-height: 60vh;
}

.maxw-80 {
  max-width: 80px;
}

.maxw-120 {
  max-width: 120px;
}

.maxw-200 {
  max-width: 200px;
}

.maxw-480 {
  max-width: 480px;
}

.maxw-500 {
  max-width: 500px;
}

.maxw-600 {
  max-width: 600px;
}

.border-divider {
  border-top: 1px solid #eee;
}

.border-sidebar {
  border-color: #2e3a52 !important;
}

.min-w-0 {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .app-navbar {
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .card-body.p-0,
  .card-modern-body,
  .table-responsive,
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .page-header,
  .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
@media (max-width: 575.98px) {
  .table {
    font-size: 0.84rem;
  }
  .table thead th,
  .table tbody td,
  .data-table thead th,
  .data-table tbody td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .page-header .d-flex.gap-2 {
    width: 100%;
  }
  .stat-cards.stat-cards--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.nav-tabs {
  border-bottom: 2px solid #e3ded5;
  gap: 0.15rem;
}
.nav-tabs .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1rem;
  background: transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.nav-tabs .nav-link:hover {
  color: #1c5bad;
  border-bottom-color: rgba(28, 91, 173, 0.4);
  background: #eaf1fb;
}
.nav-tabs .nav-link.active {
  color: #164a8f;
  background: transparent;
  border-bottom-color: #1c5bad;
}

.recurso-box {
  border: 1px solid #e3ded5;
  border-radius: 7px;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  height: 100%;
}
.recurso-box__top {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5b6577;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.ficha-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0ede7;
}
.ficha-row:last-child {
  border-bottom: none;
}

.ficha-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5b6577;
  flex-shrink: 0;
}

.ficha-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
  }
  input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),
  select,
  textarea,
  .form-control,
  .form-select,
  .form-group select,
  .form-group textarea,
  .filtro-group input,
  .filtro-group select,
  .input-sm {
    font-size: 16px;
  }
  .form-group input:not([type=radio]):not([type=checkbox]),
  .form-group select,
  .form-group textarea,
  .filtro-group input,
  .filtro-group select,
  .tabla-toolbar__search .form-control,
  .tabla-toolbar__filtro .form-select,
  .tabla-toolbar__filtro .form-control {
    min-height: 44px;
  }
  .form-group textarea {
    min-height: 96px;
  }
  .btn-sm {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-icon-danger {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .periodo-chip {
    padding: 0.55rem 1rem;
  }
  .navbar-toggle {
    width: 42px;
    height: 42px;
  }
  .app-navbar .nav-title {
    font-size: 1rem;
  }
  .card-body.p-0 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table thead th,
  .table tbody td,
  .table-modern thead th,
  .table-modern tbody td,
  .data-table thead th,
  .data-table tbody td {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .nav-section-label {
    font-size: 0.66rem;
  }
  .nav-group-label {
    font-size: 0.62rem;
  }
  .app-sidebar .nav-link {
    font-size: 0.9rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .app-sidebar .nav-link.is-indent {
    font-size: 0.86rem;
  }
  .stat-card {
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
  }
  .stat-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .stat-card__value {
    font-size: 1.35rem;
  }
  .stat-card__label {
    font-size: 0.66rem;
  }
}
@media (max-width: 575.98px) {
  .stat-card__value {
    font-size: 1.25rem;
  }
  .page-title {
    font-size: 1.1rem;
  }
  .total-display {
    font-size: 1.65rem;
  }
  .rs-total-value {
    font-size: 1.3rem;
  }
  .detalle-precio {
    font-size: 1rem;
  }
}

/*# sourceMappingURL=main.css.map */
