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

:root {
  --color-primary-navy: #18324a;
  --color-primary-navy-dark: #12273a;
  --color-action-green: #198754;
  --color-action-green-dark: #157347;
  --color-malbec: var(--color-action-green);
  --color-malbec-dark: var(--color-action-green-dark);
  --color-surface: #ffffff;
  --color-page-top: #f6f9fc;
  --color-page-bottom: #eef3f8;
  --color-border: #e5eaf1;
  --color-text: #1f2937;
  --color-muted: #6c757d;
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.08);
  --content-max-width: 1440px;
  --content-padding-x: clamp(1rem, 2.4vw, 2rem);
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(24, 50, 74, 0.08), transparent 28%),
              linear-gradient(180deg, var(--color-page-top) 0%, var(--color-page-bottom) 100%);
  color: var(--color-text);
  min-height: 100vh;
}

a,
button,
.btn,
.nav-link,
.form-control,
.form-select,
.card,
.table tbody tr {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.page-shell {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  padding-inline: var(--content-padding-x) !important;
}

.page-alerts {
  padding-top: 1rem;
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  padding-inline: var(--content-padding-x) !important;
}

.app-navbar {
  background: linear-gradient(112deg, #152d44 0%, #102538 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 38px rgba(8, 15, 28, 0.34);
}

.app-navbar .container-fluid {
  gap: 1.25rem;
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  min-height: 78px;
  padding-inline: var(--content-padding-x) !important;
}

.app-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  margin-right: 0.4rem;
}

.navbar-brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17);
}


.navbar-brand-mark-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.navbar-brand-title {
  font-size: 1.02rem;
  font-weight: 650;
}

.navbar-brand-subtitle {
  margin-top: 0.18rem;
  font-size: 0.73rem;
  font-weight: 530;
  letter-spacing: 0.05em;
  color: rgba(233, 242, 252, 0.62);
}

.app-navbar .navbar-nav {
  gap: 0.48rem;
}

.navbar-primary-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.3rem;
  backdrop-filter: blur(4px);
}

.app-navbar .nav-link {
  padding: 0.56rem 0.96rem;
  border-radius: 10px;
  color: rgba(235, 244, 255, 0.76);
  font-weight: 540;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.app-navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.94);
  background-color: rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link.active {
  color: #ffffff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 12px rgba(3, 8, 17, 0.28);
}

.app-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.16);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 0.48rem 0.54rem 0.48rem 0.62rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-user-profile {
  display: flex;
  align-items: center;
  gap: 0.66rem;
  min-width: 0;
  padding-right: 0.1rem;
}

.navbar-user-avatar-shell {
  flex: 0 0 auto;
}

.navbar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
}

.navbar-user-copy {
  min-width: 0;
}

.navbar-user-name {
  color: rgba(246, 251, 255, 0.95);
  font-weight: 600;
  line-height: 1.1;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-logout-button {
  min-width: 116px;
  border-radius: 10px;
  padding: 0.49rem 0.88rem;
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(249, 252, 255, 0.95);
  font-weight: 600;
  font-size: 0.87rem;
  background-color: rgba(255, 255, 255, 0.03);
}

.navbar-logout-button:hover,
.navbar-logout-button:focus {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

@media (max-width: 991.98px) {
  .app-navbar .container-fluid {
    min-height: 72px;
  }

  .navbar-primary-nav {
    align-items: stretch;
    margin-top: 0.85rem;
    margin-bottom: 0.85rem !important;
    width: 100%;
  }

  .app-navbar .nav-link {
    width: 100%;
  }

  .navbar-user {
    justify-content: space-between;
    width: 100%;
    margin-top: 0.2rem;
  }
}

.alert {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.card,
.panel-card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-header {
  border-bottom: 1px solid var(--color-border);
}

.card-header.bg-white,
.card-header {
  background: rgba(255, 255, 255, 0.94) !important;
}

.card-body,
.card-header {
  padding: 1.35rem 1.4rem;
}

.card-metric {
  border-top: 4px solid var(--color-primary-navy);
}

.metric-label {
  letter-spacing: 0.08em;
}

.metric-number {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.metric-number-sensitive {
  align-items: flex-end;
}

.metric-value {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-value-sensitive {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.metric-value-compact {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.metric-value-ultra-compact {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.metric-sensitive-toggle {
  color: #64748b;
  padding: 0.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  text-decoration: none;
}

.metric-sensitive-toggle:hover,
.metric-sensitive-toggle:focus {
  color: #0f172a;
  text-decoration: none;
}

.metric-icon {
  font-size: 18px;
  color: #6c757d;
}

.metric-alert {
  color: #DC3545;
}

.metric-neutral {
  color: #64748b;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.72rem 1rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-malbec {
  color: #ffffff;
  background-color: var(--color-malbec);
  border-color: var(--color-malbec);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-malbec:hover,
.btn-malbec:focus,
.btn-malbec:active {
  color: #ffffff;
  background-color: var(--color-malbec-dark) !important;
  border-color: var(--color-malbec-dark) !important;
}

.btn-outline-secondary {
  color: #334155;
  border-color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #0f172a;
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.btn-sale-confirm {
  padding: 0.95rem 1.2rem;
  font-size: 1.05rem;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #d6dde6;
  padding: 0.8rem 1rem;
}

.form-control-lg,
.form-select-lg,
.search-input-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(25, 135, 84, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.12);
}

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

.table-brand {
  margin-bottom: 0;
}

.table-brand > :not(caption) > * > * {
  padding: 1rem 1rem;
  border-bottom-color: #edf1f5;
}

.table-brand thead th {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.table-brand tbody tr:nth-of-type(even) {
  background-color: rgba(248, 250, 252, 0.75);
}

.table-hover tbody tr:hover {
  background-color: #f1f5f9;
}

.row-low-stock {
  background-color: rgba(220, 53, 69, 0.05) !important;
}

.stock-low {
  color: #DC3545;
  font-weight: 700;
}

.stock-ok {
  color: #198754;
  font-weight: 600;
}

.badge-soft-danger,
.badge-soft-success,
.badge-soft-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.badge-soft-danger {
  color: #DC3545;
  background-color: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.18);
}

.badge-soft-success {
  color: #198754;
  background-color: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.badge-soft-neutral {
  color: #475569;
  background-color: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  min-height: 280px;
  padding: 2.75rem 1.4rem;
  border: 1px dashed #d8e0e8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
}

.empty-state-compact {
  min-height: 220px;
}

.empty-state-icon {
  font-size: 3rem;
  color: #cbd5e1;
}

.empty-state-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #334155;
}

.empty-state-text {
  margin: 0;
  color: #64748b;
}


.business-hero {
  border-color: rgba(24, 50, 74, 0.18);
}

.home-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.75rem;
  width: min(100%, 420px);
}

.home-action-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #d9e2ec;
  background: #ffffff;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.home-action-button i {
  font-size: 1.2rem;
}

.home-action-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.home-action-button strong {
  font-size: 0.95rem;
}

.home-action-button small {
  color: #64748b;
  font-size: 0.78rem;
}

.home-action-button:hover {
  color: #0f172a;
  border-color: #b8c5d6;
  transform: translateY(-2px);
}

.home-action-button-primary {
  background: linear-gradient(135deg, #198754 0%, #157347 100%);
  border-color: transparent;
  color: #ffffff;
}

.home-action-button-primary small,
.home-action-button-primary:hover {
  color: rgba(255, 255, 255, 0.92);
}

.pin-sidebar-sticky {
  display: grid;
  gap: 1.5rem;
}

.pin-form {
  gap: 1rem;
}

.pin-panel-body {
  padding: 1.45rem;
}

.pin-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background-color: #fafbfd;
}

.pin-note {
  padding-top: 1rem;
  border-top: 1px solid #e8edf4;
}

.quantity-input {
  width: 92px;
  min-width: 92px;
}

.cart-card {
  border-color: rgba(24, 50, 74, 0.14);
}

.cart-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary-navy-dark) 0%, var(--color-primary-navy) 100%);
}

.cart-total-label {
  color: rgba(255, 255, 255, 0.72);
}

.cart-total-value {
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.receipt-total {
  color: var(--color-primary-navy);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(24, 50, 74, 0.1);
  color: var(--color-primary-navy);
  font-weight: 700;
}

.swal2-popup {
  border-radius: 18px;
  font-family: 'Inter', sans-serif;
}

.swal2-title {
  color: var(--color-text);
}

.swal2-html-container,
.swal2-content {
  color: #64748b;
}

.swal2-styled.swal2-confirm {
  background-color: var(--color-action-green) !important;
}

.swal2-styled.swal2-cancel {
  background-color: #64748b !important;
}


.google-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.78rem;
  min-height: 54px;
  border: 1px solid #d2d7e0;
  border-radius: 12px;
  background-color: #ffffff;
  color: #243447;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.google-login-btn:hover,
.google-login-btn:focus,
.google-login-btn:active {
  background-color: #f7f9fc;
  border-color: #c3cad6;
  color: #1d2a3a;
  transform: translateY(-1px);
}

.google-login-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 560px;
}

.auth-card .card-body {
  padding: 2rem;
}

.landing-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.landing-premium {
  background:
    radial-gradient(circle at 88% 8%, rgba(25, 135, 84, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 12% 82%, rgba(24, 50, 74, 0.16) 0%, transparent 42%),
    linear-gradient(150deg, #f6f9fc 0%, #eef4fb 52%, #f7fafc 100%);
}

.landing-stage {
  width: min(100%, 1220px);
  position: relative;
  z-index: 2;
}

.landing-backdrop-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0.5px);
  animation: landingFloat 8s ease-in-out infinite;
}

.landing-backdrop-orb-primary {
  width: clamp(260px, 28vw, 360px);
  height: clamp(260px, 28vw, 360px);
  right: -120px;
  top: -70px;
  background: radial-gradient(circle at center, rgba(25, 135, 84, 0.25), rgba(25, 135, 84, 0.04));
}

.landing-backdrop-orb-secondary {
  width: clamp(220px, 24vw, 330px);
  height: clamp(220px, 24vw, 330px);
  left: -90px;
  bottom: -90px;
  background: radial-gradient(circle at center, rgba(24, 50, 74, 0.2), rgba(24, 50, 74, 0.03));
  animation-delay: 2.6s;
}

.landing-kicker {
  background-color: rgba(24, 50, 74, 0.09);
  border: 1px solid rgba(24, 50, 74, 0.13);
  padding: 0.56rem 0.9rem;
}


.landing-kicker-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.landing-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1rem;
  color: #102538;
}

.landing-subtitle {
  color: #43586f;
  margin-bottom: 1.3rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.landing-value-grid {
  display: grid;
  gap: 0.8rem;
}

.landing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 50, 74, 0.12);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  color: #23384c;
}

.landing-feature-item i {
  color: var(--color-primary-navy);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.landing-feature-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.landing-feature-item p {
  margin-bottom: 0;
  color: #557087;
  font-size: 0.9rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-cta,
.landing-cta-secondary {
  min-width: 230px;
}

.landing-showcase {
  position: relative;
  border: 1px solid rgba(24, 50, 74, 0.13);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16, 37, 56, 0.98) 0%, rgba(24, 50, 74, 0.95) 55%, rgba(25, 135, 84, 0.88) 100%);
  color: #f8fbff;
  box-shadow: 0 28px 60px rgba(6, 13, 26, 0.3);
}

.landing-showcase::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.landing-showcase-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(244, 250, 255, 0.82);
}

.landing-showcase-head p {
  margin-left: 0.35rem;
  font-size: 0.9rem;
}

.landing-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
}

.landing-metrics {
  display: grid;
  gap: 0.75rem;
}

.landing-metrics article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
}

.landing-metrics small {
  display: block;
  color: rgba(235, 246, 255, 0.75);
  margin-bottom: 0.2rem;
}

.landing-metrics strong {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.landing-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(232, 242, 252, 0.8);
}

.landing-proof {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(5, 12, 26, 0.22);
  padding: 1rem;
}

.landing-proof h2 {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.landing-proof p {
  color: rgba(236, 246, 255, 0.78);
  margin-bottom: 0.85rem;
}

.landing-proof ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.landing-proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(246, 252, 255, 0.92);
  font-size: 0.9rem;
}

.landing-proof i {
  color: #89f7b5;
}

.landing-plan-selector {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 50, 74, 0.12);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.landing-plan-selector-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #102538;
  letter-spacing: -0.02em;
}

.landing-plan-selector-head p {
  color: #4e657c;
  max-width: 80ch;
}

.landing-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.landing-plan-card {
  border-radius: 18px;
  border: 1px solid #d7e3ef;
  padding: 1rem 1.1rem;
  background: #f9fcff;
}

.landing-plan-card-pro {
  border-color: rgba(25, 135, 84, 0.42);
  background: linear-gradient(155deg, #f5fff9 0%, #effbf4 100%);
}

.landing-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.landing-plan-header h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.landing-plan-description {
  margin-bottom: 0.7rem;
  color: #4f6578;
}

.landing-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.landing-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  color: #1e374c;
}

.landing-plan-features i {
  color: var(--color-primary-malachite);
  margin-top: 0.1rem;
}

.landing-plan-note {
  color: #4f6578;
  font-size: 0.92rem;
}

@keyframes landingFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.wa-floating-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: #ffffff;
  font-size: 1.8rem;
  box-shadow: 0 14px 24px rgba(12, 41, 19, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 30;
}

.wa-floating-btn:hover,
.wa-floating-btn:focus {
  color: #ffffff;
  background-color: #1ebe5c;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .landing-cta,
  .landing-cta-secondary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .landing-shell {
    padding-top: 1.6rem;
    padding-bottom: 2rem;
  }

  .landing-showcase {
    margin-top: 0.4rem;
  }
}

.pos-center-shell {
  width: min(100%, 1580px);
  margin-inline: auto;
}

.pos-access-gate {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-access-card {
  width: min(100%, 540px);
}

.pos-workbench {
  min-height: calc(100vh - 154px);
}

.pos-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(24, 50, 74, 0.08);
  color: var(--color-primary-navy);
  font-weight: 700;
}

.pos-active-pin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #dce6f0;
  background-color: #f8fbfd;
}

.pos-active-pin-label {
  color: #64748b;
  font-size: 0.88rem;
}

.pos-pin-display {
  font-weight: 800;
  color: var(--color-primary-navy);
}

.pos-screen-body {
  min-height: 100vh;
  overflow: auto;
}

.pos-screen-body .page-shell {
  min-height: calc(100vh - 86px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  overflow: visible;
}

.pos-console-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pos-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
}

.pos-console-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pos-console-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
  gap: 0.75rem;
  padding: 0.85rem;
}

.pos-console-main,
.pos-console-side,
.pos-side-form {
  min-height: 0;
}

.pos-console-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.pos-console-side {
  display: flex;
  min-height: 0;
}

.pos-side-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid #deebf7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
  max-height: 100%;
  overflow: auto;
}

.pos-side-summary {
  display: grid;
  gap: 0.65rem;
}

.pos-side-section {
  display: grid;
  gap: 0.35rem;
}

.pos-quick-row {
  align-items: end;
}

#quickCodeForm,
#quickNameForm {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
}

.pos-search-select-wrap {
  position: relative;
}

.pos-search-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 25;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.pos-search-dropdown .list-group-item {
  border-left: 0;
  border-right: 0;
}

.pos-search-dropdown .list-group-item:first-child {
  border-top: 0;
}

.pos-search-dropdown .list-group-item.active {
  background-color: #eef6ff;
  border-color: #d5e7ff;
  color: #0f172a;
}

.pos-section-label {
  margin-bottom: 0.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.pos-search-input,
.pos-select-lg,
.pos-observation {
  font-size: 0.95rem;
  border-radius: 10px;
}

.pos-search-input,
.pos-select-lg {
  min-height: 44px;
}

.pos-observation {
  min-height: 88px;
  line-height: 1.3;
  resize: vertical;
}

.pos-confirm-button,
.pos-utility-button {
  min-height: 44px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.pos-confirm-button {
  font-size: 1rem;
}

.pos-operator-card {
  min-height: 72px;
  padding: 0.72rem 0.85rem;
}

.pos-shortcuts-inline {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.pos-payment-options {
  display: grid;
  gap: 0.42rem;
  max-height: 240px;
  overflow: auto;
  padding-right: 0.1rem;
}

.pos-payment-option {
  display: grid;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dce6f0;
  border-radius: 9px;
  padding: 0.42rem 0.55rem;
  background: #fff;
  font-weight: 600;
  color: #334155;
  grid-template-columns: auto 1fr minmax(96px, 116px);
}

.pos-shortcuts-help {
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pos-payment-name {
  line-height: 1;
  font-size: 0.95rem;
}

.pos-payment-amount {
  min-width: 0;
  min-height: 34px;
  font-size: 0.9rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
}

.pos-cart-panel {
  min-height: 0;
  height: 100%;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pos-cart-table-wrap {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.pos-cart-table {
  margin-bottom: 0;
  width: 100%;
  table-layout: fixed;
}

.pos-cart-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #51627a;
  background: #f2f6fb;
}

.pos-cart-table tbody td {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  vertical-align: middle;
}

.pos-cart-table tbody tr + tr td {
  border-top-color: #e6edf5;
}

.pos-cart-table th:nth-child(1),
.pos-cart-table td:nth-child(1) {
  width: 30%;
}

.pos-cart-table th:nth-child(2),
.pos-cart-table td:nth-child(2) {
  width: 43%;
}

.pos-cart-table th:nth-child(3),
.pos-cart-table td:nth-child(3) {
  width: 20%;
}

.pos-cart-table th:nth-child(4),
.pos-cart-table td:nth-child(4) {
  width: 9%;
  min-width: 72px;
  white-space: nowrap;
}

.pos-cart-table td:nth-child(4) {
  text-align: right;
}

.pos-product-unit-meta {
  margin-top: 0.35rem;
}

.pos-unit-badge {
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
}

.pos-unit-badge-unidad {
  color: #1d4ed8;
  background: #e9f1ff;
  border-color: #cfe0ff;
}

.pos-unit-badge-gramos {
  color: #065f46;
  background: #e7f9f0;
  border-color: #bdebd3;
}

.pos-unit-badge-mililitros {
  color: #7c3aed;
  background: #f2eefe;
  border-color: #ddd2fb;
}

.pos-qty-help {
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 600;
  color: #64748b;
  max-width: 160px;
}

.pos-empty-state {
  min-height: clamp(180px, 28vh, 300px);
  border: 0;
  background: transparent;
}

.pos-cart-total {
  min-height: 96px;
  gap: 0.28rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
}

.pos-cart-total > div:last-child {
  margin-left: auto;
  text-align: right;
  min-width: 0;
}

.pos-total-items {
  font-size: 1.4rem;
}

.pos-qty-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.35rem;
  max-width: 128px;
}

.pos-qty-input {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  font-size: 0.98rem;
  text-align: center;
}

.pos-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 40px;
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
}

.pos-console-header .h2 {
  font-size: clamp(1.55rem, 1.4vw + 1rem, 1.95rem);
}

.pos-console-header p {
  font-size: 0.95rem;
}

.pos-side-section .h4 {
  font-size: 1.35rem;
}

[hidden] {
  display: none !important;
}

hr {
  border-color: #e8edf4;
  opacity: 1;
}

@media (min-width: 1200px) {
  .pin-sidebar-sticky {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 991.98px) {
  .app-navbar .navbar-nav {
    margin-top: 0.9rem;
  }

  .navbar-user {
    width: 100%;
    justify-content: space-between;
  }

  .home-actions-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-total-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .pos-active-pin {
    flex-direction: column;
    align-items: flex-start;
  }

  .pos-screen-body {
    overflow: auto;
  }

  .pos-screen-body .page-shell {
    height: auto;
    overflow: visible;
  }

  .pos-workbench {
    height: auto;
    min-height: auto;
  }

  .pos-console-body {
    grid-template-columns: 1fr;
  }

  .pos-qty-help {
    max-width: none;
  }
}

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

  .navbar-user {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-logout-button {
    width: 100%;
  }
}

.report-table-scroll {
  max-height: 31.5rem;
  overflow-y: auto;
}

.report-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.report-chart-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe3ef;
  box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.35);
}

.report-chart-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.report-chart-header .text-secondary {
  color: #64748b !important;
}

.report-chart-wrapper {
  position: relative;
  height: 360px;
}

.report-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.report-filter-group {
  min-width: 9rem;
}

.report-filter-group .form-label {
  color: #334155;
  font-weight: 600;
}

.report-filter-group .form-select {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 500;
}

.report-filter-group .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}
