: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;
  scroll-padding-top: 5.5rem;
  overscroll-behavior-x: none;
}

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) — display:none agar autofill/password-manager tidak mengisi */
.hp-field {
  display: none !important;
}

.password-strength .progress {
  background: var(--gray-100, #e9ecef);
  border-radius: 4px;
}

/* �� Auth card �� */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  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%);
}
@supports (align-items: safe center) {
  .auth-wrap {
    align-items: safe center;
  }
}
.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 .brand-mark {
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}
.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) �� */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-google:hover,
.btn-google:focus {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}
.btn-google-icon {
  flex-shrink: 0;
}
.google-account-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
}
.google-account-chip .bi-google {
  font-size: 1.25rem;
  color: #ea4335;
}
.google-account-name {
  font-weight: 700;
  color: var(--royal-blue);
  font-size: 0.95rem;
  line-height: 1.2;
}
.google-account-email {
  color: var(--gray-600);
  font-size: 0.85rem;
}
.bolana-toast-container {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  pointer-events: none;
}
.bolana-toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.2rem;
  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;
  pointer-events: auto;
  text-align: center;
  justify-content: center;
}
.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.hiding {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-18px); }
}

/* �� Confirm modern �� */
.bolana-confirm-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
body.bolana-confirm-open {
  overflow: hidden;
}
.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-body {
  width: 100%;
  overscroll-behavior-x: none;
}
.mkt-body #main-content {
  overflow-x: clip;
  max-width: 100%;
}
.mkt-body .mkt-footer {
  overflow: hidden;
  max-width: 100%;
}
.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;
  max-width: 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);
}
@media (min-width: 992px) {
  .mkt-nav .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
.mkt-nav-auth {
  margin-left: 1rem;
}
.mkt-auth-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.mkt-auth-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  white-space: nowrap;
}
.mkt-auth-actions .btn-outline-royal {
  padding: 0.42rem 1.05rem;
}
.mkt-auth-actions .btn-yellow {
  padding: 0.48rem 1.15rem;
}
@media (max-width: 991.98px) {
  .mkt-nav-auth {
    width: 100%;
    margin: 0.35rem 0 0;
  }
  .mkt-auth-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
  }
  .mkt-auth-actions .btn {
    width: 100%;
    min-height: 2.75rem;
    min-width: 0;
  }
}
.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-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(10rem, 0.7fr);
  align-items: center;
  gap: 2rem 2.5rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mock {
  width: min(100%, 15.4rem);
  height: auto;
  transform-origin: top center;
  filter: drop-shadow(0 18px 24px rgba(8, 18, 40, 0.4));
  transform: translateY(5%);
  animation: hero-mock-float 3.2s ease-in-out infinite;
}
@keyframes hero-mock-float {
  0%, 100% { transform: translateY(5%); }
  50% { transform: translateY(calc(5% - 16px)); }
}
@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mock {
    width: min(48vw, 11.2rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mock {
    animation: none;
    transform: translateY(5%);
  }
}
.hero-brand {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.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;
}
.hero-trust {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust strong {
  color: var(--yellow);
  font-weight: 700;
}
.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;
}

/* Homepage — lima fondasi / features */
.features-section {
  scroll-margin-top: 5.5rem;
}
.features-head {
  max-width: 42rem;
  margin-bottom: 0.5rem;
}
.features-head .section-sub {
  margin-bottom: 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.feature-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.95rem 1.1rem;
  align-items: start;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover {
  border-color: rgba(26, 58, 107, 0.22);
  box-shadow: var(--shadow);
}
.feature-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--royal-blue);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.feature-item p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  max-width: 44rem;
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  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.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(26, 58, 107, 0.08);
}
@media (min-width: 768px) {
  .features-grid {
    gap: 0.9rem;
  }
  .feature-item {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    padding: 1.25rem 1.4rem;
    align-items: center;
  }
  .feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.3rem;
  }
}

/* Homepage — social proof / trust */
.trust-section {
  background:
    linear-gradient(180deg, rgba(26, 58, 107, 0.04) 0%, transparent 55%),
    var(--gray-50);
  padding-top: 3.25rem;
  scroll-margin-top: 5.5rem;
}
.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 2rem 2.75rem;
  align-items: stretch;
}
.trust-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--royal-blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.trust-copy .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.trust-stat {
  display: inline-block;
  color: var(--yellow-dark);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: trustStatIn 0.7s ease both;
}
.trust-sub {
  margin-bottom: 1.35rem;
}
.trust-points {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}
.trust-points li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.45rem;
  color: var(--gray-800);
  line-height: 1.5;
  border-bottom: 1px solid var(--gray-200);
}
.trust-points li:last-child {
  border-bottom: none;
}
.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}
.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.trust-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.5rem 1.35rem;
  border-top: 3px solid var(--yellow);
  background:
    linear-gradient(180deg, rgba(26, 58, 107, 0.03) 0%, transparent 40%),
    var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  animation: trustAsideIn 0.75s ease 0.12s both;
}
.trust-aside-label {
  margin: 0 0 1rem;
  color: var(--royal-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: trust-reason;
}
.trust-reasons li {
  counter-increment: trust-reason;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-reasons li:first-child {
  padding-top: 0;
}
.trust-reasons li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trust-reasons li::before {
  content: counter(trust-reason, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--royal-blue-light);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.45;
}
.trust-reasons strong {
  grid-column: 2;
  grid-row: 1;
  color: var(--royal-blue);
  font-size: 1.02rem;
  font-weight: 700;
}
.trust-reasons span {
  grid-column: 2;
  grid-row: 2;
  color: var(--gray-600);
  line-height: 1.55;
  font-size: 0.95rem;
}
.final-cta-section .section-title {
  margin-bottom: 0.65rem;
}
.final-cta-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--royal-blue-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.final-cta-note a {
  font-weight: 600;
  color: var(--royal-blue);
  text-decoration: none;
}
.final-cta-note a:hover {
  text-decoration: underline;
}
@keyframes trustStatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes trustAsideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trust-stat,
  .trust-aside {
    animation: none;
  }
}
@media (max-width: 991.98px) {
  .trust-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .trust-aside {
    height: auto;
  }
}

/* Homepage — Apa itu Bolana ERP */
.about-erp {
  background:
    linear-gradient(135deg, rgba(26, 58, 107, 0.05) 0%, transparent 42%),
    linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  scroll-margin-top: 5.5rem;
}
.about-erp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 2.5rem 3rem;
  align-items: stretch;
}
.about-erp-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.about-erp-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--royal-blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-erp-copy .section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  margin-bottom: 0.65rem;
}
.about-erp-lead {
  max-width: 34rem;
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}
.about-erp-body {
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 38rem;
}
.about-erp-body p {
  margin-bottom: 0.95rem;
}
.about-erp-body p:last-child {
  margin-bottom: 0;
}
.about-erp-body strong {
  color: var(--royal-blue);
  font-weight: 700;
}
.about-erp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}
.about-erp-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  line-height: 1.2;
}
.about-erp-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  font-weight: 600;
  color: var(--royal-blue);
  text-decoration: none;
  line-height: 1.2;
}
.about-erp-link:hover {
  color: var(--royal-blue-light);
  text-decoration: underline;
}
.about-erp-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.65rem 1.45rem;
  border-top: 3px solid var(--yellow);
  background:
    linear-gradient(180deg, rgba(26, 58, 107, 0.03) 0%, transparent 40%),
    var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.about-erp-aside-label {
  margin: 0 0 1rem;
  color: var(--royal-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.about-erp-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-erp-highlights li {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.about-erp-highlights li:first-child {
  padding-top: 0;
}
.about-erp-highlights li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.about-erp-hi-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  background: rgba(26, 58, 107, 0.1);
  color: var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(26, 58, 107, 0.12);
}
.about-erp-highlights strong {
  display: block;
  color: var(--royal-blue);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.about-erp-highlights span {
  display: block;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.45;
}
@media (max-width: 991.98px) {
  .about-erp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tentang & Kontak */
.company-page {
  background:
    linear-gradient(135deg, rgba(26, 58, 107, 0.05) 0%, transparent 42%),
    linear-gradient(180deg, var(--gray-100) 0%, var(--white) 55%);
}
.company-hero .section-sub {
  margin-bottom: 0;
  max-width: 40rem;
}
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.company-body {
  color: var(--gray-600);
  line-height: 1.7;
}
.company-body p {
  margin-bottom: 1rem;
}
.company-body strong {
  color: var(--royal-blue);
  font-weight: 700;
}
.company-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.company-points li {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.company-point-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: rgba(26, 58, 107, 0.1);
  color: var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(26, 58, 107, 0.12);
  flex-shrink: 0;
}
.company-points strong {
  display: block;
  color: var(--royal-blue);
  margin-bottom: 0.15rem;
}
.company-points span {
  display: block;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.5;
}
.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.company-card {
  padding: 1.65rem 1.45rem;
  border-top: 3px solid var(--yellow);
  background:
    linear-gradient(180deg, rgba(26, 58, 107, 0.03) 0%, transparent 40%),
    var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.company-leader {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}
.company-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.company-leader-name {
  margin: 0 0 0.15rem;
  color: var(--royal-blue);
  font-size: 1.15rem;
  font-weight: 800;
}
.company-leader-role {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.company-leader-bio {
  margin: 0 0 1rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-size: 0.95rem;
}
.company-leader-bio strong {
  color: var(--royal-blue);
}
.company-leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.company-leader-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.08);
  color: var(--royal-blue);
  font-size: 0.78rem;
  font-weight: 700;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.75rem 0 0;
}
.company-fact {
  background: var(--white);
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--yellow);
}
.company-fact dt {
  margin: 0 0 0.3rem;
  color: var(--royal-blue-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.company-fact dd {
  margin: 0;
  color: var(--royal-blue);
  font-weight: 700;
  line-height: 1.4;
}
.company-channels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.company-channel {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.company-channel strong {
  display: block;
  color: var(--royal-blue);
  margin-bottom: 0.15rem;
}
.company-channel a,
.company-channel-text {
  display: block;
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--royal-blue);
  text-decoration: none;
}
.company-channel a:hover {
  color: var(--royal-blue-light);
  text-decoration: underline;
}
.company-channel span {
  display: block;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.45;
}
.company-help-label {
  margin: 1.75rem 0 0.65rem;
  color: var(--royal-blue);
  font-weight: 800;
}
.company-help {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.company-help li {
  margin-bottom: 0.35rem;
}
.company-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.company-legal {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.company-legal a {
  font-weight: 600;
  color: var(--royal-blue);
}
@media (max-width: 991.98px) {
  .company-grid,
  .company-facts {
    grid-template-columns: 1fr;
  }
}

/* Homepage — FAQ */
.faq-section {
  background:
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  scroll-margin-top: 5.5rem;
}
.faq-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
.faq-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--royal-blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq-intro .section-title {
  margin-bottom: 0.65rem;
}
.faq-intro-sub {
  margin-bottom: 1.25rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(26, 58, 107, 0.22);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--royal-blue);
  font-size: 1rem;
  line-height: 1.4;
  min-height: 3.25rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--royal-blue);
  line-height: 1;
  border-radius: 8px;
  background: rgba(26, 58, 107, 0.08);
}
.faq-item[open] summary::after {
  content: "−";
  background: rgba(245, 197, 24, 0.25);
}
.faq-item summary:hover {
  color: var(--royal-blue-light);
}
.faq-answer {
  padding: 0 1.1rem 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-answer p {
  margin: 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.85rem;
}
.faq-answer a {
  color: var(--royal-blue);
  font-weight: 600;
  text-decoration: none;
}
.faq-answer a:hover {
  text-decoration: underline;
}
.faq-mobile-cta {
  margin-top: 0.25rem;
}
@media (min-width: 992px) {
  .faq-shell {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
    gap: 2.5rem 3rem;
  }
  .faq-intro {
    position: sticky;
    top: 5.25rem;
    z-index: 2;
    align-self: start;
  }
  .faq-intro-sub {
    max-width: 22rem;
  }
}

.mkt-footer {
  background: var(--royal-blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}
.mkt-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  align-items: start;
}
.mkt-footer-col {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .mkt-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .mkt-footer-grid {
    grid-template-columns: 1fr;
  }
}
.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 .footer-company {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}
.mkt-footer .footer-address {
  font-size: 0.9rem;
  line-height: 1.45;
}
.mkt-footer .footer-address .bi {
  margin-right: 0.25rem;
}
.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 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.15rem 0.35rem 0.15rem 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: 0.02em;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.mkt-footer .footer-pay-no:hover,
.mkt-footer .footer-pay-no:focus-visible {
  color: var(--yellow);
  outline: none;
}
.mkt-footer .footer-pay-no .bi-copy {
  font-size: 0.9rem;
  opacity: 0.7;
}
.mkt-footer .footer-pay-no:hover .bi-copy,
.mkt-footer .footer-pay-no:focus-visible .bi-copy {
  opacity: 1;
}
.mkt-footer .footer-pay-no.is-copied .bi-copy::before {
  content: "\f26b"; /* bi-check-lg */
}
.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-qris {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0 0;
  text-decoration: none;
  width: fit-content;
}
.mkt-footer .footer-qris-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #fff;
  color: #e31e24;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.mkt-footer .footer-qris:hover .footer-qris-mark,
.mkt-footer .footer-qris:focus-visible .footer-qris-mark {
  background: var(--yellow);
  color: var(--royal-blue-dark);
}
.mkt-footer .footer-qris-mark i {
  font-size: 1.05rem;
}
.mkt-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mkt-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.mkt-footer .footer-social-link:hover {
  background: rgba(245, 197, 24, 0.22);
  color: var(--yellow) !important;
}

/* �� 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;
  /* Di atas keranjang POS / sheet / float (bisa >1000) */
  z-index: 10050;
  display: flex;
  flex-direction: column;
  transition: width 0.28s ease, transform 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;
  flex-shrink: 0;
}
.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 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  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 .nav-link {
  position: relative;
}
.sidebar .sa-notif-badge {
  margin-left: auto;
  font-size: 0.65rem;
  flex-shrink: 0;
  background: #dc2626 !important;
  color: #fff !important;
}
.sidebar .sa-notif-dot {
  display: none;
}
.sidebar.collapsed .sa-notif-badge {
  display: none;
}
.sidebar.collapsed .sa-notif-dot {
  display: block;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
}
.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;
}
.sa-shell .sa-topbar {
  padding: 0.22rem 0.75rem;
  min-height: 40px;
  gap: 0.5rem;
}
.sa-topbar-left,
.sa-topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.sa-topbar-left {
  gap: 0.35rem;
  flex: 1 1 auto;
}
.sa-topbar-right {
  gap: 0.45rem;
  flex-shrink: 0;
}
.sa-topbar-menu {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--royal-blue);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
.sa-topbar-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-topbar-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2em 0.45em;
  letter-spacing: 0.02em;
}
.sa-topbar-name {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-topbar-out {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}
@media (max-width: 575.98px) {
  .sa-topbar-name {
    display: none;
  }
  .sa-topbar-badge {
    display: none;
  }
}
.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: calc(0.65rem + 5px) !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: none;
    left: -110%;
    top: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    transition: left 0.28s ease, width 0.28s ease, box-shadow 0.28s ease;
  }
  .sidebar.mobile-open {
    transform: none;
    left: 0;
    width: var(--sidebar-w);
  }
  .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .app-main {
    margin-left: 0 !important;
  }
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  html.sidebar-mobile-open,
  body.sidebar-mobile-open {
    overflow: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
  }
  html.sidebar-mobile-open {
    scroll-behavior: auto;
    height: 100%;
    height: 100dvh;
  }
  body.sidebar-mobile-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Keranjang POS jangan menimpa drawer */
body.sidebar-mobile-open .pos-mobile-bar,
body.sidebar-mobile-open .pos-cart-col,
body.sidebar-mobile-open .pos-cart-backdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobile app chrome (Kledo-like) */
.m-home-grid {
  display: none;
}
.app-topbar-desktop {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.m-topbar-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 991.98px) {
  .sidebar {
    width: min(86vw, 300px);
    border-radius: 0 18px 18px 0;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.28);
  }
  .sidebar.mobile-open {
    width: min(86vw, 300px);
  }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem max(1.1rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    flex-shrink: 0;
  }
  .sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--royal-blue-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .sidebar-user-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .sidebar-user-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar-user-role {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
  }
  .sidebar-user-out {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .app-shell:not(.sa-shell) .app-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: linear-gradient(165deg, #16325f 0%, #1A3A6B 42%, #2E5A9E 100%);
    border-bottom: 0;
    color: #fff;
    padding: 0.3rem 0.85rem 0.45rem;
    padding-top: max(0.3rem, env(safe-area-inset-top));
    min-height: 0;
  }
  .app-shell.is-dashboard .app-topbar {
    padding-bottom: 0.2rem;
  }
  .m-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 44px;
  }
  .m-topbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 52%;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }
  .m-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }
  .m-topbar-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    padding: 0;
  }
  .m-topbar-btn:active {
    background: rgba(255, 255, 255, 0.12);
  }
  .m-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--royal-blue-dark);
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .m-hero {
    background: #2E5A9E;
    color: #fff;
    padding: calc(0.15rem + 3px) 1rem 2.55rem;
    margin-top: -1px;
  }
  .app-main:has(.access-alert) .m-hero {
    padding-bottom: 0.4rem;
  }
  .m-hero-hi {
    margin: 0 0 0.2rem;
    padding-top: 3px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .m-hero-sub {
    margin: 0;
    max-width: 92%;
    font-size: 0.86rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
  }
  .app-shell.is-dashboard .app-content {
    padding-top: 0;
  }
  .m-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 0.35rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.05rem 0.55rem 0.95rem;
    box-shadow: 0 12px 36px rgba(26, 58, 107, 0.14);
    margin: -2.35rem 0 1rem;
    position: relative;
    z-index: 40;
  }
  .app-main:has(.access-alert) .m-home-grid {
    margin-top: 0.35rem;
  }
  .m-home-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    text-decoration: none;
    color: var(--gray-800);
  }
  .m-home-item:hover,
  .m-home-item:focus {
    color: var(--gray-800);
  }
  .m-home-item:active .m-home-ico {
    transform: scale(0.94);
  }
  .m-home-ico {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.12s ease;
    position: relative;
  }
  .m-home-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
  }
  .m-home-ico.tone-rose { background: #fde8ee; color: #e11d48; }
  .m-home-ico.tone-blue { background: #e0edff; color: #2563eb; }
  .m-home-ico.tone-green { background: #dcfce7; color: #16a34a; }
  .m-home-ico.tone-orange { background: #ffedd5; color: #ea580c; }
  .m-home-ico.tone-pink { background: #fce7f3; color: #db2777; }
  .m-home-ico.tone-violet { background: #ede9fe; color: #7c3aed; }
  .m-home-ico.tone-cyan { background: #cffafe; color: #0891b2; }
  .m-home-ico.tone-amber { background: #fef3c7; color: #d97706; }
  .m-home-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #334155;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dash-topbar-row {
    display: none;
  }
}

/* �� 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;
}
.bpicker-cart-wrap .bp-qty,
.bpicker-cart-wrap .bp-price,
#itemsTable .bp-qty,
#itemsTable .bp-price {
  padding: 6px 0 !important;
  min-height: 0 !important;
  height: auto;
  line-height: 1.35;
  text-align: center;
}
.bpicker-cart-wrap #itemsTable td:has(.bp-qty),
.bpicker-cart-wrap #itemsTable td:has(.bp-price),
#itemsTable td:has(.bp-qty),
#itemsTable td:has(.bp-price) {
  padding: 0;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

/* Panel "Daftar barang" sticky saat scroll item dipilih (desktop) */
@media (min-width: 992px) {
  .bpicker-sticky {
    position: sticky;
    top: 64px;
    z-index: 5;
    align-self: flex-start;
    width: 100%;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .bpicker-sticky > .bpicker,
  .bpicker-sticky .bpicker {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .bpicker-sticky .bpicker-list {
    flex: 1 1 auto;
    max-height: none;
    min-height: 160px;
    overflow-y: auto;
  }
}
@media (min-width: 992px) {
  .col-lg-4:has(> .bpicker-sticky),
  .col-lg-5:has(> .bpicker-sticky),
  .col-md-6:has(> .bpicker-sticky),
  .bpicker-sticky-col {
    align-self: flex-start;
  }
}

/* Access / trial / subscription banners */
.access-alert {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.38rem 0.9rem;
  margin: 0;
  border-bottom: 2px solid transparent;
  position: relative;
}
.access-alert__title {
  font-weight: 800;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.access-alert__msg {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0.9;
}
.access-alert__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12rem 0.7rem;
}
.access-alert__btn {
  flex: 0 0 auto;
  padding: 0.28rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
}
.access-alert__close {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 7px;
  background: rgba(15, 36, 71, 0.06);
  color: #14532d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.access-alert__close:hover {
  background: rgba(15, 36, 71, 0.12);
}
.access-alert--ok {
  padding-right: 2.35rem;
  background: #eef8f0;
  color: #14532d;
  border-bottom-color: #22c55e;
}
.access-alert--info {
  background: #e8f0fe;
  color: #0f274f;
  border-bottom-color: var(--royal-blue);
}
.access-alert--danger {
  background: #fff1f0;
  color: #7f1d1d;
  border-bottom-color: #dc2626;
  box-shadow: inset 0 0 0 1px #fecaca;
}
.access-alert--danger .access-alert__title {
  color: #b91c1c;
}
.access-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.access-cd {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16rem;
}
.access-cd [data-cd] {
  min-width: 1.2ch;
  text-align: right;
}
.access-cd__u {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0.72;
}
@media (max-width: 991.98px) {
  .access-alert {
    padding: 0.32rem 0.7rem;
    gap: 0.35rem 0.5rem;
  }
  .access-alert__title {
    font-size: 0.76rem;
    white-space: normal;
  }
  .access-alert__msg {
    display: none;
  }
  .access-alert__btn {
    padding: 0.24rem 0.58rem;
    font-size: 0.72rem;
  }
  .access-countdown {
    font-size: 0.78rem;
    gap: 0.32rem;
  }
}

/* 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 {
  overflow-x: clip;
  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;
  overflow: hidden;
  padding-top: 0.35rem;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    overflow: visible;
    padding-right: 1.25rem;
  }
}
@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-right: 2.25rem;
  }
}
.pricing-per {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--gray-600, #64748b);
}
.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);
  overflow: visible;
  z-index: 1;
}
.pricing-ribbon {
  position: absolute;
  top: 16px;
  right: -32px;
  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);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .pricing-ribbon {
    right: -8px;
    top: 14px;
    padding: 0.22rem 1.8rem;
  }
}
.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;
}
.plan-price-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
}
.plan-off-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b42318;
  background: rgba(220, 38, 38, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  line-height: 1.2;
  vertical-align: middle;
}
.billing-plan-card .plan-price-now,
.billing-qris-card .plan-price-now {
  margin-bottom: 0.35rem;
}
.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;
}

/* Homepage — katalog modul */
.modules-catalog {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 58, 107, 0.06), transparent 60%),
    var(--gray-50);
}
.modules-catalog-head {
  text-align: center;
  margin-bottom: 2rem;
}
.modules-catalog-head .section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}
.modules-catalog-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  margin-bottom: 0;
}
.modules-catalog-sub strong {
  color: var(--royal-blue);
  font-weight: 700;
}
.modules-catalog-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem 1.25rem;
  max-width: min(1100px, 100%);
  margin: 0 auto;
  overflow-x: clip;
  min-width: 0;
}
.modules-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.modules-catalog-meta {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.modules-catalog-meta strong {
  color: var(--gray-800);
  font-weight: 700;
}
.modules-catalog-search {
  flex: 1 1 240px;
  max-width: 320px;
  margin: 0;
}
.modules-catalog-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modules-catalog-search input::placeholder {
  color: var(--gray-400);
}
.modules-catalog-search input:focus {
  border-color: var(--royal-blue-light);
  box-shadow: 0 0 0 3px rgba(46, 90, 158, 0.15);
}
.modules-catalog-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.modules-catalog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.modules-catalog-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0.65rem 0.75rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.modules-catalog-table th:nth-child(1) { width: 18%; }
.modules-catalog-table th:nth-child(2) { width: 26%; }
.modules-catalog-table th:nth-child(3) { width: 56%; }
.modules-catalog-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.modules-catalog-table tbody tr:last-child td {
  border-bottom: none;
}
.modules-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.08);
  color: var(--royal-blue);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.modules-name {
  display: block;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.35;
}
.modules-summary {
  display: block;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.5;
}
.modules-catalog-empty td {
  text-align: center;
  color: var(--gray-600);
  padding: 2rem 0.75rem;
}
.modules-catalog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.modules-catalog-page {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.modules-catalog-page strong {
  color: var(--gray-800);
}
.modules-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.modules-pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.modules-pager-btn,
.modules-pager-num,
.modules-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
}
.modules-pager-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--gray-400);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.modules-pager-btn.is-outline {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}
.modules-pager-btn:not(:disabled):hover {
  color: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
}
.modules-pager-btn:disabled {
  cursor: default;
  opacity: 0.55;
}
.modules-pager-num {
  min-width: 2.05rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
}
.modules-pager-num:hover {
  border-color: var(--royal-blue-light);
  color: var(--royal-blue);
}
.modules-pager-num.is-active {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: var(--white);
  cursor: default;
}
.modules-pager-ellipsis {
  min-width: 1.5rem;
  color: var(--gray-400);
  user-select: none;
}
@media (max-width: 767.98px) {
  .modules-catalog-panel {
    padding: 1.1rem 1rem 1rem;
    border-radius: 14px;
  }
  .modules-catalog-search {
    max-width: none;
    flex-basis: 100%;
  }
  .modules-catalog-table {
    min-width: 0;
  }
  .modules-catalog-table thead {
    display: none;
  }
  .modules-catalog-table,
  .modules-catalog-table tbody,
  .modules-catalog-table tr,
  .modules-catalog-table td {
    display: block;
    width: 100%;
  }
  .modules-catalog-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .modules-catalog-table tbody tr:last-child {
    border-bottom: none;
  }
  .modules-catalog-table td {
    padding: 0.2rem 0;
    border: none;
  }
  .modules-catalog-table td[data-label="Kategori"] {
    margin-bottom: 0.35rem;
  }
  .modules-catalog-table td[data-label="Modul"] {
    margin-bottom: 0.25rem;
  }
  .modules-catalog-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Homepage — testimonials marquee */
.testimonials-section {
  overflow: hidden;
  overflow-x: clip;
  max-width: 100%;
}
.testimonials-head {
  text-align: center;
  margin-bottom: 2rem;
}
.testimonials-eyebrow,
.testimonials-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.08);
  color: var(--royal-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonials-eyebrow {
  margin-bottom: 0.9rem;
}
.testimonials-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-blue);
  flex-shrink: 0;
}
.testimonials-head .section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin-bottom: 0.65rem;
}
.testimonials-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
  margin-bottom: 0;
}
.testimonials-panel {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem 0 1.25rem;
  overflow: hidden;
}
.testimonials-panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0 1.35rem 1rem;
}
.testimonials-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.testimonials-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.testimonials-highlight {
  margin: 0;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
  contain: paint;
  isolation: isolate;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonials-track {
  display: flex;
  width: max-content;
  animation: testimonials-marquee 42s linear infinite;
}
.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}
.testimonials-group {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding-right: 0.75rem;
}
.testimonial-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  max-width: min(420px, 78vw);
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 36, 71, 0.03);
}
.testimonial-stars {
  display: inline-flex;
  gap: 0.08rem;
  color: var(--yellow);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.testimonial-quote {
  margin: 0;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes testimonials-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
  .testimonials-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .testimonials-track {
    width: auto;
  }
  .testimonials-group[aria-hidden="true"] {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .testimonials-panel {
    border-radius: 14px;
    padding-top: 1rem;
  }
  .testimonials-panel-top {
    padding: 0 1rem 0.9rem;
  }
  .testimonials-more {
    order: -1;
  }
  .testimonials-highlight {
    flex-basis: 100%;
    font-size: 0.86rem;
  }
  .testimonial-chip {
    border-radius: 14px;
    align-items: flex-start;
    max-width: min(300px, 82vw);
  }
  .testimonial-quote {
    white-space: normal;
  }
}

/* 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;
  }
}

/* App Dashboard — dense ERP layout */
.dash-page {
  max-width: none;
  width: 100%;
}
.dash-dense .card-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.04);
  padding: 0.7rem 0.85rem;
  min-width: 0;
}
.card-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.04);
  padding: 0.7rem 0.85rem;
}
.owner-dash-carousel {
  margin: 0 0 0.65rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.05);
}
.owner-dash-carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.owner-dash-carousel-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s ease;
  will-change: transform;
}
.owner-dash-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--gray-50);
}
.owner-dash-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  vertical-align: middle;
}
.owner-dash-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem 0.55rem;
  background: #fff;
}
.owner-dash-carousel-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--gray-300);
  cursor: pointer;
}
.owner-dash-carousel-dot.is-active {
  background: var(--royal-blue);
  width: 16px;
}
@media (max-width: 991.98px) {
  .owner-dash-carousel {
    margin: 0.15rem 0 0.7rem;
    border-radius: 16px;
  }
}
.dash-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
}
.dash-welcome-compact {
  font-size: 0.88rem;
  color: var(--gray-800);
}
.dash-welcome-compact strong {
  color: var(--royal-blue);
}
.dash-filter {
  margin-bottom: 0.65rem !important;
  padding: 0.55rem 0.75rem !important;
}
.dash-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.dash-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--royal-blue);
  white-space: nowrap;
}
.dash-filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1 1 auto;
}
.dash-preset {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.dash-preset:hover {
  border-color: var(--royal-blue-light);
  color: var(--royal-blue);
}
.dash-preset.is-active {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: #fff;
}
.dash-filter-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.dash-filter-custom .form-control {
  width: auto;
  min-width: 8.2rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.78rem;
}
.dash-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dash-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--royal-blue);
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
}
.dash-quick-btn:hover {
  border-color: var(--royal-blue-light);
  color: var(--royal-blue-dark);
  background: rgba(26, 58, 107, 0.04);
}

/* Top: KPI strip + summary panel */
.dash-grid-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  align-items: stretch;
}
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.dash-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  box-shadow: 0 2px 8px rgba(26, 58, 107, 0.03);
  transition: border-color 0.15s ease;
}
.dash-kpi:hover {
  border-color: rgba(26, 58, 107, 0.28);
}
.dash-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
  background: rgba(26, 58, 107, 0.08);
  color: var(--royal-blue);
  font-size: 0.9rem;
}
.dash-kpi-body {
  min-width: 0;
}
.dash-kpi-yellow .dash-kpi-icon {
  background: rgba(235, 222, 37, 0.35);
  color: var(--royal-blue-dark);
}
.dash-kpi-red .dash-kpi-icon {
  background: rgba(150, 0, 24, 0.08);
  color: var(--carmine);
}
.dash-kpi-slate .dash-kpi-icon {
  background: rgba(100, 116, 139, 0.12);
  color: var(--gray-600);
}
.dash-kpi-label {
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}
.dash-kpi-value {
  color: var(--gray-800);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.15rem;
  word-break: break-word;
}
.dash-kpi-red .dash-kpi-value {
  color: var(--carmine);
}
.dash-delta {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
}
.dash-delta.is-up { color: #059669; }
.dash-delta.is-down { color: #DC2626; }
.dash-delta.is-flat { color: var(--gray-400); }

.dash-summary-panel {
  display: flex;
  flex-direction: column;
}
.dash-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  flex: 1;
}
.dash-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}
.dash-summary-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.dash-summary-ico.is-blue {
  background: rgba(26, 58, 107, 0.1);
  color: var(--royal-blue);
}
.dash-summary-ico.is-slate {
  background: rgba(100, 116, 139, 0.14);
  color: var(--gray-600);
}
.dash-summary-ico.is-yellow {
  background: rgba(235, 222, 37, 0.35);
  color: var(--royal-blue-dark);
}
.dash-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Main dense CSS grid ~ 12 cols */
.dash-grid-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}
.dash-span-4 { grid-column: span 4; }
.dash-span-6 { grid-column: span 6; }
.dash-span-8 { grid-column: span 8; }
.dash-span-12 { grid-column: span 12; }

.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.dash-card-head h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--royal-blue);
}
.dash-card-head a,
.dash-card-head .small {
  font-weight: 600;
  font-size: 0.72rem;
  text-decoration: none;
}
.dash-chart-wrap {
  position: relative;
  height: 210px;
}
.dash-chart-sm {
  height: 190px;
}
.dash-chart-donut {
  height: 210px;
  max-width: none;
  margin: 0;
}
.dash-empty,
.dash-empty-inline {
  color: var(--gray-600);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.dash-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-empty[hidden] {
  display: none !important;
}
.dash-table-scroll {
  max-height: 240px;
  overflow: auto;
}
.dash-table {
  font-size: 0.78rem;
}
.dash-table thead th {
  color: var(--gray-400);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom-color: var(--gray-200);
  white-space: nowrap;
  padding: 0.35rem 0.4rem;
}
.dash-table td,
.dash-table th {
  vertical-align: middle;
  padding: 0.4rem;
}
.dash-table tfoot th {
  border-top: 1px solid var(--gray-200);
  color: var(--royal-blue);
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}
.dash-badge.is-ok {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}
.dash-badge.is-soon {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.dash-badge.is-late {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

@media (max-width: 1199.98px) {
  .dash-grid-top {
    grid-template-columns: 1fr;
  }
  .dash-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-span-4,
  .dash-span-8 {
    grid-column: span 6;
  }
}
@media (max-width: 991.98px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-span-4,
  .dash-span-6,
  .dash-span-8 {
    grid-column: span 12;
  }
  .dash-filter {
    margin-top: 0.15rem;
  }
}
@media (max-width: 767.98px) {
  .dash-filter-custom {
    width: 100%;
  }
  .dash-filter-custom .form-control {
    flex: 1 1 auto;
    min-width: 0;
  }
  .dash-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-chart-wrap,
  .dash-chart-donut,
  .dash-chart-sm {
    height: 200px;
  }
  .dash-quick-btn span {
    display: none;
  }
}

/* KPI Manager — visual dashboard */
.kpi-page {
  max-width: none;
  width: 100%;
}
.kpi-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.kpi-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--royal-blue);
}
.kpi-subtitle {
  font-size: 0.78rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}
.kpi-col-left,
.kpi-col-center,
.kpi-col-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
}
.kpi-grid .card-panel {
  min-width: 0;
}
.kpi-gauge-card,
.kpi-donut-panel,
.kpi-variance-panel {
  overflow: hidden;
}
.kpi-info-panel {
  padding: 0.55rem 0.75rem !important;
}
.kpi-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
}
.kpi-info-meta i {
  color: var(--royal-blue);
  margin-right: 0.2rem;
}
.kpi-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.kpi-hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(26, 58, 107, 0.04);
}
.kpi-hero-card.is-accent {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.06), rgba(235, 222, 37, 0.12));
  border-color: rgba(26, 58, 107, 0.15);
}
.kpi-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.kpi-hero-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--royal-blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.kpi-hero-card.is-accent .kpi-hero-value {
  font-size: 1.6rem;
}
.kpi-hero-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 0.15rem;
}
.kpi-gauge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.kpi-gauge-row-sm {
  grid-template-columns: 1fr 1fr;
}
.kpi-gauge-card {
  text-align: center;
  padding-bottom: 0.65rem !important;
}
.kpi-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 180px;
  height: 110px;
  margin: 0 auto;
}
.kpi-gauge-sm {
  max-width: 150px;
  height: 95px;
}
.kpi-gauge-wrap canvas {
  display: block;
  max-width: 100%;
}
.kpi-gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  pointer-events: none;
}
.kpi-gauge-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--royal-blue);
}
.kpi-gauge-foot {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
}
.kpi-gauge-foot strong {
  display: block;
  color: var(--royal-blue);
  font-size: 0.78rem;
}
.kpi-donut-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.kpi-donut-chart {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 220px;
  margin: 0 auto;
}
.kpi-donut-chart canvas {
  display: block;
  max-width: 100%;
}
.kpi-chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.kpi-chart-wrap canvas {
  display: block;
  max-width: 100%;
}
.kpi-donut-chart .dash-empty,
.kpi-chart-wrap .dash-empty {
  position: absolute;
  inset: 0;
}
.kpi-breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.kpi-breakdown-row {
  font-size: 0.78rem;
}
.kpi-breakdown-bar-wrap {
  height: 4px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.2rem;
}
.kpi-breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-blue), #7C3AED);
  border-radius: 999px;
  min-width: 2px;
}
.kpi-breakdown-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.kpi-variance-panel {
  flex: 1;
  min-width: 0;
}
.kpi-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem !important;
}
.kpi-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
}
.kpi-mini-stat strong {
  font-size: 0.88rem;
  color: var(--royal-blue);
}
.kpi-mini-stat small {
  color: var(--gray-600);
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-col-center {
    grid-column: span 2;
  }
}
@media (max-width: 767.98px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-col-center {
    grid-column: span 1;
  }
  .kpi-hero-metrics,
  .kpi-gauge-row {
    grid-template-columns: 1fr;
  }
}

.download-mobile-brand {
  display: flex;
  justify-content: center;
}
.download-mobile-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.download-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0.35rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: calc(var(--radius) + 2px);
}
.download-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.7rem 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-600);
  background: transparent;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  flex-wrap: wrap;
}
.download-tab i {
  font-size: 1.1rem;
  line-height: 1;
}
.download-tab:hover {
  color: var(--royal-blue);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.download-tab.is-active {
  color: var(--royal-blue-dark);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.download-panel {
  margin-bottom: 0.25rem;
}
.download-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--royal-blue-light);
  margin-bottom: 0.75rem;
}
.download-trust {
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--gray-800);
}
.download-trust ul {
  padding-left: 1.15rem;
  margin: 0;
  color: var(--gray-600);
}
.download-trust li + li {
  margin-top: 0.4rem;
}
.download-status {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}
.download-checksum {
  margin-bottom: 1.5rem;
}
.download-checksum-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.45rem;
}
.download-checksum-hash {
  flex: 1 1 16rem;
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  color: var(--royal-blue-dark);
}
.download-checksum-row .js-copy.is-copied {
  border-color: var(--success);
  color: var(--success);
}
.download-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #128C7E;
  margin-bottom: 1.75rem;
}
.download-wa:hover {
  color: #0b6b5f;
}
.download-wa i {
  font-size: 1.15rem;
}
.download-status-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(245, 197, 24, 0.35);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}
.download-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.download-meta-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}
.download-meta strong {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.download-gate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.download-browser-tip {
  max-width: 36rem;
}
.download-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--royal-blue);
}
.download-social-proof i {
  color: #059669;
  font-size: 1.05rem;
}
.download-steps {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}
.download-steps ol {
  padding-left: 1.15rem;
  color: var(--gray-600);
}
.download-steps li + li {
  margin-top: 0.45rem;
}
.download-steps code {
  font-size: 0.9em;
  color: var(--royal-blue-dark);
  background: var(--gray-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.download-alt a {
  font-weight: 600;
}

.pwa-install-preview,
.pwa-pin-dialog {
  position: fixed;
  inset: 0;
  z-index: 13000;
}
.pwa-install-preview {
  background: transparent;
}
.pwa-install-preview-card {
  position: absolute;
  top: 4.6rem;
  right: 1rem;
  width: min(22.5rem, calc(100vw - 2rem));
  padding: 1rem 1rem 0.85rem;
  background: #fff;
  color: #202124;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 33, 36, 0.28), 0 0 0 1px rgba(32, 33, 36, 0.08);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: pwa-install-in 0.16s ease-out;
}
.pwa-install-preview-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.pwa-install-preview-app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.pwa-install-preview-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.pwa-install-preview-copy {
  min-width: 0;
}
.pwa-install-preview-name,
.pwa-install-preview-host {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwa-install-preview-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}
.pwa-install-preview-host {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #5f6368;
}
.pwa-install-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pwa-install-preview-btn {
  min-width: 5.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #1a73e8;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.pwa-install-preview-btn:hover,
.pwa-install-preview-btn:focus-visible {
  background: #f6fafe;
  border-color: #d2e3fc;
  outline: none;
}

.pwa-pin-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.28);
}
.pwa-pin-window {
  width: min(28rem, calc(100vw - 2rem));
  background: #2b303b;
  color: #f5f7fb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  animation: pwa-pin-in 0.16s ease-out;
}
.pwa-pin-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.7rem 0.15rem 0.95rem;
  font-size: 0.82rem;
}
.pwa-pin-titlebar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pwa-pin-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f5f7fb;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.pwa-pin-close:hover,
.pwa-pin-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.pwa-pin-body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem 1.15rem;
}
.pwa-pin-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e8f4ff;
}
.pwa-pin-copy {
  min-width: 0;
}
.pwa-pin-heading {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.pwa-pin-sub {
  margin: 0.45rem 0 0;
  color: #c5cad3;
  font-size: 0.82rem;
  line-height: 1.4;
}
.pwa-pin-guide {
  padding: 0.35rem 1.15rem 1.1rem;
}
.pwa-pin-guide-title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
}
.pwa-pin-guide-lead,
.pwa-pin-guide ol {
  margin: 0;
  color: #d5dae3;
  font-size: 0.86rem;
  line-height: 1.45;
}
.pwa-pin-guide ol {
  margin-top: 0.55rem;
  padding-left: 1.15rem;
}
.pwa-pin-guide li + li {
  margin-top: 0.3rem;
}
.pwa-pin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #3a4150;
}
.pwa-pin-actions-single {
  grid-template-columns: 1fr;
}
.pwa-pin-btn {
  border: 0;
  background: transparent;
  color: #f5f7fb;
  padding: 0.85rem 0.6rem;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.pwa-pin-btn.is-primary {
  background: #556176;
}
.pwa-pin-btn:hover,
.pwa-pin-btn:focus-visible {
  background: #657089;
  outline: none;
}
@keyframes pwa-install-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pwa-pin-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
  .pwa-install-preview-card {
    top: 4.25rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
  .download-meta {
    grid-template-columns: 1fr;
  }
}

.billing-plan-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  height: 100%;
}
.billing-plan-card.is-featured {
  border-color: var(--royal-blue);
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.08);
}
.billing-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--royal-blue);
}
.billing-qris-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.billing-qris-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
}
.billing-qris-card .billing-price,
.billing-qris-card .plan-price-now {
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1.15;
}
.billing-qris-card .text-decoration-line-through {
  font-size: 0.95rem;
}
.billing-qris-card canvas,
.qris-frame svg {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto;
}
.qris-frame {
  width: min(240px, 100%);
  margin: 0 auto;
  padding: 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}
.qris-pay-now {
  margin: 0.15rem 0 0.85rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--royal-blue);
  line-height: 1.15;
}
.qris-pay-modal.modal {
  z-index: 10100;
}
.qris-pay-modal .modal-dialog {
  width: min(400px, calc(100vw - 2rem));
  max-width: 400px;
}
.qris-pay-modal .modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
.qris-pay-modal .modal-header {
  position: relative;
  justify-content: center;
  border: 0;
  padding: 1.15rem 2.5rem 0;
}
.qris-pay-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qris-pay-modal .modal-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  margin: 0;
}
.qris-pay-modal .modal-body {
  padding: 0.35rem 1.75rem 1.45rem;
  text-align: center;
}
.qris-pay-plan {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}
.qris-pay-modal .qris-pay-now {
  margin: 0.15rem 0 1rem;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}
.qris-pay-modal .qris-frame {
  width: 232px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.qris-pay-modal .qris-frame svg {
  width: 100%;
}
.qris-pay-hint {
  margin: 0.95rem auto 0;
  max-width: 28ch;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}
body.modal-open .billing-qris-wrap,
body.modal-open .page-toolbar {
  visibility: hidden;
}
@media (min-width: 992px) {
  .qris-pay-modal .modal-dialog {
    width: 400px;
    margin-right: auto;
    margin-left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w) - 400px) / 2);
  }
  .app-shell.sidebar-collapsed .qris-pay-modal .modal-dialog {
    margin-left: calc(var(--sidebar-collapsed) + (100vw - var(--sidebar-collapsed) - 400px) / 2);
  }
}
.billing-nmid {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gray-600);
}

/* Expenses Claim — form create/edit rapat */
.claim-form-compact .form-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.12rem;
  color: var(--gray-600);
}
.claim-form-compact .form-control,
.claim-form-compact .form-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
  min-height: 2rem;
  line-height: 1.25;
  border-radius: 6px;
}
.claim-form-compact .form-control[type="file"] {
  height: auto;
  min-height: 2rem;
  padding: 0.2rem 0.4rem;
}
.claim-form-compact .claim-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
}
.claim-form-compact .claim-card h2 {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--royal-blue);
}
.claim-form-compact .claim-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.45rem 0.55rem 0.5rem;
  margin-bottom: 0.45rem;
}
.claim-form-compact .claim-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.claim-form-compact .claim-item-head strong {
  font-size: 0.72rem;
  color: var(--royal-blue);
}
.claim-form-compact .claim-more {
  margin-top: 0.3rem;
}
.claim-form-compact .claim-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--royal-blue);
  user-select: none;
}
.claim-form-compact .claim-more > summary::-webkit-details-marker {
  display: none;
}
.claim-form-compact .claim-more > summary::before {
  content: '▸ ';
}
.claim-form-compact .claim-more[open] > summary::before {
  content: '▾ ';
}
.claim-form-compact .claim-extra .form-label {
  margin-bottom: 0.08rem;
}
.claim-form-compact .claim-hint {
  font-size: 0.72rem;
  margin: 0 0 0.5rem;
}
.claim-form-compact .claim-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  padding-top: 0.15rem;
}
.claim-form-compact .alert {
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}

/* POS cashier: fill remaining viewport so cart/customer stay on screen */
.app-shell.is-pos,
.app-shell:has(.pos-page) {
  height: 100dvh;
  overflow: hidden;
}
.app-shell.is-pos .app-main,
.app-shell:has(.pos-page) .app-main {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.app-shell.is-pos .app-topbar,
.app-shell:has(.pos-page) .app-topbar {
  flex-shrink: 0;
}
.app-shell.is-pos .app-content,
.app-content:has(.pos-page) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0.5rem;
}
@media (max-width: 991.98px) {
  .app-shell.is-pos .app-content,
  .app-content:has(.pos-page) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0;
  }
  /* Samakan chrome POS Owner & Admin Penjualan di HP */
  .app-shell.is-pos .m-topbar-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}
body.pos-cart-open {
  overflow: hidden;
}

.printer-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #94a3b8;
  flex-shrink: 0;
}
.printer-status-dot.is-on {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.printer-status-dot.is-off { background: #94a3b8; }
.printer-status-dot.is-wait {
  background: #f59e0b;
  animation: printerPulse 1s ease-in-out infinite;
}
.printer-status-dot.is-err { background: #dc2626; }
@keyframes printerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media print {
  .access-alert,
  .sidebar,
  .app-topbar,
  .m-topbar,
  .m-hero,
  .bolana-toast-container,
  .bolana-confirm-root,
  .sidebar-backdrop,
  .pos-printer-chip,
  #bolanaPrinterOfflineModal,
  #printerPickModal {
    display: none !important;
  }
  html,
  body,
  .app-shell,
  .app-main,
  .app-content {
    background: #fff !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }
}
