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

/* ==========================================================================
   SIKANCUYY PRINTING - Android Native Fintech Design System (Poppins)
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-rgb: 37, 99, 235;

  --accent: #0284c7;
  --accent-light: #f0f9ff;

  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  --dark-muted: #94a3b8;

  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --background: #f6f8fa;

  --border-color: #e9eef2;
  --border-subtle: #f1f5f9;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #8c9ba8;
  --text-inverse: #ffffff;

  /* Status Colors (Rich & Vibrant) */
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-text: #b91c1c;

  --success: #10b981;
  --success-light: #dcfce7;
  --success-text: #15803d;

  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-text: #b45309;

  --info: #0284c7;
  --info-light: #e0f2fe;
  --info-text: #0369a1;

  /* Layered Modern Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.035), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-elevated: 0 10px 28px -4px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-fab: 0 8px 24px -2px rgba(37, 99, 235, 0.42);
  --shadow-bottom-nav: 0 -4px 20px rgba(15, 23, 42, 0.03);

  /* Modern Border Radii (Android Native 18-22px Cards) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* Layout Dimensions */
  --appbar-height: 58px;
  --bottomnav-height: 64px;
  --sidebar-width: 250px;
  --touch-target: 48px;

  /* Animation & Transitions */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   CSS Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
button,
input,
select,
textarea {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}

html {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
  background-color: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   App Shell Layout
   ========================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Top App Bar with Android Fintech Styling (Reference 1 & 2) */
.top-app-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--appbar-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.top-app-bar .app-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-bar-brand-logo {
  height: 32px;
  width: 32px;
  max-height: 32px;
  max-width: 32px;
  object-fit: contain;
  border-radius: var(--radius-pill);
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.app-bar-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-bar-subtitle {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
}

.app-bar-back-btn {
  color: #0f172a;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.app-bar-back-btn:active {
  background: #f1f5f9;
  transform: scale(0.94);
}

.top-app-bar .app-bar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.app-bar-action-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: var(--transition-fast);
}

.app-bar-action-btn:active {
  transform: scale(0.94);
  opacity: 0.9;
}

.app-bar-icon-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.app-bar-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.app-bar-icon-btn:active {
  background: #e2e8f0;
  transform: scale(0.92);
}

.app-bar-primary-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
}

.app-bar-primary-btn:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
}

#appBarResetBtn svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#appBarResetBtn:hover svg {
  transform: rotate(180deg);
}

#appBarResetBtn:active svg {
  transform: rotate(360deg);
}

.badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* User Avatar Bubble */
.user-avatar-sm {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: var(--transition-fast);
}

.user-avatar-sm:active {
  transform: scale(0.92);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 1rem 1rem calc(var(--bottomnav-height) + 1.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
  width: 100%;
  max-width: 100%;
}

/* Fixed Bottom Navigation Bar (Material 3 Android App Style) */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-bottom-nav);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px 0;
}

.bottom-nav-item .bottom-nav-icon {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.bottom-nav-item.active .bottom-nav-icon {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  transform: translateY(-1px);
}

.bottom-nav-item.active .nav-label {
  color: var(--primary);
  font-weight: 700;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

/* Floating Action Button (FAB) - Positioned directly above the 'Menu' bottom nav tab */
.fab-container {
  position: fixed !important;
  right: 20px !important;
  bottom: calc(var(--bottomnav-height, 64px) + 0.85rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1050 !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
}

.fab-container.fab-hidden {
  display: none !important;
  pointer-events: none !important;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.fab:hover {
  opacity: 0.92;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.fab:active {
  opacity: 0.8;
}

/* ==========================================================================
   Bottom Sheet & Drawer
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease-out, visibility 0.16s ease-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet-backdrop.active,
.sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: none;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

.bottom-sheet.active,
.bottom-sheet.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: bottomSheetSpringIn 0.18s ease-out forwards;
}

@keyframes bottomSheetSpringIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   List Menus (Substitutes for Heavy Popups & Modal Sheets)
   ========================================================================== */
.fab-bill-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  z-index: 10050;
  padding: 6px;
  user-select: none;
  transform-origin: bottom right;
}

.fab-bill-menu[style*="display: block"] {
  animation: popupSpringScaleRight 0.14s ease-out forwards !important;
}

@keyframes popupSpringScaleRight {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fab-bill-item,
.top-bill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--dark, #0f172a);
  transition: background-color 0.12s ease;
}

.fab-bill-item:hover,
.top-bill-item:hover {
  background-color: var(--surface-subtle, #f1f5f9);
}

.fab-bill-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fab-bill-badge-icon.zap {
  background: #eff6ff;
  color: #2563eb;
}

.fab-bill-badge-icon.single {
  background: #f8fafc;
  color: #2563eb;
}

.fab-bill-badge-icon.wallet {
  background: #ecfdf5;
  color: #10b981;
}

.ts-method-card:has(input:checked) {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
}

.fab-bill-title,
.top-bill-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.fab-bill-desc,
.top-bill-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
  margin-top: 1px;
}

.fab-bill-divider,
.top-bill-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 3px 0;
}

.top-bill-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 215px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  z-index: 10050;
  padding: 6px;
  user-select: none;
  transform-origin: top right;
}

.top-bill-dropdown[style*="display: block"] {
  animation: popupSpringScaleRight 0.14s ease-out forwards !important;
}

/* Public Customer Card List Menu (Substitute for Heavy Quick Modal) */
.public-cust-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 12px;
  min-width: 175px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  z-index: 10050;
  padding: 6px;
  user-select: none;
  transform-origin: top right;
  text-align: left;
}

.public-cust-dropdown-menu[style*="display: block"] {
  animation: popupSpringScaleRight 0.14s ease-out forwards !important;
}

.public-cust-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--dark, #0f172a);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.12s ease;
}

.public-cust-dropdown-item:hover {
  background-color: var(--surface-subtle, #f1f5f9);
}

.public-cust-dropdown-item:active {
  transform: scale(0.98);
}

.public-cust-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 3px 0;
}

.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: var(--radius-pill);
  margin: 0.75rem auto 0.4rem auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.sheet-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.sheet-body {
  padding: 0.75rem 0.85rem 2rem 0.85rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Bill Type Selection Bottom Sheet (Android Style) */
.bill-type-option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg, 16px);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.75rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.bill-type-option-card:hover,
.bill-type-option-card:active {
  background: #f8fafc;
  border-color: var(--primary, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.bill-type-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bill-type-icon-box.single {
  background: #dbeafe;
  color: #2563eb;
}

.bill-type-icon-box.instant {
  background: #dbeafe;
  color: #2563eb;
}

.bill-type-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 3px;
}

.bill-type-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

/* Staggered Pop-Up Animation for Option Cards */
.bottom-sheet.active .bill-type-option-card:nth-child(1),
.bottom-sheet.open .bill-type-option-card:nth-child(1) {
  animation: billOptionPopIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.bottom-sheet.active .bill-type-option-card:nth-child(2),
.bottom-sheet.open .bill-type-option-card:nth-child(2) {
  animation: billOptionPopIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes billOptionPopIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
  transition: var(--transition);
}

.drawer-nav-item:active,
.drawer-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.drawer-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-menu-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Modern Cards & Metrics
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modern Fintech Wallet Balance Card (Reference Inspired) */
.wallet-balance-card {
  background: linear-gradient(135deg, #3730a3 0%, #4338ca 40%, #3b82f6 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: 0 14px 28px -6px rgba(55, 48, 163, 0.42), 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.wallet-balance-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.wallet-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.wallet-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.wallet-main-amount {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.3rem 0 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.wallet-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 0.75rem;
}

.wallet-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wallet-sub-col {
  display: flex;
  flex-direction: column;
}

.wallet-sub-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.wallet-arrow-down {
  color: #fca5a5;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.wallet-arrow-up {
  color: #86efac;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.wallet-sub-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

/* Metric Grids */
.stats-grid-4col,
.stats-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.stat-card-compact {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card-compact:hover {
  opacity: 0.94;
  box-shadow: var(--shadow-elevated);
}

.stat-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.stat-card-compact.danger::before {
  background: linear-gradient(to bottom, #ef4444, #dc2626);
}

.stat-card-compact.success::before {
  background: linear-gradient(to bottom, #10b981, #059669);
}

.stat-card-compact.warning::before {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.stat-card-compact.info::before {
  background: linear-gradient(to bottom, #0284c7, #0369a1);
}

.stat-card-compact .stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.stat-card-compact .stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stat-card-compact .stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Section Title (Teks Aksi Cepat & Android App Section Headers) */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.25;
}

/* Quick Actions Grid (Unified Single Color System) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.quick-action-btn {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.25rem 0.7rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  user-select: none;
}

.quick-action-btn:hover {
  opacity: 0.95;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.quick-action-btn:active {
  background: #f8fafc;
  transform: scale(0.92);
}

.quick-action-btn.quick-action-primary {
  background: var(--primary, #2563eb) !important;
  border-color: var(--primary, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.quick-action-btn.quick-action-primary:hover {
  background: var(--primary-hover, #1d4ed8) !important;
  border-color: var(--primary-hover, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.quick-action-btn.quick-action-primary .quick-action-icon,
.quick-action-btn.quick-action-primary .quick-action-label,
.quick-action-btn.quick-action-primary svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.12);
  flex-shrink: 0;
}

.btn-wa-header:hover {
  background: #bbf7d0 !important;
  border-color: #4ade80 !important;
  color: #166534 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.2);
}

.btn-wa-header:active {
  transform: scale(0.93);
}

.dropdown-action-item {
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-action-item:hover {
  background: #f1f5f9;
}

.dropdown-action-item:active {
  background: #e2e8f0;
}

.dropdown-action-item.text-danger:hover,
.dropdown-action-item:hover .text-danger {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

/* Quick Action Icon (Single Unified Color) */
.quick-action-icon {
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #2563eb) !important;
  transition: transform 0.15s ease;
}

.quick-action-icon svg {
  color: var(--primary, #2563eb) !important;
  stroke: var(--primary, #2563eb) !important;
  width: 24px;
  height: 24px;
}

.quick-action-btn:active .quick-action-icon {
  transform: scale(0.9);
}

/* Quick Action Label Typography */
.quick-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ==========================================================================
   Mobile Card Lists & Items (Reference 1 & 2 Rounded Fintech Cards)
   ========================================================================== */
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.list-item-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.list-item-card:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.list-item-card:active {
  background: #fafbfc;
  transform: scale(0.985);
}

.list-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.list-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.list-item-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.list-item-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.825rem;
}

.list-item-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.list-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Filter Chips, Radio Tabs, & Search Bar (Android Native App Pattern)
   ========================================================================== */
.search-bar-wrap {
  position: relative;
  margin-bottom: 0.85rem;
  width: 100%;
  z-index: 1;
}

.search-bar-input {
  width: 100%;
  height: 48px;
  padding: 0 2.75rem 0 2.85rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-bar-input::-webkit-search-decoration,
.search-bar-input::-webkit-search-cancel-button,
.search-bar-input::-webkit-search-results-button,
.search-bar-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.search-bar-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

.search-bar-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-bar-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  z-index: 2;
}

.search-bar-clear:hover {
  background: #cbd5e1;
  color: var(--text-main);
}

.no-filter-match-card {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-color);
  box-shadow: var(--shadow-sm);
}

.public-radio-group {
  display: flex;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
  margin-bottom: 0.85rem;
  border: none;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.radio-pill:focus,
.radio-pill:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.radio-pill input[type="radio"] {
  display: none !important;
}

.radio-pill.active,
.radio-pill:has(input:checked) {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
  border: none !important;
}

.radio-pill .radio-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 7px;
  border-radius: 12px;
  color: inherit;
}

.radio-pill.active .radio-count-badge,
.radio-pill:has(input:checked) .radio-count-badge {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

/* Customer More Menu & Filter Dropdown (Titik 3) */
.customer-more-wrap {
  position: relative;
  flex-shrink: 0;
}

.customer-more-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  z-index: 10050;
  padding: 6px;
  user-select: none;
  transform-origin: top right;
}

.customer-more-dropdown[style*="display: block"] {
  animation: popupSpringScaleRight 0.14s ease-out forwards !important;
}

@keyframes popupSpringScaleRight {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-more-dropdown .more-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--dark, #1e293b);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.customer-more-dropdown .more-menu-item:hover {
  background: var(--surface-subtle, #f1f5f9);
  color: var(--primary, #2563eb);
}

.customer-more-dropdown .sort-option-item.active {
  background: var(--primary-light, #eff6ff);
  color: var(--primary, #2563eb);
  font-weight: 700;
}

.customer-more-dropdown .sort-option-item .sort-check {
  display: none;
  color: var(--primary, #2563eb);
}

.customer-more-dropdown .sort-option-item.active .sort-check {
  display: inline-flex;
  align-items: center;
}

/* Filter Chips Scroll & Pill Badges */
.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.05rem;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.filter-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--dark);
}

.filter-chip:active {
  transform: scale(0.95);
}

.filter-chip.active {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.filter-chip.active:hover {
  background: var(--primary-hover, #1d4ed8);
  border-color: var(--primary-hover, #1d4ed8);
  color: #ffffff;
}

/* Segmented Tabs */
.segmented-control {
  display: flex;
  background: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  margin-bottom: 0.85rem;
}

.segmented-tab {
  flex: 1;
  text-align: center;
  padding: 0.38rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  white-space: nowrap;
}

.segmented-tab:hover {
  color: var(--dark);
}

.segmented-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.segmented-tab .tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.07);
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.1;
  color: inherit;
}

.segmented-tab.active .tab-count {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Badges, Buttons, & Forms
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-paid {
  background-color: var(--success-light);
  color: var(--success-text);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-unpaid {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-partial {
  background-color: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info-text);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-dark {
  background-color: var(--dark);
  color: #ffffff;
}

.badge-code {
  background-color: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  min-height: 40px;
  line-height: 1;
}

.btn:hover {
  opacity: 0.93;
}

.btn:active {
  opacity: 0.82;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.btn-dark {
  background-color: var(--dark);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-outline {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  min-height: 32px;
  border-radius: 8px;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  min-height: 26px;
  border-radius: 6px;
}

/* Icon-Only Buttons & Action Groups */
.btn-icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.btn-icon-xs {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-ghost-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.btn-ghost-primary:hover {
  background: #dbeafe;
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-ghost-success {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-ghost-success:hover {
  background: #a7f3d0;
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.45);
}

.btn-ghost-danger {
  background: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-ghost-danger:hover {
  background: #fecaca;
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-ghost-wa {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-ghost-wa:hover {
  background: #bbf7d0;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.5);
}

.btn-ghost-dark {
  background: #f1f5f9;
  color: var(--dark);
  border: 1px solid #cbd5e1;
}

.btn-ghost-dark:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-ghost-warning {
  background: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-ghost-warning:hover {
  background: #fde68a;
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.5);
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

/* Customer Card Custom Components */
.btn-check-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
}

.btn-check-circle:hover {
  background: #15803d;
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}

.btn-check-circle.paid {
  background: #16a34a;
  cursor: default;
}

.customer-doc-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.customer-card-bottom {
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-control,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

textarea.form-control {
  height: auto;
  min-height: 85px;
}

/* ==========================================================================
   Modals & Android Bottom Sheet System
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.modal-open .bottom-nav {
  z-index: 999 !important;
}

body.modal-open .top-app-bar {
  z-index: 999 !important;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: none;
  opacity: 0;
  transform: translateY(14px);
  max-height: min(88dvh, calc(100vh - 36px)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0;
  position: relative;
  z-index: 100000 !important;
  pointer-events: auto !important;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 12px));
}

.modal-box::before {
  content: '';
  display: block;
  width: 38px;
  height: 4.5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 9px auto 3px auto;
  flex-shrink: 0;
}

.modal-overlay.active .modal-box {
  opacity: 1 !important;
  animation: modalSheetPopIn 0.18s ease-out forwards;
}

.modal-overlay.fade-out {
  opacity: 0 !important;
}

.modal-overlay.fade-out .modal-box {
  animation: modalSheetPopOut 0.14s ease-out forwards;
}

@keyframes modalSheetPopIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSheetPopOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal-box form,
.modal-box>form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-subtle);
  flex-shrink: 0;
}

.modal-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--dark);
}

.modal-body {
  padding: 1.15rem;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 #f8fafc !important;
}

/* Custom modern scrollbar / slider bar for modal body */
.modal-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-footer {
  padding: 0.85rem 1.15rem !important;
  border-top: 1px solid var(--border-color, #e2e8f0) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 50 !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.08) !important;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: calc(var(--appbar-height, 58px) + 0.85rem + env(safe-area-inset-top, 0px));
  left: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  pointer-events: auto;
  animation: toastSpringIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.toast-success {
  background: linear-gradient(135deg, #059669, #047857);
  border-left-color: #6ee7b7;
}

.toast-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-left-color: #fca5a5;
}

.toast-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-left-color: #fcd34d;
}

.toast-info {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-left-color: #7dd3fc;
}

@keyframes toastSpringIn {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.flex-1 {
  flex: 1 !important;
}

.align-center {
  align-items: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-center {
  justify-content: center !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Universal Centered Footer */
.app-footer,
.public-footer {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  margin: 1.5rem auto 0 auto !important;
  padding: 1.25rem 0.75rem calc(var(--bottomnav-height, 64px) + 1.25rem + env(safe-area-inset-bottom, 0px)) 0.75rem !important;
  border-top: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
  box-sizing: border-box;
}

.app-footer *,
.public-footer * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.public-shell .public-footer,
.public-shell .app-footer {
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px)) !important;
}

.app-footer strong,
.public-footer strong {
  color: var(--dark, #0f172a);
}

.gap-1 {
  gap: 0.4rem !important;
}

.gap-2 {
  gap: 0.85rem !important;
}

.gap-3 {
  gap: 1.15rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.trans-item-icon-badge {
  flex-shrink: 0;
  margin-right: 6px;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.p-2 {
  padding: 0.85rem !important;
}

.mb-1 {
  margin-bottom: 0.4rem !important;
}

.mb-2 {
  margin-bottom: 0.75rem !important;
}

.mb-3 {
  margin-bottom: 1.15rem !important;
}

.mt-1 {
  margin-top: 0.4rem !important;
}

.mt-2 {
  margin-top: 0.75rem !important;
}

.mt-3 {
  margin-top: 1.15rem !important;
}

.pt-1 {
  padding-top: 0.4rem !important;
}

.pt-2 {
  padding-top: 0.85rem !important;
}

/* ==========================================================================
   Public Portal & Digital Wallet Card
   ========================================================================== */
.public-hero {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 40;
}

.public-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
}

.customer-avatar-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.public-customer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  margin-bottom: 0.55rem;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.public-customer-card:hover {
  box-shadow: var(--shadow-elevated);
}

.public-customer-card:active {
  background-color: #f8fafc;
}

.public-customer-card:has(.customer-dropdown-menu[style*="display: block"]),
.public-customer-card.dropdown-active {
  opacity: 1 !important;
  z-index: 1000 !important;
}

.customer-dropdown-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9999 !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08) !important;
  transform-origin: top left;
}

.customer-dropdown-menu[style*="display: block"] {
  animation: popupSpringScaleLeft 0.14s ease-out forwards !important;
}

@keyframes popupSpringScaleLeft {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-bottom: 5.5rem;
  /* Memberikan ruang scroll agar kartu paling bawah tidak terhalang tombol FAB (+) */
}

@media (min-width: 640px) {
  .customer-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .public-customer-card {
    margin-bottom: 0;
  }
}

/* Billing Card (Wallet Digital Card) */
.billing-card-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.billing-card-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.billing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.billing-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.billing-card-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.billing-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.825rem;
}

.billing-actions-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  padding-top: 0.85rem;
}

.billing-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  padding: 0.55rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.billing-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.92;
}

.billing-action-btn:active {
  opacity: 0.8;
}

.billing-action-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Public Info Grid */
.public-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 480px) {
  .public-info-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .quick-action-btn {
    padding: 0.65rem 0.25rem;
    font-size: 0.68rem;
    gap: 5px;
  }

  .quick-action-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
}

.public-info-item {
  padding: 0.35rem 0.45rem;
}

.public-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.public-info-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2px;
}

/* ==========================================================================
   Table & Responsive Adaptations
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th {
  background-color: var(--surface-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

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

/* Account Select Card (Public payment modal) */
.account-select-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  transition: var(--transition);
}

.account-select-card:hover {
  border-color: var(--primary);
}

/* ==========================================================================
   Thermal Receipt Component (Preview & Struk Kasir)
   ========================================================================== */
.btn-paper-toggle {
  background: transparent;
  border: 1px solid var(--border-color, #cbd5e1);
  color: var(--text-muted, #64748b);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-paper-toggle.active {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #ffffff;
}

.receipt-font {
  font-family: 'Courier New', Courier, Consolas, Monaco, monospace !important;
}

.receipt-note-box {
  font-family: 'Courier New', Courier, Consolas, Monaco, monospace;
  background: #fafafa;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.thermal-receipt-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 10px;
  background: #f8fafc;
  border-radius: 8px;
  max-height: 460px;
  overflow-y: auto;
}

/* ==========================================================================
   Thermal Receipt Component (Pure Native Monospace - ESC/POS Standard)
   Tidak menggunakan font eksternal, webfont, atau CDN
   ========================================================================== */
.thermal-receipt,
.thermal-receipt pre,
.thermal-receipt *,
body.printing-thermal,
body.printing-thermal * {
  font-family: Consolas, 'Courier New', Monaco, monospace !important;
  font-weight: 600 !important;
  letter-spacing: 0px !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  text-shadow: none !important;
  box-shadow: none !important;
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: unset !important;
  font-smooth: never !important;
  text-rendering: optimizeSpeed !important;
}

.thermal-receipt {
  background: #ffffff !important;
  padding: 10px 8px;
  border: 1px dashed #cbd5e1; /* Pembatas visual kartu pada preview web */
  border-radius: 2px;
  box-shadow: none !important;
  line-height: 1.25 !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  text-align: left;
}

.thermal-receipt.paper-80mm {
  width: 100%;
  max-width: 360px;
  font-size: 12px;
}

.thermal-receipt.paper-58mm {
  width: 100%;
  max-width: 260px;
  font-size: 11px;
  padding: 8px 6px;
}

.thermal-receipt pre.thermal-receipt-text {
  font-family: monospace !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: pre !important;
  word-break: normal !important;
  line-height: 1.25 !important;
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  font-size: inherit !important;
  text-align: left !important;
  tab-size: 2;
}

.thermal-receipt .thermal-receipt-qr {
  margin-top: 8px;
  text-align: center;
}

.thermal-receipt .thermal-receipt-qr svg,
.thermal-receipt .thermal-receipt-qr img {
  display: block;
  margin: 0 auto;
  max-width: 110px;
  max-height: 110px;
}

.thermal-receipt strong,
.thermal-receipt b {
  font-weight: 700 !important;
}

.thermal-receipt .receipt-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding-top: 2px;
  text-align: center;
}

.thermal-receipt .receipt-qr-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 2px;
}

.thermal-receipt .receipt-qr-code svg {
  display: block;
  width: 84px;
  height: 84px;
}

.thermal-receipt.paper-58mm .receipt-qr-code svg {
  width: 72px;
  height: 72px;
}

.thermal-receipt-area {
  display: none;
}

/* ==========================================================================
   Broadcast Print (A4 Siap Potong) Component
   ========================================================================== */
.broadcast-print-area {
  display: none;
}

.broadcast-a4-preview-wrap {
  background: #475569;
  padding: 24px 16px;
  border-radius: 8px;
  max-height: 560px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.broadcast-a4-sheet {
  background: #ffffff;
  width: 210mm;
  min-width: 210mm;
  max-width: 210mm;
  min-height: 297mm;
  padding: 10mm 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  color: #000000;
  font-family: monospace !important;
  margin: 0 auto;
}

.broadcast-a4-grid {
  display: grid;
  width: 210mm;
  box-sizing: border-box;
}

.broadcast-a4-grid.cols-2 {
  grid-template-columns: repeat(2, 80mm);
  justify-content: center;
  gap: 6mm 10mm;
}

.broadcast-a4-grid.cols-3 {
  grid-template-columns: repeat(3, 58mm);
  justify-content: center;
  gap: 6mm 4mm;
}

/* Slip Struk per Pelanggan Siap Potong (Format Murni Monospace Sesuai Template Struk) */
.a4-cut-slip {
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  font-family: monospace !important;
  text-align: center;
}

.broadcast-a4-sheet.show-guides .a4-cut-slip {
  outline: 1px dashed #94a3b8;
}

.broadcast-a4-grid.cols-3 .a4-cut-slip {
  width: 58mm !important;
  max-width: 58mm !important;
  min-width: 58mm !important;
  padding: 3mm 2mm;
  font-size: 10.5px;
  line-height: 1.25;
}

.broadcast-a4-grid.cols-2 .a4-cut-slip {
  width: 80mm !important;
  max-width: 80mm !important;
  min-width: 80mm !important;
  padding: 4mm 3mm;
  font-size: 12px;
  line-height: 1.3;
}

.a4-cut-slip pre.thermal-receipt-text {
  font-family: monospace !important;
  font-weight: 400 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  white-space: pre !important;
  word-break: normal !important;
  line-height: inherit !important;
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  font-size: inherit !important;
  text-align: left !important;
  display: inline-block;
}

.broadcast-a4-grid.cols-3 .a4-cut-slip pre.thermal-receipt-text {
  width: 54mm;
  max-width: 54mm;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.broadcast-a4-grid.cols-2 .a4-cut-slip pre.thermal-receipt-text {
  width: 74mm;
  max-width: 74mm;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.a4-cut-slip .a4-slip-qris-card {
  margin: 6px auto 2px;
/* Bingkai Kotak Lengkung QRIS Dinamis */
  border: none;
  background: transparent;
=======
  border: 1.5px solid #000000;
  border-radius: 8px;
  background: #ffffff;
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
  padding: 4px 6px;
  max-width: 140px;
  text-align: center;
  box-sizing: border-box;
}

.broadcast-a4-grid.cols-3 .a4-cut-slip .a4-slip-qris-card {
  max-width: 50mm;
  padding: 3px 4px;
}

.a4-cut-slip .a4-slip-qris-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 2px;
  font-family: monospace;
}

.a4-cut-slip .a4-slip-qris-code svg {
  display: block;
  margin: 0 auto;
  max-width: 25mm;
  max-height: 25mm;
}

.broadcast-a4-grid.cols-3 .a4-cut-slip .a4-slip-qris-code svg {
  max-width: 22mm;
  max-height: 22mm;
}

.a4-cut-slip .a4-slip-qris-nominal {
  font-size: 0.85rem;
  font-weight: 900;
  color: #000000;
  margin-top: 2px;
  font-family: monospace;
}

.a4-cut-slip .a4-slip-qr-box {
  margin: 6px auto 2px;
  text-align: center;
}

.a4-cut-slip .a4-slip-qr-code svg {
  display: block;
  margin: 0 auto;
  max-width: 75px;
  max-height: 75px;
}

.a4-cut-slip .a4-slip-qr-label {
  font-size: 0.72rem;
  font-family: monospace;
  margin-top: 2px;
  color: #000000;
}

.a4-cut-guide-top,
.a4-cut-guide-bottom {
  display: none !important;
}

.a4-slip-brand {
  text-align: center;
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0.5px;
}

.a4-slip-subbrand {
  text-align: center;
  font-size: 0.82em;
  color: #334155;
  margin-bottom: 4px;
}

.a4-slip-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  padding: 2px 0;
  margin: 4px 0 6px;
  letter-spacing: 0.5px;
}

.a4-slip-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  margin-bottom: 2px;
}

.a4-slip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 5px 0;
  font-size: 0.88em;
}

.a4-slip-table th {
  border-bottom: 1px dashed #000;
  padding: 3px 0;
  font-weight: 700;
  text-align: left;
}

.a4-slip-table td {
  padding: 2px 0;
  vertical-align: top;
}

.a4-slip-summary {
  border-top: 1px dashed #000;
  padding-top: 4px;
  margin-top: 4px;
  font-size: 0.92em;
}

.a4-slip-customer-hero {
  text-align: center;
  margin: 6px 0 4px;
}

.a4-slip-customer-name {
  font-size: 1.2em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
  word-break: break-word;
}

.a4-slip-customer-code {
  font-size: 0.9em;
  font-weight: 700;
  color: #333333;
  margin-top: 1px;
  letter-spacing: 0.5px;
}

.a4-slip-grand-total {
  text-align: center;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 5px 0;
  margin: 5px 0;
}

.a4-slip-grand-total-label {
  font-size: 0.9em;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.a4-slip-grand-total-amount {
  font-size: 1.55em;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 2px;
  line-height: 1.2;
}

.broadcast-a4-grid.cols-3 .a4-slip-customer-name {
  font-size: 1.1em;
}

.broadcast-a4-grid.cols-3 .a4-slip-grand-total-amount {
  font-size: 1.35em;
}

.a4-slip-total-highlight {
  font-weight: 800;
  font-size: 1.12em;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 3px 0;
  margin: 3px 0;
}

.a4-slip-footer {
  text-align: center;
  font-size: 0.8em;
  margin-top: 5px;
  color: #475569;
  font-style: italic;
}

.a4-slip-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding-top: 4px;
  text-align: center;
}

.a4-slip-qr-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 1px;
}

.a4-slip-qr-code svg {
  display: block;
  width: 72px;
  height: 72px;
}

.broadcast-a4-grid.cols-3 .a4-slip-qr-code svg {
  width: 62px;
  height: 62px;
}

.a4-slip-qr-label {
  font-size: 8.5px;
  color: #334155;
  font-weight: 700;
  letter-spacing: -0.1px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Bingkai Kotak Lengkung QRIS Dinamis */
/* QRIS Dinamis + Scan untuk bayar + Nominal (tanpa border lengkung) */
=======
/* Bingkai Kotak Lengkung QRIS Dinamis + Scan untuk bayar + Nominal */
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
.a4-slip-qris-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px auto 2px;
  padding: 5px 8px 6px;
/* Bingkai Kotak Lengkung QRIS Dinamis */
  border: none;
  background: transparent;
=======
  border: 1.5px solid #000000;
  border-radius: 10px;
  background: #ffffff;
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
  max-width: 145px;
  text-align: center;
  box-sizing: border-box;
}

.broadcast-a4-grid.cols-3 .a4-slip-qris-card {
  max-width: 122px;
  padding: 4px 5px 5px;
/* Bingkai Kotak Lengkung QRIS Dinamis */
=======
  border-radius: 8px;
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
}

.a4-slip-qris-title {
  font-size: 0.82em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 3px;
}

.a4-slip-qris-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin: 2px 0;
}

.a4-slip-qris-code svg {
  display: block;
  width: 82px;
  height: 82px;
}

.broadcast-a4-grid.cols-3 .a4-slip-qris-code svg {
  width: 68px;
  height: 68px;
}

.a4-slip-qris-nominal {
  font-size: 0.95em;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* Styling QRIS Dinamis dalam Struk Thermal */
.thermal-receipt .a4-slip-qris-card {
  margin: 10px auto 4px;
/* Bingkai Kotak Lengkung QRIS Dinamis */
  border: none;
  background: transparent;
=======
  border: 1.5px solid #000000;
  border-radius: 8px;
  background: #ffffff;
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
  padding: 6px 8px;
  max-width: 145px;
  text-align: center;
}
.thermal-receipt.paper-58mm .a4-slip-qris-card {
  max-width: 130px;
  padding: 4px 6px;
}
.thermal-receipt .a4-slip-qris-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 2px;
}
.thermal-receipt .a4-slip-qris-code svg {
  display: block;
  margin: 0 auto;
  max-width: 82px;
  max-height: 82px;
}
.thermal-receipt.paper-58mm .a4-slip-qris-code svg {
  max-width: 74px;
  max-height: 74px;
}
.thermal-receipt .a4-slip-qris-nominal {
  font-size: 0.88rem;
  font-weight: 900;
  color: #000000;
  margin-top: 3px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  @page {
    margin: 0;
    size: auto;
  }

  html,
  body {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  body.printing-thermal,
  body.printing-thermal *,
  body.printing-default,
  body.printing-default * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: Consolas, 'Courier New', monospace !important;
    font-weight: 600 !important;
    color: #000000 !important;
    letter-spacing: 0px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    font-smooth: never !important;
    text-rendering: optimizeSpeed !important;
  }

  body.printing-thermal strong,
  body.printing-thermal b,
  body.printing-thermal .receipt-brand,
  body.printing-thermal .receipt-total-row,
  body.printing-thermal .receipt-grand-total-amount,
  body.printing-default strong,
  body.printing-default b,
  body.printing-default .receipt-brand,
  body.printing-default .receipt-total-row,
  body.printing-default .receipt-grand-total-amount {
    font-weight: 800 !important; /* Emphasized ESC/POS */
  }

  body.printing-thermal,
  body.printing-default {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
  }

  body.printing-thermal>*:not(#thermalReceiptPrintArea),
  body.printing-default>*:not(#thermalReceiptPrintArea) {
    display: none !important;
  }

  body.printing-thermal .modal-overlay,
  body.printing-thermal .app-shell,
  body.printing-thermal .desktop-sidebar,
  body.printing-thermal .bottom-nav,
  body.printing-thermal .top-app-bar,
  body.printing-default .modal-overlay,
  body.printing-default .app-shell,
  body.printing-default .desktop-sidebar,
  body.printing-default .bottom-nav,
  body.printing-default .top-app-bar {
    display: none !important;
  }

  body.printing-thermal #thermalReceiptPrintArea,
  body.printing-default #thermalReceiptPrintArea {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  body.printing-thermal pre.thermal-receipt-text {
    font-family: 'Lucida Console', 'Courier New', monospace !important;
    font-weight: 800 !important;
    -webkit-text-stroke: 0.25px #000000 !important;
    filter: contrast(250%) !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: pre !important;
    word-break: normal !important;
    display: block !important;
    color: #000000 !important;
    background: transparent !important;
    text-align: left !important;
    -webkit-font-smoothing: none !important;
    font-smooth: never !important;
    text-rendering: geometricPrecision !important;
  }

  body.printing-thermal svg,
  body.printing-thermal img,
  body.printing-thermal .thermal-receipt-qr svg,
  body.printing-thermal .a4-slip-qris-card svg {
    shape-rendering: crispEdges !important;
    image-rendering: pixelated !important;
    filter: contrast(300%) !important;
  }

  body.printing-default #thermalReceiptPrintArea {
    width: 72mm !important;
    max-width: 80mm !important;
    margin: 10mm auto !important;
  }

  body.printing-default #thermalReceiptPrintArea .thermal-receipt {
    width: 72mm !important;
    max-width: 72mm !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #000000 !important;
  }

  /* 80mm Roll (Printable width ~72mm = 576 dots = 48 chars Font A) */
  body.printing-thermal.paper-80mm #thermalReceiptPrintArea {
    width: 72mm !important;
    max-width: 80mm !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.printing-thermal.paper-80mm #thermalReceiptPrintArea .thermal-receipt {
    width: 72mm !important;
    max-width: 72mm !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    margin-left: 0 !important;
  }

  body.printing-thermal.paper-80mm .thermal-receipt pre.thermal-receipt-text {
    font-size: 12px !important;
    line-height: 1.25 !important;
    width: 72mm !important;
    max-width: 72mm !important;
  }

  /* 58mm Roll (Printable width ~48mm = 384 dots = 32 chars Font A) */
  body.printing-thermal.paper-58mm #thermalReceiptPrintArea {
    width: 48mm !important;
    max-width: 58mm !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.printing-thermal.paper-58mm #thermalReceiptPrintArea .thermal-receipt {
    width: 48mm !important;
    max-width: 48mm !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    margin-left: 0 !important;
  }

  body.printing-thermal.paper-58mm .thermal-receipt pre.thermal-receipt-text {
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.15px !important;
    width: 48mm !important;
    max-width: 48mm !important;
  }

  body.printing-thermal .thermal-receipt table.receipt-table tr {
    page-break-inside: avoid !important;
  }

  body.printing-thermal .a4-slip-qris-card {
/* Bingkai Kotak Lengkung QRIS Dinamis */
    border: none !important;
    background: transparent !important;
=======
    border: 1.5px solid #000000 !important;
    background: #ffffff !important;
>>>>>>> 878cdb0f50d5694fc8ae0635b71f6e3aaf9d2d2b
    color: #000000 !important;
    page-break-inside: avoid !important;
  }

  /* Print Styles Khusus Broadcast A4 Siap Potong */
  body.printing-broadcast-a4,
  body.printing-broadcast-a4 * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: monospace !important;
  }

  body.printing-broadcast-a4 {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    width: 210mm !important;
  }

  body.printing-broadcast-a4>*:not(#broadcastPrintArea) {
    display: none !important;
  }

  body.printing-broadcast-a4 .modal-overlay,
  body.printing-broadcast-a4 .app-shell,
  body.printing-broadcast-a4 .desktop-sidebar,
  body.printing-broadcast-a4 .bottom-nav,
  body.printing-broadcast-a4 .top-app-bar {
    display: none !important;
  }

  body.printing-broadcast-a4 #broadcastPrintArea {
    display: block !important;
    position: static !important;
    width: 210mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-sheet {
    box-shadow: none !important;
    max-width: 210mm !important;
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 8mm 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid {
    display: grid !important;
    width: 210mm !important;
    box-sizing: border-box !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-2 {
    grid-template-columns: repeat(2, 80mm) !important;
    justify-content: center !important;
    gap: 6mm 10mm !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 {
    grid-template-columns: repeat(3, 58mm) !important;
    justify-content: center !important;
    gap: 6mm 4mm !important;
  }

  body.printing-broadcast-a4 .a4-cut-slip {
    border: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-sheet.show-guides .a4-cut-slip {
    outline: 1px dashed #94a3b8 !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 .a4-cut-slip {
    width: 58mm !important;
    max-width: 58mm !important;
    min-width: 58mm !important;
    padding: 3mm 2mm !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-2 .a4-cut-slip {
    width: 80mm !important;
    max-width: 80mm !important;
    min-width: 80mm !important;
    padding: 4mm 3mm !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 .a4-cut-slip pre.thermal-receipt-text {
    font-family: monospace !important;
    font-weight: 400 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    white-space: pre !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    display: inline-block !important;
    text-align: left !important;
    width: 54mm !important;
    max-width: 54mm !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-2 .a4-cut-slip pre.thermal-receipt-text {
    font-family: monospace !important;
    font-weight: 400 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    white-space: pre !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    display: inline-block !important;
    text-align: left !important;
    width: 74mm !important;
    max-width: 74mm !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 .a4-slip-qris-card {
    max-width: 50mm !important;
    padding: 3px 4px !important;
  }

  body.printing-broadcast-a4 .a4-slip-qr-code svg,
  body.printing-broadcast-a4 .a4-slip-qris-code svg {
    width: 25mm !important;
    height: 25mm !important;
  }

  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 .a4-slip-qr-code svg,
  body.printing-broadcast-a4 .broadcast-a4-grid.cols-3 .a4-slip-qris-code svg {
    width: 22mm !important;
    height: 22mm !important;
  }

  body.printing-broadcast-a4 .a4-slip-qr-label {
    font-size: 7.5pt !important;
    color: #000000 !important;
  }

  .top-app-bar,
  .public-hero,
  .bottom-nav,
  .desktop-sidebar,
  .fab-container,
  .no-print,
  .modal-overlay,
  .toast-container,
  .sheet-backdrop,
  .bottom-sheet {
    display: none !important;
  }

  body,
  html {
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    min-height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-content,
  .public-container,
  .app-shell {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .card,
  .billing-card-wrapper {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
    background: #fff !important;
    color: #000 !important;
  }

  .billing-card-amount {
    color: #000 !important;
  }
}

/* ==========================================================================
   Desktop Sidebar Component (>= 992px)
   ========================================================================== */
.desktop-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  z-index: 1001;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.desktop-sidebar-brand {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
}

.desktop-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.desktop-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.desktop-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.15;
}

.desktop-brand-subtitle {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.desktop-sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.desktop-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.desktop-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.desktop-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.desktop-nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem 0.5rem 0.75rem;
}

.desktop-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.desktop-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.desktop-nav-item.active {
  background: rgba(37, 99, 235, 0.2);
  color: #38bdf8;
  font-weight: 700;
}

.desktop-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: #38bdf8;
  border-radius: 0 4px 4px 0;
}

.desktop-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.desktop-nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.desktop-nav-logout:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.desktop-sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.desktop-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.desktop-profile-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.desktop-profile-info {
  min-width: 0;
}

.desktop-profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.desktop-profile-role {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Desktop Top Header Info */
.desktop-top-title-wrap {
  display: none;
}

.desktop-top-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.desktop-top-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Grid & Layout System
   ========================================================================== */
.charts-grid-desktop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.desktop-2col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.desktop-split-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.responsive-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Mobile-App Only Android Layout Architecture
   ========================================================================== */
.desktop-sidebar {
  display: none !important;
}

.bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.top-app-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  margin-left: 0 !important;
}

.main-content {
  margin-left: 0 !important;
  width: 100% !important;
  padding: calc(var(--appbar-height) + 0.85rem) 1rem calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px) + 1.25rem) 1rem !important;
  box-sizing: border-box;
}

/* Single-Column Vertical List Layout */
.customer-list-container,
.mobile-card-list,
.responsive-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  width: 100% !important;
  grid-template-columns: 1fr !important;
}

.public-customer-card,
.list-item-card {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
}

.public-shell .main-content {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px)) !important;
}

body.login-page {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}

/* Desktop & Tablet Framing (Preserves Native Android App Character) */
@media screen and (min-width: 768px) {
  :root {
    --shell-max-width: 450px;
  }

  body {
    background-color: #0b1120;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
  }

  .app-shell,
  .public-container {
    max-width: var(--shell-max-width, 450px);
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--background);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .top-app-bar,
  .bottom-nav,
  #appTopProgressBar {
    max-width: var(--shell-max-width, 450px);
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    width: 100% !important;
  }

  .content-loader-overlay,
  .dots-loader-top,
  .dots-loader-bottom {
    max-width: var(--shell-max-width, 450px);
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    width: 100% !important;
  }

  .bottom-sheet {
    max-width: var(--shell-max-width, 450px);
    left: 50% !important;
    transform: translate(-50%, 100%) scale(0.96);
    right: auto !important;
    width: 100% !important;
    z-index: 1200 !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  }

  .bottom-sheet.active,
  .bottom-sheet.open {
    transform: translate(-50%, 0) scale(1) !important;
    opacity: 1 !important;
    animation: bottomSheetSpringInDesktop 0.18s ease-out forwards;
  }

  .modal-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .modal-box {
    max-width: var(--shell-max-width, 450px);
    left: 50% !important;
    transform: translate(-50%, 100%) scale(0.96);
    margin: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    border-radius: 26px 26px 0 0 !important;
    max-height: min(88dvh, calc(100vh - 36px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .modal-box form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  .modal-overlay.active .modal-box {
    transform: translate(-50%, 0) scale(1) !important;
    opacity: 1 !important;
    animation: modalSheetPopInDesktop 0.18s ease-out forwards;
  }

  .modal-overlay.fade-out .modal-box {
    animation: modalSheetPopOutDesktop 0.14s ease-out forwards;
  }

  /* Wide modals on PC desktop screen */
  #broadcastPrintModal .modal-box {
    max-width: 780px !important;
    width: 95% !important;
  }

  #broadcastModal .modal-box {
    max-width: 580px !important;
    width: 95% !important;
  }

  #receiptModal .modal-box {
    max-width: 460px !important;
    width: 95% !important;
  }

  .toast-container {
    max-width: calc(var(--shell-max-width, 450px) - 32px);
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    top: calc(var(--appbar-height, 58px) + 0.85rem + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
  }

  /* Keep FAB button strictly inside the mobile app frame, directly above the Menu tab */
  .fab-container {
    right: calc(50% - (var(--shell-max-width, 450px) / 2) + 20px) !important;
    left: auto !important;
    bottom: calc(var(--bottomnav-height, 64px) + 0.85rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1050 !important;
  }

  @keyframes modalSheetPopInDesktop {
    0% {
      opacity: 0;
      transform: translate(-50%, 14px);
    }

    100% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  @keyframes modalSheetPopOutDesktop {
    0% {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    100% {
      opacity: 0;
      transform: translate(-50%, 12px);
    }
  }

  @keyframes bottomSheetSpringInDesktop {
    0% {
      opacity: 0;
      transform: translate(-50%, 14px);
    }

    65% {
      opacity: 1;
      transform: translate(-50%, -6px) scale(1.006);
    }

    100% {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --shell-max-width: 460px;
  }
}

@media screen and (min-width: 1440px) {
  :root {
    --shell-max-width: 460px;
  }
}

/* ==========================================================================
   Comprehensive CSS Loading System (Modern Mobile & Web Spinners)
   ========================================================================== */

/* 1. Core Rotating Keyframe */
@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 2. Modern Circular Spinner Ring */
.spinner,
.spinner-ring {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  animation: spinRing 0.65s linear infinite;
}

.spinner-xs {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-md {
  width: 26px;
  height: 26px;
  border-width: 3px;
}

.spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3.5px;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
}

.spinner-success {
  border-color: rgba(22, 163, 74, 0.2);
  border-top-color: #16a34a;
}

.spinner-danger {
  border-color: rgba(220, 38, 38, 0.2);
  border-top-color: #dc2626;
}

.spinner-warning {
  border-color: rgba(217, 119, 6, 0.2);
  border-top-color: #d97706;
}

/* 3. Three-Dots Harmonic Bounce Loader */
.loading-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.loading-dots span,
.loading-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary, #2563eb);
  display: inline-block;
  animation: dotsBounce 1.2s infinite ease-in-out both;
}

.loading-dots span:nth-child(1),
.loading-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2),
.loading-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3),
.loading-dots .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes dotsBounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.35;
  }

  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* 4. Radar Pulse Ring Loader */
.pulse-loader {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: pulseRing 1.35s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
  vertical-align: middle;
}

@keyframes pulseRing {
  to {
    box-shadow: 0 0 0 16px rgba(37, 99, 235, 0);
  }
}

/* 5. Button Loading State (.btn.loading / .btn.is-loading) */
.btn.is-loading,
.btn.loading {
  position: relative;
  pointer-events: none;
  cursor: default;
  color: transparent !important;
  text-shadow: none !important;
}

.btn.is-loading svg,
.btn.loading svg,
.btn.is-loading img,
.btn.loading img {
  opacity: 0 !important;
}

.btn.is-loading::after,
.btn.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spinRing 0.6s linear infinite;
  z-index: 2;
}

.btn-outline.is-loading::after,
.btn-outline.loading::after,
.btn-ghost-dark.is-loading::after,
.btn-ghost-dark.loading::after,
.btn-outline-primary.is-loading::after,
.btn-outline-primary.loading::after {
  border-color: rgba(37, 99, 235, 0.25);
  border-top-color: var(--primary, #2563eb);
}

/* 6. Card Shimmer Loading State */
.card-is-loading {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.card-is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: shimmerWave 1.25s infinite;
  z-index: 10;
}

@keyframes shimmerWave {
  100% {
    transform: translateX(100%);
  }
}

/* 7. Classic 3-Shadow Contextual Loader (Enhanced & Themed) */
.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
  0% {
    box-shadow: 20px 0 var(--primary, #2563eb), -20px 0 rgba(37, 99, 235, 0.2);
    background: var(--primary, #2563eb);
  }

  33% {
    box-shadow: 20px 0 var(--primary, #2563eb), -20px 0 rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.2);
  }

  66% {
    box-shadow: 20px 0 rgba(37, 99, 235, 0.2), -20px 0 var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.2);
  }

  100% {
    box-shadow: 20px 0 rgba(37, 99, 235, 0.2), -20px 0 var(--primary, #2563eb);
    background: var(--primary, #2563eb);
  }
}

/* Centered Content Loader Overlay with Background Blur (Excluding Header and Bottom Nav) */
.content-loader-overlay,
.dots-loader-top,
.dots-loader-bottom {
  position: fixed;
  top: var(--appbar-height);
  bottom: calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  width: 100%;
  z-index: 998;
  /* Below top-app-bar (1000) and bottom-nav (1000), above main content */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.content-loader-overlay.active,
.dots-loader-top.active,
.dots-loader-bottom.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Global Overlay Loader */
.global-loader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.global-loader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.loader-text {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Native Android App Top Progress Line (Subtle accent) */
#appTopProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: 100%;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#appTopProgressBar.loading {
  opacity: 1;
}

#appTopProgressBar .progress-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #2563eb, #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

#appTopProgressBar .progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: barGlowSweep 0.9s infinite linear;
}

@keyframes barGlowSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   SPA Screen Load & Navigation Transitions (Mobile Native Feel)
   ========================================================================== */
.spa-content-swap,
.content-fade-in {
  animation: spaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 1. Forward Slide (Customer List -> Customer Detail) */
.transition-slide-forward {
  animation: screenSlideForward 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes screenSlideForward {
  0% {
    opacity: 0.15;
    transform: translate3d(24px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 2. Backward Slide (Customer Detail -> Customer List) */
.transition-slide-backward {
  animation: screenSlideBackward 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes screenSlideBackward {
  0% {
    opacity: 0.15;
    transform: translate3d(-24px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 3. Skeleton Stage Slide Glide */
.skeleton-container.skeleton-slide-forward {
  animation: skeletonSlideInForward 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes skeletonSlideInForward {
  0% {
    opacity: 0.2;
    transform: translate3d(20px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.skeleton-container.skeleton-slide-backward {
  animation: skeletonSlideInBackward 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes skeletonSlideInBackward {
  0% {
    opacity: 0.2;
    transform: translate3d(-20px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 4. Customer Card Click & Tap Feedback */
.public-customer-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, box-shadow 0.18s ease;
}

.public-customer-card.customer-card-opening {
  background-color: rgba(37, 99, 235, 0.05) !important;
  transform: scale(0.985);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

/* Spinner on the left side of the price during customer card transition */
.customer-price-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  box-sizing: border-box;
  animation: spinRing 0.55s linear infinite;
  flex-shrink: 0;
  margin-right: 2px;
}

.public-customer-card.customer-card-opening .customer-price-spinner {
  display: inline-block !important;
}

/* Fallback: if .customer-price-spinner element isn't in DOM yet, show via ::before on trigger before the price */
.public-customer-card.customer-card-opening .customer-detail-trigger:not(:has(.customer-price-spinner))::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  box-sizing: border-box;
  animation: spinRing 0.55s linear infinite;
  flex-shrink: 0;
  margin-right: 3px;
}

.public-customer-card.customer-card-opening .detail-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.detail-click-ripple {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  transform: scale(0.4);
  animation: detailRipple 0.38s ease-out forwards;
  pointer-events: none;
}

@keyframes detailRipple {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* 5. Customer Detail Profile Card Micro-Entrance */
.customer-detail-view-enter {
  animation: detailProfileCardEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes detailProfileCardEnter {
  0% {
    opacity: 0.3;
    transform: translate3d(12px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   Skeleton Shimmer Loading System (Universal Multi-Layout)
   ========================================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: inline-block;
  pointer-events: none;
  user-select: none;
}

/* Skeleton Atomic Primitives */
.skeleton-box {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 12px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.skeleton-text.w-20 {
  width: 20%;
}

.skeleton-text.w-25 {
  width: 25%;
}

.skeleton-text.w-35 {
  width: 35%;
}

.skeleton-text.w-45 {
  width: 45%;
}

.skeleton-text.w-50 {
  width: 50%;
}

.skeleton-text.w-65 {
  width: 65%;
}

.skeleton-text.w-75 {
  width: 75%;
}

.skeleton-text.w-85 {
  width: 85%;
}

.skeleton-text.w-100 {
  width: 100%;
}

.skeleton-title {
  height: 16px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-badge {
  height: 20px;
  width: 64px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-btn {
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Skeleton Composite Items Matching Real UI 1:1 */
.skeleton-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

/* Skeleton Customer Card - Exact match to .public-customer-card */
.skeleton-customer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  margin-bottom: 0.55rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
  gap: 0.85rem;
}

/* Skeleton Transaction / Payment Card - Exact match to .list-item-card */
.skeleton-transaction-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.6rem;
}

/* Skeleton Compact Metric Card - Exact match to .stat-card-compact */
.skeleton-stat-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.skeleton-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: #cbd5e1;
}

.skeleton-stat-card.danger::before {
  background: linear-gradient(to bottom, #ef4444, #dc2626);
}

.skeleton-stat-card.success::before {
  background: linear-gradient(to bottom, #10b981, #059669);
}

.skeleton-stat-card.warning::before {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.skeleton-stat-card.info::before {
  background: linear-gradient(to bottom, #0284c7, #0369a1);
}

/* Skeleton Fintech Wallet Card - Exact match to .wallet-balance-card */
.skeleton-wallet-card {
  background: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #2563eb 100%);
  border-radius: 20px;
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: 0 14px 28px -6px rgba(55, 48, 163, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-sizing: border-box;
}

.skeleton-wallet-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.12) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-pill);
}

/* Skeleton Quick Action - Exact match to .quick-action-btn */
.skeleton-quick-action {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.skeleton-kpi {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  overflow: hidden;
}

.skeleton-table-header {
  display: flex;
  gap: 12px;
  padding: 0.75rem 0.5rem;
  border-bottom: 1.5px solid #e2e8f0;
}

.skeleton-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Zero Layout Shift Transition */
.skeleton-container {
  opacity: 1;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.skeleton-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Customer Detail Interaction & Opening Animation
   ========================================================================== */
.customer-action-trigger {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: background-color 0.18s ease;
}

.customer-action-trigger:hover {
  background: rgba(15, 23, 42, 0.02);
}

.customer-action-trigger:active {
  background: rgba(15, 23, 42, 0.05);
}

.customer-detail-trigger {
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.customer-detail-trigger:hover {
  background: rgba(37, 99, 235, 0.04);
}

.customer-detail-trigger:active {
  background: rgba(37, 99, 235, 0.08);
}

.detail-chevron {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.customer-detail-trigger:hover .detail-chevron {
  color: var(--primary);
  transform: translateX(3px);
}

/* Card Opening Micro-Animation state when customer detail is clicked */
.public-customer-card.customer-card-opening {
  position: relative;
  z-index: 10 !important;
  transform: scale(0.985);
  background: linear-gradient(90deg, #ffffff 0%, #eff6ff 100%) !important;
  border-color: #93c5fd !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.public-customer-card.customer-card-opening .customer-detail-trigger {
  background: rgba(37, 99, 235, 0.1) !important;
}

.public-customer-card.customer-card-opening .detail-chevron {
  color: var(--primary) !important;
  transform: translateX(4px) scale(1.15) !important;
}

/* Ripple effect on detail click */
@keyframes detailClickRipple {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.detail-click-ripple {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  pointer-events: none;
  animation: detailClickRipple 0.35s ease-out forwards;
}

/* Detail page smooth entrance & dropdown stacking context */
.customer-detail-view-enter {
  position: relative;
  z-index: 25;
  animation: detailViewSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.customer-detail-view-enter.dropdown-active,
.customer-detail-view-enter:has(#customerActionDropdown[style*="display: block"]),
.customer-detail-view-enter:has(#customerPayDropdown[style*="display: block"]) {
  z-index: 1000 !important;
}

.quick-action-dropdown-wrap {
  position: relative;
  width: 100%;
}

.quick-action-dropdown-wrap.dropdown-open {
  z-index: 1050;
}

@media (max-width: 480px) {
  #customerActionDropdown {
    left: auto !important;
    right: 0 !important;
  }
}

@keyframes detailViewSlideIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progressive Web App Controls */
.pwa-install-btn {
  display: inline-flex;
}

.drawer-nav-item.pwa-install-btn {
  display: flex !important;
}

/* ==========================================================================
   Live Search Shimmer Skeleton & Consistent Fade System
   ========================================================================== */
.search-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  animation: searchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-results-fade-in {
  animation: searchFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.no-filter-match-card {
  text-align: center;
  padding: 2.2rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
  animation: searchFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dropdown-fade {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
}

.dropdown-fade.fade-in {
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-fade.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Custom Multi-Item Add Button (Fintech Pill/Squircle Style) */
.btn-add-item-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--primary, #2563eb);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.btn-add-item-custom:hover {
  background: var(--primary-dark, #1d4ed8);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-add-item-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-add-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-add-item-icon svg {
  stroke: var(--primary, #2563eb);
}

/* ==========================================================================
   Server-side Pagination Component (Mobile-First & Touch-Friendly)
   ========================================================================== */
.pagination-container,
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.pagination-info {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  text-align: center;
  letter-spacing: -0.01em;
}

.pagination-info strong {
  color: var(--text-main, #0f172a);
  font-weight: 700;
}

.pagination-nav,
.pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
}

.pagination-btn,
.pagination-num,
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm, 10px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-main, #0f172a);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  box-sizing: border-box;
}

.pagination-btn svg,
.pagination-link svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pagination-btn:hover:not(.disabled),
.pagination-num:hover:not(.active):not(.disabled),
.pagination-link:hover:not(.disabled):not(.active) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.pagination-btn:active:not(.disabled),
.pagination-num:active:not(.active):not(.disabled),
.pagination-link:active:not(.disabled):not(.active) {
  transform: translateY(0);
  background: #f1f5f9;
}

.pagination-num.active,
.pagination-link.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: var(--primary, #2563eb);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.38);
  pointer-events: none;
  cursor: default;
}

.pagination-btn.disabled,
.pagination-num.disabled,
.pagination-link.disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.pagination-prev,
.pagination-next {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.8rem;
  gap: 0.35rem;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
}

/* Tablet & Desktop Horizontal Row */
@media (min-width: 640px) {

  .pagination-container,
  .pagination {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.25rem;
  }

  .pagination-info {
    text-align: left;
  }
}

/* Mobile Screen Tuning (<480px) */
@media (max-width: 480px) {

  .pagination-container,
  .pagination {
    margin: 1rem 0 1.25rem 0;
    gap: 0.6rem;
  }

  .pagination-nav,
  .pagination-list {
    gap: 0.3rem;
  }

  .pagination-numbers {
    gap: 0.25rem;
  }

  .pagination-num,
  .pagination-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.78rem;
    padding: 0 0.45rem;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0 0.65rem;
    font-size: 0.74rem;
    height: 34px;
  }
}

/* ==========================================================================
   Responsive Overflow Safeguards & Layout Polish
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius-md, 14px);
}

.table-responsive>table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

/* Prevent text overflow breaking card boundaries */
.list-item-title,
.list-item-subtitle,
.public-customer-name,
.report-row-title,
.customer-card-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Flexible badge wrapping in list headers */
.list-item-header {
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================================
   Filter In-Place Data CSS Loader (Modern Android Spinner, No Skeletons)
   ========================================================================== */
.filter-data-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  min-height: 240px;
  width: 100%;
  color: var(--text-muted);
  text-align: center;
  animation: filterStateFadeIn 0.2s ease;
}

@keyframes filterStateFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-css-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid #e2e8f0;
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  animation: filterSpin 0.75s linear infinite;
  margin-bottom: 0.85rem;
}

@keyframes filterSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.filter-loading-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}

/* Index Customer Quick Menu */
.index-customer-dropdown {
  position: absolute;
  right: 8px;
  top: calc(100% + 4px);
  min-width: 170px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  z-index: 1050;
  padding: 6px;
  text-align: left;
}

.index-customer-dropdown[style*="display: block"] {
  animation: popupSpringScaleRight 0.14s ease-out forwards !important;
}
/* Sembunyikan ikon panah dropdown browser pada input teks ber-datalist */
input[type="text"]::-webkit-calendar-picker-indicator,
input:not([type="date"]):not([type="time"]):not([type="datetime-local"]):not([type="month"]):not([type="week"])::-webkit-calendar-picker-indicator,
input::-webkit-list-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Auto-Suggest Dropdown System (Disabled) */
.sp-item-suggest-dropdown {
  display: none !important;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.sp-item-suggest-item {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: background-color 0.15s ease;
}

.sp-item-suggest-item:last-child {
  border-bottom: none;
}

.sp-item-suggest-item:hover,
.sp-item-suggest-item:active {
  background-color: #eff6ff;
}
