html {
  font-size: 13px;
}

:root {
  --bs-font-sans-serif: "Lato", "Segoe UI", sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.password-toggle-group > .password-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
}

.password-toggle-group > .password-toggle-button svg {
  width: 1rem;
  height: 1rem;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Lato", "Segoe UI", sans-serif;
  color: #15253b;
  background: #f4f7fb;
}

a {
  text-decoration: none;
}

.app-body {
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: none;
  padding-inline: 1.5rem;
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid rgba(214, 224, 236, 0.9);
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 72px;
  padding: 0;
}

.app-nav-collapse {
  justify-content: space-between;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #132238;
  font-weight: 800;
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #11b8d6 0%, #1d6ef2 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 110, 242, 0.18);
}

.app-brand-text {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.app-nav-toggle {
  border: 0;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 2rem;
}

.app-nav-item {
  position: relative;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: #25364d;
  font-weight: 600;
}

.app-nav-link:hover {
  color: #0f5fd7;
  background: #eaf3ff;
}

.app-submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid #dfebf7;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(34, 55, 88, 0.12);
}

.app-nav-item-has-menu:hover .app-submenu,
.app-nav-item-has-menu:focus-within .app-submenu {
  display: flex;
}

.app-submenu-link {
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  color: #32455e;
  font-weight: 600;
}

.app-submenu-link:hover {
  background: #f1f7ff;
  color: #115fce;
}

.app-nav-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.app-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e0e9f3;
  color: #5d6d80;
  font-weight: 600;
}

.app-user-dropdown {
  position: relative;
}

.app-user-dropdown-toggle {
  border: 0;
  cursor: pointer;
  text-align: left;
}

.app-user-dropdown-toggle::after {
  margin-left: 0.6rem;
}

.app-user-dropdown-menu {
  min-width: 14rem;
}

.app-user-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
}

.app-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #132238;
  color: #fff;
  font-weight: 700;
}

.app-login-link:hover {
  color: #fff;
  background: #0d1828;
}

.app-logout-button {
  width: 100%;
  color: #132238;
  font-weight: 700;
}

.app-logout-button:hover {
  color: #132238;
  background: #eef4fb;
}

.app-main {
  padding: 1.2rem 0 1.6rem;
}

.app-footer {
  padding: 0 0 1.5rem;
}

.app-footer .app-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dde7f1;
  color: #728196;
  font-size: 0.92rem;
}

.app-footer a {
  color: #385f92;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1.05rem;
  padding: 0.95rem 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 251, 255, 0.95) 100%);
  border: 1px solid #e5edf5;
  box-shadow: 0 18px 44px rgba(35, 57, 88, 0.06);
}

.dashboard-hero-kicker {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: #2c7be5;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-hero h1 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.05;
  font-weight: 800;
  color: #19304c;
}

.dashboard-hero p {
  margin: 0;
  color: #7d8da3;
  font-weight: 600;
  font-size: 0.92rem;
}

.dashboard-date-pill {
  flex-shrink: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #dfebf7;
  box-shadow: 0 10px 24px rgba(30, 60, 90, 0.06);
  color: #29466c;
  font-weight: 700;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.home-fullwidth .dashboard-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.dashboard-card {
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid #e5edf5;
  box-shadow: 0 16px 40px rgba(35, 57, 88, 0.06);
}

.dashboard-kpi-card {
  padding: 0.85rem 0.9rem 0.95rem;
  position: relative;
  overflow: hidden;
}

.home-fullwidth .dashboard-kpi-card {
  padding: 0.75rem 0.8rem 0.85rem;
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 108px;
  height: 108px;
  border-radius: 2rem;
  opacity: 0.08;
  pointer-events: none;
}

.dashboard-kpi-card-cyan::after { background: #1db8d1; }
.dashboard-kpi-card-blue::after { background: #2e74ec; }
.dashboard-kpi-card-slate::after { background: #314255; }
.dashboard-kpi-card-amber::after { background: #f59e0b; }

.dashboard-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.dashboard-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.dashboard-kpi-icon-cyan { background: #e9fbff; }
.dashboard-kpi-icon-blue { background: #edf3ff; }
.dashboard-kpi-icon-slate { background: #f1f4f8; }
.dashboard-kpi-icon-amber { background: #fff6e8; }

.dashboard-kpi-trend {
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.dashboard-kpi-trend-up {
  background: #e9fff3;
  color: #1ea765;
}

.dashboard-kpi-trend-down {
  background: #fff1f1;
  color: #e05252;
}

.dashboard-kpi-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #99a7bb;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-kpi-value {
  font-size: clamp(1.45rem, 1.7vw, 1.9rem);
  line-height: 1;
  color: #1a314d;
}

.home-fullwidth .dashboard-kpi-value {
  font-size: clamp(1.2rem, 1.4vw, 1.65rem);
}

.dashboard-kpi-subline {
  margin-top: 0.7rem;
  color: #7f8ea3;
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 0.85rem;
}

.dashboard-chart-card,
.dashboard-alert-card,
.dashboard-quick-card {
  padding: 0.9rem;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.dashboard-card-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #edf3ff;
  color: #2e5fa8;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-card-header h2,
.dashboard-quick-card h2 {
  margin: 0;
  color: #102842;
  font-size: 0.96rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-inline-filter {
  border: 0;
  background: transparent;
  color: #263c59;
  font-weight: 700;
}

.dashboard-chart-placeholder {
  position: relative;
  min-height: 340px;
  padding: 1.2rem 1rem 0;
}

.dashboard-chart-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #edf2f7;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 210px);
}

.error-card {
  overflow: hidden;
  max-width: 1120px;
  width: 100%;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 28px 60px rgba(24, 43, 69, 0.10);
}

.error-card-notfound {
  border: 1px solid #dbe9fb;
}

.error-card-server {
  border: 1px solid #f6d1d1;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.error-badge-warning {
  color: #115fce;
  background: #eaf3ff;
}

.error-badge-danger {
  color: #b42318;
  background: #ffecec;
}

.error-title {
  margin: 1rem 0 0.8rem;
  color: #102842;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
}

.error-text {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 34rem;
}

.error-illustration-wrap {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9) 0%, rgba(240, 246, 255, 0.8) 100%);
}

.error-card-server .error-illustration-wrap {
  background: linear-gradient(180deg, rgba(255, 249, 249, 0.9) 0%, rgba(255, 238, 238, 0.8) 100%);
}

.error-illustration {
  max-width: 520px;
  margin: 0 auto;
}

.error-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-chart-line-1 { top: 20%; }
.dashboard-chart-line-2 { top: 40%; }
.dashboard-chart-line-3 { top: 60%; }

.dashboard-chart-bars {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2.4rem;
  top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.85rem;
}

.dashboard-chart-bars span {
  display: block;
  border-radius: 1rem 1rem 0.55rem 0.55rem;
  background: linear-gradient(180deg, #1db8d1 0%, #2e74ec 100%);
  opacity: 0.9;
}

.dashboard-chart-days {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.85rem;
  color: #9eabbd;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-side-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-alert-list {
  display: grid;
  gap: 0.7rem;
}

.dashboard-alert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  background: #fbfdff;
  border: 1px solid #edf2f7;
}

.dashboard-alert-item--critical {
  background: linear-gradient(180deg, #fffdfd 0%, #fff7f7 100%);
}

.dashboard-alert-rank {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #d14a4a;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-alert-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #26405f;
  font-size: 0.86rem;
}

.dashboard-alert-item span {
  color: #a1aec1;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-alert-dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-alert-dot-red { background: #f05252; }
.dashboard-alert-dot-amber { background: #f59e0b; }
.dashboard-alert-dot-blue { background: #3b82f6; }

.dashboard-alert-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #0f63d8;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-quick-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14b8d4 0%, #08a5ca 100%);
  color: #fff;
}

.dashboard-quick-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 130px;
  height: 130px;
  border-radius: 2rem;
  border: 16px solid rgba(255, 255, 255, 0.08);
}

.dashboard-quick-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-quick-card h2 {
  max-width: 24ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-quick-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dashboard-quick-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f8dac;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-quick-footer {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-fullwidth .dashboard-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
}

.home-fullwidth .dashboard-chart-placeholder {
  min-height: 380px;
}

.sales-page {
  display: grid;
  gap: 1rem;
}

.sales-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sales-hero-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #2b7be4;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  font-weight: 900;
  color: #172b44;
}

.sales-hero p {
  margin: 0;
  color: #73839a;
  font-weight: 600;
}

.sales-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.sales-lead-row {
  margin-top: 0;
}

.sales-lead-row-with-image {
  align-items: start;
}

.sales-lead-main {
  display: grid;
  gap: 1rem;
}

.sales-campaign-col {
  display: flex;
}

.sales-campaign-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.sales-campaign-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 190px;
}

.sales-campaign-image {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 190px;
  object-fit: contain;
}

.sales-hero-chip,
.sales-panel-chip,
.sales-kpi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sales-hero-chip {
  background: #ffffff;
  border: 1px solid #e2ebf5;
  color: #314b67;
}

.sales-hero-chip-success {
  background: #eefbf2;
  border-color: #cfeedd;
  color: #1b8f52;
}

.sales-toolbar-card,
.sales-panel-card {
  padding: 1.05rem;
}

.sales-toolbar-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #dce8f6;
  box-shadow: 0 18px 40px rgba(35, 57, 88, 0.05);
}

.sales-toolbar-form {
  display: grid;
  gap: 0.95rem;
}

.sales-toolbar-search {
  max-width: none;
}

.sales-hero-search {
  max-width: 840px;
  margin-top: 1.15rem;
}

.sales-toolbar-section {
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #dbe8f5;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.sales-toolbar-title {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #1a4c86;
  font-size: 0.8rem;
}

.sales-toolbar-section .sales-label {
  color: #4f7196;
}

.sales-toolbar-section .sales-input {
  border-color: #cfdced;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(30, 86, 150, 0.05);
}

.sales-toolbar-grid {
  display: grid;
  gap: 0.75rem;
}

.sales-toolbar-grid-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.sales-toolbar-grid-dates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sales-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.sales-toolbar-actions-left,
.sales-toolbar-actions-center,
.sales-toolbar-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sales-toolbar-actions-left {
  justify-content: flex-start;
}

.sales-toolbar-actions-center {
  justify-content: center;
}

.sales-toolbar-actions-right {
  margin-left: auto;
  justify-content: flex-end;
}

.sales-new-sale-button {
  min-height: 3rem;
  min-width: 14rem;
  padding-inline: 2rem;
  font-size: 1.05rem;
  box-shadow: 0 18px 30px rgba(19, 34, 56, 0.18);
}

.sales-label {
  color: #8c99ab;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sales-input {
  min-height: 2.5rem;
  border-radius: 0.95rem;
  border-color: #e2eaf3;
  background: #fbfdff;
  box-shadow: none;
}

.sales-primary-button,
.sales-secondary-button,
.sales-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 999px;
  font-weight: 800;
}

.sales-primary-button {
  padding: 0 1.15rem;
  border: 0;
  background: linear-gradient(135deg, #16b9d6 0%, #119ad8 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(17, 154, 216, 0.22);
}

.sales-primary-button--soft {
  background: #132238;
  box-shadow: 0 14px 24px rgba(19, 34, 56, 0.14);
}

.sales-secondary-button {
  padding: 0 1rem;
  border: 1px solid #dce5ef;
  background: #fff;
  color: #506378;
}

.sales-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.sales-kpi-card {
  padding: 0.85rem 0.95rem 0.9rem;
}

.sales-kpi-card-cyan { box-shadow: 0 16px 40px rgba(29, 184, 209, 0.07); }
.sales-kpi-card-blue { box-shadow: 0 16px 40px rgba(46, 116, 236, 0.07); }
.sales-kpi-card-slate { box-shadow: 0 16px 40px rgba(49, 66, 85, 0.07); }
.sales-kpi-card-amber { box-shadow: 0 16px 40px rgba(245, 158, 11, 0.08); }

.sales-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sales-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.8rem;
  background: #f3f8fb;
  font-size: 0.9rem;
}

.sales-kpi-badge-up {
  background: #e9fff3;
  color: #1e9a5d;
}

.sales-kpi-badge-warn {
  background: #fff4e8;
  color: #d97706;
}

.sales-kpi-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #95a4b6;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sales-kpi-value {
  display: block;
  color: #162944;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  line-height: 1;
}

.sales-kpi-subline {
  margin-top: 0.6rem;
  color: #7e8da2;
  font-size: 0.82rem;
  font-weight: 700;
}

.sales-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e4ebf3;
}

.sales-tab {
  padding: 0.7rem 0.25rem 0.8rem;
  border: 0;
  background: transparent;
  color: #c2cad6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-tab-active {
  position: relative;
  color: #006f95;
}

.sales-tab-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16b9d6 0%, #119ad8 100%);
}

.sales-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.sales-panel-header h2 {
  margin: 0 0 0.15rem;
  color: #172b44;
  font-size: 1.15rem;
  font-weight: 900;
}

.sales-panel-header p {
  margin: 0;
  color: #7b8a9f;
  font-size: 0.92rem;
}

.sales-panel-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.sales-panel-chip {
  background: #edf6fb;
  color: #1d6d8d;
}

.sales-panel-chip-muted {
  background: #f6f8fb;
  color: #67788d;
}

.sales-venta-modal-body {
  display: grid;
  gap: 1rem;
}

.sales-venta-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.72fr);
  gap: 0.85rem;
  align-items: stretch;
}

.sales-venta-catalog,
.sales-venta-cart {
  min-width: 0;
}

.sales-venta-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.sales-venta-section-header h6 {
  margin: 0 0 0.2rem;
  color: #172b44;
  font-size: 1rem;
  font-weight: 900;
}

.sales-venta-section-header p {
  margin: 0;
  color: #7b8a9f;
  font-size: 0.84rem;
  font-weight: 600;
}

.sales-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 0.7rem;
}

.sales-catalog-empty,
.sales-cart-empty {
  padding: 0.85rem;
  border: 1px dashed #d7e1ec;
  border-radius: 1rem;
  background: #fbfdff;
  color: #7b8a9f;
  font-weight: 700;
}

.sales-product-card {
  overflow: hidden;
  border: 1px solid #e6edf5;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 38, 61, 0.05);
}

.sales-product-media {
  aspect-ratio: 16 / 8;
  background: #f4f7fb;
}

.sales-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sales-product-detail-image {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  border: 1px solid #e6edf5;
  object-fit: cover;
}

.sales-product-body {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
}

.sales-product-top {
  display: grid;
  gap: 0.35rem;
}

.sales-product-meta {
  color: #9aa7b8;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-product-top h3 {
  margin: 0;
  color: #12233c;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.sales-product-details {
  display: grid;
  gap: 0.25rem;
  color: #6f8095;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.25;
}

.sales-product-details span:first-child {
  color: #43536a;
}

.sales-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sales-product-price {
  color: #0e7e9d;
  font-size: 1.08rem;
  font-weight: 900;
}

.sales-product-stock {
  color: #6f8095;
  font-size: 0.76rem;
  font-weight: 800;
}

.sales-product-controls {
  display: grid;
  gap: 0.6rem;
}

.sales-product-add-button {
  width: 100%;
}

.sales-series-select {
  min-height: 2.3rem;
}

.sales-venta-cart {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  align-self: stretch;
  padding: 0.85rem;
  border: 1px solid #dff0f4;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #0e6f86 0%, #0a5f77 100%);
  box-shadow: 0 18px 38px rgba(11, 94, 114, 0.15);
  color: #fff;
  position: sticky;
  top: 0.75rem;
}

.sales-venta-cart .sales-venta-section-header h6,
.sales-venta-cart .sales-venta-section-header p {
  color: #fff;
}

.sales-cart-items {
  display: grid;
  gap: 0.65rem;
}

.sales-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sales-cart-item-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.sales-cart-item-info strong {
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-cart-item-info span,
.sales-cart-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sales-cart-item-qty {
  color: rgba(255, 255, 255, 0.78);
}

.sales-cart-item-amount {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.sales-cart-item-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.sales-cart-step-button,
.sales-cart-remove-button {
  min-height: 2rem;
  padding-inline: 0.7rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #1d4960;
  font-size: 0.8rem;
}

.sales-cart-remove-button {
  width: 2.1rem;
  padding-inline: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.sales-cart-status {
  min-height: 1.2rem;
}

.sales-tax-summary {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dfe8f2;
  border-radius: 1rem;
  background: #f7fbff;
}

.sales-tax-summary .sales-label {
  margin: 0;
}

.sales-tax-summary strong {
  color: #17344d;
  font-size: 1.15rem;
  font-weight: 900;
}

.sales-client-picker {
  display: grid;
  gap: 0.5rem;
}

.sales-client-picker-summary {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dfe8f2;
  border-radius: 1rem;
  background: #f7fbff;
  color: #17344d;
  font-size: 0.92rem;
  font-weight: 800;
}

.sales-client-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.sales-close-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.sales-close-kpi-card {
  display: grid;
  gap: 0.2rem;
  min-height: 4.2rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d9e5f3;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
  box-shadow: 0 8px 18px rgba(22, 58, 98, 0.06);
}

.sales-close-kpi-label {
  color: #6e819a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-close-kpi-value {
  color: #17344d;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

.sales-clientes-modal-body {
  display: grid;
  gap: 1rem;
}

.sales-clientes-search-card,
.sales-clientes-create-card {
  padding: 1rem;
  border: 1px solid #dfe8f2;
  border-radius: 1.2rem;
  background: #fff;
}

.sales-client-create-compact {
  display: grid;
  gap: 0.65rem;
}

.sales-client-create-compact .sales-cart-status {
  margin-bottom: 0.35rem !important;
  font-size: 0.82rem;
}

.sales-client-create-compact .sales-label {
  font-size: 0.6rem;
  line-height: 1;
}

.sales-client-create-compact .sales-input {
  min-height: 1.95rem;
  padding: 0.26rem 0.55rem;
  border-radius: 0.72rem;
  font-size: 0.86rem;
}

.sales-client-create-compact .sales-secondary-button {
  min-height: 1.95rem;
  padding-inline: 0.8rem;
  font-size: 0.86rem;
}

.sales-clientes-results {
  display: grid;
  gap: 0.75rem;
}

.sales-client-row-selected {
  background: #eefbf2;
}

.sales-clientes-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sales-observations-panel {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sales-observations-input {
  min-height: 5.75rem;
  resize: vertical;
}

.sales-payment-method-group {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sales-payment-method-title {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sales-payment-button {
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #1d4960;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.sales-payment-button:hover,
.sales-payment-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #0d3c52;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.btn-check:checked + .sales-payment-button {
  border-color: #7fd9f3;
  background: linear-gradient(135deg, #8de7fb 0%, #5fc6e8 100%);
  color: #07354a;
  box-shadow: 0 0 0 0.2rem rgba(127, 217, 243, 0.35);
}

.sales-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sales-cart-total span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-cart-total strong {
  font-size: 1.7rem;
  font-weight: 900;
}

.sales-empty-state {
  margin-top: 0.5rem;
}

.users-table,
.sales-table {
  --bs-table-bg: #ffffff;
  --bs-table-color: #20354f;
  --bs-table-border-color: #dbe9f5;
  --bs-table-striped-bg: #f2fbff;
  --bs-table-striped-color: #20354f;
  --bs-table-hover-bg: #e4f6ff;
  --bs-table-hover-color: #13253b;
}

.users-table thead th,
.sales-table thead th {
  background: linear-gradient(180deg, #f7fcff 0%, #eef8ff 100%);
}

.users-table tbody tr:nth-of-type(odd) > *,
.sales-table tbody tr:nth-of-type(odd) > * {
  background-color: #f7fcff;
}

.users-table tbody tr:nth-of-type(even) > *,
.sales-table tbody tr:nth-of-type(even) > * {
  background-color: #ffffff;
}

.users-table tbody tr:hover > *,
.sales-table tbody tr:hover > * {
  background-color: #e8f7ff;
}

.sales-table thead th {
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #5f7f9e;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-table tbody td {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  border-color: #dfeaf4;
  color: #21344c;
  font-weight: 600;
}

.sales-ticket-cell {
  display: grid;
  gap: 0.2rem;
}

.sales-ticket-cell strong {
  font-size: 0.97rem;
  font-weight: 900;
  color: #0f2440;
}

.sales-ticket-cell span {
  color: #8d9aad;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sales-money {
  color: #0f2440;
  font-size: 1.02rem;
  font-weight: 900;
}

.sales-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sales-status-paid {
  color: #15803d;
  background: #eefbf2;
  border-color: #bdeccf;
}

.sales-status-pending {
  color: #d97706;
  background: #fff6e8;
  border-color: #ffd7a8;
}

.sales-status-refund {
  color: #be123c;
  background: #fff1f4;
  border-color: #f7c7d1;
}

.sales-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.55rem;
  width: 100%;
}

.sales-icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #dce5ef;
  background: #fff;
  color: #62738a;
}

.sales-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.sales-pagination-text {
  color: #63758c;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sales-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .sales-toolbar-grid-main,
  .sales-toolbar-grid-dates {
    grid-template-columns: 1fr;
  }

  .sales-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .sales-toolbar-actions-left,
  .sales-toolbar-actions-center,
  .sales-toolbar-actions-right {
    justify-content: flex-start;
  }

  .sales-new-sale-button {
    width: 100%;
    min-width: 0;
  }

  .sales-venta-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .app-shell {
    padding-inline: 0.75rem;
  }

  .app-nav {
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  #appNavigation {
    width: 100%;
  }

  .app-nav-collapse {
    margin-top: 0.9rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #10233d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(10, 19, 35, 0.2);
  }

  .app-nav-links {
    flex-direction: column;
    align-items: stretch;
    margin: 1rem 0 0;
  }

  .app-nav-link {
    border-radius: 1rem;
    color: #eff5ff;
  }

  .app-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .app-submenu {
    position: static;
    display: flex;
    margin-top: 0.5rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .app-submenu-link {
    color: #dce8fb;
  }

  .app-submenu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .app-nav-user {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
  }

  .app-user-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: #eff5ff;
  }

  .app-login-link {
    background: #1b73e8;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .sales-hero,
  .sales-panel-header {
    flex-direction: column;
  }

  .sales-lead-row {
    gap: 0.85rem !important;
  }

  .sales-hero-meta {
    justify-content: flex-start;
  }

  .sales-venta-section-header,
  .sales-product-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-venta-cart {
    position: static;
  }

  .sales-panel-meta {
    justify-content: flex-start;
  }

  .home-fullwidth .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-close-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-placeholder {
    min-height: 320px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .dashboard-chart-bars,
  .dashboard-chart-days {
    left: 0.25rem;
    right: 0.25rem;
    gap: 0.45rem;
  }

  .sales-kpis {
    grid-template-columns: 1fr;
  }

  .sales-pagination {
    flex-wrap: wrap;
  }

  .sales-campaign-figure {
    min-height: 160px;
  }

  .sales-campaign-image {
    max-width: 300px;
    max-height: 160px;
  }

  .app-footer .app-shell {
    flex-direction: column;
  }

  .sales-close-kpis {
    grid-template-columns: 1fr;
  }
}

.login-page {
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 11% 12%, rgba(34, 119, 255, 0.45), transparent 18%),
    radial-gradient(circle at 18% 30%, rgba(75, 162, 255, 0.22), transparent 22%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(135deg, #081120 0%, #0b1730 42%, #111b3e 100%);
  font-family: "Segoe UI", sans-serif;
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.login-page::before {
  background:
    radial-gradient(circle at 18% 61%, rgba(68, 152, 255, 0.26), transparent 14%),
    radial-gradient(circle at 25% 64%, rgba(92, 182, 255, 0.18), transparent 22%),
    linear-gradient(118deg, transparent 0 17%, rgba(117, 178, 255, 0.24) 17% 17.2%, transparent 17.2% 34%, rgba(117, 178, 255, 0.16) 34% 34.2%, transparent 34.2% 100%),
    linear-gradient(164deg, transparent 0 33%, rgba(255, 255, 255, 0.04) 33% 33.2%, transparent 33.2% 100%);
  opacity: 0.92;
}

.login-page::after {
  background:
    radial-gradient(circle at 15% 0%, rgba(28, 110, 255, 0.65), transparent 16%),
    radial-gradient(circle at 27% 5%, rgba(82, 158, 255, 0.2), transparent 20%),
    radial-gradient(circle at 80% 68%, rgba(14, 20, 44, 0.24), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  padding: clamp(1rem, 2.8vw, 2.4rem);
}

.login-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100vh - 4.8rem);
  padding: clamp(1rem, 2vw, 2rem) clamp(0.5rem, 1vw, 1rem) clamp(1.5rem, 2.5vw, 2.75rem) clamp(1rem, 2vw, 2rem);
}

.login-visual-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
}

.login-visual-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bcd3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.login-brand-image {
  display: block;
  width: min(100%, 760px);
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1160px;
}

.login-feature-card {
  min-height: 95px;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 1.35rem;
  background: rgba(30, 49, 88, 0.84);
  border: 1px solid rgba(153, 187, 255, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.login-feature-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #f3f7ff;
  font-size: 1rem;
  font-weight: 800;
}

.login-feature-card span {
  color: rgba(235, 243, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
}

.login-card-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(1.15rem, 1.7vw, 1.7rem);
  border-radius: 2.1rem 2.1rem 3.2rem 2.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 28px 70px rgba(10, 16, 34, 0.34);
  color: #1b2b44;
  position: relative;
  overflow: hidden;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #e9f2ff;
  color: #1d5cad;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.login-card-header {
  margin-bottom: 1.2rem;
  padding-top: 0.25rem;
}

.login-card-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 800;
  color: #1a2840;
}

.login-card-header p {
  margin: 0;
  color: #6c7b91;
  font-size: 1rem;
}

.login-form .validation-summary-valid {
  display: none;
}

.login-form .validation-summary-errors {
  margin-bottom: 1rem;
}

.login-label {
  font-weight: 700;
  color: #32435d;
}

.login-input {
  min-height: 2.95rem;
  border-radius: 1rem;
  border: 1px solid #d9e3f0;
  background: #edf4fd;
  color: #17263b;
}

.login-input::placeholder {
  color: #90a3bd;
}

.login-input:focus {
  border-color: #5a8ff4;
  background: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(68, 128, 244, 0.14);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.85rem 0 1.2rem;
  color: #5f6f86;
}

.login-options .form-check-label {
  font-weight: 600;
}

.login-help-text {
  color: #74839a;
  font-size: 0.9rem;
  text-align: right;
}

.login-submit {
  min-height: 3rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3567d7 0%, #5e93e6 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(53, 103, 215, 0.22);
}

.login-submit:hover,
.login-submit:focus {
  color: #fff;
  background: linear-gradient(135deg, #2c57b8 0%, #4c82d8 100%);
}

.login-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5edf6;
  color: #7f8b9c;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-card-wrapper {
    justify-content: flex-start;
  }

  .login-visual {
    min-height: auto;
  }

  .login-brand-image {
    width: min(100%, 640px);
  }
}

@media (max-width: 991.98px) {
  .login-shell {
    gap: 1.5rem;
    padding: 1rem;
  }

  .login-visual {
    padding: 0.8rem 0.2rem 0;
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  body {
    margin-bottom: 0;
  }

  .login-card {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .login-options,
  .login-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-help-text {
    text-align: left;
  }

  .login-brand-image {
    width: min(100%, 420px);
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.users-hero {
  margin-bottom: 1.05rem;
}

.users-summary-pill {
  white-space: nowrap;
}

.users-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.users-filter-card,
.users-table-card {
  padding: 1.3rem;
}

.users-filter-card {
  margin-bottom: 1.05rem;
}

.users-label {
  color: #50627b;
  font-weight: 700;
}

.users-input {
  min-height: 2.6rem;
  border-radius: 1rem;
  border: 1px solid #d9e6f2;
}

.users-filter-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.users-primary-button,
.users-secondary-button {
  min-height: 2.6rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
}

.users-primary-button {
  background: #132238;
  color: #fff;
}

.users-primary-button:hover {
  background: #0d1828;
  color: #fff;
}

.users-secondary-button {
  background: #eef4fb;
  color: #28456c;
  border: 1px solid #d8e5f2;
}

.users-secondary-button:hover {
  background: #e2edf8;
  color: #17365c;
}

.users-table-header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.users-table-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #19304c;
}

.users-table-header p {
  margin: 0;
  color: #7d8da3;
  font-weight: 600;
}

.users-table-header .btn {
  align-self: flex-start;
}

.users-table {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #f2fbff;
}

.users-table thead th {
  border-bottom-width: 1px;
  border-color: #dbe9f5;
  color: #5f7f9e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.users-table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: #dfeaf4;
  color: #20354f;
}

.users-name-cell {
  font-weight: 700;
}

.users-table-input {
  min-width: 9rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
}

.users-locked-input {
  background: #f5f8fc;
  color: #6f8198;
}

.users-role-badge,
.users-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.users-role-badge {
  background: #edf3ff;
  color: #2259b7;
}

.users-status-active {
  background: #e9fff3;
  color: #1b8f58;
}

.users-status-inactive {
  background: #fff1f1;
  color: #cb4444;
}

.users-row-inactive td {
  background: #fff5f5;
}

.users-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #6f8198;
}

.users-empty-state h3 {
  margin-bottom: 0.5rem;
  color: #19304c;
  font-size: 1.25rem;
  font-weight: 800;
}

.users-row-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.users-row-actions form {
  margin: 0;
}

.users-icon-button {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-size: 1rem;
  line-height: 1;
}

.users-icon-button-save {
  background: #edf3ff;
  color: #2259b7;
}

.users-icon-button-danger {
  background: #fff1f1;
  color: #cb4444;
}

.users-icon-button-success {
  background: #e9fff3;
  color: #1b8f58;
}

.users-row-save-button {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
}

.users-row-hint {
  color: #7d8da3;
  font-size: 0.72rem;
  line-height: 1.3;
}

.users-inline-error-cell {
  padding-top: 0;
  background: #fffaf9;
}

.users-inline-error {
  font-size: 0.84rem;
}

.users-edit-forms,
.users-edit-form {
  display: none;
}

.users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid #e6eef7;
}

.users-pagination-text {
  color: #61748e;
  font-weight: 700;
}

.users-modal {
  border: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(20, 39, 64, 0.2);
}

.modal-dialog-scrollable .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.modal-dialog-scrollable .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#createVentaModal .modal-dialog {
  margin: 0;
}

#createVentaModal .modal-dialog-scrollable .modal-content {
  max-height: 100vh;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.users-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.users-modal-header,
.users-modal-footer {
  padding: 0.85rem 1.05rem;
  border-color: #e8eef6;
}

.users-modal-body {
  padding: 1.05rem;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.users-modal-kicker {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: #7b8ca2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-modal .modal-title {
  margin: 0;
  color: #19304c;
  font-size: 1.2rem;
  font-weight: 800;
}

.users-deactivate-warning {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 0.9rem;
  background: #fff4e8;
  color: #7a3f12;
  font-weight: 600;
  line-height: 1.5;
}

.users-deactivate-countdown {
  color: #61748e;
  font-size: 0.95rem;
}

.users-deactivate-countdown-value {
  display: inline-flex;
  min-width: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #edf3ff;
  color: #2259b7;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .users-filter-card,
  .users-table-card {
    padding: 0.95rem;
  }

  .users-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .users-pagination .btn {
    width: 100%;
  }

  .users-hero-actions {
    width: 100%;
    justify-content: space-between;
  }
}
