:root {
  /* Soft lavender primary */
  --bk-green: #A483C2;
  --bk-green-dark: #815FA0;
  --bk-green-soft: #F3EDF8;
  --bk-white: #ffffff;
  --bk-ink: #2a2620;
  --bk-muted: #6b6358;
  --bk-muted-soft: #9a9186;
  --bk-line: #e8e4dc;
  --bk-surface: #f5f3ef;
  --bk-card-shadow: 0 8px 24px rgba(164, 131, 194, 0.12);
  --bk-radius: 12px;
  --bk-sidebar-w: 278px;
  --bk-sidebar-w-collapsed: 88px;
  --bk-navbar-h: 72px;
  --bk-font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

body.bk-app {
  margin: 0;
  font-family: var(--bk-font);
  background: var(--bk-surface);
  color: var(--bk-ink);
  min-height: 100vh;
  --bs-pagination-color: var(--bk-green-dark);
  --bs-pagination-bg: var(--bk-white);
  --bs-pagination-border-color: rgba(129, 95, 160, 0.35);
  --bs-pagination-hover-color: var(--bk-green-dark);
  --bs-pagination-hover-bg: var(--bk-green-soft);
  --bs-pagination-hover-border-color: var(--bk-green);
  --bs-pagination-focus-color: var(--bk-green-dark);
  --bs-pagination-focus-bg: var(--bk-green-soft);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(164, 131, 194, 0.35);
  --bs-pagination-active-color: var(--bk-white);
  --bs-pagination-active-bg: var(--bk-green);
  --bs-pagination-active-border-color: var(--bk-green-dark);
  --bs-pagination-disabled-color: rgba(107, 99, 88, 0.55);
  --bs-pagination-disabled-bg: var(--bk-white);
  --bs-pagination-disabled-border-color: rgba(129, 95, 160, 0.2);
}

/* —— App shell (academy-style) —— */
.bk-frame {
  display: grid;
  grid-template-columns: var(--bk-sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s ease;
}
.bk-frame.sidebar-collapsed { grid-template-columns: var(--bk-sidebar-w-collapsed) 1fr; }

.bk-sidebar {
  background: var(--bk-white);
  color: var(--bk-muted);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.1rem 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  border-right: 1px solid var(--bk-line);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.35rem 1.15rem;
}
.brand-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: var(--bk-ink);
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bk-green-soft);
  border: 1px solid var(--bk-line);
  box-shadow: 0 8px 18px rgba(129, 95, 160, 0.18);
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bk-ink);
}
.brand-text small {
  display: block;
  color: var(--bk-muted-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--bk-green-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(129, 95, 160, 0.35);
}
.sidebar-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.sidebar-collapsed .sidebar-toggle-icon {
  transform: rotate(135deg);
  margin-left: 0;
  margin-right: 2px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bk-green-soft);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  margin: 0 0.15rem 1rem;
}
.sidebar-search-icon {
  flex-shrink: 0;
  color: var(--bk-muted);
  font-size: 0.95rem;
}
.sidebar-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--bk-ink);
}
.sidebar-search input::placeholder { color: var(--bk-muted); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
  padding: 0 0.1rem;
}
.nav-group { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.35rem;
  overflow: hidden;
}
.nav-sub.collapse:not(.show) {
  display: none;
}
.nav-sub.collapsing {
  display: flex;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.bk-sidebar .nav-item--toggle .nav-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}
.bk-sidebar .nav-item--toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.bk-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  color: var(--bk-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
}
.bk-sidebar .nav-item:hover { background: var(--bk-green-soft); color: var(--bk-green-dark); }
.bk-sidebar .nav-item.is-active {
  background: var(--bk-green-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(129, 95, 160, 0.28);
}
.bk-sidebar .nav-item.is-active:hover { background: #6B4A8C; color: #fff; }
.bk-sidebar .nav-item--sub {
  padding: 0.55rem 0.95rem 0.55rem 2.55rem;
  font-size: 0.86rem;
}
.nav-bi { font-size: 1.05rem; line-height: 1; flex-shrink: 0; width: 1.15rem; text-align: center; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bk-line);
}
.sidebar-logout-form { margin: 0; }
.bk-sidebar .sidebar-logout { color: #b91c1c; }
.bk-sidebar .sidebar-logout:hover { background: #fff5f5; color: #842029; }

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-search,
.sidebar-collapsed .nav-chevron { display: none; }
.sidebar-collapsed .bk-sidebar { padding-left: 0.7rem; padding-right: 0.7rem; }
.sidebar-collapsed .sidebar-brand { justify-content: center; flex-direction: column; gap: 0.65rem; }
.sidebar-collapsed .brand-link { justify-content: center; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0.85rem; }
.sidebar-collapsed .nav-item--sub { display: none; }
.sidebar-collapsed .nav-sub { display: none !important; }

.bk-main-pane { min-width: 0; display: flex; flex-direction: column; }

.bk-navbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: var(--bk-navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bk-line);
}
.navbar-left, .navbar-right { display: flex; align-items: center; gap: 0.85rem; }
.navbar-context { min-width: 0; }
.navbar-crumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; color: var(--bk-muted); }
.navbar-crumbs a { color: var(--bk-muted); text-decoration: none; }
.navbar-crumbs a:hover { color: var(--bk-green-dark); }
.crumb-sep { opacity: 0.5; }
.crumb-current { color: var(--bk-ink); font-weight: 600; }

.btn-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bk-line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  cursor: pointer;
}
.btn-menu span { display: block; height: 2px; background: var(--bk-ink); border-radius: 2px; }

.navbar-user { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--bk-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  cursor: pointer;
  font: inherit;
}
.user-trigger:hover { box-shadow: 0 4px 14px rgba(42, 38, 32, 0.06); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--bk-green-dark);
  flex-shrink: 0;
}
.user-meta { text-align: left; line-height: 1.15; }
.user-meta strong { display: block; font-size: 0.86rem; color: var(--bk-ink); }
.user-meta small { color: var(--bk-muted); font-size: 0.74rem; }
.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #A8A29E;
  border-bottom: 2px solid #A8A29E;
  transform: rotate(45deg);
  margin: 0 0.25rem 0.2rem;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 260px;
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(42, 38, 32, 0.1);
  padding: 0.5rem;
  z-index: 50;
}
.user-dropdown-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.55rem 0.85rem;
  border-bottom: 1px solid var(--bk-line);
  margin-bottom: 0.35rem;
}
.user-dropdown-head strong { display: block; font-size: 0.9rem; }
.user-dropdown-head small { color: var(--bk-muted); font-size: 0.78rem; }
.user-dropdown a,
.logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  color: var(--bk-ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.user-dropdown a:hover,
.logout-btn:hover { background: var(--bk-green-soft); color: var(--bk-green-dark); }
.logout-form { margin: 0.15rem 0 0; }
.logout-btn { color: #B91C1C; font-weight: 600; }

.bk-content { padding: 1.35rem 1.5rem 2.75rem; flex: 1; }
.sidebar-backdrop { display: none; }

/* Brand mark helpers still used on receipts / guest pages */
.bk-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.14);
}
.bk-brand-mark--compact {
  width: auto;
  max-width: 148px;
  padding: 5px 8px;
  border-radius: 8px;
}
.bk-brand-mark--receipt {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 0.55rem;
  padding: 6px 12px;
  border-radius: 10px;
  border-color: rgba(129, 95, 160, 0.2);
  box-shadow: 0 2px 12px rgba(129, 95, 160, 0.12);
}
.bk-brand-logo {
  display: block;
  width: 100%;
  height: 32px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.bk-brand-logo-sm { height: 26px; }

@media (max-width: 860px) {
  .bk-frame,
  .bk-frame.sidebar-collapsed { grid-template-columns: 1fr; }
  .bk-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    width: min(300px, 88vw);
    border-radius: 0;
  }
  .bk-sidebar.is-open { transform: none; }
  .sidebar-toggle { display: none; }
  .btn-menu { display: inline-flex; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(42, 38, 32, 0.45);
    z-index: 30;
  }
  .user-meta { display: none; }
}

.bk-page-title {
  display: block;
  width: 100%;
  font-weight: 700;
  color: var(--bk-green-dark);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.bk-page-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  border-top: 1px solid var(--bk-green);
  border-bottom: 1px solid var(--bk-green);
  opacity: 0.85;
  margin: 0.2rem 0 1rem;
}

/* Title + actions on one row: line spans full toolbar width */
.d-flex:has(> .bk-page-title) {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.d-flex:has(> .bk-page-title) > .bk-page-title {
  width: auto;
  flex: 1 1 auto;
  margin-bottom: 0;
}

.d-flex:has(> .bk-page-title) > .bk-page-title::after {
  display: none;
}

.d-flex:has(> .bk-page-title)::after {
  content: "";
  flex-basis: 100%;
  display: block;
  height: 4px;
  width: 100%;
  border-top: 1px solid var(--bk-green);
  border-bottom: 1px solid var(--bk-green);
  opacity: 0.85;
  margin: 0.2rem 0 0.85rem;
}

.bk-card {
  background: var(--bk-white);
  border: 1px solid rgba(129, 95, 160, 0.12);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-card-shadow);
}

.bk-form-card {
  width: 100%;
  max-width: none;
}

.bk-card .card-header {
  background: var(--bk-green-soft);
  border-bottom: 1px solid rgba(129, 95, 160, 0.12);
  font-weight: 600;
  color: var(--bk-green-dark);
  border-radius: var(--bk-radius) var(--bk-radius) 0 0 !important;
}

.bk-stat {
  border-radius: var(--bk-radius);
  padding: 1.1rem 1.25rem;
  background: var(--bk-white);
  border: 1px solid rgba(129, 95, 160, 0.1);
  box-shadow: var(--bk-card-shadow);
  height: 100%;
}

.bk-stat .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bk-muted);
  font-weight: 600;
}

.bk-stat .value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bk-green-dark);
}

.bk-stock-bar {
  height: 6px;
  background: rgba(129, 95, 160, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.bk-stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bk-green) 0%, #815FA0 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.bk-stock-bar-sm {
  height: 4px;
  max-width: 100px;
}

.bk-stat-link {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.bk-stat-link,
.bk-stat-link .value {
  color: inherit;
}

.bk-stat-link .value {
  color: var(--bk-green-dark);
}

.bk-stat-link:hover .value {
  color: var(--bk-green-dark);
}

.bk-stat-link:hover {
  border-color: rgba(129, 95, 160, 0.35);
  box-shadow: 0 10px 28px rgba(129, 95, 160, 0.12);
}

.bk-stat-active {
  border-color: var(--bk-green) !important;
  box-shadow: 0 0 0 2px rgba(129, 95, 160, 0.15);
}

/* Dashboard: compact stat cards so the chart is visible without scrolling */
.bk-dashboard .bk-page-title {
  margin-bottom: 0;
}

.bk-dashboard .bk-page-title::after {
  margin-bottom: 0.4rem;
}

.bk-dashboard .bk-stat {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(164, 131, 194, 0.1);
}

.bk-dashboard .bk-stat .label {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.bk-dashboard .bk-stat .value {
  font-size: 0.95rem;
  line-height: 1.2;
}

.bk-dashboard .bk-card .card-header {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.bk-dashboard .bk-card .card-body {
  padding: 0.75rem 0.85rem 0.65rem;
}

.ts-wrapper.bk-search-select,
.bk-search-select + .ts-wrapper {
  width: 100%;
}

.bk-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bk-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.bk-detail-value {
  font-weight: 600;
  color: var(--bk-ink);
  line-height: 1.4;
}

.bk-detail-grid > [class*="col-"] {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.btn-bk-primary {
  background: var(--bk-green);
  border-color: var(--bk-green-dark);
  color: var(--bk-ink);
  font-weight: 600;
  border-radius: 8px;
}

.btn-bk-primary:hover {
  background: var(--bk-green-dark);
  border-color: var(--bk-green-dark);
  color: #fff;
}

.btn-outline-bk {
  color: var(--bk-green);
  border-color: var(--bk-green);
  border-radius: 8px;
  font-weight: 600;
}

.btn-outline-bk:hover {
  background: var(--bk-green);
  color: #fff;
}

.bk-content .pagination .page-link {
  color: var(--bk-green-dark);
  border-color: rgba(129, 95, 160, 0.35);
}

.bk-content .pagination .page-link:hover,
.bk-content .pagination .page-link:focus {
  color: var(--bk-green-dark);
  background-color: var(--bk-green-soft);
  border-color: var(--bk-green);
}

.bk-content .pagination .page-item.active .page-link {
  background-color: var(--bk-green);
  border-color: var(--bk-green-dark);
  color: var(--bk-ink);
  font-weight: 600;
}

.bk-content .pagination .page-item.disabled .page-link {
  color: rgba(107, 99, 88, 0.55);
}

.table thead th {
  background: var(--bk-green-soft);
  color: var(--bk-green-dark);
  font-weight: 600;
  border-bottom: 2px solid rgba(129, 95, 160, 0.25);
}

/* GridView sortable column headers */
.bk-card .grid-view thead th a {
  color: var(--bk-green-dark);
  text-decoration: none;
  font-weight: 600;
}

.bk-card .grid-view thead th a:hover {
  color: var(--bk-ink);
}

.bk-card .grid-view thead th a::before,
.bk-card .grid-view thead th a::after {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  margin-bottom: 0 !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  vertical-align: middle;
  opacity: 0.45;
  color: var(--bk-green-dark);
  -webkit-font-smoothing: antialiased;
}

.bk-card .grid-view thead th a::before {
  content: "\f063" !important;
  margin-left: 0.35rem;
  margin-right: 2px;
}

.bk-card .grid-view thead th a::after {
  content: "\f062" !important;
  margin-left: 0.2rem;
}

.bk-card .grid-view thead th a.asc::after,
.bk-card .grid-view thead th a.desc::before {
  opacity: 1;
  color: var(--bk-ink);
}

.bk-card .grid-view thead th a.asc::before,
.bk-card .grid-view thead th a.desc::after {
  opacity: 0.35;
}

.bk-currency-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bk-muted);
}

.bk-currency-amount {
  font-weight: 600;
  color: var(--bk-ink);
}

.badge-stock-available {
  background: #d4edda;
  color: #155724;
}
.badge-stock-low {
  background: #fff3cd;
  color: #856404;
}
.badge-stock-near {
  background: #cce5ff;
  color: #004085;
}
.badge-stock-expired {
  background: #f8d7da;
  color: #721c24;
}
.badge-stock-out {
  background: #e2e3e5;
  color: #383d41;
}

.bk-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bk-green) 0%, var(--bk-green-dark) 50%, #3D2558 100%);
}

.bk-login-card {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: none;
}

.bk-login-card .card-body {
  padding: 2rem;
}

.bk-login-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bk-green-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}

.bk-login-sub {
  text-align: center;
  color: var(--bk-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

main > .container {
  padding-top: 0;
}

.bk-form-card .card-body {
  padding-bottom: 1.25rem;
}

.bk-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(129, 95, 160, 0.28);
}

.bk-form-save-btn,
.bk-form-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
  min-height: 2.55rem;
  padding: 0.45rem 1.2rem;
  border-radius: 10px;
}

.bk-form-save-btn.is-processing {
  opacity: 0.88;
  pointer-events: none;
}

/* POS checkout bar */
.bk-pos-checkout {
  position: sticky;
  bottom: 0.75rem;
  z-index: 1020;
  margin-top: 0.5rem;
  border: 2px solid rgba(129, 95, 160, 0.18);
  box-shadow: 0 8px 28px rgba(129, 95, 160, 0.14);
}

.bk-pos-checkout .card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "summary button"
    "hint button";
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 1rem 1.25rem;
}

.bk-pos-checkout-summary {
  grid-area: summary;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-width: 0;
}

.bk-pos-checkout-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--bk-muted);
  font-weight: 500;
}

.bk-pos-checkout-sep {
  opacity: 0.55;
}

.bk-pos-checkout-total-block {
  text-align: right;
}

.bk-pos-checkout-total {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--bk-ink);
  font-variant-numeric: tabular-nums;
}

.bk-pos-complete-btn {
  grid-area: button;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  min-width: 220px;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--bk-card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  justify-self: end;
}

.bk-pos-complete-btn:not(:disabled):hover,
.bk-pos-complete-btn:not(:disabled):focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(129, 95, 160, 0.35);
}

.bk-pos-complete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.bk-pos-complete-btn.is-processing {
  opacity: 0.85;
  cursor: wait;
  transform: none;
}

.bk-pos-complete-icon {
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.bk-pos-complete-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.bk-pos-complete-label {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.bk-pos-complete-amount {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bk-pos-checkout-hint {
  grid-area: hint;
}

@media (max-width: 767.98px) {
  .bk-pos-checkout .card-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "button"
      "hint";
  }

  .bk-pos-complete-btn {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .bk-pos-checkout-total-block {
    width: 100%;
    text-align: left;
  }
}

/* Profit report */
.bk-profit-report .bk-profit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.25rem;
  background: var(--bk-white);
  border: 1px solid rgba(129, 95, 160, 0.1);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-card-shadow);
}

.bk-profit-report .bk-profit-card--featured {
  padding: 1.35rem 1.5rem;
  border-color: rgba(129, 95, 160, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, var(--bk-green-soft) 100%);
}

.bk-profit-report .bk-profit-card--net {
  background: linear-gradient(135deg, #ffffff 0%, #f7f4fa 100%);
}

.bk-profit-report .bk-profit-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(164, 131, 194, 0.2);
  color: var(--bk-green-dark);
  font-size: 1.35rem;
}

.bk-profit-report .bk-profit-card--featured .bk-profit-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(164, 131, 194, 0.28);
}

.bk-profit-report .bk-profit-card-icon--sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.bk-profit-report .bk-profit-card-body {
  min-width: 0;
}

.bk-profit-report .bk-profit-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bk-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.bk-profit-report .bk-profit-card-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--bk-green-dark);
  line-height: 1.2;
}

.bk-profit-report .bk-profit-card--featured .bk-profit-card-value {
  font-size: 1.85rem;
}

.bk-profit-report .bk-profit-card-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--bk-muted);
  line-height: 1.4;
}

.bk-profit-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.bk-profit-flow-step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  background: var(--bk-green-soft);
  border-radius: 10px;
  min-width: 7rem;
}

.bk-profit-flow-step--highlight {
  background: rgba(164, 131, 194, 0.28);
  border: 1px solid rgba(129, 95, 160, 0.35);
}

.bk-profit-flow-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bk-muted);
  font-weight: 600;
}

.bk-profit-flow-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bk-green-dark);
}

.bk-profit-flow-operator {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bk-muted);
  line-height: 1;
}

@media (max-width: 767.98px) {
  .bk-profit-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .bk-profit-flow-operator {
    align-self: center;
  }

  .bk-profit-flow-step {
    min-width: 0;
  }
}
