:root {
  --royal-blue: #1A3A6B;
  --royal-blue-light: #2E5A9E;
  --royal-blue-dark: #0F2447;
  --yellow: #F5C518;
  --yellow-dark: #D4A80F;
  --white: #FFFFFF;
  --carmine: #960018;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  --info: #0284C7;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(26, 58, 107, 0.08);
  --sidebar-w: 280px;
  --sidebar-collapsed: 72px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--royal-blue-light);
  text-decoration: none;
}
a:hover {
  color: var(--royal-blue);
}

/* Hilangkan spinner/scroll pada input number (global) � kecuali .allow-number-spin */
input[type="number"]:not(.allow-number-spin)::-webkit-outer-spin-button,
input[type="number"]:not(.allow-number-spin)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"]:not(.allow-number-spin) {
  -moz-appearance: textfield;
  appearance: textfield;
}

img {
  max-width: 100%;
  height: auto;
}

/* �� Brand �� */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--royal-blue);
  font-size: 1.35rem;
}
.brand-mark .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}
.brand-mark.light {
  color: var(--white);
}

/* �� Buttons �� */
.btn-royal {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
}
.btn-royal:hover,
.btn-royal:focus {
  background: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
  color: var(--white);
}
.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--royal-blue-dark);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
}
.btn-yellow:hover,
.btn-yellow:focus {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--royal-blue-dark);
}
.btn-outline-royal {
  border: 2px solid var(--royal-blue);
  color: var(--royal-blue);
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  padding: 0.55rem 1.2rem;
}
.btn-outline-royal:hover {
  background: var(--royal-blue);
  color: var(--white);
}

/* �� Forms �� */
.form-label {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}
.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--gray-200);
  padding: 0.7rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--royal-blue-light);
  box-shadow: 0 0 0 0.2rem rgba(46, 90, 158, 0.2);
}
.input-group-text {
  background: var(--gray-100);
  border-color: var(--gray-200);
  cursor: pointer;
}
.password-toggle {
  user-select: none;
}

/* Honeypot (register) � tersembunyi dari user */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.password-strength .progress {
  background: var(--gray-100, #e9ecef);
  border-radius: 4px;
}

/* �� Auth card �� */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top left, rgba(245, 197, 24, 0.18), transparent 50%),
    linear-gradient(160deg, var(--royal-blue-dark) 0%, var(--royal-blue) 45%, #1e4a8a 100%);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 2rem 2rem 1.75rem;
}
.auth-card.wide {
  max-width: 560px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin: 1rem 0 0.25rem;
}
.auth-card .subtitle {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* �� Toast (bukan popup window) �� */
.bolana-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100% - 2rem);
}
.bolana-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(15, 36, 71, 0.18);
  border-left: 4px solid var(--royal-blue);
  animation: toastIn 0.35s ease;
}
.bolana-toast.success { border-left-color: var(--success); }
.bolana-toast.danger { border-left-color: var(--danger); }
.bolana-toast.warning { border-left-color: var(--warning); }
.bolana-toast.info { border-left-color: var(--info); }
.bolana-toast .toast-body {
  flex: 1;
  font-size: 0.95rem;
  color: var(--gray-800);
}
.bolana-toast .toast-ok {
  flex-shrink: 0;
  background: var(--royal-blue);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.bolana-toast .toast-ok:hover {
  background: var(--royal-blue-dark);
}
.bolana-toast.hiding {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px); }
}

/* �� Confirm modern �� */
.bolana-confirm-root {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.bolana-confirm-root.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bolana-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.bolana-confirm-card {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 20px 50px rgba(15, 36, 71, 0.28);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}
.bolana-confirm-root.is-open .bolana-confirm-card {
  transform: translateY(0) scale(1);
}
.bolana-confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 107, 0.1);
  color: var(--royal-blue);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.bolana-confirm-icon.is-danger {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}
.bolana-confirm-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin: 0 0 0.35rem;
}
.bolana-confirm-msg {
  margin: 0 0 1.1rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}
.bolana-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* �� Marketing �� */
.mkt-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mkt-nav .nav-link {
  color: var(--gray-600);
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
}
.mkt-nav .nav-link:hover,
.mkt-nav .nav-link.active {
  color: var(--royal-blue);
}
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 36, 71, 0.92) 0%, rgba(26, 58, 107, 0.85) 55%, rgba(46, 90, 158, 0.75) 100%),
    radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.35), transparent 40%),
    linear-gradient(160deg, var(--royal-blue-dark), var(--royal-blue));
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-brand {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.hero-brand span {
  color: var(--yellow);
}
.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  max-width: 34rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.hero p.lead {
  max-width: 32rem;
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.section {
  padding: 4.5rem 0;
}
.section-title {
  font-weight: 800;
  color: var(--royal-blue);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--gray-600);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.feature-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.feature-block:last-child {
  border-bottom: none;
}
.feature-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 0.35rem;
}
.feature-block p {
  color: var(--gray-600);
  margin: 0;
  max-width: 40rem;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(26, 58, 107, 0.08);
  color: var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.mkt-footer {
  background: var(--royal-blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}
.mkt-footer a {
  color: rgba(255, 255, 255, 0.8);
}
.mkt-footer a:hover {
  color: var(--yellow);
}
.mkt-footer h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.mkt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mkt-footer li {
  margin-bottom: 0.4rem;
}
.mkt-footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}
.mkt-footer .footer-pay {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.mkt-footer .footer-pay-block {
  line-height: 1.35;
}
.mkt-footer .footer-pay-label {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
}
.mkt-footer .footer-pay-no {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mkt-footer .footer-pay-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.mkt-footer .footer-pay-or {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mkt-footer .footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #fff !important;
  font-weight: 700;
  width: fit-content;
}
.mkt-footer .footer-wa:hover {
  background: rgba(37, 211, 102, 0.28);
  color: var(--yellow) !important;
}
.mkt-footer .footer-wa i {
  font-size: 1.15rem;
  color: #25d366;
}

/* �� App / Superadmin shell �� */
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--royal-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: width 0.28s ease;
  overflow: hidden;
}
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 64px;
}
.sidebar-brand .brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .menu-label,
.sidebar.collapsed .nav-section-title {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.65rem;
}
.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.75rem 0.35rem;
  white-space: nowrap;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 2px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.sidebar .nav-link i {
  font-size: 1.15rem;
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.sidebar .nav-link.active {
  background: rgba(245, 197, 24, 0.18);
  color: var(--yellow);
}
.sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left 0.28s ease;
  min-width: 0;
}
.app-shell.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed);
}
.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-content {
  padding: 0.85rem 1rem 1.25rem;
}
.welcome-panel {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.welcome-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.15);
  top: -60px;
  right: -40px;
}
.welcome-panel h2 {
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.welcome-panel p {
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 36rem;
}
.impersonation-banner {
  background: #1a1a1a;
  color: #fff;
  padding: 0.55rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1080;
  border-bottom: 3px solid var(--yellow);
}

/* �� App pages �� */
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem !important;
  padding: 0;
}
.page-toolbar > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.page-toolbar h1,
.page-toolbar .h1,
.page-toolbar .h4,
.page-toolbar .h5 {
  font-size: 1rem !important;
  line-height: 1.2 !important;
  margin: 0 0 0.05rem !important;
}
.page-toolbar .text-muted,
.page-toolbar p,
.page-toolbar .small {
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.page-toolbar .btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.76rem;
  line-height: 1.15;
}
.page-toolbar .d-flex.gap-2 {
  gap: 0.3rem !important;
  align-items: center;
}
.master-tabs {
  margin-bottom: 0.65rem !important;
}
.master-tabs .nav-link {
  color: var(--gray-600);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}
.master-tabs .nav-link:hover {
  color: var(--royal-blue);
  border-color: transparent;
}
.master-tabs .nav-link.active {
  color: var(--royal-blue);
  background: transparent;
  border-bottom-color: var(--yellow);
}

.perm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.perm-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.perm-item .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.perm-item .form-check-label {
  cursor: pointer;
  line-height: 1.35;
}
.perm-item .form-check-label strong {
  display: block;
  font-size: 0.875rem;
  color: #0f172a;
}
.perm-item .form-check-label small {
  display: block;
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.75rem;
}
.nav-pills .nav-link {
  color: #475569;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 0.45rem;
  padding: 0.45rem 0.75rem;
}
.nav-pills .nav-link:hover {
  background: #f1f5f9;
  color: var(--royal-blue);
}
.nav-pills .nav-link.active {
  background: var(--royal-blue);
  color: #fff;
}

/* Desktop first � keep app usable on smaller screens but prioritize desktop */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    width: var(--sidebar-w);
  }
  .app-main {
    margin-left: 0 !important;
  }
}

/* �� Kasir fullscreen: Penjualan Manual �� */
.cashier-body {
  margin: 0;
  background: #0b1220;
  color: #f8fafc;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.cashier-screen {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.cashier-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.cashier-tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(245, 197, 24, 0.35);
  background: linear-gradient(180deg, #0f1a2e 0%, #0b1220 40%);
}
.cashier-tx-head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.75rem;
  padding: 0.45rem 0.75rem 0.35rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
}
.cashier-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.cashier-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}
.cashier-inv {
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
}
.cashier-exit {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}
.cashier-exit:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.cashier-grand-wrap {
  grid-column: 1;
}
.cashier-grand-label {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.cashier-grand {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
}
.cashier-clock {
  justify-self: end;
  align-self: end;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}
.cashier-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.2);
  background: rgba(26, 58, 107, 0.25);
}
.cashier-kasir {
  color: #cbd5e1;
  font-size: 0.8rem;
}
.cashier-kasir strong {
  color: var(--yellow);
}
.cashier-actions {
  display: flex;
  gap: 0.4rem;
}
.cashier-actions .btn {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}

/* Tabel scroll � footer & tombol bayar tetap terlihat */
.cashier-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.cashier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cashier-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #132038;
  color: var(--yellow);
  font-weight: 700;
  padding: 0.35rem 0.35rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.35);
  white-space: nowrap;
  font-size: 0.72rem;
}
.cashier-table tbody td {
  padding: 0.22rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  vertical-align: middle;
}
.cashier-table tbody tr {
  cursor: pointer;
}
.cashier-table tbody tr:hover {
  background: rgba(46, 90, 158, 0.2);
}
.cashier-table tbody tr.is-selected {
  background: rgba(245, 197, 24, 0.12);
  outline: 1px solid rgba(245, 197, 24, 0.45);
}
.cashier-table .tx-price-label {
  display: inline-block;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.15rem 0.15rem;
  user-select: none;
}
.cashier-table .tx-price-cell {
  white-space: nowrap;
}
.cashier-table .tx-meta {
  font-size: 0.65rem;
  color: #94a3b8;
}
.cashier-table .form-control {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.35);
  color: #fff;
  padding: 0.15rem 0.3rem;
  font-size: 0.78rem;
  min-height: 0;
  height: 1.7rem;
}
.cashier-table .form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.15rem rgba(245, 197, 24, 0.2);
  background: #0b1220;
  color: #fff;
}

.cashier-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
  padding: 0.45rem 0.75rem 0.35rem;
  border-top: 1px solid rgba(245, 197, 24, 0.35);
  background: #0a1424;
}
.cashier-footer-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
  align-content: start;
}
.cashier-footer-inputs label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0;
}
.cashier-footer-inputs .form-control,
.cashier-footer-inputs .form-select {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.4);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
  min-height: 0;
  height: 1.85rem;
}
.cashier-footer-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.cashier-footer-summary .row-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.25;
}
.cashier-footer-summary .row-sum strong {
  color: #fff;
}
.cashier-footer-summary .row-pay input {
  max-width: 120px;
  background: #0b1220;
  border-color: var(--yellow);
  color: #fff;
  text-align: right;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.15rem 0.35rem;
  height: 1.7rem;
}
.cashier-pay-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0.4rem 0.75rem 0.55rem;
  background: #07101c;
  border-top: 1px solid rgba(245, 197, 24, 0.3);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.35);
}
.cashier-pay-bar .btn-sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}
.cashier-pay-bar .btn-yellow {
  font-weight: 800;
  letter-spacing: 0.03em;
  min-width: 148px;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
}

.cashier-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0a101c;
  border-left: 1px solid rgba(245, 197, 24, 0.2);
}
.cashier-tabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(245, 197, 24, 0.3);
}
.cashier-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.5rem 0.3rem;
  border-bottom: 2px solid transparent;
}
.cashier-tab:hover {
  color: var(--yellow);
}
.cashier-tab.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  background: rgba(245, 197, 24, 0.06);
}
.cashier-search-wrap {
  flex-shrink: 0;
  position: relative;
  padding: 0.45rem 0.65rem;
}
.cashier-search-wrap i {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}
.cashier-search-wrap .form-control {
  padding-left: 2rem;
  background: #0b1220;
  border-color: rgba(245, 197, 24, 0.45);
  color: #fff;
  font-size: 0.85rem;
  height: 2rem;
}
.cashier-search-wrap .form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.15);
  background: #0b1220;
  color: #fff;
}
.cashier-list-head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
}
.cashier-list-head.is-customer,
.cashier-list-item.is-customer {
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
}
.cashier-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.cashier-list-item {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  font-size: 0.78rem;
  align-items: start;
}
.cashier-list-item .li-notes {
  color: #94a3b8;
  font-size: 0.72rem;
  word-break: break-word;
}
.cashier-list-item .li-phone {
  color: #cbd5e1;
  text-align: right;
}
.cashier-list-item:hover {
  background: rgba(46, 90, 158, 0.25);
}
.cashier-list-item.is-out {
  opacity: 0.45;
}
.cashier-list-item .li-name {
  font-weight: 600;
  color: #f1f5f9;
}
.cashier-list-item .li-name small {
  display: block;
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.65rem;
}
.cashier-list-item .li-price {
  color: var(--yellow);
  font-weight: 700;
}
.cashier-list-item .li-stock {
  text-align: right;
  color: #cbd5e1;
}
.cashier-list-empty {
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
}
.cashier-customer-bar {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid rgba(245, 197, 24, 0.25);
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(26, 58, 107, 0.35);
}
.cashier-customer-bar strong {
  color: var(--yellow);
}

@media (max-width: 1100px) {
  .cashier-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 38vh);
  }
  .cashier-tx {
    border-right: none;
    border-bottom: 1px solid rgba(245, 197, 24, 0.35);
  }
  .cashier-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) {
  .cashier-grand {
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  }
  .cashier-pay-bar .btn-yellow {
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}

/* �� Product picker (cari ? klik) �� */
.bpicker {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}
.bpicker-search {
  position: relative;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--gray-200, #e2e8f0);
  background: var(--gray-50, #f8fafc);
}
.bpicker-search i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}
.bpicker-search .form-control {
  padding-left: 2rem;
}
.bpicker-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--royal-blue, #1a3a6b);
  border-bottom: 1px solid var(--gray-200, #e2e8f0);
  background: #fff;
}
.bpicker-list {
  max-height: 280px;
  overflow: auto;
}
.bpicker-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
  background: #fff;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  align-items: start;
}
.bpicker-item:hover,
.bpicker-item.is-active {
  background: rgba(26, 58, 107, 0.08);
}
.bpicker-name {
  display: block;
  min-width: 0;
}
.bpicker-name strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}
.bpicker-name small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
}
.bpicker-stock {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  text-align: right;
}
.bpicker-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-blue, #1a3a6b);
  white-space: nowrap;
  text-align: right;
}
.bpicker-empty {
  padding: 1.25rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}
.bpicker-selected {
  padding: 0 0.75rem 0.5rem;
}
.bpicker-cart-wrap {
  min-height: 120px;
}

/* Access / trial / subscription banners */
.access-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  margin: 0;
  border-bottom: 3px solid transparent;
}
.access-alert__title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.access-alert__body {
  flex: 1 1 220px;
  min-width: 0;
}
.access-alert--info {
  background: #e8f0fe;
  color: #0f274f;
  border-bottom-color: var(--royal-blue);
}
.access-alert--ok {
  background: #eef8f0;
  color: #14532d;
  border-bottom-color: #22c55e;
}
.access-alert--danger {
  background: #fff1f0;
  color: #7f1d1d;
  border-bottom: 4px solid #dc2626;
  box-shadow: inset 0 0 0 2px #fecaca;
  animation: accessPulse 1.6s ease-in-out infinite;
}
.access-alert--danger .access-alert__title {
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.access-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.access-countdown span {
  display: inline-block;
  min-width: 1.5ch;
  text-align: center;
}
@keyframes accessPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.wa-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Marketing pricing cards */
.pricing-section {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(245, 197, 24, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 100%, rgba(26, 58, 107, 0.1), transparent 50%),
    var(--gray-100);
}
.pricing-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(26, 58, 107, 0.1);
  border-radius: 18px;
  padding: 1.65rem 1.5rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 58, 107, 0.12);
}
.pricing-card.is-featured {
  border-color: rgba(245, 197, 24, 0.85);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, #f5c518, #fff8d6 45%, #1a3a6b) border-box;
  border: 2px solid transparent;
  box-shadow: 0 16px 42px rgba(26, 58, 107, 0.14);
}
.pricing-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  background: var(--royal-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 2.4rem;
  transform: rotate(35deg);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.25);
}
.pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: rgba(26, 58, 107, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.85rem;
}
.pricing-badge-hot {
  color: #7a5a00;
  background: rgba(245, 197, 24, 0.28);
}
.pricing-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--gray-800);
}
.pricing-amount {
  margin: 0.35rem 0 1rem;
  min-height: 4.5rem;
}
.pricing-card .price-was {
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.pricing-card .price-was s,
.pricing-card .price-was {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: #94a3b8 !important;
}
.pricing-card .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pricing-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}
.pricing-save {
  display: inline-flex;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}
.pricing-card p.caption {
  color: #475569;
  flex: 1;
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
}
.pricing-card .btn {
  width: 100%;
  font-weight: 700;
}
.pricing-foot {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin: 1.75rem 0 0;
}

/* Dokumen cetak � watermark Bolana (trial only) */
.doc-print-sheet {
  position: relative;
  overflow: hidden;
}
.doc-watermark {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.doc-watermark__text {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A3A6B;
  opacity: 0.08;
  transform: rotate(-28deg);
  white-space: nowrap;
  user-select: none;
}
@media screen {
  .doc-print-sheet .doc-watermark {
    display: flex;
  }
}
