:root {
  --al-primary: #2563eb;
  --al-secondary: #7c3aed;
  --al-tertiary: #06b6d4;
  --al-ink: #0f172a;
  --al-muted: #64748b;
  --al-bg: #f8fafc;
  --al-success: #16a34a;
  --al-warning: #f59e0b;
  --al-danger: #dc2626;
  --al-panel: #ffffff;
  --al-soft: #dbeafe;
  --al-soft-2: #ede9fe;
  --al-soft-3: #cffafe;
}

body {
  background: var(--al-bg);
  color: var(--al-ink);
  letter-spacing: 0;
}

html[data-color-mode="dark"],
body[data-color-mode="dark"] {
  --al-ink: #f8fafc;
  --al-muted: #cbd5e1;
  --al-bg: #0f172a;
  --al-panel: #111827;
  --al-soft: color-mix(in srgb, var(--al-primary) 22%, #0f172a 78%);
  --al-soft-2: color-mix(in srgb, var(--al-secondary) 22%, #0f172a 78%);
  --al-soft-3: color-mix(in srgb, var(--al-tertiary) 20%, #0f172a 80%);
  color-scheme: dark;
}

button,
input,
select,
textarea {
  font: inherit;
}

.pwa-splash {
  display: none;
}

.pwa-standalone-start .pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background: #2563eb;
}

.pwa-splash-card {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.pwa-splash-mark {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
  background: #ffffff;
  color: var(--al-primary);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.pwa-splash-card strong {
  font-size: 1.5rem;
}

.pwa-splash-card span:last-child {
  color: rgba(255, 255, 255, .82);
}

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

.app-loading-strip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--al-primary), var(--al-tertiary), var(--al-secondary));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

body.is-loading-page .app-loading-strip {
  animation: app-loading-strip 1.1s ease-in-out infinite;
  opacity: 1;
}

@keyframes app-loading-strip {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(.72); }
  100% { transform: scaleX(1); opacity: .2; }
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  min-height: 64px;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(14px);
}

.app-sidebar-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  width: 270px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  overflow-y: auto;
}

.content {
  margin-left: 270px;
  min-height: 100vh;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--al-primary);
  color: #fff;
}

.nav-link {
  color: #334155;
  border-radius: 8px;
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  background: #eff6ff;
  color: var(--al-primary);
}

.nav-link i {
  width: 1.25rem;
  text-align: center;
}

.table {
  --bs-table-color: var(--al-ink);
  --bs-table-border-color: rgba(148, 163, 184, .22);
}

.table thead th {
  color: var(--al-muted);
  background: #f8fafc;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.table tbody tr {
  vertical-align: middle;
}

.table tbody tr:hover {
  --bs-table-bg: color-mix(in srgb, var(--al-primary) 7%, transparent);
}

.badge,
[class*="badge"] {
  letter-spacing: 0;
}

.text-bg-success,
.badge-success {
  color: #064e3b !important;
  background-color: #dcfce7 !important;
}

.text-bg-warning,
.badge-warning {
  color: #713f12 !important;
  background-color: #fef3c7 !important;
}

.text-bg-danger,
.badge-danger {
  color: #7f1d1d !important;
  background-color: #fee2e2 !important;
}

.skeleton,
.loading-skeleton,
.skeleton-line,
.skeleton-card {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  border-radius: 8px;
  animation: skeleton-loading 1.35s ease-in-out infinite;
}

.skeleton-line {
  min-height: 14px;
}

.skeleton-card {
  min-height: 120px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.empty-state,
[class$="empty-state"],
[class*="-empty-state"] {
  border-color: color-mix(in srgb, var(--al-primary) 22%, #cbd5e1) !important;
  background: color-mix(in srgb, var(--al-primary) 7%, #ffffff) !important;
}

body[data-color-mode="dark"] {
  background: var(--al-bg);
  color: var(--al-ink);
}

body[data-color-mode="dark"] .sidebar,
body[data-color-mode="dark"] .app-topbar,
body[data-color-mode="dark"] .bg-white,
body[data-color-mode="dark"] .bg-surface,
body[data-color-mode="dark"] .metric-card,
body[data-color-mode="dark"] .section-panel,
body[data-color-mode="dark"] .card,
body[data-color-mode="dark"] .modal-content,
body[data-color-mode="dark"] .dropdown-menu,
body[data-color-mode="dark"] .quick-candy-categories,
body[data-color-mode="dark"] .quick-candy-form-card,
body[data-color-mode="dark"] .branches-card,
body[data-color-mode="dark"] .users-table-card,
body[data-color-mode="dark"] .admin-fee-card,
body[data-color-mode="dark"] .admin-fee-stat-card,
body[data-color-mode="dark"] .daily-report-card {
  color: var(--al-ink) !important;
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .text-dark,
body[data-color-mode="dark"] .text-muted,
body[data-color-mode="dark"] .form-label,
body[data-color-mode="dark"] .small,
body[data-color-mode="dark"] .nav-link {
  color: var(--al-muted) !important;
}

body[data-color-mode="dark"] .nav-link.active,
body[data-color-mode="dark"] .nav-link:hover {
  color: #ffffff !important;
  background: color-mix(in srgb, var(--al-primary) 30%, #0f172a 70%);
}

body[data-color-mode="dark"] .form-control,
body[data-color-mode="dark"] .form-select,
body[data-color-mode="dark"] textarea,
body[data-color-mode="dark"] .dataTables_filter input,
body[data-color-mode="dark"] .dataTables_length select {
  color: var(--al-ink) !important;
  background-color: #0b1220 !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

body[data-color-mode="dark"] .table thead th,
body[data-color-mode="dark"] .table tbody td {
  color: var(--al-ink);
  background-color: transparent;
  border-color: rgba(148, 163, 184, .18);
}

body[data-color-mode="dark"] .table thead th {
  color: var(--al-muted);
  background: #0b1220;
}

body[data-color-mode="dark"] .btn-light {
  color: var(--al-ink);
  background: #1f2937;
  border-color: rgba(148, 163, 184, .2);
}

body[data-color-mode="dark"] .empty-state,
body[data-color-mode="dark"] [class$="empty-state"],
body[data-color-mode="dark"] [class*="-empty-state"] {
  background: color-mix(in srgb, var(--al-primary) 12%, #0f172a 88%) !important;
}

.operation-form-modal .modal-content {
  border: 1px solid rgba(220, 200, 224, .86);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.operation-form-modal .modal-body {
  padding: 20px;
}

.operation-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.operation-form-modal .modalized-card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.inventory-candy-layout.forms-modalized,
.branches-candy-layout.forms-modalized,
.users-candy-layout.forms-modalized,
.bank-ledger-layout.forms-modalized,
.expense-flow-layout.forms-modalized,
.daily-closing-layout.forms-modalized {
  grid-template-columns: minmax(0, 1fr);
}

body[data-color-mode="dark"] .operation-form-modal .modal-content {
  color: var(--al-ink) !important;
  background: #111827 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .dashboard-candy-section,
body[data-color-mode="dark"] .dashboard-panel,
body[data-color-mode="dark"] .dashboard-mini-card,
body[data-color-mode="dark"] .dashboard-action-card,
body[data-color-mode="dark"] .dashboard-recent-item,
body[data-color-mode="dark"] .dashboard-notification-item,
body[data-color-mode="dark"] .dashboard-subscription-card,
body[data-color-mode="dark"] .quick-candy-shell .quick-type-button,
body[data-color-mode="dark"] .quick-form-section,
body[data-color-mode="dark"] .quick-balance-grid > div,
body[data-color-mode="dark"] .quick-candy-shell .quick-nominal-group {
  color: var(--al-ink) !important;
  background: #0b1220 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .dashboard-candy-section h2,
body[data-color-mode="dark"] .dashboard-panel h2,
body[data-color-mode="dark"] .dashboard-mini-card strong,
body[data-color-mode="dark"] .dashboard-action-card strong,
body[data-color-mode="dark"] .quick-candy-shell .quick-type-button span:not(.quick-type-icon),
body[data-color-mode="dark"] .quick-section-heading {
  color: var(--al-ink) !important;
}

body[data-color-mode="dark"] .dashboard-action-card small,
body[data-color-mode="dark"] .dashboard-mini-card small,
body[data-color-mode="dark"] .dashboard-recent-item small,
body[data-color-mode="dark"] .quick-candy-shell .quick-type-button small,
body[data-color-mode="dark"] .quick-section-copy {
  color: var(--al-muted) !important;
}

body[data-color-mode="dark"] .quick-candy-form-head {
  background: linear-gradient(90deg, #0b1220 0%, #111827 100%) !important;
}

body[data-color-mode="dark"] .quick-candy-shell .btn-check:checked + .quick-type-button {
  background: var(--quick-tone) !important;
}

body[data-color-mode="dark"] .quick-candy-shell .btn-check:checked + .quick-type-button span,
body[data-color-mode="dark"] .quick-candy-shell .btn-check:checked + .quick-type-button small {
  color: #ffffff !important;
}

.metric-card,
.section-panel {
  background: var(--al-panel);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.btn-primary {
  --bs-btn-bg: var(--al-primary);
  --bs-btn-border-color: var(--al-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--al-primary) 88%, #0f172a 12%);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--al-primary) 88%, #0f172a 12%);
  --bs-btn-active-bg: color-mix(in srgb, var(--al-primary) 80%, #0f172a 20%);
  --bs-btn-active-border-color: color-mix(in srgb, var(--al-primary) 80%, #0f172a 20%);
}

.btn-outline-primary {
  --bs-btn-color: var(--al-primary);
  --bs-btn-border-color: var(--al-primary);
  --bs-btn-hover-bg: var(--al-primary);
  --bs-btn-hover-border-color: var(--al-primary);
  --bs-btn-active-bg: var(--al-primary);
  --bs-btn-active-border-color: var(--al-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--al-primary) 22%, transparent);
}

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

.theme-preview-strip,
.settings-theme-preview {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #f1f5f9;
}

.theme-preview-strip {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.theme-preview-strip span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(46, 26, 40, .12);
}

.theme-preview-strip strong {
  color: var(--al-ink);
  font-weight: 950;
}

.settings-theme-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-theme-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-theme-hero > span {
  width: 54px;
  height: 54px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(46, 26, 40, .12);
}

.settings-theme-hero strong,
.settings-theme-hero small {
  display: block;
}

.settings-theme-hero strong {
  color: var(--al-ink);
  font-weight: 950;
}

.settings-theme-hero small {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 800;
}

.settings-theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-theme-pills span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(46, 26, 40, .12);
}

.metric-card {
  padding: 18px;
}

.metric-label {
  color: var(--al-muted);
  font-size: 0.86rem;
}

.metric-value {
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.2;
  word-break: break-word;
}

.section-panel canvas {
  max-height: 320px;
}

.hero-public {
  min-height: 560px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.58)),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
}

.landing-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.66) 52%, rgba(15, 23, 42, 0.22) 100%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.min-vh-landing {
  min-height: calc(100vh - 150px);
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #e0f2fe;
  font-weight: 600;
}

.landing-proof span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.landing-band {
  background: #f8fafc;
}

.landing-feature {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  min-height: 132px;
}

.landing-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  font-weight: 600;
}

.landing-steps {
  display: grid;
  gap: 12px;
}

.landing-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.landing-step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #dbeafe;
  color: var(--al-primary);
  font-weight: 700;
}

.landing-price {
  border-top: 4px solid var(--al-primary);
}

.tenant-public-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.62) 54%, rgba(15, 23, 42, 0.28) 100%),
    url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.tenant-public-hero .btn-primary,
.tenant-public-footer {
  background: var(--tenant-theme, var(--al-primary));
}

.min-vh-tenant-public {
  min-height: calc(100vh - 150px);
}

.tenant-public-logo {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.tenant-public-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--tenant-theme, var(--al-primary));
  font-weight: 800;
  font-size: 2rem;
}

.tenant-public-description {
  max-width: 720px;
  color: #dbeafe;
}

.tenant-public-band {
  background: #f8fafc;
}

.tenant-service {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 132px;
  padding: 18px;
}

.tenant-map {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.tenant-public-footer {
  color: #ffffff;
}

.tenant-public-footer a {
  color: #ffffff;
}

.fw-black {
  font-weight: 900;
}

.public-candy-shell {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #1d4ed8;
  --bs-link-hover-color: #7c3aed;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, .48) 0 12%, transparent 12% 24%, rgba(207, 250, 254, .44) 24% 36%, transparent 36% 48%, rgba(237, 233, 254, .44) 48% 60%, transparent 60% 100%),
    #f8fafc;
  color: #0f172a;
}

.public-candy-shell .navbar.candy-public-nav {
  top: 12px;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid rgba(37, 99, 235, .18) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .12);
}

.public-candy-shell .navbar .container {
  max-width: 1120px;
}

.public-candy-shell .navbar-brand {
  color: #2563eb;
  letter-spacing: 0;
}

.public-candy-shell .navbar-toggler {
  border: 0;
}

.public-candy-shell .nav-link {
  border-radius: 999px;
  color: #64748b;
}

.public-candy-shell .nav-link:hover,
.public-candy-shell .nav-link:focus {
  color: #1d4ed8;
  background: #dbeafe;
}

.public-candy-shell .brand-mark {
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.public-candy-shell .btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.public-candy-shell .btn-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.public-candy-shell .btn-primary:hover,
.public-candy-shell .btn-primary:focus {
  border-color: #1e40af;
  background: #1e40af;
}

.public-candy-shell .btn-outline-primary {
  border-color: #2563eb;
  color: #1d4ed8;
}

.public-candy-shell .btn-outline-primary:hover,
.public-candy-shell .btn-outline-primary:focus {
  border-color: #2563eb;
  background: #dbeafe;
  color: #0f172a;
}

.public-candy-shell .text-primary {
  color: #2563eb !important;
}

.public-candy-shell .text-success {
  color: #16a34a !important;
}

.candy-hero,
.landing-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(61, 0, 40, .84) 0%, rgba(124, 58, 237, .70) 52%, rgba(6, 182, 212, .30) 100%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.candy-hero::before,
.candy-tenant-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .11) 0 8px, transparent 8px 26px);
  opacity: .55;
}

.candy-hero > .container,
.candy-tenant-hero > .container {
  position: relative;
  z-index: 1;
}

.candy-hero-title,
.candy-tenant-hero h1 {
  max-width: 840px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.candy-hero-subtitle,
.candy-tenant-hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .88);
}

.candy-kicker,
.candy-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.candy-kicker {
  padding: 8px 14px;
  border-radius: 999px;
  color: #0f172a;
  background: #dbeafe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.candy-section-label {
  margin-bottom: 10px;
  color: #1d4ed8;
}

.landing-proof {
  color: rgba(255, 255, 255, .9);
}

.landing-proof span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
}

.landing-band,
.tenant-public-band,
.candy-section {
  background:
    linear-gradient(135deg, rgba(219, 234, 254, .55) 0 20%, transparent 20% 42%, rgba(207, 250, 254, .48) 42% 64%, transparent 64% 100%),
    #f1f5f9;
}

.candy-white-section,
.public-candy-shell footer.bg-white {
  background: #ffffff !important;
}

.public-candy-shell .section-panel,
.public-candy-shell .landing-feature,
.public-candy-shell .landing-step,
.public-candy-shell .tenant-service,
.public-candy-shell .accordion-item {
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(46, 26, 40, .06);
}

.public-candy-shell .section-panel,
.public-candy-shell .landing-feature,
.public-candy-shell .landing-step,
.public-candy-shell .tenant-service {
  background: rgba(255, 255, 255, .94);
}

.public-candy-shell .section-panel:hover,
.public-candy-shell .landing-feature:hover,
.public-candy-shell .tenant-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .12);
}

.public-candy-shell .section-panel,
.public-candy-shell .landing-feature,
.public-candy-shell .tenant-service {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.public-candy-shell .feature-icon {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.landing-feature-large {
  min-height: 280px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  border-color: transparent !important;
}

.landing-feature-large .feature-icon,
.landing-feature-accent .feature-icon {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
}

.landing-feature-accent {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%) !important;
  border-color: transparent !important;
}

.landing-check {
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(46, 26, 40, .04);
}

.landing-check i {
  color: #16a34a;
}

.landing-step span {
  background: #dbeafe;
  color: #1d4ed8;
}

.landing-price {
  border-top: 4px solid #2563eb;
}

.landing-price-featured {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
}

.landing-price-featured .text-muted,
.landing-price-featured .small,
.landing-price-featured .text-success {
  color: rgba(255, 255, 255, .82) !important;
}

.landing-price-featured .btn-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #1d4ed8;
}

.candy-testimonial p {
  min-height: 78px;
}

.candy-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 10px;
}

.candy-accordion .accordion-button {
  border-radius: 0;
  font-weight: 800;
}

.candy-accordion .accordion-button:not(.collapsed) {
  color: #0f172a;
  background: #dbeafe;
  box-shadow: none;
}

.candy-tenant-hero,
.tenant-public-hero {
  position: relative;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tenant-theme, #2563eb) 78%, #0f172a 22%) 0%, rgba(124, 58, 237, .72) 52%, rgba(6, 182, 212, .32) 100%),
    url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.tenant-public-logo {
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(46, 26, 40, .18);
}

.tenant-public-description {
  color: rgba(255, 255, 255, .82);
}

.tenant-public-footer {
  background: #2563eb;
}

.public-candy-shell .table {
  --bs-table-bg: transparent;
}

.public-candy-shell .table thead th {
  color: #64748b;
  border-bottom-color: rgba(37, 99, 235, .18);
}

.public-candy-shell .table tbody td {
  border-color: rgba(37, 99, 235, .10);
}

.tenant-map {
  border-color: rgba(37, 99, 235, .18);
}

.tenant-editor-logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.tenant-editor-logo-fallback {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--al-primary);
  font-size: 1.6rem;
  font-weight: 800;
}

/* Public pages: readable, high-contrast candy blue theme. */
.public-candy-shell {
  --public-ink: #0f172a;
  --public-muted: #475569;
  --public-line: rgba(37, 99, 235, .16);
  --public-card: rgba(255, 255, 255, .96);
  color: var(--public-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(219, 234, 254, .9), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(207, 250, 254, .85), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef6ff 46%, #f8fafc 100%);
}

.public-candy-shell[data-color-mode],
html[data-color-mode="dark"] .public-candy-shell {
  color-scheme: light;
}

.public-candy-shell .text-muted,
.public-candy-shell .accordion-body,
.public-candy-shell .form-text,
.public-candy-shell footer .small {
  color: var(--public-muted) !important;
}

.public-candy-shell h1,
.public-candy-shell h2,
.public-candy-shell h3,
.public-candy-shell h4,
.public-candy-shell h5,
.public-candy-shell h6,
.public-candy-shell strong,
.public-candy-shell .fw-semibold,
.public-candy-shell .fw-bold,
.public-candy-shell .fw-black {
  color: var(--public-ink);
}

.public-candy-shell .navbar.candy-public-nav,
.public-candy-shell footer.bg-white,
.public-candy-shell .section-panel,
.public-candy-shell .landing-feature,
.public-candy-shell .landing-step,
.public-candy-shell .tenant-service,
.public-candy-shell .accordion-item,
.public-candy-shell .form-control,
.public-candy-shell .form-select {
  color: var(--public-ink);
  background: var(--public-card) !important;
  border-color: var(--public-line) !important;
}

.public-candy-shell .nav-link {
  color: #334155;
  font-weight: 750;
}

.public-candy-shell .navbar-collapse {
  border-radius: 24px;
}

.public-candy-shell .candy-hero,
.public-candy-shell .landing-hero,
.public-candy-shell .candy-tenant-hero,
.public-candy-shell .tenant-public-hero {
  color: var(--public-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(239, 246, 255, .90) 52%, rgba(207, 250, 254, .76) 100%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.public-candy-shell .candy-tenant-hero,
.public-candy-shell .tenant-public-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, color-mix(in srgb, var(--tenant-theme, #2563eb) 11%, #f8fafc 89%) 54%, rgba(207, 250, 254, .78) 100%),
    url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.public-candy-shell .candy-hero::before,
.public-candy-shell .candy-tenant-hero::before {
  background:
    radial-gradient(circle at 16% 22%, rgba(37, 99, 235, .13), transparent 30%),
    repeating-linear-gradient(135deg, rgba(37, 99, 235, .07) 0 8px, transparent 8px 28px);
  opacity: 1;
}

.public-candy-shell .candy-hero-title,
.public-candy-shell .candy-tenant-hero h1,
.public-candy-shell .candy-hero-subtitle,
.public-candy-shell .candy-tenant-hero .lead,
.public-candy-shell .tenant-public-description,
.public-candy-shell .landing-proof {
  color: var(--public-ink) !important;
  text-shadow: none;
}

.public-candy-shell .candy-hero-subtitle,
.public-candy-shell .candy-tenant-hero .lead,
.public-candy-shell .tenant-public-description {
  color: #334155 !important;
  font-weight: 650;
}

.public-candy-shell .landing-proof span {
  color: #1e40af;
  border-color: rgba(37, 99, 235, .2);
  background: rgba(255, 255, 255, .74);
}

.public-candy-shell .candy-hero .btn-light,
.public-candy-shell .tenant-public-hero .btn-light {
  color: #0f172a;
  border-color: rgba(37, 99, 235, .18);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.public-candy-shell .candy-hero .btn-outline-light,
.public-candy-shell .tenant-public-hero .btn-outline-light {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .55);
  background: rgba(219, 234, 254, .72);
}

.public-candy-shell .candy-hero .btn-outline-light:hover,
.public-candy-shell .candy-hero .btn-outline-light:focus,
.public-candy-shell .tenant-public-hero .btn-outline-light:hover,
.public-candy-shell .tenant-public-hero .btn-outline-light:focus {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.public-candy-shell .candy-kicker,
.public-candy-shell .candy-section-label {
  color: #1d4ed8;
  background: #dbeafe;
}

.public-candy-shell .landing-feature-large,
.public-candy-shell .landing-feature-accent,
.public-candy-shell .landing-price-featured {
  color: #ffffff;
}

.public-candy-shell .landing-feature-large h1,
.public-candy-shell .landing-feature-large h2,
.public-candy-shell .landing-feature-large h3,
.public-candy-shell .landing-feature-large h4,
.public-candy-shell .landing-feature-large strong,
.public-candy-shell .landing-feature-accent h1,
.public-candy-shell .landing-feature-accent h2,
.public-candy-shell .landing-feature-accent h3,
.public-candy-shell .landing-feature-accent h4,
.public-candy-shell .landing-feature-accent strong,
.public-candy-shell .landing-price-featured h1,
.public-candy-shell .landing-price-featured h2,
.public-candy-shell .landing-price-featured h3,
.public-candy-shell .landing-price-featured h4,
.public-candy-shell .landing-price-featured strong,
.public-candy-shell .landing-price-featured .fw-bold,
.public-candy-shell .landing-price-featured .fw-black {
  color: #ffffff;
}

.public-candy-shell .landing-feature-large p,
.public-candy-shell .landing-feature-accent p,
.public-candy-shell .landing-price-featured .text-muted,
.public-candy-shell .landing-price-featured .small,
.public-candy-shell .landing-price-featured .text-success {
  color: rgba(255, 255, 255, .88) !important;
}

.public-candy-shell .table {
  color: var(--public-ink);
}

.public-candy-shell .table thead th {
  color: #334155;
  background: #eff6ff;
}

.public-candy-shell .table tbody td {
  color: #1e293b;
}

.tenant-public-footer,
.public-candy-shell .tenant-public-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0e7490 100%) !important;
}

.tenant-public-footer strong,
.tenant-public-footer a,
.tenant-public-footer .small {
  color: #ffffff !important;
}

.public-candy-shell #fitur {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .94) 0%, rgba(248, 250, 252, .98) 44%, rgba(236, 254, 255, .86) 100%) !important;
}

.public-candy-shell #fitur::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.public-feature-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 24px;
}

.public-feature-head h2 {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  text-wrap: balance;
}

.public-feature-head p {
  max-width: 720px;
  margin: 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 650;
}

.public-feature-kicker,
.public-feature-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-feature-kicker {
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  background: rgba(219, 234, 254, .82);
}

.public-feature-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.public-feature-glass {
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-feature-dashboard,
.public-feature-focus,
.public-feature-card,
.public-feature-tile {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-feature-dashboard:hover,
.public-feature-focus:hover,
.public-feature-card:hover,
.public-feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .24);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 48px rgba(37, 99, 235, .13);
}

.public-feature-dashboard {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
}

.public-feature-dashboard h3,
.public-feature-focus h3,
.public-feature-card h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 900;
}

.public-feature-dashboard p,
.public-feature-focus p,
.public-feature-card p {
  margin: 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.45;
}

.public-feature-main-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .26);
}

.public-feature-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 99, 235, .15);
}

.public-feature-stat-grid div {
  display: grid;
  gap: 4px;
}

.public-feature-stat-grid span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.public-feature-stat-grid strong {
  color: #0f172a;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1;
}

.public-feature-chart {
  height: 92px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 24px;
}

.public-feature-chart span {
  flex: 1;
  min-width: 16px;
  height: var(--bar);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
  opacity: .82;
}

.public-feature-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.public-feature-icon,
.public-feature-tile-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}

.public-feature-icon {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.public-feature-icon.primary {
  color: #1d4ed8;
  background: #dbeafe;
}

.public-feature-icon.secondary {
  color: #6d28d9;
  background: #ede9fe;
}

.public-feature-tile {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.public-feature-tile-icon {
  width: 38px;
  height: 38px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, .82);
}

.public-feature-tile span:last-child {
  color: #0f172a;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.18;
}

.public-feature-tile:hover .public-feature-tile-icon,
.public-feature-card:hover .public-feature-icon,
.public-feature-dashboard:hover .public-feature-main-icon {
  transform: translateY(-2px);
}

.public-feature-focus {
  grid-column: span 2;
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, rgba(255, 255, 255, .78) 58%, rgba(6, 182, 212, .12) 100%);
}

.public-feature-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-feature-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
  font-size: .84rem;
  font-weight: 900;
}

.public-feature-flow i {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #1d4ed8;
  border-radius: 8px;
  background: rgba(219, 234, 254, .9);
}

@media (prefers-reduced-motion: no-preference) {
  .public-feature-animate {
    opacity: 0;
    animation: public-feature-reveal .55s cubic-bezier(.16, 1, .3, 1) forwards;
  }

  .public-feature-delay-1 { animation-delay: .05s; }
  .public-feature-delay-2 { animation-delay: .1s; }
  .public-feature-delay-3 { animation-delay: .15s; }
  .public-feature-delay-4 { animation-delay: .2s; }
  .public-feature-delay-5 { animation-delay: .25s; }
  .public-feature-delay-6 { animation-delay: .3s; }
  .public-feature-delay-7 { animation-delay: .35s; }
  .public-feature-delay-8 { animation-delay: .4s; }
}

@keyframes public-feature-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact public landing so the first screen shows content without wasting vertical space. */
.public-candy-shell .navbar.candy-public-nav {
  top: 6px;
  width: min(1120px, calc(100% - 18px));
  margin-top: 6px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .11);
}

.public-candy-shell .navbar.candy-public-nav .container {
  min-height: 54px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.public-candy-shell .landing-hero,
.public-candy-shell .candy-hero,
.public-candy-shell .tenant-public-hero,
.public-candy-shell .candy-tenant-hero {
  min-height: clamp(460px, 66vh, 620px);
}

.public-candy-shell .landing-hero .container,
.public-candy-shell .candy-hero .container,
.public-candy-shell .tenant-public-hero .container,
.public-candy-shell .candy-tenant-hero .container {
  padding-top: clamp(74px, 9vh, 96px) !important;
  padding-bottom: clamp(30px, 5vh, 46px) !important;
}

.public-candy-shell .min-vh-landing,
.public-candy-shell .min-vh-tenant-public {
  min-height: auto !important;
}

.public-candy-shell .candy-kicker {
  margin-bottom: 12px !important;
  padding: 6px 11px;
  font-size: .72rem;
}

.public-candy-shell .candy-hero-title,
.public-candy-shell .candy-tenant-hero h1 {
  max-width: 710px;
  font-size: clamp(2rem, 3.35vw, 2.85rem) !important;
  line-height: 1.08;
}

.public-candy-shell .candy-hero-subtitle,
.public-candy-shell .candy-tenant-hero .lead {
  max-width: 600px;
  margin-top: 12px !important;
  font-size: clamp(1rem, 1.28vw, 1.14rem);
  line-height: 1.45;
}

.public-candy-shell .landing-hero .btn-lg,
.public-candy-shell .tenant-public-hero .btn-lg {
  padding: 9px 16px;
  font-size: .98rem;
}

.public-candy-shell .landing-proof {
  gap: 7px;
  margin-top: 16px !important;
}

.public-candy-shell .landing-proof span {
  padding: 6px 10px;
  font-size: .84rem;
}

.public-candy-shell #fitur {
  padding-top: 38px !important;
  padding-bottom: 42px !important;
}

@media (max-width: 991.98px) {
  .public-feature-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-feature-dashboard,
  .public-feature-focus {
    grid-column: span 2;
  }

  .public-feature-focus {
    grid-template-columns: 1fr;
  }

  .public-candy-shell .navbar.candy-public-nav {
    width: min(100% - 20px, 1180px);
    border-radius: 24px;
  }

  .public-candy-shell .navbar-collapse {
    margin-top: 10px;
    padding: 10px;
    background: #ffffff;
  }
}

@media (max-width: 575.98px) {
  .public-candy-shell .candy-hero,
  .public-candy-shell .landing-hero,
  .public-candy-shell .candy-tenant-hero,
  .public-candy-shell .tenant-public-hero {
    min-height: auto;
  }

  .public-candy-shell .display-4,
  .public-candy-shell .display-5 {
    font-size: clamp(1.65rem, 8vw, 2rem) !important;
  }

  .public-candy-shell .landing-hero .container,
  .public-candy-shell .candy-hero .container,
  .public-candy-shell .tenant-public-hero .container,
  .public-candy-shell .candy-tenant-hero .container {
    padding-top: 62px !important;
    padding-bottom: 18px !important;
  }

  .public-candy-shell .candy-kicker {
    padding: 5px 9px;
    font-size: .66rem;
  }

  .public-candy-shell .candy-hero-subtitle,
  .public-candy-shell .candy-tenant-hero .lead {
    margin-top: 9px !important;
    font-size: .94rem;
    line-height: 1.4;
  }

  .public-candy-shell .landing-hero .btn-lg,
  .public-candy-shell .tenant-public-hero .btn-lg {
    padding: 7px 11px;
    font-size: .86rem;
  }

  .public-candy-shell .landing-proof {
    margin-top: 12px !important;
  }

  .public-candy-shell .landing-proof span {
    padding: 4px 8px;
    font-size: .72rem;
  }
}

@media (max-width: 575.98px) {
  .public-feature-head {
    margin-bottom: 16px;
  }

  .public-feature-bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-feature-dashboard,
  .public-feature-focus,
  .public-feature-card,
  .public-feature-tile {
    grid-column: span 1;
    min-height: auto;
    padding: 16px;
  }

  .public-feature-stat-grid,
  .public-feature-flow {
    grid-template-columns: 1fr;
  }

  .public-feature-chart {
    height: 70px;
  }

  .public-feature-tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

.checkout-plan {
  display: block;
  color: var(--al-ink);
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.checkout-plan:hover,
.checkout-plan.active {
  border-color: var(--al-primary);
  background: #eff6ff;
}

.checkout-coupon-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.gateway-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.gateway-option:has(.form-check-input:checked) {
  border-color: var(--al-primary);
  background: #eff6ff;
}

.gateway-option-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #dbeafe;
  color: var(--al-primary);
  font-size: 1.1rem;
}

.payment-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-word;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #e0f2fe;
  color: #0369a1;
}

.quick-menu-disabled {
  opacity: .55;
  pointer-events: none;
}

.quick-cashier-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.quick-cashier-shell .form-control,
.quick-cashier-shell .form-select,
.quick-cashier-shell .btn,
.quick-cashier-shell textarea {
  font-size: 16px;
}

.quick-cashier-form {
  width: 100%;
}

.quick-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-type-button {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.quick-type-button i {
  font-size: 1.55rem;
  color: var(--al-primary);
}

.quick-type-button span {
  width: 100%;
  font-size: .88rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.quick-type-button:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.btn-check:checked + .quick-type-button {
  border-color: var(--al-primary);
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.quick-nominal-group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 18px;
  border: 2px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
}

.quick-nominal-group span {
  color: var(--al-muted);
  font-weight: 800;
  font-size: 1.3rem;
}

.quick-nominal-input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 0 10px 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 850;
  color: var(--al-ink);
  background: transparent;
}

.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.quick-amount-grid .btn {
  min-height: 46px;
  font-weight: 750;
}

.quick-summary-card {
  position: sticky;
  top: 18px;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.quick-summary-type {
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.quick-summary-row,
.quick-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.quick-summary-row span,
.quick-summary-total span {
  color: rgba(255, 255, 255, .78);
}

.quick-summary-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.quick-summary-total {
  align-items: center;
  margin: 8px 0;
  padding: 16px;
  border-radius: 8px;
  border-top: 0;
  background: rgba(255, 255, 255, .14);
}

.quick-admin-input,
.quick-total-input {
  width: min(170px, 52vw);
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: right;
  font-weight: 800;
}

.quick-total-input {
  color: #ffffff;
  background: transparent;
  font-size: 1.25rem;
}

.withdraw-bank-option {
  min-height: 94px;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--al-ink);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.withdraw-bank-option:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.btn-check:checked + .withdraw-bank-option {
  border-color: var(--al-primary);
  background: #eff6ff;
}

.withdraw-bank-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #dbeafe;
  color: var(--al-primary);
  font-size: .82rem;
  font-weight: 800;
}

.withdraw-balance-card {
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .16);
}

.withdraw-balance-value {
  margin: 4px 0 18px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  font-weight: 800;
  word-break: break-word;
}

.withdraw-balance-sub {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}

.withdraw-summary {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.withdraw-admin-input,
.withdraw-total-input {
  max-width: 150px;
}

.onboarding-candy-shell {
  max-width: 1280px;
  margin: 0 auto;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.onboarding-candy-card {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  width: 100%;
  min-width: 0;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(124, 58, 237, .12);
}

.onboarding-candy-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 100%;
  padding: clamp(24px, 4vw, 44px);
  color: #2e2040;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, .78) 0%, rgba(237, 233, 254, .9) 50%, rgba(207, 250, 254, .82) 100%);
  min-width: 0;
  overflow: hidden;
}

.onboarding-candy-side h2,
.onboarding-candy-side p,
.onboarding-candy-main h1,
.onboarding-panel-heading h2,
.onboarding-panel-heading p {
  overflow-wrap: anywhere;
}

.onboarding-candy-side .brand-mark {
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.onboarding-candy-side p {
  color: #64748b;
  font-weight: 600;
}

.onboarding-illustration {
  position: relative;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(46, 26, 40, .14);
}

.onboarding-illustration img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.onboarding-floating-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(46, 26, 40, .12);
}

.onboarding-floating-note i {
  color: #16a34a;
  font-size: 1.35rem;
}

.onboarding-floating-note span {
  display: block;
  color: #64748b;
  font-size: .86rem;
}

.onboarding-candy-main {
  padding: clamp(22px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, .26) 0 18%, transparent 18% 42%, rgba(207, 250, 254, .28) 42% 65%, transparent 65% 100%),
    #ffffff;
  min-width: 0;
}

.onboarding-candy-main .btn {
  border-radius: 999px;
  font-weight: 800;
}

.onboarding-candy-main .btn-primary {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.onboarding-candy-main .btn-primary:hover,
.onboarding-candy-main .btn-primary:focus {
  border-color: #1e40af;
  background: #1e40af;
}

.onboarding-candy-main .btn-outline-primary {
  border-color: #2563eb;
  color: #1d4ed8;
}

.onboarding-candy-main .btn-outline-primary:hover,
.onboarding-candy-main .btn-outline-primary:focus {
  border-color: #2563eb;
  background: #dbeafe;
  color: #0f172a;
}

.onboarding-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
}

.onboarding-step-line {
  position: absolute;
  top: 22px;
  left: 32px;
  right: 32px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #cbd5e1;
}

.onboarding-step-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 0 16px rgba(37, 99, 235, .28);
  transition: width .22s ease;
}

.onboarding-step-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  color: #64748b;
  background: transparent;
}

.onboarding-step-button span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #cbd5e1;
  color: #64748b;
  box-shadow: 0 6px 16px rgba(46, 26, 40, .08);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.onboarding-step-button small {
  width: 100%;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.onboarding-step-button.active span,
.onboarding-step-button.done span {
  background: #2563eb;
  color: #ffffff;
}

.onboarding-step-button.active span {
  transform: scale(1.08);
}

.onboarding-panel {
  min-height: 460px;
  min-width: 0;
}

.onboarding-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.onboarding-panel-heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.onboarding-panel-heading h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 900;
}

.onboarding-panel-heading p {
  margin: 0;
  color: #64748b;
}

.onboarding-candy-main .form-label {
  margin-left: 14px;
  color: #0f172a;
  font-weight: 800;
}

.onboarding-candy-main .form-control,
.onboarding-candy-main .form-select {
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.onboarding-candy-main textarea.form-control {
  min-height: 0;
  border-radius: 8px;
}

.onboarding-candy-main .form-control:focus,
.onboarding-candy-main .form-select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(240, 128, 192, .28);
}

.onboarding-candy-main .form-control-color {
  width: 100%;
  padding: 8px;
  border-radius: 999px;
}

.onboarding-preview,
.onboarding-candy-alert,
.onboarding-choice,
.onboarding-table-wrap,
.onboarding-finish {
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 24px rgba(46, 26, 40, .05);
}

.onboarding-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.onboarding-preview img,
.onboarding-preview > span {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.onboarding-preview > span {
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #dbeafe;
  font-size: 1.5rem;
  font-weight: 900;
}

.onboarding-preview small {
  display: block;
  color: #64748b;
}

.onboarding-candy-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #0e7490;
  background: #cffafe;
}

.onboarding-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 18px;
  cursor: pointer;
}

.onboarding-choice .form-check-input {
  margin: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-color: #cbd5e1;
}

.onboarding-choice .form-check-input:checked {
  border-color: #2563eb;
  background-color: #2563eb;
}

.onboarding-choice span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.onboarding-choice i {
  color: #1d4ed8;
}

.onboarding-table-wrap {
  overflow: auto;
}

.onboarding-table-wrap .table {
  --bs-table-bg: transparent;
}

.onboarding-table-wrap th {
  color: #64748b;
  border-color: rgba(37, 99, 235, .16);
}

.onboarding-table-wrap td {
  min-width: 170px;
  border-color: rgba(37, 99, 235, .10);
}

.onboarding-finish {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}

.onboarding-finish-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  font-size: 2.1rem;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .2);
}

.dashboard-candy-shell {
  max-width: 1440px;
  margin: 0 auto;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-candy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-candy-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-candy-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-candy-shell .btn {
  border-radius: 999px;
  font-weight: 800;
}

.dashboard-candy-shell .btn-primary {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.dashboard-candy-shell .btn-primary:hover,
.dashboard-candy-shell .btn-primary:focus {
  border-color: #1e40af;
  background: #1e40af;
}

.dashboard-candy-shell .btn-outline-primary {
  border-color: #2563eb;
  color: #1d4ed8;
}

.dashboard-candy-shell .btn-outline-primary:hover,
.dashboard-candy-shell .btn-outline-primary:focus {
  border-color: #2563eb;
  background: #dbeafe;
  color: #0f172a;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-hero-card,
.dashboard-panel,
.dashboard-candy-section,
.dashboard-mini-card {
  border-radius: 8px;
}

.dashboard-hero-card {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 28px);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(46, 26, 40, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-hero-card:hover,
.dashboard-action-card:hover,
.dashboard-mini-card:hover,
.dashboard-panel:hover {
  transform: translateY(-3px);
}

.dashboard-hero-card-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 18px 38px rgba(37, 99, 235, .22);
}

.dashboard-hero-card-secondary {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  box-shadow: 0 18px 38px rgba(124, 58, 237, .22);
}

.dashboard-hero-card-tertiary {
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
  box-shadow: 0 18px 38px rgba(6, 182, 212, .20);
}

.dashboard-hero-card span {
  font-weight: 800;
  color: rgba(255, 255, 255, .88);
}

.dashboard-hero-card i {
  font-size: 1.55rem;
  opacity: .78;
}

.dashboard-hero-card strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dashboard-hero-card small {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .16);
  overflow-wrap: anywhere;
}

.dashboard-candy-section,
.dashboard-panel,
.dashboard-mini-card {
  border: 1px solid rgba(37, 99, 235, .14);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(46, 26, 40, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-candy-section {
  padding: 20px;
  margin-bottom: 24px;
}

.dashboard-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-action-card {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px 12px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 8px;
  background: #f1f5f9;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(46, 26, 40, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-action-card span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.55rem;
}

.dashboard-action-card strong {
  color: #0f172a;
  font-size: .94rem;
}

.dashboard-action-primary span {
  color: #1d4ed8;
  background: #dbeafe;
}

.dashboard-action-secondary span {
  color: #5b21b6;
  background: #ede9fe;
}

.dashboard-action-tertiary span {
  color: #0e7490;
  background: #cffafe;
}

.dashboard-action-card:hover {
  border-color: #f0a0cc;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .12);
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dashboard-mini-card {
  padding: 16px;
}

.dashboard-mini-card span {
  display: block;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
}

.dashboard-mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.14;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dashboard-mini-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.dashboard-mini-card i {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
}

.dashboard-panel {
  padding: clamp(18px, 2.6vw, 28px);
}

.dashboard-panel canvas {
  max-height: 330px;
}

.dashboard-soft-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
  font-size: .82rem;
}

.dashboard-recent-list,
.dashboard-alert-list {
  display: grid;
  gap: 14px;
}

.dashboard-recent-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.dashboard-recent-item > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
}

.dashboard-recent-item strong,
.dashboard-recent-item small,
.dashboard-recent-item em {
  overflow-wrap: anywhere;
}

.dashboard-recent-item small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
}

.dashboard-recent-item em {
  font-style: normal;
  font-weight: 900;
  text-align: right;
  font-size: .9rem;
}

.dashboard-notification-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .12);
  background: #f1f5f9;
}

.dashboard-notification-item strong {
  display: block;
  font-size: .92rem;
}

.dashboard-notification-item small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.dashboard-notification-success {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, .18);
}

.dashboard-notification-warning {
  background: #fff7ed;
  border-color: rgba(245, 158, 11, .18);
}

.dashboard-notification-danger {
  background: #ffe8e8;
  border-color: rgba(229, 62, 62, .18);
}

.dashboard-subscription-card {
  display: grid;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
}

.dashboard-subscription-card span {
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.dashboard-subscription-card strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.dashboard-subscription-card small {
  margin-top: 8px;
  color: #64748b;
}

.dashboard-table {
  --bs-table-bg: transparent;
}

.dashboard-table thead th {
  color: #64748b;
  border-color: rgba(37, 99, 235, .16);
}

.dashboard-table td {
  border-color: rgba(37, 99, 235, .09);
}

.dashboard-empty-state {
  padding: 18px;
  border: 1px dashed rgba(37, 99, 235, .28);
  border-radius: 8px;
  color: #64748b;
  background: #f1f5f9;
  text-align: center;
  font-weight: 700;
}

.dashboard-candy-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.dashboard-candy-alert-warning {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, .2);
}

.dashboard-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 800;
}

.dashboard-status-row .bi-circle-fill {
  font-size: .46rem;
}

.dashboard-status-row .status-success {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(22, 163, 74, .16);
}

.dashboard-status-row .status-primary {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: rgba(37, 99, 235, .16);
}

.dashboard-status-row .status-warning {
  color: #92400e;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, .2);
}

.dashboard-status-row .status-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, .18);
}

.dashboard-notification-info {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, .16);
}

.dashboard-candy-shell {
  --dashboard-compact-gap: 12px;
}

.dashboard-candy-header {
  margin-bottom: 16px;
}

.dashboard-candy-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.dashboard-main-grid {
  gap: var(--dashboard-compact-gap);
  margin-bottom: 16px;
}

.dashboard-hero-card {
  min-height: 128px;
  gap: 14px;
  padding: 18px;
}

.dashboard-hero-card strong {
  font-size: clamp(1.32rem, 2.2vw, 1.9rem);
}

.dashboard-hero-card small {
  margin-top: 6px;
  padding: 4px 8px;
  font-size: .76rem;
}

.dashboard-candy-section {
  padding: 14px;
  margin-bottom: 16px;
}

.dashboard-action-row {
  gap: var(--dashboard-compact-gap);
}

.dashboard-action-card {
  min-height: 76px;
  grid-template-columns: auto 1fr;
  place-items: center start;
  align-content: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.dashboard-action-card span {
  width: auto;
  height: auto;
  font-size: 1.2rem;
  background: transparent !important;
}

.dashboard-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dashboard-compact-gap);
  margin-bottom: 16px;
}

.dashboard-mini-card {
  padding: 12px;
}

.dashboard-mini-card span {
  font-size: .76rem;
}

.dashboard-mini-card strong {
  margin-top: 4px;
  font-size: clamp(.94rem, 1.45vw, 1.08rem);
}

.dashboard-mini-card small {
  margin-top: 3px;
  font-size: .76rem;
}

.dashboard-mini-card i {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 1.16rem;
}

.dashboard-panel {
  padding: 14px;
}

.dashboard-panel h2 {
  font-size: 1rem;
}

.dashboard-recent-list,
.dashboard-alert-list {
  gap: 9px;
}

.dashboard-recent-item {
  gap: 9px;
}

.dashboard-recent-item > span {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 1.05rem;
}

.dashboard-notification-item {
  padding: 10px;
}

.dashboard-subscription-card {
  padding: 14px;
}

.dashboard-subscription-card strong {
  font-size: 1.52rem;
}

.dashboard-table thead th,
.dashboard-table td {
  padding: .48rem .55rem;
  font-size: .84rem;
}

@media (max-width: 991.98px) {
  body {
    -webkit-tap-highlight-color: rgba(37, 99, 235, .16);
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    max-height: 44vh;
  }

  .content {
    margin-left: 0;
  }

  .quick-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-summary-card {
    position: static;
  }

  .onboarding-candy-card {
    grid-template-columns: 1fr;
  }

  .onboarding-candy-side {
    min-height: auto;
  }

  .onboarding-illustration {
    display: none;
  }

  .onboarding-stepper {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(82px, 1fr));
    padding-bottom: 8px;
  }

  .dashboard-candy-header {
    flex-direction: column;
  }

  .dashboard-candy-header-actions {
    justify-content: flex-start;
  }

  .dashboard-main-grid,
  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .content > .bg-white {
    padding: 12px 16px !important;
  }

  .content > .p-4 {
    padding: 14px !important;
  }

  .quick-cashier-shell h1 {
    font-size: 1.35rem;
  }

  .quick-cashier-shell .section-panel {
    padding: 14px !important;
  }

  .quick-cashier-shell .btn {
    min-height: 44px;
  }

  .quick-type-grid {
    gap: 8px;
  }

  .quick-type-button {
    min-height: 78px;
    padding: 10px 6px;
  }

  .quick-type-button i {
    font-size: 1.35rem;
  }

  .quick-type-button span {
    font-size: .78rem;
  }

  .quick-nominal-group {
    min-height: 66px;
    padding: 0 14px;
  }

  .quick-nominal-input {
    font-size: 2rem;
  }

  .quick-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-summary-card {
    padding: 18px;
  }

  .quick-summary-row,
  .quick-summary-total {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-summary-row strong,
  .quick-admin-input,
  .quick-total-input {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .onboarding-candy-shell {
    margin: -6px;
  }

  .onboarding-candy-main,
  .onboarding-candy-side {
    padding: 18px;
  }

  .onboarding-candy-main .h2 {
    font-size: 1.45rem;
  }

  .onboarding-step-line {
    left: 26px;
    right: 26px;
  }

  .onboarding-panel-heading {
    gap: 10px;
  }

  .onboarding-panel-heading h2 {
    font-size: 1.22rem;
  }

  .onboarding-candy-main .btn-lg {
    width: 100%;
    min-height: 48px;
  }

  .onboarding-panel .d-flex.justify-content-between,
  .onboarding-panel .d-flex.justify-content-end {
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-main-grid,
  .dashboard-mini-grid,
  .dashboard-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-candy-header-actions .btn {
    width: 100%;
  }

  .dashboard-recent-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-recent-item em {
    grid-column: 2;
    text-align: left;
  }
}

.quick-candy-shell {
  max-width: 1360px;
}

.quick-candy-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.quick-candy-top h1 {
  margin: 6px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.quick-candy-top p {
  max-width: 640px;
  margin: 0;
  color: var(--al-muted);
}

.quick-candy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .82rem;
  font-weight: 800;
}

.quick-candy-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quick-candy-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(310px, 380px);
  gap: 18px;
  align-items: start;
}

.quick-candy-categories,
.quick-candy-form-card,
.quick-receipt-card {
  border: 1px solid rgba(220, 200, 224, .86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .08);
}

.quick-candy-categories {
  position: sticky;
  top: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.quick-candy-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--al-ink);
  font-weight: 900;
}

.quick-candy-panel-title small {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 700;
}

.quick-candy-categories .quick-type-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}

.quick-candy-shell .quick-type-button {
  --quick-tone: var(--al-primary);
  --quick-soft: #dbeafe;
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr);
  place-items: stretch;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-color: rgba(220, 200, 224, .9);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(124, 58, 237, .05);
}

.quick-candy-shell .quick-type-button:hover {
  border-color: var(--quick-tone);
  background: var(--quick-soft);
  transform: translateY(-1px);
}

.quick-type-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--quick-soft);
  color: var(--quick-tone);
}

.quick-candy-shell .quick-type-button i {
  color: inherit;
  font-size: 1.3rem;
}

.quick-candy-shell .quick-type-button span:not(.quick-type-icon) {
  color: var(--al-ink);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.1;
}

.quick-candy-shell .quick-type-button small {
  grid-column: 2;
  display: block;
  margin-top: -6px;
  color: var(--al-muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
}

.quick-candy-shell .btn-check:checked + .quick-type-button {
  border-color: var(--quick-tone);
  background: var(--quick-tone);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .2);
}

.quick-candy-shell .btn-check:checked + .quick-type-button .quick-type-icon {
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
}

.quick-candy-shell .btn-check:checked + .quick-type-button span:not(.quick-type-icon),
.quick-candy-shell .btn-check:checked + .quick-type-button small {
  color: #ffffff;
}

.quick-type-secondary {
  --quick-tone: var(--al-secondary);
  --quick-soft: #ede9fe;
}

.quick-type-tertiary {
  --quick-tone: var(--al-tertiary);
  --quick-soft: #cffafe;
}

.quick-type-warning {
  --quick-tone: var(--al-warning);
  --quick-soft: #fef3c7;
}

.quick-type-muted {
  --quick-tone: #64748b;
  --quick-soft: #e2e8f0;
}

.quick-candy-form-card {
  overflow: hidden;
}

.quick-candy-form-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(220, 200, 224, .72);
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 100%);
}

.quick-candy-form-head h2 {
  margin: 8px 0 2px;
  color: var(--al-primary);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 900;
}

.quick-candy-form-head p {
  margin: 0;
  color: var(--al-muted);
}

.quick-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.quick-online-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
}

.quick-form-section {
  padding: 20px;
  border-bottom: 1px solid rgba(220, 200, 224, .58);
}

.quick-form-section:last-child {
  border-bottom: 0;
}

.quick-active-service {
  background: linear-gradient(180deg, rgba(37, 99, 235, .045) 0%, rgba(255, 255, 255, 0) 100%);
}

.quick-service-panel {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.quick-service-panel .form-control,
.quick-service-panel .form-select {
  min-height: 48px;
}

.quick-service-panel[aria-hidden="true"] {
  display: none !important;
}

.quick-candy-shell .form-label {
  color: var(--al-ink);
  font-weight: 850;
}

.quick-candy-shell .form-control,
.quick-candy-shell .form-select,
.quick-candy-shell textarea {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--al-ink);
  box-shadow: none;
}

.quick-candy-shell textarea.form-control {
  border-radius: 8px;
}

.quick-candy-shell .form-control:focus,
.quick-candy-shell .form-select:focus,
.quick-candy-shell textarea:focus {
  border-color: var(--al-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

.quick-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-balance-grid > div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(220, 200, 224, .78);
  border-radius: 8px;
  background: #ffffff;
}

.quick-balance-grid small {
  display: block;
  color: var(--al-muted);
  font-weight: 750;
}

.quick-balance-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--al-primary);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quick-candy-shell .quick-nominal-group {
  min-height: 104px;
  border-color: rgba(220, 200, 224, .9);
  border-radius: 8px;
  background: #f1f5f9;
  box-shadow: inset 0 2px 8px rgba(124, 58, 237, .04);
}

.quick-candy-shell .quick-nominal-group:focus-within {
  border-color: var(--al-primary);
  background: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

.quick-candy-shell .quick-nominal-group.quick-nominal-locked {
  border-style: dashed;
  background: #f8fafc;
}

.quick-candy-shell .quick-nominal-group.quick-nominal-locked .quick-nominal-input {
  cursor: default;
}

.quick-candy-shell .quick-nominal-group span {
  color: var(--al-primary);
}

.quick-candy-shell .quick-nominal-input {
  text-align: center;
  color: var(--al-ink);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.quick-candy-shell .quick-amount-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quick-candy-shell .btn {
  border-radius: 999px;
  font-weight: 800;
}

.quick-candy-shell .btn-primary {
  border-color: var(--al-primary);
  background: var(--al-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.quick-candy-shell .btn-primary:hover,
.quick-candy-shell .btn-primary:focus {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.quick-candy-shell .btn-outline-primary {
  border-color: rgba(37, 99, 235, .45);
  color: #1d4ed8;
}

.quick-candy-shell .btn-outline-primary:hover,
.quick-candy-shell .btn-outline-primary:focus {
  border-color: var(--al-primary);
  background: #dbeafe;
  color: #1d4ed8;
}

.quick-section-heading {
  color: var(--al-ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.quick-section-copy {
  color: var(--al-muted);
  font-size: .92rem;
}

.quick-soft-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: .8rem;
  font-weight: 850;
}

.quick-candy-shell .quick-receipt-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, #2563eb 0%, #7c3aed 58%, #06b6d4 100%);
  box-shadow: 0 18px 40px rgba(124, 58, 237, .2);
}

.quick-receipt-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--al-bg);
  clip-path: polygon(0 0, 4% 100%, 8% 0, 12% 100%, 16% 0, 20% 100%, 24% 0, 28% 100%, 32% 0, 36% 100%, 40% 0, 44% 100%, 48% 0, 52% 100%, 56% 0, 60% 100%, 64% 0, 68% 100%, 72% 0, 76% 100%, 80% 0, 84% 100%, 88% 0, 92% 100%, 96% 0, 100% 100%);
}

.quick-receipt-head {
  margin: 12px 0 18px;
  text-align: center;
}

.quick-receipt-head span {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 1.45rem;
}

.quick-receipt-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.quick-receipt-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
}

.quick-candy-shell .quick-summary-row,
.quick-candy-shell .quick-summary-total {
  border-top-color: rgba(255, 255, 255, .24);
}

.quick-candy-shell .quick-summary-row span,
.quick-candy-shell .quick-summary-total span,
.quick-candy-shell .quick-summary-row .small {
  color: rgba(255, 255, 255, .74);
}

.quick-candy-shell .quick-summary-row strong {
  font-weight: 900;
}

.quick-candy-shell .quick-summary-total {
  background: rgba(255, 255, 255, .16);
}

.quick-candy-shell .quick-admin-input,
.quick-candy-shell .quick-total-input {
  border-radius: 8px;
}

.quick-candy-shell .quick-admin-input {
  color: var(--al-ink);
  background: #ffffff;
}

.quick-candy-shell .quick-admin-input.bg-light {
  color: #ffffff;
  background: rgba(255, 255, 255, .12) !important;
}

.quick-candy-shell .quick-total-input {
  width: min(210px, 100%);
  color: #ffffff;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.quick-receipt-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .quick-candy-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-candy-categories,
  .quick-candy-shell .quick-receipt-card {
    position: static;
  }

  .quick-candy-categories .quick-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
  .quick-candy-workspace {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  }

  .quick-candy-shell .quick-receipt-card {
    grid-column: 1 / -1;
    position: static;
  }

  .quick-candy-shell .quick-receipt-card .quick-summary-total {
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .quick-candy-top {
    flex-direction: column;
  }

  .quick-candy-top-actions,
  .quick-candy-top-actions .btn {
    width: 100%;
  }

  .quick-candy-categories .quick-type-grid,
  .quick-candy-shell .quick-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-candy-shell .quick-type-button {
    min-height: 88px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .quick-candy-shell .quick-type-button small {
    grid-column: auto;
    margin-top: 0;
  }

  .quick-candy-form-head,
  .quick-form-section,
  .quick-candy-shell .quick-receipt-card {
    padding: 16px;
  }

  .quick-balance-grid {
    grid-template-columns: 1fr;
  }

  .quick-candy-shell .quick-nominal-input {
    font-size: 2.35rem;
  }
}

@media (max-width: 991.98px) {
  body:has(.quick-candy-shell) .sidebar,
  body:has(.transactions-candy-shell) .sidebar {
    display: none;
  }

  body:has(.quick-candy-shell) .content,
  body:has(.transactions-candy-shell) .content {
    margin-left: 0;
  }
}

.transactions-candy-shell {
  max-width: 1360px;
  margin: 0 auto;
}

.transactions-candy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.transactions-candy-header h1 {
  margin: 8px 0 4px;
  color: var(--al-primary);
  font-size: clamp(1.8rem, 2.6vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0;
}

.transactions-candy-header p {
  max-width: 720px;
  margin: 0;
  color: var(--al-muted);
}

.transactions-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .82rem;
  font-weight: 850;
}

.transactions-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.transactions-candy-shell .btn {
  border-radius: 999px;
  font-weight: 800;
}

.transactions-candy-shell .btn-primary {
  border-color: var(--al-primary);
  background: var(--al-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.transactions-candy-shell .btn-primary:hover,
.transactions-candy-shell .btn-primary:focus {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.transactions-candy-shell .btn-outline-primary {
  border-color: rgba(37, 99, 235, .45);
  color: #1d4ed8;
}

.transactions-candy-shell .btn-outline-primary:hover,
.transactions-candy-shell .btn-outline-primary:focus {
  border-color: var(--al-primary);
  background: #dbeafe;
  color: #1d4ed8;
}

.transactions-candy-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 8px;
  color: #0e7490;
  background: #cffafe;
  font-weight: 700;
}

.transactions-candy-alert-warning {
  border-color: rgba(245, 158, 11, .24);
  color: #92400e;
  background: #fef3c7;
}

.transactions-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.transactions-metric-card {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 14px 30px rgba(124, 58, 237, .12);
}

.transactions-metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.transactions-metric-card.secondary {
  background: var(--al-secondary);
}

.transactions-metric-card.tertiary {
  background: var(--al-tertiary);
}

.transactions-metric-card.soft {
  color: var(--al-ink);
  background: #ffffff;
  border: 1px solid rgba(220, 200, 224, .86);
}

.transactions-metric-card span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 1.2rem;
}

.transactions-metric-card.soft span {
  color: var(--al-primary);
  background: #dbeafe;
}

.transactions-metric-card small,
.transactions-metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.transactions-metric-card small {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.transactions-metric-card.soft small {
  color: var(--al-muted);
}

.transactions-metric-card strong {
  margin-top: 7px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.transactions-filter-card,
.transactions-table-card {
  border: 1px solid rgba(220, 200, 224, .86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .08);
}

.transactions-filter-card {
  margin-bottom: 18px;
  padding: 18px;
}

.transactions-candy-shell .form-label {
  color: var(--al-secondary);
  font-weight: 900;
}

.transactions-candy-shell .form-control,
.transactions-candy-shell .form-select {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--al-ink);
  box-shadow: none;
}

.transactions-candy-shell .form-control:focus,
.transactions-candy-shell .form-select:focus {
  border-color: var(--al-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

.transactions-input-icon {
  position: relative;
}

.transactions-input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  color: var(--al-muted);
  transform: translateY(-50%);
}

.transactions-input-icon .form-control {
  padding-left: 44px;
}

.transactions-reset-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.transactions-reset-link:hover {
  color: var(--al-secondary);
}

.transactions-table-card {
  overflow: hidden;
}

.transactions-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(220, 200, 224, .72);
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 100%);
}

.transactions-table-head h2 {
  margin: 0;
  color: var(--al-ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.transactions-table-head p {
  margin: 4px 0 0;
  color: var(--al-muted);
  font-size: .88rem;
}

.transactions-table-head > span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.transactions-candy-table {
  margin-bottom: 0 !important;
}

.transactions-candy-table thead th {
  padding: 16px 18px;
  border-bottom: 0;
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.transactions-candy-table tbody td {
  padding: 16px 18px;
  border-color: rgba(220, 200, 224, .54);
  vertical-align: middle;
}

.transactions-candy-table tbody tr {
  transition: background .16s ease, transform .16s ease;
}

.transactions-candy-table tbody tr:hover {
  background: rgba(219, 234, 254, .22);
}

.transaction-code-link {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.transaction-code-link:hover {
  color: var(--al-secondary);
}

.transactions-muted {
  color: var(--al-muted);
  font-size: .82rem;
}

.transactions-lock {
  margin-top: 4px;
  color: #92400e;
  font-size: .78rem;
  font-weight: 800;
}

.transaction-type-chip,
.transaction-status-pill,
.transaction-payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.transaction-type-chip.primary,
.transaction-status-pill.success,
.transaction-payment-pill.success {
  color: #1d4ed8;
  background: #dbeafe;
}

.transaction-type-chip.secondary {
  color: #2e2040;
  background: #ede9fe;
}

.transaction-type-chip.tertiary {
  color: #0e7490;
  background: #cffafe;
}

.transaction-type-chip.warning,
.transaction-status-pill.warning,
.transaction-payment-pill.warning {
  color: #92400e;
  background: #fef3c7;
}

.transaction-type-chip.muted,
.transaction-status-pill.secondary,
.transaction-payment-pill.secondary {
  color: var(--al-muted);
  background: #e2e8f0;
}

.transaction-status-pill.danger,
.transaction-payment-pill.danger {
  color: #9b1c1c;
  background: #ffe8e8;
}

.transactions-money {
  color: var(--al-ink);
  font-weight: 900;
  white-space: nowrap;
}

.transactions-admin {
  color: var(--al-tertiary);
  font-weight: 900;
  white-space: nowrap;
}

.transactions-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.transactions-action-row .btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.transactions-candy-shell .dt-container {
  padding: 16px 18px 18px;
}

.transactions-candy-shell .dt-container .dt-layout-row:first-child {
  margin-top: 0;
}

.transactions-candy-shell .dt-search input,
.transactions-candy-shell .dt-length select {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
}

.transactions-candy-shell .page-link {
  border-radius: 999px !important;
  color: #1d4ed8;
}

.transactions-candy-shell .active > .page-link,
.transactions-candy-shell .page-link.active {
  border-color: var(--al-primary);
  background: var(--al-primary);
  color: #ffffff;
}

@media (max-width: 1199.98px) {
  .transactions-candy-header {
    flex-direction: column;
  }

  .transactions-header-actions {
    justify-content: flex-start;
  }

  .transactions-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .transactions-header-actions .btn {
    width: 100%;
  }

  .transactions-metric-grid {
    grid-template-columns: 1fr;
  }

  .transactions-filter-card,
  .transactions-table-head {
    padding: 14px;
  }

  .transactions-table-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.customers-candy-shell {
  max-width: 1360px;
  margin: 0 auto;
}

.customers-candy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.customers-candy-header h1 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0;
}

.customers-candy-header p {
  max-width: 720px;
  margin: 0;
  color: var(--al-muted);
}

.customers-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .82rem;
  font-weight: 850;
}

.customers-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customers-search-form {
  position: relative;
  width: min(300px, 100%);
}

.customers-search-form i {
  position: absolute;
  left: 15px;
  top: 50%;
  color: var(--al-muted);
  transform: translateY(-50%);
}

.customers-search-form input {
  width: 100%;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 14px 8px 42px;
  background: #ffffff;
  color: var(--al-ink);
  box-shadow: 0 8px 18px rgba(124, 58, 237, .08);
  outline: 0;
}

.customers-search-form input:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

.customers-candy-shell .btn {
  border-radius: 999px;
  font-weight: 800;
}

.customers-candy-shell .btn-primary {
  border-color: var(--al-primary);
  background: var(--al-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.customers-candy-shell .btn-primary:hover,
.customers-candy-shell .btn-primary:focus {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.customers-candy-shell .btn-outline-primary {
  border-color: rgba(37, 99, 235, .45);
  color: #1d4ed8;
}

.customers-candy-shell .btn-outline-primary:hover,
.customers-candy-shell .btn-outline-primary:focus {
  border-color: var(--al-primary);
  background: #dbeafe;
  color: #1d4ed8;
}

.customers-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.customers-metric-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 14px 30px rgba(124, 58, 237, .12);
}

.customers-metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.customers-metric-card.secondary {
  background: var(--al-secondary);
}

.customers-metric-card.tertiary {
  background: var(--al-tertiary);
}

.customers-metric-card.soft {
  color: var(--al-ink);
  background: #ffffff;
  border: 1px solid rgba(220, 200, 224, .86);
}

.customers-metric-card span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.customers-metric-card.soft span {
  color: var(--al-primary);
  background: #dbeafe;
}

.customers-metric-card small,
.customers-metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.customers-metric-card small {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.customers-metric-card.soft small {
  color: var(--al-muted);
}

.customers-metric-card strong {
  margin-top: 7px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.customers-candy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.customers-candy-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.customers-candy-layout-full .customers-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customers-side-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.customers-form-card,
.customers-import-card,
.customers-main-area,
.customer-candy-card,
.customer-detail-card,
.customer-info-box {
  border: 1px solid rgba(220, 200, 224, .86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .08);
}

.customers-form-card,
.customers-import-card {
  padding: 18px;
}

.customers-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.customers-card-heading > span {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 1.15rem;
}

.customers-card-heading h2 {
  margin: 0;
  color: var(--al-ink);
  font-size: 1.16rem;
  font-weight: 900;
}

.customers-card-heading p {
  margin: 3px 0 0;
  color: var(--al-muted);
  font-size: .86rem;
}

.customers-candy-shell .form-label {
  color: var(--al-secondary);
  font-weight: 900;
}

.customers-candy-shell .form-control,
.customers-candy-shell .form-select {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--al-ink);
  box-shadow: none;
}

.customers-candy-shell textarea.form-control {
  border-radius: 8px;
}

.customers-candy-shell .form-control:focus,
.customers-candy-shell .form-select:focus {
  border-color: var(--al-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

.customer-form-modal .modal-content {
  border: 1px solid rgba(220, 200, 224, .86);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.customer-form-modal .modal-header,
.customer-form-modal .modal-footer {
  border-color: rgba(220, 200, 224, .58);
}

.customer-form-modal .form-label {
  color: var(--al-secondary);
  font-weight: 900;
}

.customer-form-modal .form-control,
.customer-form-modal .form-select {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--al-ink);
  box-shadow: none;
}

.customer-form-modal textarea.form-control {
  border-radius: 8px;
}

.customer-form-modal .form-control:focus,
.customer-form-modal .form-select:focus {
  border-color: var(--al-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .14);
}

body[data-color-mode="dark"] .customer-form-modal .modal-content {
  color: var(--al-ink) !important;
  background: #111827 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .customer-form-modal .modal-header,
body[data-color-mode="dark"] .customer-form-modal .modal-footer {
  border-color: rgba(148, 163, 184, .2) !important;
}

body[data-color-mode="dark"] .customer-form-modal .form-control,
body[data-color-mode="dark"] .customer-form-modal .form-select {
  color: var(--al-ink) !important;
  background: #0b1220 !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

body[data-color-mode="dark"] .customer-form-modal .form-control:focus,
body[data-color-mode="dark"] .customer-form-modal .form-select:focus {
  border-color: var(--al-primary) !important;
  background: #0f172a !important;
}

.customers-main-area {
  padding: 18px;
}

.customers-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.customers-list-head h2 {
  margin: 0;
  color: var(--al-ink);
  font-size: 1.3rem;
  font-weight: 900;
}

.customers-list-head p {
  margin: 4px 0 0;
  color: var(--al-muted);
}

.customers-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customers-mini-stats span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: .8rem;
  font-weight: 850;
  white-space: nowrap;
}

.customers-mini-stats span:first-child {
  color: #1d4ed8;
  background: #dbeafe;
}

.customers-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-candy-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.customer-candy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, .13);
}

.customer-glow {
  position: absolute;
  right: -34px;
  top: -36px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #dbeafe;
  opacity: .7;
  pointer-events: none;
}

.customer-candy-card.vip .customer-glow {
  background: #cffafe;
}

.customer-candy-card.reseller .customer-glow {
  background: #ede9fe;
}

.customer-candy-card.tempo .customer-glow {
  background: #fef3c7;
}

.customer-card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.customer-avatar {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--al-primary), var(--al-secondary));
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
  font-weight: 900;
}

.customer-identity {
  min-width: 0;
}

.customer-identity h3 {
  margin: 3px 0 4px;
  color: var(--al-ink);
  font-size: 1.08rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.customer-identity p,
.customer-card-note,
.customer-last-row {
  display: flex;
  gap: 7px;
  color: var(--al-muted);
  font-size: .84rem;
  line-height: 1.35;
}

.customer-identity p {
  margin: 0;
}

.customer-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--al-muted);
  background: #e2e8f0;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.customer-type-pill.vip {
  color: #0e7490;
  background: #cffafe;
}

.customer-type-pill.reseller {
  color: #2e2040;
  background: #ede9fe;
}

.customer-type-pill.tempo {
  color: #92400e;
  background: #fef3c7;
}

.customer-card-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f9;
}

.customer-card-note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.customer-stat-grid > div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(220, 200, 224, .78);
  border-radius: 8px;
  background: #ffffff;
}

.customer-stat-grid small {
  display: block;
  color: var(--al-muted);
  font-size: .76rem;
  font-weight: 750;
}

.customer-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--al-secondary);
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.customer-stat-grid .debt-active strong {
  color: var(--al-danger);
}

.customer-last-row {
  position: relative;
  z-index: 1;
  margin-top: 13px;
}

.customer-note-preview {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 10px;
  color: var(--al-muted);
  font-size: .82rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer-action-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.customer-action-row .btn {
  min-height: 38px;
  padding-inline: 13px;
}

.customer-action-row form {
  margin: 0;
}

.customers-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(37, 99, 235, .34);
  border-radius: 8px;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
}

.customers-empty-state i {
  color: var(--al-primary);
  font-size: 2.4rem;
}

.customers-empty-state h3 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-weight: 900;
}

.customer-detail-card {
  margin-top: 18px;
  padding: 18px;
}

.customer-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.customer-detail-metrics > div,
.customer-info-box {
  padding: 14px;
  border-radius: 8px;
  background: #f1f5f9;
}

.customer-detail-metrics small {
  display: block;
  color: var(--al-muted);
  font-weight: 800;
}

.customer-detail-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--al-primary);
  font-size: 1.15rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.customer-info-box {
  border-color: rgba(220, 200, 224, .72);
  box-shadow: none;
}

.customer-info-box h3 {
  margin-bottom: 12px;
  color: var(--al-ink);
  font-size: 1rem;
  font-weight: 900;
}

.customer-info-box .table {
  --bs-table-bg: transparent;
}

@media (max-width: 1199.98px) {
  .customers-candy-header,
  .customers-list-head {
    flex-direction: column;
  }

  .customers-header-actions,
  .customers-mini-stats {
    justify-content: flex-start;
  }

  .customers-metric-grid,
  .customers-card-grid,
  .customer-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customers-candy-layout {
    grid-template-columns: 1fr;
  }

  .customers-side-stack {
    position: static;
  }
}

@media (max-width: 991.98px) {
  body:has(.customers-candy-shell) .sidebar {
    display: none;
  }

  body:has(.customers-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .customers-header-actions,
  .customers-header-actions .btn,
  .customers-search-form {
    width: 100%;
  }

  .customers-metric-grid,
  .customers-card-grid,
  .customer-detail-metrics,
  .customer-stat-grid {
    grid-template-columns: 1fr;
  }

  .customers-form-card,
  .customers-import-card,
  .customers-main-area,
  .customer-detail-card {
    padding: 14px;
  }

  .customer-card-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-type-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (display-mode: standalone) {
  body {
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.inventory-candy-shell {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: calc(100vh - 116px);
  color: var(--al-ink);
}

.inventory-candy-header,
.inventory-list-head,
.inventory-filter-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.inventory-candy-header h1 {
  margin: 8px 0 6px;
  color: var(--al-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1.05;
}

.inventory-candy-header p,
.inventory-list-head p,
.inventory-card-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--al-muted);
}

.inventory-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.inventory-kicker i {
  color: var(--al-primary);
}

.inventory-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.inventory-search-form {
  min-width: min(360px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .07);
}

.inventory-search-form i {
  color: var(--al-primary);
}

.inventory-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--al-ink);
  background: transparent;
  font-weight: 700;
}

.inventory-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.inventory-metric-card {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(220, 200, 224, .76);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.inventory-metric-card.primary {
  color: #ffffff;
  background: var(--al-primary);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.inventory-metric-card.secondary {
  color: #ffffff;
  background: var(--al-secondary);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .24);
}

.inventory-metric-card.tertiary {
  color: #ffffff;
  background: var(--al-tertiary);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(6, 182, 212, .22);
}

.inventory-metric-card.soft {
  background: #dbeafe;
}

.inventory-metric-card span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 1.15rem;
}

.inventory-metric-card.soft span {
  color: var(--al-primary);
  background: #ffffff;
}

.inventory-metric-card small {
  display: block;
  margin-top: 16px;
  font-weight: 800;
  opacity: .86;
}

.inventory-metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.inventory-filter-card,
.inventory-form-card,
.inventory-category-card,
.inventory-main-area {
  padding: 18px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.inventory-filter-card {
  align-items: end;
  flex-wrap: wrap;
}

.inventory-filter-field {
  min-width: 190px;
}

.inventory-filter-field label {
  display: block;
  margin: 0 0 7px 12px;
  color: var(--al-secondary);
  font-size: .82rem;
  font-weight: 900;
}

.inventory-filter-card .form-select,
.inventory-form-card .form-control,
.inventory-form-card .form-select,
.inventory-search-form,
.inventory-filter-card .btn,
.inventory-header-actions .btn {
  border-radius: 999px;
}

.inventory-form-card textarea.form-control {
  border-radius: 8px;
}

.inventory-filter-card .form-select,
.inventory-form-card .form-control,
.inventory-form-card .form-select {
  border: 1px solid rgba(220, 200, 224, .82);
  background-color: #f1f5f9;
}

.inventory-filter-card .form-select:focus,
.inventory-form-card .form-control:focus,
.inventory-form-card .form-select:focus,
.inventory-search-form:focus-within {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.inventory-candy-layout {
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.inventory-side-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.inventory-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-card-heading > span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.inventory-card-heading h2 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.inventory-form-card .form-label {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 900;
}

.inventory-category-list {
  display: grid;
  gap: 10px;
}

.inventory-category-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}

.inventory-category-list strong,
.inventory-category-list small {
  display: block;
  min-width: 0;
}

.inventory-category-list strong {
  font-weight: 950;
}

.inventory-category-list small {
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 750;
}

.inventory-category-list b {
  color: var(--al-primary);
  font-size: .86rem;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.inventory-category-empty {
  display: block !important;
  color: var(--al-muted);
  text-align: center;
}

.inventory-mini-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.inventory-mini-icon.voucher,
.inventory-category-pill.voucher {
  color: #1d4ed8;
  background: #dbeafe;
}

.inventory-mini-icon.hardware,
.inventory-category-pill.hardware {
  color: #2e2040;
  background: #ede9fe;
}

.inventory-mini-icon.suplai,
.inventory-category-pill.suplai {
  color: #0e7490;
  background: #cffafe;
}

.inventory-mini-icon.lainnya,
.inventory-category-pill.lainnya {
  color: #64748b;
  background: #e2e8f0;
}

.inventory-list-head {
  margin-bottom: 16px;
}

.inventory-list-head h2 {
  margin: 0 0 3px;
  font-size: 1.28rem;
  font-weight: 950;
}

.inventory-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inventory-mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .84rem;
  font-weight: 850;
}

.inventory-mini-stats strong {
  margin-right: 5px;
  color: var(--al-primary);
}

.inventory-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inventory-item-card {
  position: relative;
  min-height: 366px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(220, 200, 224, .8);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}

.inventory-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
}

.inventory-item-card.out {
  border-color: rgba(229, 62, 62, .32);
}

.inventory-item-card.inactive {
  opacity: .72;
}

.inventory-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
}

.inventory-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.inventory-card-actions {
  display: inline-flex;
  gap: 5px;
}

.inventory-card-actions form {
  margin: 0;
}

.inventory-card-actions .btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
}

.inventory-visual {
  height: 118px;
  display: grid;
  place-items: center;
  margin: 16px 0 14px;
  border: 1px solid rgba(220, 200, 224, .65);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, .72), rgba(207, 250, 254, .56));
}

.inventory-visual i {
  color: var(--al-primary);
  font-size: 3.2rem;
}

.inventory-item-card.hardware .inventory-visual {
  background: linear-gradient(135deg, rgba(237, 233, 254, .88), rgba(255, 255, 255, .9));
}

.inventory-item-card.suplai .inventory-visual {
  background: linear-gradient(135deg, rgba(207, 250, 254, .85), rgba(255, 255, 255, .86));
}

.inventory-item-card.out .inventory-visual {
  background: #ffe8e8;
}

.inventory-item-title h3 {
  min-height: 46px;
  margin: 0;
  color: var(--al-ink);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.inventory-item-title p {
  margin: 6px 0 0;
  color: var(--al-muted);
  font-size: .82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.inventory-stock-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.inventory-stock-row > div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 8px;
  background: #f1f5f9;
}

.inventory-stock-row small {
  display: block;
  color: var(--al-muted);
  font-size: .75rem;
  font-weight: 850;
}

.inventory-stock-row strong {
  display: block;
  margin-top: 6px;
  color: var(--al-primary);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.inventory-stock-row strong.ready {
  color: var(--al-success);
}

.inventory-stock-row strong.low {
  color: var(--al-warning);
}

.inventory-stock-row strong.out,
.inventory-stock-row strong.inactive {
  color: var(--al-danger);
}

.inventory-note-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 750;
}

.inventory-note-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inventory-note-preview {
  display: -webkit-box;
  margin-top: 10px;
  color: var(--al-muted);
  font-size: .82rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inventory-empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgba(37, 99, 235, .34);
  border-radius: 8px;
  background: #f1f5f9;
  text-align: center;
}

.inventory-empty-state i {
  color: var(--al-primary);
  font-size: 2.6rem;
}

.inventory-empty-state h3 {
  margin: 8px 0 4px;
  font-weight: 950;
}

.inventory-empty-state p {
  color: var(--al-muted);
}

@media (max-width: 1399.98px) {
  .inventory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .inventory-candy-header,
  .inventory-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-header-actions,
  .inventory-mini-stats {
    justify-content: flex-start;
  }

  .inventory-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-candy-layout {
    grid-template-columns: 1fr;
  }

  .inventory-side-stack {
    position: static;
  }
}

@media (max-width: 991.98px) {
  body:has(.inventory-candy-shell) .sidebar {
    display: none;
  }

  body:has(.inventory-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .inventory-header-actions,
  .inventory-header-actions .btn,
  .inventory-search-form,
  .inventory-filter-card .btn {
    width: 100%;
  }

  .inventory-candy-shell {
    gap: 16px;
  }

  .inventory-metric-grid,
  .inventory-card-grid,
  .inventory-stock-row,
  .inventory-category-list > div {
    grid-template-columns: 1fr;
  }

  .inventory-filter-field {
    width: 100%;
  }

  .inventory-form-card,
  .inventory-category-card,
  .inventory-main-area,
  .inventory-filter-card {
    padding: 14px;
  }

  .inventory-item-card {
    min-height: 0;
  }
}

.analytics-candy-shell {
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 116px);
  color: var(--al-ink);
}

.analytics-candy-header,
.analytics-range-row,
.analytics-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.analytics-candy-header h1 {
  margin: 8px 0 6px;
  color: var(--al-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1.05;
}

.analytics-candy-header p,
.analytics-card-head p {
  margin: 0;
  color: var(--al-muted);
}

.analytics-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.analytics-kicker i {
  color: var(--al-primary);
}

.analytics-header-actions,
.analytics-range-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.analytics-header-actions .btn,
.analytics-filter-card .btn {
  min-height: 42px;
  border-radius: 999px;
}

.analytics-period-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  color: var(--al-muted);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .06);
}

.analytics-period-pill i {
  color: var(--al-primary);
}

.analytics-range-tabs {
  padding: 6px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background: #f1f5f9;
}

.analytics-range-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--al-muted);
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.analytics-range-tabs a:hover {
  color: var(--al-primary);
  transform: translateY(-1px);
}

.analytics-range-tabs a.active {
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.analytics-filter-card,
.analytics-chart-card,
.analytics-list-card,
.analytics-summary-card,
.analytics-micro-grid article {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.analytics-filter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.analytics-filter-field {
  min-width: 170px;
}

.analytics-filter-field label {
  display: block;
  margin: 0 0 7px 12px;
  color: var(--al-secondary);
  font-size: .82rem;
  font-weight: 900;
}

.analytics-filter-card .form-control,
.analytics-filter-card .form-select {
  min-height: 44px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background-color: #f1f5f9;
}

.analytics-filter-card .form-control:focus,
.analytics-filter-card .form-select:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.analytics-summary-card {
  position: relative;
  min-height: 172px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
}

.analytics-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .72;
  pointer-events: none;
}

.analytics-summary-card.primary::before {
  background: linear-gradient(135deg, rgba(219, 234, 254, .9), transparent 62%);
}

.analytics-summary-card.secondary::before {
  background: linear-gradient(135deg, rgba(237, 233, 254, .9), transparent 62%);
}

.analytics-summary-card.tertiary::before {
  background: linear-gradient(135deg, rgba(207, 250, 254, .95), transparent 62%);
}

.analytics-summary-card.soft::before {
  background: linear-gradient(135deg, rgba(248, 238, 248, .96), transparent 62%);
}

.analytics-summary-card > * {
  position: relative;
  z-index: 1;
}

.analytics-summary-card small {
  display: block;
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.analytics-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--al-ink);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.analytics-summary-card > span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.analytics-summary-card.secondary > span {
  background: var(--al-secondary);
}

.analytics-summary-card.tertiary > span {
  background: var(--al-tertiary);
}

.analytics-summary-card.soft > span {
  color: var(--al-primary);
  background: #ffffff;
}

.analytics-summary-card p {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  color: var(--al-muted);
  font-size: .86rem;
  font-weight: 800;
}

.analytics-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  margin-right: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
}

.analytics-change.positive {
  color: #14532d;
  background: #dcfce7;
}

.analytics-change.negative {
  color: #7f1d1d;
  background: #fee2e2;
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}

.analytics-chart-card,
.analytics-list-card {
  padding: 20px;
}

.analytics-card-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.analytics-card-head h2 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.analytics-card-head a {
  color: var(--al-tertiary);
  font-weight: 900;
  text-decoration: none;
}

.analytics-soft-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
}

.analytics-chart-box {
  height: 310px;
  min-height: 310px;
}

.analytics-breakdown-list {
  display: grid;
  gap: 15px;
}

.analytics-breakdown-item > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.analytics-breakdown-item span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--bar-color);
}

.analytics-breakdown-item strong {
  font-size: .92rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.analytics-breakdown-item b {
  color: var(--al-muted);
  font-size: .84rem;
}

.analytics-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.analytics-progress i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color);
}

.analytics-breakdown-item small {
  display: block;
  margin-top: 6px;
  color: var(--al-muted);
  font-weight: 750;
}

.analytics-micro-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.analytics-micro-grid article {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background: #f1f5f9;
}

.analytics-micro-grid small,
.analytics-balance-grid small {
  display: block;
  color: var(--al-muted);
  font-size: .76rem;
  font-weight: 900;
}

.analytics-micro-grid strong,
.analytics-balance-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--al-primary);
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.analytics-micro-grid span {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 800;
}

.analytics-list-grid,
.analytics-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-rank-list,
.analytics-cashier-list,
.analytics-recent-list {
  display: grid;
  gap: 10px;
}

.analytics-rank-list > div,
.analytics-cashier-list > div,
.analytics-recent-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px;
  border: 1px solid rgba(220, 200, 224, .66);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-rank-list > div > span,
.analytics-cashier-list > div > span,
.analytics-recent-list > div > span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  font-weight: 950;
}

.analytics-rank-list > div:nth-child(2) > span,
.analytics-cashier-list > div:nth-child(2) > span {
  background: var(--al-secondary);
}

.analytics-rank-list > div:nth-child(3) > span,
.analytics-cashier-list > div:nth-child(3) > span {
  background: var(--al-tertiary);
}

.analytics-rank-list strong,
.analytics-cashier-list strong,
.analytics-recent-list strong {
  display: block;
  color: var(--al-ink);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.analytics-rank-list small,
.analytics-cashier-list small,
.analytics-recent-list small {
  display: block;
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 750;
}

.analytics-rank-list b,
.analytics-recent-list b {
  color: var(--al-primary);
  font-size: .9rem;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.analytics-cashier-list b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .76rem;
  white-space: nowrap;
}

.analytics-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-balance-grid > div {
  min-height: 88px;
  padding: 13px;
  border-radius: 8px;
  background: #f1f5f9;
}

.analytics-empty-mini {
  padding: 16px;
  border: 1px dashed rgba(37, 99, 235, .34);
  border-radius: 8px;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1399.98px) {
  .analytics-micro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .analytics-candy-header,
  .analytics-range-row,
  .analytics-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-header-actions,
  .analytics-range-tabs {
    justify-content: flex-start;
  }

  .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-chart-grid,
  .analytics-list-grid,
  .analytics-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body:has(.analytics-candy-shell) .sidebar {
    display: none;
  }

  body:has(.analytics-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .analytics-header-actions,
  .analytics-header-actions .btn,
  .analytics-range-tabs,
  .analytics-range-tabs a,
  .analytics-filter-card .btn,
  .analytics-filter-field,
  .analytics-period-pill {
    width: 100%;
  }

  .analytics-summary-grid,
  .analytics-micro-grid,
  .analytics-balance-grid {
    grid-template-columns: 1fr;
  }

  .analytics-filter-card,
  .analytics-chart-card,
  .analytics-list-card {
    padding: 14px;
  }

  .analytics-chart-box {
    height: 260px;
    min-height: 260px;
  }

  .analytics-rank-list > div,
  .analytics-cashier-list > div,
  .analytics-recent-list > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .analytics-rank-list b,
  .analytics-cashier-list b,
  .analytics-recent-list b {
    grid-column: 1 / -1;
    text-align: left;
    width: fit-content;
  }
}

.users-candy-shell {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: calc(100vh - 96px);
  min-width: 0;
  color: var(--al-ink);
}

.users-candy-header,
.users-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.users-candy-header h1 {
  margin: 7px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.12;
}

.users-candy-header p,
.users-list-head p,
.users-card-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--al-muted);
  font-size: .9rem;
}

.users-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.users-kicker i {
  color: var(--al-primary);
}

.users-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.users-header-actions .btn,
.users-filter-card .btn {
  min-height: 38px;
  border-radius: 999px;
}

.users-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.users-stat-card {
  height: 86px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, rgba(220, 200, 224, .82));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--al-primary) 5%, transparent), transparent 62%),
    #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.users-stat-card.primary {
  background: #ffffff;
}

.users-stat-card.secondary {
  background: #f1f5f9;
}

.users-stat-card.tertiary {
  background: #ffffff;
}

.users-stat-card.soft {
  background: #dbeafe;
}

.users-stat-card span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
  font-size: 1rem;
}

.users-stat-card > div {
  min-width: 0;
}

.users-stat-card.secondary span {
  color: var(--al-secondary);
  background: #ede9fe;
}

.users-stat-card.tertiary span {
  color: var(--al-tertiary);
  background: #cffafe;
}

.users-stat-card.soft span {
  color: #2e2040;
  background: #ffffff;
}

.users-stat-card small {
  display: block;
  color: var(--al-muted);
  font-size: .7rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-stat-card strong {
  display: block;
  margin-top: 3px;
  color: var(--al-ink);
  font-size: clamp(.98rem, 1.35vw, 1.2rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.users-stat-card em {
  color: color-mix(in srgb, var(--al-muted) 88%, var(--al-primary));
  display: block;
  font-size: .68rem;
  font-style: normal;
  font-weight: 750;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-filter-card,
.users-form-card,
.users-reset-card,
.users-table-card,
.users-activity-card,
.users-main-area {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.users-filter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.users-search-field {
  min-width: min(300px, 100%);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  padding: 0 16px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background: #f1f5f9;
}

.users-search-field i {
  color: var(--al-primary);
}

.users-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--al-ink);
  background: transparent;
  font-weight: 700;
}

.users-filter-field {
  flex: 0 1 155px;
  min-width: 145px;
}

.users-filter-field .form-select,
.users-form-card .form-control,
.users-form-card .form-select,
.users-reset-card .form-control {
  min-height: 40px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background-color: #f1f5f9;
}

.users-filter-field .form-select:focus,
.users-form-card .form-control:focus,
.users-form-card .form-select:focus,
.users-reset-card .form-control:focus,
.users-search-field:focus-within {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.users-candy-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.users-side-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.users-form-card,
.users-reset-card,
.users-main-area,
.users-activity-card {
  padding: 12px;
  min-width: 0;
}

.users-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.users-card-heading > span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: none;
}

.users-card-heading h2,
.users-list-head h2 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1rem;
  font-weight: 950;
}

.users-form-card .form-label,
.users-reset-card .form-label {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 900;
}

.users-limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .88rem;
  font-weight: 850;
}

.users-list-head {
  margin-bottom: 10px;
}

.users-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.users-mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .78rem;
  font-weight: 850;
}

.users-mini-stats strong {
  margin-right: 5px;
  color: var(--al-primary);
}

.users-table-card {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.users-table-legacy {
  display: none;
}

.users-staff-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.users-staff-card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--al-primary) 7%, transparent), rgba(255, 255, 255, .58)),
    #ffffff;
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, rgba(220, 200, 224, .72));
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  position: relative;
  overflow: hidden;
}

.users-staff-card::after {
  background: color-mix(in srgb, var(--al-primary) 22%, transparent);
  border-radius: 999px;
  content: "";
  height: 96px;
  opacity: .2;
  position: absolute;
  right: -44px;
  top: -50px;
  width: 96px;
}

.users-staff-card > * {
  position: relative;
  z-index: 1;
}

.users-staff-head {
  align-items: flex-start;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.users-staff-head h3 {
  color: var(--al-ink);
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.15;
  margin: 0 0 3px;
}

.users-staff-head p {
  color: var(--al-muted);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.users-staff-meta {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.users-staff-meta > div {
  background: color-mix(in srgb, var(--al-primary) 5%, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--al-primary) 10%, rgba(220, 200, 224, .56));
  border-radius: 10px;
  min-width: 0;
  padding: 8px;
}

.users-staff-meta small {
  color: var(--al-muted);
  display: block;
  font-size: .66rem;
  font-weight: 900;
}

.users-staff-meta strong {
  color: var(--al-ink);
  display: block;
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.2;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-staff-footer {
  align-items: center;
  border-top: 1px solid rgba(220, 200, 224, .48);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 8px;
}

.users-table-card .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.users-candy-table {
  --bs-table-bg: transparent;
  min-width: 820px;
}

.users-candy-table thead th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(220, 200, 224, .72);
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.users-candy-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(220, 200, 224, .48);
  vertical-align: middle;
}

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

.users-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.users-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  font-weight: 950;
  box-shadow: none;
  font-size: .82rem;
}

.users-avatar.admin {
  background: var(--al-secondary);
}

.users-avatar.cashier {
  background: var(--al-primary);
}

.users-avatar.viewer {
  background: var(--al-tertiary);
}

.users-avatar.owner {
  color: #2e2040;
  background: #dbeafe;
}

.users-identity strong,
.users-identity small {
  display: block;
}

.users-identity strong {
  color: var(--al-ink);
  font-weight: 950;
}

.users-identity small {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.users-role-pill,
.users-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
  white-space: nowrap;
}

.users-role-pill.owner,
.users-role-pill.cashier {
  color: #1d4ed8;
  background: #dbeafe;
}

.users-role-pill.admin {
  color: #2e2040;
  background: #ede9fe;
}

.users-role-pill.viewer {
  color: #0e7490;
  background: #cffafe;
}

.users-status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.users-status-pill.active {
  color: #14532d;
  background: #dcfce7;
}

.users-status-pill.active i {
  background: #16a34a;
}

.users-status-pill.inactive {
  color: #64748b;
  background: #e2e8f0;
}

.users-status-pill.inactive i {
  background: #94a3b8;
}

.users-status-pill.locked {
  color: #92400e;
  background: #fef3c7;
}

.users-status-pill.locked i {
  background: #f59e0b;
}

.users-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 170px;
}

.users-staff-card .users-action-row {
  min-width: 0;
}

.users-action-row form {
  margin: 0;
}

.users-action-row .btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(220, 200, 224, .72);
}

.users-owner-note {
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 800;
}

.users-empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(37, 99, 235, .34);
  border-radius: 8px;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
}

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

.users-empty-state i {
  color: var(--al-primary);
  font-size: 2.3rem;
}

.users-empty-state h3 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-weight: 950;
}

.users-empty-state p {
  margin: 0;
}

.users-activity-list {
  display: grid;
  gap: 10px;
}

.users-activity-list > div:not(.users-empty-state) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 8px;
  background: #f1f5f9;
}

.users-activity-list > div > span {
  color: var(--al-primary);
  font-size: 1.4rem;
}

.users-activity-list strong,
.users-activity-list small {
  display: block;
}

.users-activity-list strong {
  color: var(--al-ink);
  font-weight: 950;
}

.users-activity-list small {
  color: var(--al-muted);
  font-size: .8rem;
}

@media (max-width: 1199.98px) {
  .users-candy-header,
  .users-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-header-actions,
  .users-mini-stats {
    justify-content: flex-start;
  }

  .users-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-candy-layout {
    grid-template-columns: 1fr;
  }

  .users-side-stack {
    position: static;
  }
}

body[data-color-mode="dark"] .users-kicker,
body[data-color-mode="dark"] .users-stat-card,
body[data-color-mode="dark"] .users-form-card,
body[data-color-mode="dark"] .users-reset-card,
body[data-color-mode="dark"] .users-main-area,
body[data-color-mode="dark"] .users-activity-card,
body[data-color-mode="dark"] .users-staff-card {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .users-stat-card.secondary,
body[data-color-mode="dark"] .users-stat-card.soft,
body[data-color-mode="dark"] .users-mini-stats span,
body[data-color-mode="dark"] .users-staff-meta > div {
  background: #0b1220;
  border-color: rgba(148, 163, 184, .2);
}

body[data-color-mode="dark"] .users-staff-card::after {
  opacity: .14;
}

@media (min-width: 1200px) {
  .users-staff-grid {
    grid-template-columns: 1fr;
  }

  .users-staff-card {
    align-items: center;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.2fr) auto;
  }

  .users-staff-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .users-staff-footer {
    border-top: 0;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }

  .users-staff-card .users-action-row {
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  body:has(.users-candy-shell) .sidebar {
    display: none;
  }

  body:has(.users-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .users-header-actions,
  .users-header-actions .btn,
  .users-search-field,
  .users-filter-field,
  .users-filter-card .btn {
    width: 100%;
  }

  .users-stat-grid {
    grid-template-columns: 1fr;
  }

  .users-staff-grid,
  .users-staff-meta {
    grid-template-columns: 1fr;
  }

  .users-staff-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-staff-card .users-action-row {
    justify-content: flex-start;
    width: 100%;
  }

  .users-form-card,
  .users-reset-card,
  .users-main-area,
  .users-activity-card,
  .users-filter-card {
    padding: 14px;
  }
}

@media (min-width: 1200px) {
  .users-staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .users-staff-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .users-staff-footer {
    align-items: center;
    border-top: 1px solid rgba(220, 200, 224, .48);
    flex-direction: row;
    justify-content: space-between;
    padding-top: 8px;
  }

  .users-staff-card .users-action-row {
    justify-content: flex-end;
  }
}

.admin-fee-candy-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: calc(100vh - 96px);
  color: var(--al-ink);
}

.admin-fee-hero,
.category-price-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-fee-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--al-tertiary);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
}

.admin-fee-back:hover {
  color: var(--al-primary);
}

.admin-fee-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-fee-kicker i {
  color: var(--al-primary);
}

.admin-fee-hero h1 {
  margin: 7px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.12;
}

.category-price-hero h1 {
  margin: 7px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
}

.admin-fee-hero p,
.category-price-hero p,
.admin-fee-card-heading p,
.admin-fee-default-card p,
.admin-fee-list-head p {
  margin: 0;
  max-width: 760px;
  color: var(--al-muted);
  font-size: .9rem;
}

.admin-fee-hero-actions,
.category-price-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.admin-fee-pill-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
}

.admin-fee-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-fee-stat-card {
  height: 86px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, rgba(220, 200, 224, .82));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--al-primary) 5%, transparent), transparent 62%),
    #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.admin-fee-stat-card.secondary {
  background: #f1f5f9;
}

.admin-fee-stat-card.soft {
  background: #dbeafe;
}

.admin-fee-stat-card span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
  font-size: 1rem;
}

.admin-fee-stat-card > div {
  min-width: 0;
}

.admin-fee-stat-card.secondary span {
  color: var(--al-secondary);
  background: #ede9fe;
}

.admin-fee-stat-card.tertiary span {
  color: var(--al-tertiary);
  background: #cffafe;
}

.admin-fee-stat-card.soft span {
  color: #2e2040;
  background: #ffffff;
}

.admin-fee-stat-card small {
  display: block;
  color: var(--al-muted);
  font-size: .7rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-fee-stat-card strong {
  display: block;
  margin-top: 3px;
  color: var(--al-ink);
  font-size: clamp(.98rem, 1.35vw, 1.2rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.admin-fee-stat-card em {
  color: color-mix(in srgb, var(--al-muted) 88%, var(--al-primary));
  display: block;
  font-size: .68rem;
  font-style: normal;
  font-weight: 750;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-fee-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.admin-fee-side-stack,
.admin-fee-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-fee-side-stack {
  position: sticky;
  top: 18px;
}

.admin-fee-card,
.admin-fee-default-card,
.admin-fee-type-card,
.admin-fee-empty-state {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.admin-fee-card,
.admin-fee-default-card,
.admin-fee-type-card {
  padding: 18px;
  min-width: 0;
}

.admin-fee-card-heading,
.admin-fee-type-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-fee-card-heading > span,
.admin-fee-type-head > span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.admin-fee-card-heading h2,
.admin-fee-default-card h2,
.admin-fee-list-head h2,
.admin-fee-type-head h3 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.admin-fee-type-head p {
  margin: 0;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 800;
}

.admin-fee-form-card .form-label,
.admin-fee-preference-card .form-label {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 900;
}

.admin-fee-form-card .form-control,
.admin-fee-form-card .form-select {
  min-height: 44px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background-color: #f1f5f9;
  font-weight: 750;
}

.admin-fee-form-card .form-control:focus,
.admin-fee-form-card .form-select:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.admin-fee-rupiah-field {
  position: relative;
}

.admin-fee-rupiah-field span {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--al-muted);
  font-size: .9rem;
  font-weight: 950;
}

.admin-fee-rupiah-field .form-control {
  padding-left: 46px;
  text-align: right;
}

.admin-fee-help {
  margin: 8px 10px 4px;
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 750;
}

.admin-fee-switch-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #f1f5f9;
  cursor: pointer;
}

.admin-fee-switch-row.compact {
  min-height: 64px;
}

.admin-fee-switch-row strong,
.admin-fee-radio-card strong {
  display: block;
  color: var(--al-ink);
  font-weight: 950;
}

.admin-fee-switch-row small,
.admin-fee-radio-card small {
  display: block;
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 750;
}

.admin-fee-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-fee-switch-ui {
  position: relative;
  width: 54px;
  height: 32px;
  display: inline-block;
  border: 1px solid rgba(220, 200, 224, .94);
  border-radius: 999px;
  background: #e2e8f0;
  transition: background .2s ease, border-color .2s ease;
}

.admin-fee-switch-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(46, 26, 40, .14);
  transition: transform .2s ease;
}

.admin-fee-switch-input:checked + .admin-fee-switch-ui {
  border-color: var(--al-primary);
  background: var(--al-primary);
}

.admin-fee-switch-input:checked + .admin-fee-switch-ui::after {
  transform: translateX(22px);
}

.admin-fee-mode-box {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.admin-fee-mode-title {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 950;
}

.admin-fee-radio-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.admin-fee-radio-card input {
  position: absolute;
  opacity: 0;
}

.admin-fee-radio-card > span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
}

.admin-fee-radio-card:has(input:checked) {
  border-color: var(--al-primary);
  background: #fff8fc;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .1);
}

.admin-fee-save-button,
.admin-fee-cancel-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 950;
}

.admin-fee-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.admin-fee-default-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  background: #f1f5f9;
}

.admin-fee-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-fee-example-grid span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 8px;
  color: var(--al-muted);
  background: #ffffff;
  font-size: .86rem;
  font-weight: 850;
}

.admin-fee-example-grid strong {
  color: var(--al-primary);
  font-size: 1rem;
}

.admin-fee-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.admin-fee-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-fee-mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .84rem;
  font-weight: 850;
}

.admin-fee-mini-stats strong {
  margin-right: 5px;
  color: var(--al-primary);
}

.admin-fee-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.admin-fee-type-card {
  position: relative;
  overflow: hidden;
}

.admin-fee-type-card::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -56px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: #dbeafe;
  opacity: .42;
}

.admin-fee-type-card.secondary::after {
  background: #ede9fe;
}

.admin-fee-type-card.tertiary::after {
  background: #cffafe;
}

.admin-fee-type-card > * {
  position: relative;
  z-index: 1;
}

.admin-fee-type-card.secondary .admin-fee-type-head > span {
  background: var(--al-secondary);
}

.admin-fee-type-card.tertiary .admin-fee-type-head > span {
  background: var(--al-tertiary);
}

.admin-fee-rule-list {
  display: grid;
  gap: 10px;
}

.admin-fee-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 8px;
  background: #ffffff;
}

.admin-fee-rule-row strong,
.admin-fee-rule-row small {
  display: block;
}

.admin-fee-rule-row strong {
  color: var(--al-ink);
  font-weight: 950;
}

.admin-fee-rule-row small {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 750;
}

.admin-fee-rule-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-fee-value-pill,
.admin-fee-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-fee-value-pill {
  color: #1d4ed8;
  background: #dbeafe;
}

.admin-fee-status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.admin-fee-status-pill.active {
  color: #14532d;
  background: #dcfce7;
}

.admin-fee-status-pill.active i {
  background: #16a34a;
}

.admin-fee-status-pill.inactive {
  color: #64748b;
  background: #e2e8f0;
}

.admin-fee-status-pill.inactive i {
  background: #94a3b8;
}

.admin-fee-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.admin-fee-action-row form {
  margin: 0;
}

.admin-fee-action-row .btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(220, 200, 224, .72);
}

.admin-fee-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-style: dashed;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
}

.admin-fee-empty-state i {
  color: var(--al-primary);
  font-size: 2.6rem;
}

.admin-fee-empty-state h3 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-weight: 950;
}

.admin-fee-empty-state p {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .admin-fee-hero,
  .admin-fee-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-fee-hero-actions,
  .admin-fee-mini-stats {
    justify-content: flex-start;
  }

  .admin-fee-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-fee-layout {
    grid-template-columns: 1fr;
  }

  .admin-fee-side-stack {
    position: static;
  }
}

@media (max-width: 991.98px) {
  body:has(.admin-fee-candy-shell) .sidebar {
    display: none;
  }

  body:has(.admin-fee-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .admin-fee-default-card,
  .admin-fee-rule-grid {
    grid-template-columns: 1fr;
  }

  .admin-fee-rule-row {
    grid-template-columns: 1fr;
  }

  .admin-fee-rule-meta,
  .admin-fee-action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .admin-fee-hero-actions,
  .admin-fee-hero-actions form,
  .admin-fee-pill-button,
  .admin-fee-example-grid {
    width: 100%;
  }

  .admin-fee-stat-grid,
  .admin-fee-example-grid {
    grid-template-columns: 1fr;
  }

  .admin-fee-card,
  .admin-fee-default-card,
  .admin-fee-type-card {
    padding: 14px;
  }

  .admin-fee-switch-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.daily-report-candy-shell {
  display: grid;
  gap: 22px;
  min-width: 0;
  min-height: calc(100vh - 116px);
  color: var(--al-ink);
}

.daily-report-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.daily-report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.daily-report-kicker i {
  color: var(--al-primary);
}

.daily-report-hero h1 {
  margin: 10px 0 8px;
  color: var(--al-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1.05;
}

.daily-report-hero p,
.daily-report-card-head p {
  margin: 0;
  max-width: 760px;
  color: var(--al-muted);
}

.daily-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.daily-report-pill-button,
.daily-report-filter-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
}

.daily-report-filter-card,
.daily-report-breakdown-card,
.daily-report-cash-card,
.daily-report-transaction-card,
.daily-report-empty-state {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.daily-report-filter-card {
  padding: 16px;
}

.daily-report-filter-card form {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.daily-report-date-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background: #f1f5f9;
}

.daily-report-date-field i {
  color: var(--al-primary);
}

.daily-report-date-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--al-ink);
  background: transparent;
  font-weight: 900;
  outline: 0;
}

.daily-report-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.daily-report-filter-field label {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .76rem;
  font-weight: 950;
}

.daily-report-filter-field .form-select {
  min-height: 44px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--al-ink);
  font-weight: 750;
}

.daily-report-filter-field .form-select:focus,
.daily-report-date-field:focus-within {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.daily-report-filter-button {
  border: 0;
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.daily-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.daily-report-metric-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.daily-report-metric-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: #dbeafe;
  opacity: .48;
}

.daily-report-metric-card.tertiary::after {
  background: #cffafe;
}

.daily-report-metric-card.danger::after {
  background: #ffe8e8;
}

.daily-report-metric-card.profit {
  color: #ffffff;
  border-color: transparent;
  background: var(--al-secondary);
  box-shadow: 0 12px 28px rgba(124, 58, 237, .23);
}

.daily-report-metric-card.profit::after {
  background: rgba(255, 255, 255, .24);
}

.daily-report-metric-card > * {
  position: relative;
  z-index: 1;
}

.daily-report-metric-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
  font-size: 1.28rem;
}

.daily-report-metric-card.tertiary .daily-report-metric-icon {
  color: var(--al-tertiary);
  background: #cffafe;
}

.daily-report-metric-card.danger .daily-report-metric-icon {
  color: #9b1c1c;
  background: #ffe8e8;
}

.daily-report-metric-card.profit .daily-report-metric-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
}

.daily-report-metric-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .72rem;
  font-weight: 950;
}

.daily-report-metric-card.profit span {
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
}

.daily-report-metric-card small {
  display: block;
  margin-top: auto;
  color: var(--al-muted);
  font-size: .82rem;
  font-weight: 900;
}

.daily-report-metric-card.profit small {
  color: #ede9fe;
}

.daily-report-metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--al-ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.daily-report-metric-card.profit strong {
  color: #ffffff;
}

.daily-report-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.daily-report-mini-grid > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, .045);
}

.daily-report-mini-grid span {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 900;
}

.daily-report-mini-grid strong {
  color: var(--al-ink);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.daily-report-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

.daily-report-breakdown-card,
.daily-report-cash-card,
.daily-report-transaction-card {
  padding: 18px;
  min-width: 0;
}

.daily-report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.daily-report-card-head h2 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.daily-report-card-head a {
  color: var(--al-primary);
  text-decoration: none;
  font-weight: 950;
}

.daily-report-breakdown-list {
  display: grid;
  gap: 15px;
}

.daily-report-breakdown-row {
  display: grid;
  gap: 9px;
}

.daily-report-breakdown-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.daily-report-breakdown-meta > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.daily-report-breakdown-meta span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
}

.daily-report-breakdown-row.tertiary .daily-report-breakdown-meta span {
  color: var(--al-tertiary);
  background: #cffafe;
}

.daily-report-breakdown-row.secondary .daily-report-breakdown-meta span {
  color: var(--al-secondary);
  background: #ede9fe;
}

.daily-report-breakdown-meta strong {
  color: var(--al-ink);
  font-weight: 950;
}

.daily-report-breakdown-meta small {
  display: block;
  color: var(--al-muted);
  font-size: .75rem;
  font-weight: 800;
  text-align: right;
}

.daily-report-progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #cbd5e1;
}

.daily-report-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--al-primary);
}

.daily-report-breakdown-row.tertiary .daily-report-progress i {
  background: var(--al-tertiary);
}

.daily-report-breakdown-row.secondary .daily-report-progress i {
  background: var(--al-secondary);
}

.daily-report-breakdown-row p {
  margin: 0;
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 800;
}

.daily-report-cash-card {
  position: relative;
  overflow: hidden;
  color: #0f172a;
  background: #f080c0;
}

.daily-report-cash-card::before,
.daily-report-cash-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.daily-report-cash-card::before {
  right: -72px;
  top: -72px;
  width: 210px;
  height: 210px;
  background: rgba(219, 234, 254, .55);
}

.daily-report-cash-card::after {
  left: -70px;
  bottom: -78px;
  width: 180px;
  height: 180px;
  background: rgba(240, 160, 204, .46);
}

.daily-report-cash-card > * {
  position: relative;
  z-index: 1;
}

.daily-report-cash-list {
  display: grid;
  gap: 10px;
}

.daily-report-cash-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(61, 0, 40, .16);
}

.daily-report-cash-list span,
.daily-report-ending-balance span,
.daily-report-ending-balance small {
  color: rgba(46, 26, 40, .75);
  font-size: .82rem;
  font-weight: 850;
}

.daily-report-cash-list strong {
  color: #0f172a;
  font-weight: 950;
  text-align: right;
}

.daily-report-cash-list strong.income {
  color: #0e7490;
}

.daily-report-cash-list strong.expense {
  color: #9b1c1c;
}

.daily-report-ending-balance {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(254, 247, 255, .55);
  backdrop-filter: blur(8px);
}

.daily-report-ending-balance strong {
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.daily-report-transaction-list {
  display: grid;
  gap: 10px;
}

.daily-report-transaction-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: #f8fafc;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.daily-report-transaction-row:hover {
  border-color: rgba(220, 200, 224, .88);
  color: inherit;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.daily-report-transaction-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
}

.daily-report-transaction-row strong,
.daily-report-transaction-row small {
  display: block;
}

.daily-report-transaction-row strong {
  color: var(--al-ink);
  font-weight: 950;
}

.daily-report-transaction-row small {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 750;
}

.daily-report-transaction-row > div:last-child {
  text-align: right;
}

.daily-report-status {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 4px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #14532d !important;
  background: #dcfce7;
  font-size: .68rem !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

.daily-report-status.pending {
  color: #92400e !important;
  background: #fef3c7;
}

.daily-report-status.failed,
.daily-report-status.cancelled {
  color: #9b1c1c !important;
  background: #ffe8e8;
}

.daily-report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.daily-report-empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 26px;
  border-style: dashed;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
}

.daily-report-empty-state.compact {
  min-height: 150px;
}

.daily-report-empty-state i {
  color: var(--al-primary);
  font-size: 2.4rem;
}

.daily-report-empty-state h3 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-weight: 950;
}

.daily-report-empty-state p {
  margin: 0;
}

@media (max-width: 1299.98px) {
  .daily-report-filter-card form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .daily-report-hero,
  .daily-report-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-report-actions {
    justify-content: flex-start;
  }

  .daily-report-metric-grid,
  .daily-report-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-report-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body:has(.daily-report-candy-shell) .sidebar {
    display: none;
  }

  body:has(.daily-report-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .daily-report-filter-card form,
  .daily-report-metric-grid,
  .daily-report-mini-grid {
    grid-template-columns: 1fr;
  }

  .daily-report-actions,
  .daily-report-actions .btn,
  .daily-report-filter-button {
    width: 100%;
  }

  .daily-report-transaction-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .daily-report-transaction-row > div:last-child {
    grid-column: 1 / -1;
    padding-left: 54px;
    text-align: left;
  }

  .daily-report-status {
    margin-left: 0;
  }
}

@media print {
  body:has(.daily-report-candy-shell) .sidebar,
  body:has(.daily-report-candy-shell) .content > .bg-white,
  body:has(.daily-report-candy-shell) .daily-report-actions,
  body:has(.daily-report-candy-shell) .daily-report-filter-card {
    display: none !important;
  }

  body:has(.daily-report-candy-shell) .content {
    margin-left: 0 !important;
  }

  .daily-report-candy-shell {
    gap: 14px;
  }

  .daily-report-metric-grid,
  .daily-report-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-report-main-grid {
    grid-template-columns: 1fr;
  }
}

.branches-candy-shell {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: calc(100vh - 96px);
  color: var(--al-ink);
}

.branches-candy-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.branches-candy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.branches-candy-kicker i {
  color: var(--al-primary);
}

.branches-candy-hero h1 {
  margin: 7px 0 4px;
  color: var(--al-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.12;
}

.branches-candy-hero p,
.branches-card-heading p,
.branches-list-head p {
  margin: 0;
  max-width: 760px;
  color: var(--al-muted);
  font-size: .9rem;
}

.branches-add-button,
.branches-save-button,
.branches-cancel-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  font-weight: 950;
}

.branches-add-button,
.branches-save-button {
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.branches-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.branches-stat-card {
  height: 86px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, rgba(220, 200, 224, .82));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--al-primary) 5%, transparent), transparent 62%),
    #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.branches-stat-card.secondary {
  background: #f1f5f9;
}

.branches-stat-card.soft {
  background: #dbeafe;
}

.branches-stat-card > span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--al-primary);
  background: #dbeafe;
  font-size: 1rem;
}

.branches-stat-card > div {
  min-width: 0;
}

.branches-stat-card.secondary > span {
  color: var(--al-secondary);
  background: #ede9fe;
}

.branches-stat-card.tertiary > span {
  color: var(--al-tertiary);
  background: #cffafe;
}

.branches-stat-card.soft > span {
  color: #2e2040;
  background: #ffffff;
}

.branches-stat-card small {
  display: block;
  color: var(--al-muted);
  font-size: .7rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branches-stat-card strong {
  display: block;
  margin-top: 3px;
  color: var(--al-ink);
  font-size: clamp(.98rem, 1.35vw, 1.2rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.branches-stat-card em {
  color: color-mix(in srgb, var(--al-muted) 88%, var(--al-primary));
  display: block;
  font-size: .68rem;
  font-style: normal;
  font-weight: 750;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branches-candy-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.branches-candy-layout.viewer {
  grid-template-columns: 1fr;
}

.branches-form-stack,
.branches-main-area {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.branches-form-stack {
  position: sticky;
  top: 18px;
}

.branches-form-card,
.branches-balance-summary,
.branches-card,
.branches-empty-state {
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, .07);
}

.branches-form-card,
.branches-card {
  padding: 12px;
  min-width: 0;
}

.branches-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.branches-card-heading > span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.branches-card-heading h2,
.branches-list-head h2 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.branches-form-card .form-label {
  margin-left: 10px;
  color: var(--al-muted);
  font-size: .84rem;
  font-weight: 900;
}

.branches-form-card .form-control,
.branches-form-card .form-select {
  min-height: 44px;
  border: 1px solid rgba(220, 200, 224, .82);
  border-radius: 999px;
  background-color: #f1f5f9;
  font-weight: 750;
}

.branches-form-card textarea.form-control {
  border-radius: 8px;
}

.branches-form-card .form-control:focus,
.branches-form-card .form-select:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16);
}

.branches-limit-pill {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  color: #2e2040;
  background: #ede9fe;
  font-size: .86rem;
  font-weight: 850;
}

.branches-limit-pill.warning {
  color: #9b1c1c;
  background: #ffe8e8;
}

.branches-balance-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f1f5f9;
}

.branches-balance-summary-inline {
  align-items: center;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  gap: 10px;
  height: 64px;
  padding: 10px 12px;
}

.branches-balance-summary div {
  display: grid;
  gap: 2px;
}

.branches-balance-summary span {
  color: var(--al-muted);
  font-size: .8rem;
  font-weight: 900;
}

.branches-balance-summary strong {
  color: var(--al-ink);
  font-size: .98rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.branches-balance-summary a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--al-primary);
  text-decoration: none;
  font-weight: 950;
  justify-self: end;
  white-space: nowrap;
}

.branches-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.branches-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.branches-mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--al-muted);
  background: #f1f5f9;
  font-size: .78rem;
  font-weight: 850;
}

.branches-mini-stats strong {
  margin-right: 5px;
  color: var(--al-primary);
}

.branches-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  min-width: 0;
}

.branches-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.branches-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .13);
}

.branches-card.inactive {
  opacity: .82;
}

.branches-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -56px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: #dbeafe;
  opacity: .42;
}

.branches-card.secondary::after {
  background: #ede9fe;
}

.branches-card.tertiary::after {
  background: #cffafe;
}

.branches-card > * {
  position: relative;
  z-index: 1;
}

.branches-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.branches-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--al-primary);
  font-weight: 950;
  box-shadow: none;
  font-size: .86rem;
}

.branches-card.secondary .branches-avatar {
  background: var(--al-secondary);
}

.branches-card.tertiary .branches-avatar {
  background: var(--al-tertiary);
}

.branches-card h3 {
  margin: 0 0 4px;
  color: var(--al-ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.18;
}

.branches-card p {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--al-muted);
  font-size: .76rem;
  font-weight: 750;
}

.branches-card-phone {
  margin-top: 3px !important;
}

.branches-card p i {
  color: var(--al-primary);
}

.branches-icon-button,
.branches-delete-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(220, 200, 224, .72);
  border-radius: 999px;
  color: var(--al-muted);
  background: #ffffff;
  text-decoration: none;
}

.branches-icon-button:hover {
  color: var(--al-primary);
  background: #dbeafe;
}

.branches-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.branches-card-metrics > div {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--al-primary) 10%, rgba(220, 200, 224, .56));
  border-radius: 10px;
  background: color-mix(in srgb, var(--al-primary) 5%, #f8fafc);
}

.branches-card-metrics small {
  color: var(--al-muted);
  font-size: .68rem;
  font-weight: 900;
}

.branches-card-metrics strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--al-ink);
  font-size: .8rem;
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.branches-card-metrics strong i {
  color: var(--al-primary);
}

.branches-balance-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.branches-balance-strip > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--al-primary) 7%, #ffffff);
}

.branches-balance-strip span {
  color: var(--al-muted);
  display: block;
  font-size: .68rem;
  font-weight: 900;
}

.branches-balance-strip strong {
  color: var(--al-ink);
  display: block;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.branches-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(220, 200, 224, .58);
}

.branches-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
}

.branches-status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.branches-status-pill.active {
  color: #1d4ed8;
  background: #dbeafe;
}

.branches-status-pill.active i {
  background: var(--al-primary);
}

.branches-status-pill.inactive {
  color: #9b1c1c;
  background: #ffe8e8;
}

.branches-status-pill.inactive i {
  background: var(--al-danger);
}

.branches-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.branches-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--al-tertiary);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 950;
  white-space: nowrap;
}

.branches-actions form {
  margin: 0;
}

.branches-delete-button {
  color: var(--al-danger);
}

.branches-delete-button:hover {
  background: #ffe8e8;
}

.branches-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-style: dashed;
  color: var(--al-muted);
  background: #f1f5f9;
  text-align: center;
}

.branches-empty-state i {
  color: var(--al-primary);
  font-size: 2.7rem;
}

.branches-empty-state h3 {
  margin: 8px 0 4px;
  color: var(--al-ink);
  font-weight: 950;
}

.branches-empty-state p {
  margin: 0;
}

body[data-color-mode="dark"] .branches-candy-kicker,
body[data-color-mode="dark"] .branches-stat-card,
body[data-color-mode="dark"] .branches-form-card,
body[data-color-mode="dark"] .branches-balance-summary,
body[data-color-mode="dark"] .branches-empty-state {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .branches-stat-card.secondary,
body[data-color-mode="dark"] .branches-stat-card.soft,
body[data-color-mode="dark"] .branches-mini-stats span,
body[data-color-mode="dark"] .branches-card-metrics > div,
body[data-color-mode="dark"] .branches-balance-strip > div {
  background: #0b1220;
  border-color: rgba(148, 163, 184, .2);
}

body[data-color-mode="dark"] .branches-icon-button,
body[data-color-mode="dark"] .branches-delete-button {
  background: #0b1220;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .branches-card::after {
  opacity: .18;
}

@media (min-width: 1200px) {
  .branches-card-grid {
    grid-template-columns: 1fr;
  }

  .branches-card {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.35fr) minmax(190px, .7fr) auto;
    align-items: center;
    gap: 10px;
  }

  .branches-card-top,
  .branches-card-metrics,
  .branches-balance-strip,
  .branches-card-footer {
    margin: 0;
  }

  .branches-card-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .branches-card-footer {
    align-items: flex-end;
    border-top: 0;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }

  .branches-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 1399.98px) {
  .branches-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1200px) {
  .branches-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199.98px) {
  .branches-candy-hero,
  .branches-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .branches-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branches-candy-layout {
    grid-template-columns: 1fr;
  }

  .branches-form-stack {
    position: static;
  }

  .branches-mini-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  body:has(.branches-candy-shell) .sidebar {
    display: none;
  }

  body:has(.branches-candy-shell) .content {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .branches-card-grid,
  .branches-stat-grid {
    grid-template-columns: 1fr;
  }

  .branches-balance-summary-inline {
    grid-template-columns: 1fr;
    height: auto;
  }

  .branches-balance-summary a {
    justify-self: stretch;
  }

  .branches-add-button {
    width: 100%;
  }

  .branches-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .branches-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 575.98px) {
  .branches-card-metrics {
    grid-template-columns: 1fr;
  }

  .branches-form-card,
  .branches-card {
    padding: 14px;
  }
}

@media (min-width: 1200px) {
  .branches-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }

  .branches-card {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .branches-card-top {
    margin-bottom: 10px;
  }

  .branches-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .branches-balance-strip {
    margin-bottom: 8px;
  }

  .branches-card-footer {
    align-items: center;
    border-top: 1px solid rgba(220, 200, 224, .58);
    flex-direction: row;
    justify-content: space-between;
    padding-top: 8px;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar,
  body:has(.quick-candy-shell) .sidebar,
  body:has(.transactions-candy-shell) .sidebar,
  body:has(.customers-candy-shell) .sidebar,
  body:has(.inventory-candy-shell) .sidebar,
  body:has(.analytics-candy-shell) .sidebar,
  body:has(.users-candy-shell) .sidebar,
  body:has(.admin-fee-candy-shell) .sidebar,
  body:has(.daily-report-candy-shell) .sidebar,
  body:has(.branches-candy-shell) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: block;
    width: min(300px, 86vw);
    min-height: 100vh;
    max-height: none;
    padding-bottom: 24px !important;
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 1050;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .content,
  body:has(.quick-candy-shell) .content,
  body:has(.transactions-candy-shell) .content,
  body:has(.customers-candy-shell) .content,
  body:has(.inventory-candy-shell) .content,
  body:has(.analytics-candy-shell) .content,
  body:has(.users-candy-shell) .content,
  body:has(.admin-fee-candy-shell) .content,
  body:has(.daily-report-candy-shell) .content,
  body:has(.branches-candy-shell) .content {
    margin-left: 0;
  }

  .app-topbar {
    gap: 10px;
    padding: 12px 14px !important;
  }

  .app-topbar .btn {
    min-width: 40px;
  }
}

@media (max-width: 575.98px) {
  .app-topbar .btn-outline-primary[href*="://"],
  .app-topbar .btn-outline-primary[href$="/public/"] {
    display: none;
  }

  .quick-candy-shell {
    max-width: none;
    margin: -4px;
  }

  .quick-candy-top {
    gap: 12px;
    margin-bottom: 14px;
  }

  .quick-candy-top h1 {
    font-size: 1.75rem;
  }

  .quick-candy-top p {
    font-size: .92rem;
  }

  .quick-candy-categories,
  .quick-candy-form-card,
  .quick-receipt-card {
    border-radius: 8px;
  }

  .quick-candy-categories {
    padding: 12px;
  }

  .quick-candy-categories .quick-type-grid {
    gap: 8px;
  }

  .quick-candy-shell .quick-type-button {
    min-height: 94px;
    padding: 12px 10px;
  }

  .quick-candy-shell .quick-type-button small {
    display: none;
  }

  .quick-candy-shell .quick-nominal-group {
    min-height: 94px;
  }

  .quick-candy-shell .quick-nominal-input {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .quick-candy-shell .quick-amount-grid .btn {
    min-height: 50px;
  }

  .quick-summary-total {
    gap: 6px;
  }
}

/* Shared app polish: grouped sidebar, denser typography, fuller canvas, and dark mode consistency. */
.content {
  background: var(--al-bg);
}

.content > .p-4 {
  min-height: calc(100dvh - 64px);
  padding: clamp(16px, 2vw, 28px) !important;
}

.content h1,
.content .h1,
.content .display-4,
.content .display-5 {
  font-size: clamp(1.55rem, 2.15vw, 2.2rem) !important;
  line-height: 1.15;
}

.content h2,
.content .h2 {
  font-size: clamp(1.28rem, 1.75vw, 1.75rem) !important;
  line-height: 1.2;
}

.content h3,
.content .h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.28rem) !important;
}

.content p,
.content .form-label,
.content .form-control,
.content .form-select,
.content .btn,
.content .table {
  font-size: .92rem;
}

.dashboard-candy-shell,
.quick-candy-shell,
.transactions-candy-shell,
.customers-candy-shell,
.inventory-candy-shell,
.analytics-candy-shell,
.users-candy-shell,
.admin-fee-candy-shell,
.daily-report-candy-shell,
.branches-candy-shell {
  width: 100%;
  max-width: none !important;
}

.sidebar {
  padding-bottom: 18px !important;
}

.sidebar > a:first-child {
  margin-bottom: 1rem !important;
}

.nav-group {
  padding: .2rem 0 .55rem;
}

.settings-tabs-shell {
  margin: -2px 0 18px;
}

.settings-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  scrollbar-width: thin;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: .5rem .78rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #475569;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.settings-tab i {
  color: currentColor;
  font-size: .96rem;
  line-height: 1;
}

.settings-tab:hover {
  color: var(--al-primary);
  background: color-mix(in srgb, var(--al-primary) 8%, #ffffff 92%);
  border-color: color-mix(in srgb, var(--al-primary) 22%, transparent);
  transform: translateY(-1px);
}

.settings-tab.active {
  color: #ffffff;
  background: var(--al-primary);
  border-color: var(--al-primary);
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), .18);
}

.settings-tab.active:hover {
  color: #ffffff;
  transform: none;
}

.nav-group + .nav-group {
  border-top: 1px solid rgba(148, 163, 184, .16);
  padding-top: .7rem;
}

.nav-group-label {
  margin: 0;
  color: #64748b;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: .1rem .35rem .28rem;
  padding: .28rem .36rem;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-group-toggle::-webkit-details-marker {
  display: none;
}

.nav-group-toggle:hover {
  background: rgba(37, 99, 235, .08);
}

.nav-group-caret {
  color: #94a3b8;
  font-size: .76rem;
  transition: transform .18s ease;
}

.nav-group:not([open]) .nav-group-caret {
  transform: rotate(-90deg);
}

.nav-group-items {
  display: grid;
  gap: 2px;
}

.nav-group:not([open]) .nav-group-items {
  display: none;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: .56rem .7rem;
  font-size: .86rem;
  line-height: 1.18;
}

.sidebar .nav-link i {
  flex: 0 0 1.25rem;
}

.sidebar .nav-link-text {
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar .nav-link-locked {
  color: #64748b;
}

.nav-lock-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  padding: .1rem .38rem;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
}

.quick-type-icon,
.quick-candy-shell .quick-type-button .quick-type-icon,
.public-feature-icon,
.public-feature-tile-icon,
.public-feature-main-icon,
.feature-icon,
.dashboard-action-card .feature-icon,
.dashboard-action-icon,
.dashboard-mini-icon,
.inventory-card-icon,
.customers-card-icon,
.branches-card-icon,
.analytics-card-icon,
.users-card-icon {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.quick-type-icon i,
.quick-candy-shell .quick-type-button i,
.public-feature-icon i,
.public-feature-tile-icon i,
.public-feature-main-icon i,
.feature-icon i {
  font-size: 1.55rem;
}

.quick-candy-shell .quick-type-button {
  box-shadow: none !important;
}

.sidebar form {
  margin-top: .45rem !important;
  padding-top: .55rem;
  border-top: 1px solid rgba(148, 163, 184, .16);
}

.notification-menu {
  line-height: 1;
}

.notification-dropdown {
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border-radius: 8px;
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.notification-dropdown-body {
  max-height: min(420px, 70vh);
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  white-space: normal;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.notification-item:hover,
.notification-item:focus {
  background: color-mix(in srgb, var(--al-primary) 7%, #ffffff);
}

.notification-item.is-unread .notification-title {
  color: var(--al-primary);
}

.notification-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
}

.notification-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-title {
  color: var(--al-ink);
  font-weight: 800;
  line-height: 1.2;
}

.notification-message {
  color: #475569;
  font-size: .82rem;
  line-height: 1.35;
}

.notification-time {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 700;
}

.notification-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px 18px;
  color: #64748b;
  text-align: center;
}

.notification-empty i {
  color: var(--al-primary);
  font-size: 1.45rem;
}

body[data-color-mode="dark"] {
  --bs-body-bg: #0f172a;
  --bs-body-color: #f8fafc;
  --bs-border-color: rgba(148, 163, 184, .24);
  --bs-secondary-color: #cbd5e1;
}

body[data-color-mode="dark"] .content,
body[data-color-mode="dark"] .content > .p-4 {
  background: #0f172a !important;
}

body[data-color-mode="dark"] .border,
body[data-color-mode="dark"] .border-top,
body[data-color-mode="dark"] .border-end,
body[data-color-mode="dark"] .border-bottom,
body[data-color-mode="dark"] .border-start {
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .nav-group-label {
  color: #94a3b8;
}

body[data-color-mode="dark"] .nav-group-toggle:hover {
  background: rgba(37, 99, 235, .18);
}

body[data-color-mode="dark"] .nav-group-caret {
  color: #cbd5e1;
}

body[data-color-mode="dark"] .sidebar .nav-link-locked {
  color: #cbd5e1;
}

body[data-color-mode="dark"] .nav-lock-pill {
  border-color: rgba(147, 197, 253, .24);
  background: rgba(37, 99, 235, .22);
  color: #bfdbfe;
}

body[data-color-mode="dark"] .quick-candy-shell .quick-nominal-group.quick-nominal-locked {
  background: rgba(15, 23, 42, .72) !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

body[data-color-mode="dark"] .dashboard-status-row span {
  color: #dbeafe;
  background: rgba(15, 23, 42, .68);
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .dashboard-status-row .status-success {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .28);
  border-color: rgba(34, 197, 94, .22);
}

body[data-color-mode="dark"] .dashboard-status-row .status-primary {
  color: #bfdbfe;
  background: rgba(37, 99, 235, .26);
  border-color: rgba(96, 165, 250, .24);
}

body[data-color-mode="dark"] .dashboard-status-row .status-warning {
  color: #fde68a;
  background: rgba(146, 64, 14, .28);
  border-color: rgba(245, 158, 11, .22);
}

body[data-color-mode="dark"] .dashboard-status-row .status-danger {
  color: #fecaca;
  background: rgba(127, 29, 29, .32);
  border-color: rgba(239, 68, 68, .24);
}

body[data-color-mode="dark"] .settings-tabs-nav {
  background: rgba(15, 23, 42, .78);
  border-color: rgba(148, 163, 184, .22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

body[data-color-mode="dark"] .settings-tab {
  color: #cbd5e1;
}

body[data-color-mode="dark"] .settings-tab:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--al-primary) 24%, #0f172a 76%);
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .settings-tab.active {
  color: #ffffff;
  background: var(--al-primary);
  border-color: var(--al-primary);
}

body[data-color-mode="dark"] .brand-mark {
  color: #ffffff;
}

body[data-color-mode="dark"] .bg-light,
body[data-color-mode="dark"] .bg-body,
body[data-color-mode="dark"] .bg-body-tertiary,
body[data-color-mode="dark"] .bg-surface-container-low,
body[data-color-mode="dark"] .bg-surface-container,
body[data-color-mode="dark"] .bg-surface-container-lowest,
body[data-color-mode="dark"] .list-group-item,
body[data-color-mode="dark"] .accordion-item,
body[data-color-mode="dark"] .accordion-button,
body[data-color-mode="dark"] .offcanvas,
body[data-color-mode="dark"] .toast,
body[data-color-mode="dark"] .popover,
body[data-color-mode="dark"] .dataTables_wrapper,
body[data-color-mode="dark"] .dt-container,
body[data-color-mode="dark"] .table-responsive,
body[data-color-mode="dark"] .dashboard-candy-section,
body[data-color-mode="dark"] .dashboard-panel,
body[data-color-mode="dark"] .dashboard-mini-card,
body[data-color-mode="dark"] .dashboard-action-card,
body[data-color-mode="dark"] .dashboard-recent-item,
body[data-color-mode="dark"] .dashboard-notification-item,
body[data-color-mode="dark"] .dashboard-subscription-card,
body[data-color-mode="dark"] .transactions-filter-card,
body[data-color-mode="dark"] .transactions-table-card,
body[data-color-mode="dark"] .customers-filter-card,
body[data-color-mode="dark"] .customer-card,
body[data-color-mode="dark"] .inventory-filter-card,
body[data-color-mode="dark"] .inventory-card,
body[data-color-mode="dark"] .analytics-card,
body[data-color-mode="dark"] .analytics-panel,
body[data-color-mode="dark"] .users-filter-card,
body[data-color-mode="dark"] .users-table-card,
body[data-color-mode="dark"] .admin-fee-card,
body[data-color-mode="dark"] .admin-fee-stat-card,
body[data-color-mode="dark"] .daily-report-card,
body[data-color-mode="dark"] .branches-card {
  color: #f8fafc !important;
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .table {
  --bs-table-color: #f8fafc;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(148, 163, 184, .06);
  --bs-table-hover-bg: rgba(37, 99, 235, .14);
  --bs-table-border-color: rgba(148, 163, 184, .2);
}

body[data-color-mode="dark"] .dropdown-item,
body[data-color-mode="dark"] .accordion-button:not(.collapsed) {
  color: #f8fafc;
}

body[data-color-mode="dark"] .dropdown-item:hover,
body[data-color-mode="dark"] .dropdown-item:focus,
body[data-color-mode="dark"] .notification-item:hover,
body[data-color-mode="dark"] .notification-item:focus {
  color: #ffffff;
  background-color: rgba(37, 99, 235, .18);
}

body[data-color-mode="dark"] .notification-dropdown-head,
body[data-color-mode="dark"] .notification-item {
  border-color: rgba(148, 163, 184, .18);
}

body[data-color-mode="dark"] .notification-title {
  color: #f8fafc;
}

body[data-color-mode="dark"] .notification-message,
body[data-color-mode="dark"] .notification-empty {
  color: #cbd5e1;
}

body[data-color-mode="dark"] .notification-time {
  color: #94a3b8;
}

body[data-color-mode="dark"] .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, .65);
}

body[data-color-mode="dark"] .btn-outline-primary:hover,
body[data-color-mode="dark"] .btn-outline-primary:focus {
  color: #ffffff;
  background: var(--al-primary);
  border-color: var(--al-primary);
}

body[data-color-mode="dark"] .swal2-popup {
  color: #f8fafc;
  background: #111827;
}

/* Branch management compact card polish */
.branches-candy-shell .branches-list-head {
  align-items: flex-end;
}

.branches-candy-shell .branches-list-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  letter-spacing: 0;
  line-height: 1.1;
}

.branches-candy-shell .branches-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 390px)) !important;
  justify-content: start;
}

.branches-candy-shell .branches-card {
  border-radius: 14px;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-width: 390px;
  min-height: 0;
  padding: 14px;
}

.branches-candy-shell .branches-card::after {
  height: 96px;
  opacity: .32;
  right: -36px;
  top: -40px;
  width: 96px;
}

.branches-candy-shell .branches-card-top {
  align-items: start;
  display: grid !important;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  margin: 0 !important;
  width: 100%;
}

.branches-candy-shell .branches-avatar {
  font-size: .82rem;
  height: 42px;
  width: 42px;
}

.branches-candy-shell .branches-card h3 {
  font-size: 1.04rem;
  line-height: 1.16;
  margin-bottom: 5px;
}

.branches-candy-shell .branches-card p {
  align-items: center;
  font-size: .76rem;
  line-height: 1.25;
}

.branches-candy-shell .branches-icon-button,
.branches-candy-shell .branches-delete-button {
  height: 32px;
  width: 32px;
}

.branches-candy-shell .branches-card-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 0 !important;
  width: 100%;
}

.branches-candy-shell .branches-card-metrics > div {
  min-height: 58px;
  padding: 8px 9px;
}

.branches-candy-shell .branches-card-metrics small,
.branches-candy-shell .branches-balance-strip span {
  font-size: .67rem;
  line-height: 1.15;
}

.branches-candy-shell .branches-card-metrics strong {
  font-size: .82rem;
  min-width: 0;
}

.branches-candy-shell .branches-balance-strip {
  gap: 7px;
  margin: 0 !important;
  width: 100%;
}

.branches-candy-shell .branches-balance-strip > div {
  padding: 8px 10px;
}

.branches-candy-shell .branches-card-footer {
  align-items: center !important;
  border-top: 1px solid rgba(220, 200, 224, .58) !important;
  flex-direction: row !important;
  gap: 8px;
  justify-content: space-between !important;
  margin-top: 0 !important;
  padding-top: 10px !important;
}

.branches-candy-shell .branches-actions {
  align-items: center;
  gap: 9px;
}

.branches-candy-shell .branches-actions a {
  color: var(--al-primary);
  font-size: .8rem;
}

body[data-color-mode="dark"] .branches-candy-shell .branches-card-metrics > div,
body[data-color-mode="dark"] .branches-candy-shell .branches-balance-strip > div {
  background: #0b1220;
  border-color: rgba(148, 163, 184, .22);
}

@media (max-width: 767.98px) {
  .branches-candy-shell .branches-list-head {
    align-items: flex-start;
  }

  .branches-candy-shell .branches-card-grid {
    grid-template-columns: 1fr !important;
  }

  .branches-candy-shell .branches-card {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .branches-candy-shell .branches-card-metrics,
  .branches-candy-shell .branches-balance-strip {
    grid-template-columns: 1fr !important;
  }

  .branches-candy-shell .branches-card-footer {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .branches-candy-shell .branches-actions {
    justify-content: space-between;
    width: 100%;
  }
}

body[data-color-mode="dark"] .quick-candy-categories,
body[data-color-mode="dark"] .quick-candy-form-card {
  background: #111827 !important;
  background-image: none !important;
}

body[data-color-mode="dark"] .quick-active-service,
body[data-color-mode="dark"] .quick-service-panel {
  background: #0b1220 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

body[data-color-mode="dark"] .quick-candy-panel-title,
body[data-color-mode="dark"] .quick-candy-panel-title span,
body[data-color-mode="dark"] .quick-candy-panel-title small {
  color: #f8fafc !important;
}

body[data-color-mode="dark"] .quick-candy-shell .quick-type-button:not(.active) {
  background: #0b1220 !important;
  background-image: none !important;
}

body[data-color-mode="dark"] .quick-type-icon {
  color: #bfdbfe !important;
  background: transparent !important;
}

body[data-color-mode="dark"] .quick-candy-shell .btn-check:checked + .quick-type-button .quick-type-icon {
  color: #ffffff !important;
  background: transparent !important;
}

.category-price-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-price-hero {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 0;
}

.category-price-hero h1 {
  color: var(--al-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 7px 0 4px;
}

.category-price-hero p {
  color: var(--al-muted);
  font-size: .9rem;
  margin: 0;
  max-width: 760px;
}

.category-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.category-price-stats {
  margin-bottom: 0;
}

.category-price-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-price-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
  padding: 16px;
}

.category-price-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.category-price-card-head > span {
  align-items: center;
  background: color-mix(in srgb, var(--al-primary) 12%, transparent);
  border-radius: 12px;
  color: var(--al-primary);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.category-price-card-head h2 {
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.category-price-card-head p {
  color: var(--al-muted);
  font-size: .8rem;
  margin: 2px 0 0;
}

.category-price-list {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  overflow: hidden;
}

.category-price-row {
  align-items: center;
  background: rgba(248, 250, 252, .7);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, .75fr) 54px 38px;
  padding: 8px;
}

.category-price-row:last-child {
  border-bottom: 0;
}

.category-price-row-head {
  background: rgba(37, 99, 235, .08);
  color: var(--al-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.category-price-money-field {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  padding-left: 10px;
}

.category-price-money-field span {
  color: var(--al-muted);
  font-size: .78rem;
  font-weight: 800;
}

.category-price-money-field .form-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
}

.category-price-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin: 0;
}

.category-price-switch input {
  position: absolute;
  opacity: 0;
}

.category-price-switch span {
  background: #cbd5e1;
  border-radius: 999px;
  display: block;
  height: 24px;
  position: relative;
  transition: background .2s ease;
  width: 42px;
}

.category-price-switch span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2);
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .2s ease;
  width: 18px;
}

.category-price-switch input:checked + span {
  background: var(--al-primary);
}

.category-price-switch input:checked + span::after {
  transform: translateX(18px);
}

.category-price-add {
  border-radius: 999px;
  font-weight: 800;
  margin-top: 12px;
  width: 100%;
}

.category-price-save-bar {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .12);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
}

.category-price-save-bar strong,
.category-price-save-bar span {
  display: block;
}

.category-price-save-bar span {
  color: var(--al-muted);
  font-size: .82rem;
}

.bank-ledger-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bank-ledger-hero {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(var(--al-primary-rgb), .12), rgba(var(--al-tertiary-rgb), .08)),
    var(--bs-body-bg);
  border: 1px solid rgba(var(--al-primary-rgb), .18);
  border-radius: 18px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px;
}

.bank-ledger-kicker {
  align-items: center;
  color: var(--al-primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bank-ledger-hero h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 8px 0 6px;
}

.bank-ledger-hero p {
  color: var(--al-muted);
  margin: 0;
  max-width: 760px;
}

.bank-ledger-hero-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-ledger-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bank-ledger-stat-card {
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--al-primary) 5%, transparent), transparent 62%),
    var(--bs-body-bg);
  border: 1px solid color-mix(in srgb, var(--al-primary) 14%, rgba(148, 163, 184, .24));
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  display: flex;
  gap: 10px;
  min-height: 86px;
  overflow: hidden;
  padding: 12px;
}

.bank-ledger-stat-card > span {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.bank-ledger-stat-card small,
.bank-account-balance small,
.bank-account-flow small {
  color: var(--al-muted);
  display: block;
  font-size: .7rem;
  font-weight: 800;
}

.bank-ledger-stat-card strong {
  display: block;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 900;
  line-height: 1.1;
}

.bank-ledger-stat-card em {
  color: color-mix(in srgb, var(--al-muted) 88%, var(--al-primary));
  display: block;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
}

.bank-ledger-stat-card.primary > span {
  background: rgba(var(--al-primary-rgb), .12);
  color: var(--al-primary);
}

.bank-ledger-stat-card.success > span {
  background: rgba(16, 185, 129, .14);
  color: #059669;
}

.bank-ledger-stat-card.danger > span {
  background: rgba(239, 68, 68, .14);
  color: #dc2626;
}

.bank-ledger-stat-card.soft > span {
  background: rgba(var(--al-secondary-rgb), .12);
  color: var(--al-secondary);
}

.bank-ledger-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.bank-ledger-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-ledger-panel,
.bank-ledger-filter,
.bank-ledger-table-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  padding: 18px;
}

.bank-ledger-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.bank-ledger-panel-head > span {
  align-items: center;
  background: rgba(var(--al-primary-rgb), .1);
  border-radius: 14px;
  color: var(--al-primary);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.bank-ledger-panel-head h2,
.bank-ledger-table-head h2 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.bank-ledger-panel-head p,
.bank-ledger-table-head p {
  color: var(--al-muted);
  font-size: .82rem;
  margin: 2px 0 0;
}

.bank-ledger-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.bank-account-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bank-account-card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--al-primary) 8%, transparent), rgba(255, 255, 255, .54)),
    var(--bs-body-bg);
  border: 1px solid color-mix(in srgb, var(--al-primary) 13%, rgba(148, 163, 184, .2));
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 11px;
}

.bank-account-card.inactive {
  opacity: .7;
}

.bank-account-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bank-account-top span:first-child {
  color: var(--al-primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bank-account-top h2 {
  font-size: .9rem;
  font-weight: 900;
  margin: 2px 0;
}

.bank-account-top p {
  color: var(--al-muted);
  font-size: .76rem;
  margin: 0;
}

.bank-status-pill {
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  padding: 3px 8px;
  white-space: nowrap;
}

.bank-status-pill.active {
  background: rgba(16, 185, 129, .14);
  color: #047857;
}

.bank-status-pill.inactive {
  background: rgba(100, 116, 139, .14);
  color: #64748b;
}

.bank-account-balance {
  background: color-mix(in srgb, var(--al-primary) 8%, var(--bs-body-bg));
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, transparent);
  border-radius: 12px;
  padding: 8px 9px;
}

.bank-account-balance strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
}

.bank-account-balance span {
  color: var(--al-muted);
  display: block;
  font-size: .72rem;
  font-weight: 700;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-account-flow {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.bank-account-flow > div {
  align-items: center;
  background: color-mix(in srgb, var(--al-primary) 5%, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--al-primary) 10%, rgba(148, 163, 184, .16));
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 8px;
}

.bank-account-flow b {
  display: block;
  font-size: .78rem;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.bank-account-flow-wide {
  grid-column: 1 / -1;
}

.bank-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.bank-account-actions .btn {
  padding: .28rem .5rem;
}

.bank-ledger-filter {
  padding: 14px;
}

.bank-ledger-table-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bank-ledger-table-head > span {
  background: rgba(var(--al-primary-rgb), .1);
  border-radius: 999px;
  color: var(--al-primary);
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.bank-ledger-table th {
  color: var(--al-muted);
  font-size: .76rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bank-ledger-empty {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px dashed rgba(148, 163, 184, .45);
  border-radius: 18px;
  color: var(--al-muted);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 220px;
  padding: 26px;
  text-align: center;
}

.bank-ledger-empty i {
  color: var(--al-primary);
  font-size: 2rem;
  margin-bottom: 8px;
}

.bank-ledger-empty h2 {
  color: var(--bs-body-color);
  font-size: 1.1rem;
  font-weight: 900;
}

.expense-flow-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expense-flow-hero {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(var(--al-primary-rgb), .1), rgba(16, 185, 129, .08)),
    var(--bs-body-bg);
  border: 1px solid rgba(var(--al-primary-rgb), .16);
  border-radius: 18px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px;
}

.expense-flow-kicker {
  align-items: center;
  color: var(--al-primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.expense-flow-hero h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 6px 0 4px;
}

.expense-flow-hero p {
  color: var(--al-muted);
  font-size: .9rem;
  margin: 0;
  max-width: 760px;
}

.expense-flow-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.expense-flow-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expense-flow-stat-card {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  display: flex;
  gap: 10px;
  min-height: 82px;
  padding: 12px;
}

.expense-flow-stat-card > span {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.expense-flow-stat-card small {
  color: var(--al-muted);
  display: block;
  font-size: .7rem;
  font-weight: 800;
}

.expense-flow-stat-card strong {
  display: block;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 900;
  line-height: 1.1;
}

.expense-flow-stat-card.success > span {
  background: rgba(16, 185, 129, .14);
  color: #059669;
}

.expense-flow-stat-card.danger > span {
  background: rgba(239, 68, 68, .14);
  color: #dc2626;
}

.expense-flow-stat-card.primary > span {
  background: rgba(var(--al-primary-rgb), .12);
  color: var(--al-primary);
}

.expense-flow-stat-card.soft > span {
  background: rgba(var(--al-secondary-rgb), .12);
  color: var(--al-secondary);
}

.expense-flow-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.expense-flow-side,
.expense-flow-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.expense-flow-panel,
.expense-flow-filter,
.expense-flow-table-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
  padding: 16px;
}

.expense-flow-panel-head,
.expense-flow-table-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.expense-flow-panel-head {
  justify-content: flex-start;
}

.expense-flow-panel-head > span {
  align-items: center;
  background: rgba(var(--al-primary-rgb), .1);
  border-radius: 12px;
  color: var(--al-primary);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.expense-flow-panel-head h2,
.expense-flow-table-head h2 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.expense-flow-panel-head p,
.expense-flow-table-head p {
  color: var(--al-muted);
  font-size: .82rem;
  margin: 2px 0 0;
}

.expense-flow-table-head > span {
  background: rgba(var(--al-primary-rgb), .1);
  border-radius: 999px;
  color: var(--al-primary);
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.expense-type-toggle {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expense-type-option {
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  transition: all .2s ease;
}

.expense-type-option i {
  font-size: 1.15rem;
}

.expense-type-option span {
  font-weight: 900;
}

.expense-type-option small {
  color: var(--al-muted);
  font-size: .72rem;
}

.btn-check:checked + .expense-type-option.income {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .45);
  color: #047857;
}

.btn-check:checked + .expense-type-option.expense {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .45);
  color: #b91c1c;
}

.expense-category-row {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 0;
}

.expense-category-row:last-child {
  border-bottom: 0;
}

.expense-flow-filter {
  padding: 14px;
}

.expense-flow-table th {
  color: var(--al-muted);
  font-size: .76rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.daily-closing-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daily-closing-hero {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(var(--al-primary-rgb), .1), rgba(var(--al-tertiary-rgb), .08)),
    var(--bs-body-bg);
  border: 1px solid rgba(var(--al-primary-rgb), .16);
  border-radius: 18px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px;
}

.daily-closing-kicker {
  align-items: center;
  color: var(--al-primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.daily-closing-hero h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 6px 0 4px;
}

.daily-closing-hero p {
  color: var(--al-muted);
  font-size: .9rem;
  margin: 0;
  max-width: 820px;
}

.daily-closing-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-closing-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-closing-stat-card {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  display: flex;
  gap: 10px;
  min-height: 82px;
  overflow: hidden;
  padding: 12px;
}

.daily-closing-stat-card > span {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.daily-closing-stat-card small,
.daily-closing-system-box small {
  color: var(--al-muted);
  display: block;
  font-size: .7rem;
  font-weight: 800;
}

.daily-closing-stat-card strong {
  display: block;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 900;
  line-height: 1.1;
}

.daily-closing-stat-card em {
  color: color-mix(in srgb, var(--al-muted) 88%, var(--al-primary));
  display: block;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
}

.daily-closing-stat-card.primary > span {
  background: rgba(var(--al-primary-rgb), .12);
  color: var(--al-primary);
}

.daily-closing-stat-card.success > span {
  background: rgba(16, 185, 129, .14);
  color: #059669;
}

.daily-closing-stat-card.warning > span {
  background: rgba(245, 158, 11, .18);
  color: #b45309;
}

.daily-closing-stat-card.soft > span {
  background: rgba(var(--al-secondary-rgb), .12);
  color: var(--al-secondary);
}

.daily-closing-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.daily-closing-side,
.daily-closing-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.daily-closing-panel,
.daily-closing-filter,
.daily-closing-table-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
  padding: 16px;
}

.daily-closing-panel-head,
.daily-closing-table-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.daily-closing-panel-head {
  justify-content: flex-start;
}

.daily-closing-panel-head > span {
  align-items: center;
  background: rgba(var(--al-primary-rgb), .1);
  border-radius: 12px;
  color: var(--al-primary);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.daily-closing-panel-head h2,
.daily-closing-table-head h2 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.daily-closing-panel-head p,
.daily-closing-table-head p {
  color: var(--al-muted);
  font-size: .82rem;
  margin: 2px 0 0;
}

.daily-closing-system-box {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.daily-closing-system-box > div {
  background: color-mix(in srgb, var(--al-primary) 6%, var(--bs-body-bg));
  border: 1px solid color-mix(in srgb, var(--al-primary) 12%, rgba(148, 163, 184, .16));
  border-radius: 12px;
  min-width: 0;
  padding: 9px 10px;
}

.daily-closing-system-box strong {
  display: block;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.daily-closing-preview {
  border-radius: 12px;
  margin: 12px 0;
  padding: 10px;
}

.daily-closing-preview > div:not(:first-child) {
  align-items: center;
  display: flex;
  font-size: .84rem;
  justify-content: space-between;
  margin-top: 6px;
}

.daily-closing-balance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-closing-balance-row {
  align-items: center;
  background: color-mix(in srgb, var(--al-primary) 4%, var(--bs-body-bg));
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.daily-closing-balance-row strong,
.daily-closing-balance-row span {
  display: block;
}

.daily-closing-balance-row span {
  color: var(--al-muted);
  font-size: .74rem;
  font-weight: 700;
}

.daily-closing-balance-row b {
  font-size: .86rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.daily-closing-filter {
  padding: 14px;
}

.daily-closing-table-head {
  align-items: center;
}

.daily-closing-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.daily-closing-mini-stats span {
  align-items: center;
  background: rgba(var(--al-primary-rgb), .08);
  border-radius: 999px;
  color: var(--al-primary);
  display: inline-flex;
  font-size: .74rem;
  font-weight: 900;
  gap: 5px;
  padding: 6px 9px;
  white-space: nowrap;
}

.daily-closing-table th {
  color: var(--al-muted);
  font-size: .76rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.daily-closing-empty {
  align-items: center;
  background: rgba(148, 163, 184, .08);
  border: 1px dashed rgba(148, 163, 184, .35);
  border-radius: 14px;
  color: var(--al-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 126px;
  padding: 18px;
  text-align: center;
}

.daily-closing-empty.compact {
  min-height: 88px;
}

.daily-closing-empty i {
  color: var(--al-primary);
  font-size: 1.5rem;
}

body[data-color-mode="dark"] .bank-ledger-hero,
body[data-color-mode="dark"] .bank-ledger-stat-card,
body[data-color-mode="dark"] .bank-ledger-panel,
body[data-color-mode="dark"] .bank-ledger-filter,
body[data-color-mode="dark"] .bank-ledger-table-card,
body[data-color-mode="dark"] .bank-account-card,
body[data-color-mode="dark"] .bank-ledger-empty {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .bank-account-flow > div {
  background: #0b1220;
}

body[data-color-mode="dark"] .bank-account-balance {
  background: rgba(96, 165, 250, .12);
}

body[data-color-mode="dark"] .expense-flow-hero,
body[data-color-mode="dark"] .expense-flow-stat-card,
body[data-color-mode="dark"] .expense-flow-panel,
body[data-color-mode="dark"] .expense-flow-filter,
body[data-color-mode="dark"] .expense-flow-table-card {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .expense-type-option {
  background: #0b1220;
}

body[data-color-mode="dark"] .daily-closing-hero,
body[data-color-mode="dark"] .daily-closing-stat-card,
body[data-color-mode="dark"] .daily-closing-panel,
body[data-color-mode="dark"] .daily-closing-filter,
body[data-color-mode="dark"] .daily-closing-table-card,
body[data-color-mode="dark"] .daily-closing-empty {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .daily-closing-system-box > div,
body[data-color-mode="dark"] .daily-closing-balance-row {
  background: #0b1220;
}

body[data-color-mode="dark"] .category-price-card,
body[data-color-mode="dark"] .category-price-save-bar {
  background: #111827;
  border-color: rgba(148, 163, 184, .22);
}

body[data-color-mode="dark"] .category-price-hero {
  background: transparent;
  border-color: transparent;
}

body[data-color-mode="dark"] .category-price-row {
  background: #0b1220;
}

body[data-color-mode="dark"] .category-price-row-head {
  background: rgba(96, 165, 250, .1);
}

body[data-color-mode="dark"] .category-price-money-field {
  background: #111827;
}

@media (max-width: 991.98px) {
  .bank-ledger-hero,
  .bank-ledger-table-head,
  .expense-flow-hero,
  .expense-flow-table-head,
  .daily-closing-hero,
  .daily-closing-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bank-ledger-stat-grid,
  .bank-account-grid,
  .expense-flow-stat-grid,
  .daily-closing-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-ledger-layout,
  .expense-flow-layout,
  .daily-closing-layout {
    grid-template-columns: 1fr;
  }

  .bank-ledger-hero-actions,
  .expense-flow-actions,
  .daily-closing-actions {
    width: 100%;
  }

  .bank-ledger-hero-actions .btn,
  .expense-flow-actions .btn,
  .daily-closing-actions .btn {
    flex: 1;
  }

  .category-price-grid {
    grid-template-columns: 1fr;
  }

  .category-price-hero,
  .category-price-save-bar {
    flex-direction: column;
  }

  .category-price-actions,
  .category-price-save-bar .btn {
    width: 100%;
  }

  .content > .p-4 {
    padding: 14px !important;
  }

  .content h1,
  .content .h1,
  .content .display-4,
  .content .display-5 {
    font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
  }
}

@media (max-width: 575.98px) {
  .bank-ledger-stat-grid,
  .bank-account-grid,
  .bank-account-flow,
  .expense-flow-stat-grid,
  .expense-type-toggle,
  .daily-closing-stat-grid,
  .daily-closing-system-box {
    grid-template-columns: 1fr;
  }

  .bank-ledger-hero,
  .bank-ledger-panel,
  .bank-ledger-table-card,
  .expense-flow-hero,
  .expense-flow-panel,
  .expense-flow-table-card,
  .daily-closing-hero,
  .daily-closing-panel,
  .daily-closing-table-card {
    padding: 14px;
  }

  .category-price-row {
    grid-template-columns: 1fr;
  }

  .category-price-row-head {
    display: none;
  }

  .content p,
  .content .form-label,
  .content .form-control,
  .content .form-select,
  .content .btn,
  .content .table {
    font-size: .88rem;
  }

  .notification-dropdown {
    width: calc(100vw - 16px);
  }
}

@media (min-width: 1600px) {
  .bank-account-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
