/* AKEBO design system — Bootstrap 5.3 stays as the base; these tokens and ak-* classes
   give every screen one look: navy sidebar, neutral slate, dark buttons, color only for meaning,
   amber only for warnings. Mockups confirmed with Yvan (Oct 2026). */
:root {
  --ak-ink: #17212B;
  --ak-muted: #5A6B7D;
  --ak-bg: #F3F5F7;
  --ak-card: #FFFFFF;
  --ak-line: #E1E6EC;
  --ak-line-soft: #EEF1F4;
  --ak-navy: #1B1F2E;
  --ak-navy-2: #272D42;
  --ak-navy-text: #C9D4E0;
  --ak-navy-mute: #7F93A8;
  --ak-teal: #1F3A5F;
  --ak-teal-dark: #14263A;
  --ak-teal-soft: #E6EBF1;
  --ak-indigo: #1F3A5F;
  --ak-indigo-dark: #14263A;
  --ak-indigo-soft: #EEF1F5;
  --ak-green: #15803D;
  --ak-green-dark: #166534;
  --ak-amber: #B45309;
  --ak-amber-soft: #FDEBD0;
  --ak-amber-ink: #8A3A05;
  --ak-red-soft: #FADCDC;
  --ak-red-ink: #8A1C1C;
  --ak-ok-soft: #DDF3E8;
  --ak-ok-ink: #0B5A38;
  --ak-sidebar-w: 244px;

  /* Bootstrap bridge, so existing screens pick up the palette automatically */
  --bs-primary: #1F3A5F;
  --bs-primary-rgb: 31, 58, 95;
  --bs-link-color: #14263A;
  --bs-link-color-rgb: 20, 38, 58;
  --bs-link-hover-color: #1F3A5F;
  --bs-body-color: #17212B;
  --bs-body-bg: #F3F5F7;
  --bs-border-color: #E1E6EC;
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .75rem;
  --bs-body-font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body { background: var(--ak-bg); color: var(--ak-ink); }
.btn-primary { --bs-btn-bg: #1F3A5F; --bs-btn-border-color: #1F3A5F; --bs-btn-hover-bg: #14263A; --bs-btn-hover-border-color: #14263A; --bs-btn-active-bg: #14263A; --bs-btn-active-border-color: #14263A; --bs-btn-disabled-bg: #1F3A5F; --bs-btn-disabled-border-color: #1F3A5F; }
.btn-outline-primary { --bs-btn-color: #1F3A5F; --bs-btn-border-color: #1F3A5F; --bs-btn-hover-bg: #1F3A5F; --bs-btn-hover-border-color: #1F3A5F; --bs-btn-active-bg: #1F3A5F; --bs-btn-active-border-color: #1F3A5F; }
.card { border-color: var(--ak-line); border-radius: .75rem; }
.card.shadow-sm { box-shadow: none !important; }
.card-header { background: #fff; border-bottom-color: var(--ak-line-soft); font-weight: 600; }
.table > :not(caption) > * > * { border-bottom-color: var(--ak-line-soft); }
.table thead th { font-size: .75rem; color: var(--ak-muted); font-weight: 600; border-bottom-color: var(--ak-line); }
.form-control, .form-select { border-color: #CBD5DF; min-height: 40px; }
.form-control:focus, .form-select:focus { border-color: var(--ak-teal); box-shadow: 0 0 0 .2rem rgba(31,58,95,.18); }

/* ---------- App shell ---------- */
.ak-shell { display: flex; min-height: 100vh; }
.ak-side { flex: 0 0 var(--ak-sidebar-w); width: var(--ak-sidebar-w); background: var(--ak-navy); color: var(--ak-navy-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.ak-side.platform { background: #1B1F2E; }
.ak-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; }
.ak-logo { width: 32px; height: 32px; border-radius: 8px; background: #2B4A6F; color: #fff; display: grid; place-items: center; font-weight: 700; }
.ak-brand-name { color: #fff; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.ak-brand-sub { font-size: 12px; color: var(--ak-navy-mute); line-height: 1.2; }
.ak-brand-sub.tag { color: #E8B06A; font-weight: 600; letter-spacing: .08em; font-size: 11px; }
.ak-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-navy-mute); padding: 0 10px 6px; }
.ak-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ak-navy-text); text-decoration: none; font-weight: 500; min-height: 40px; }
.ak-nav:hover { background: var(--ak-navy-2); color: #fff; }
.ak-side.platform .ak-nav:hover { background: #272D42; }
.ak-nav.on { background: #2B4A6F; color: #fff; }
.ak-nav svg, .ak-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ak-pill { margin-left: auto; background: var(--ak-amber); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.ak-side-foot { margin-top: auto; padding: 12px; border-radius: 10px; background: var(--ak-navy-2); }
.ak-side.platform .ak-side-foot { background: #272D42; }
.ak-side-foot .nm { color: #fff; font-weight: 600; }
.ak-side-foot .rl { font-size: 12px; color: var(--ak-navy-mute); }
.ak-side-foot a, .ak-side-foot button { color: var(--ak-navy-text); font-size: 12px; text-decoration: none; background: none; border: 0; padding: 0; }
.ak-side-foot a:hover, .ak-side-foot button:hover { color: #fff; text-decoration: underline; }
.ak-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.ak-top { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ak-navy); color: #fff; }
.ak-top .ak-burger { background: transparent; border: 1px solid var(--ak-navy-2); color: #fff; border-radius: 8px; width: 44px; height: 44px; }
.ak-content { padding: 8px 28px 40px; }
.ak-backdrop { display: none; }
@media (max-width: 991.98px) {
  .ak-side { position: fixed; left: 0; top: 0; z-index: 1040; transform: translateX(-100%); transition: transform .2s; }
  .ak-shell.open .ak-side { transform: none; }
  .ak-shell.open .ak-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1030; }
  .ak-top { display: flex; }
  .ak-content { padding: 16px 14px 32px; }
}
.ak-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.ak-bar .ttl { flex: 1 1 240px; }
.ak-bar h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.ak-bar p { margin: 0; color: var(--ak-muted); font-size: .85rem; }
.ak-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border-radius: 10px; padding: 6px 14px; margin-bottom: 16px; font-size: .9rem; }
.ak-banner.warn { background: #FFF6E5; border: 1px solid #F1D49B; color: #6B3A00; }
.ak-banner.info { background: #EAF4F3; border: 1px solid #BBDCD8; color: #0B4F4A; }
.ak-banner .grow { flex: 1 1 240px; }
.ak-banner a { font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.ak-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #CBD5DF; border-radius: 8px; background: #fff; color: var(--ak-ink); }
.ak-bell .ak-pill { position: absolute; top: -6px; right: -6px; margin: 0; }

/* ---------- Components ---------- */
.ak-card { background: #fff; border: 1px solid var(--ak-line); border-radius: 12px; padding: 18px; min-width: 0; }
.ak-card h2, .ak-h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.ak-sub { font-size: .75rem; color: var(--ak-muted); }
.ak-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ak-kpi-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ak-kpi-ico svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ak-big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ak-up { color: #0B6B43; font-size: .75rem; font-weight: 600; }
.ak-down { color: #9A3F06; font-size: .75rem; font-weight: 600; }
.ak-flat { color: var(--ak-muted); font-size: .75rem; font-weight: 600; }
.ak-row { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ak-row.r3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ak-span2 { grid-column: span 2; }
@media (max-width: 767.98px) { .ak-span2 { grid-column: auto; } }
.ak-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.ak-badge.ok { background: var(--ak-ok-soft); color: var(--ak-ok-ink); }
.ak-badge.hold { background: var(--ak-amber-soft); color: var(--ak-amber-ink); }
.ak-badge.bad { background: var(--ak-red-soft); color: var(--ak-red-ink); }
.ak-badge.neu { background: #E8EDF2; color: #3F5266; }
.ak-bar-track { height: 8px; background: #E8EDF2; border-radius: 99px; overflow: hidden; }
.ak-bar-track.sm { height: 6px; }
.ak-bar-track i { display: block; height: 100%; background: var(--ak-teal); }
.ak-bar-track i.warn { background: var(--ak-amber); }
.ak-bar-track i.full { background: #B91C1C; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #CBD5DF; background: #fff; color: var(--ak-ink); font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; }
.ak-btn:hover { background: #F6F8FA; color: var(--ak-ink); }
.ak-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ak-btn.action { background: var(--ak-indigo); border-color: var(--ak-indigo); color: #fff; }
.ak-btn.action:hover { background: var(--ak-indigo-dark); border-color: var(--ak-indigo-dark); color: #fff; }
.ak-btn.brand { background: var(--ak-teal); border-color: var(--ak-teal); color: #fff; }
.ak-btn.brand:hover { background: var(--ak-teal-dark); color: #fff; }
.ak-btn.done { background: var(--ak-green); border-color: var(--ak-green); color: #fff; }
.ak-btn.done:hover { background: var(--ak-green-dark); color: #fff; }
.ak-btn.danger { color: var(--ak-red-ink); border-color: #E9B8B8; }
.ak-btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.ak-btn.block { width: 100%; justify-content: flex-start; }
.ak-btn:disabled, .ak-btn.disabled { opacity: .45; cursor: not-allowed; }
.ak-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ak-table th { text-align: left; font-weight: 600; color: var(--ak-muted); font-size: .75rem; padding: 8px 10px; border-bottom: 1px solid var(--ak-line); white-space: nowrap; }
.ak-table td { padding: 10px; border-bottom: 1px solid var(--ak-line-soft); white-space: nowrap; }
.ak-table td.n, .ak-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.ak-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.ak-list > div { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ak-line-soft); }
.ak-list > div:last-child { border-bottom: 0; }
.ak-empty { color: var(--ak-muted); padding: 18px 0; text-align: center; font-size: .9rem; }
.ak-chart { width: 100%; position: relative; }
.ak-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .75rem; color: var(--ak-muted); margin-top: 8px; }
.ak-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.ak-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ak-line-soft); }
.ak-strip .v { font-weight: 700; font-size: .95rem; }
.ak-row.wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1199.98px) { .ak-row.wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- POS ---------- */
.ak-chip { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid #CBD5DF; background: #fff; font-weight: 500; cursor: pointer; color: var(--ak-ink); }
.ak-chip.on { background: var(--ak-indigo); border-color: var(--ak-indigo); color: #fff; }
.ak-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 14px; }
.ak-pc { border: 1px solid var(--ak-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.ak-ptile { position: relative; height: 110px; overflow: hidden; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; }
.ak-ptile .ak-badge { position: absolute; top: 6px; right: 6px; font-size: .7rem; padding: 1px 8px; }
.ak-cart { flex: 1 1 360px; max-width: 440px; min-width: 300px; }
@media (min-width: 992px) { .ak-cart { position: sticky; top: 16px; } }
.ak-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ak-line-soft); }
.ak-line-total { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.ak-qty { display: inline-flex; align-items: center; border: 1px solid #CBD5DF; border-radius: 8px; overflow: hidden; }
.ak-qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ak-ink); }
.ak-qty input { width: 46px; height: 40px; border: 0; border-left: 1px solid var(--ak-line-soft); border-right: 1px solid var(--ak-line-soft); text-align: center; font-weight: 600; -moz-appearance: textfield; }
.ak-qty input::-webkit-outer-spin-button, .ak-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ak-totals { border-top: 1px solid var(--ak-line); margin-top: 6px; padding-top: 10px; font-variant-numeric: tabular-nums; }





.ak-tabs { display: flex; gap: 4px; }
.ak-tab { padding: 10px 18px; border-radius: 8px 8px 0 0; font-weight: 600; color: var(--ak-muted); }
.ak-tab.on { background: #fff; color: var(--ak-indigo); box-shadow: inset 0 -3px 0 var(--ak-indigo); border: 1px solid var(--ak-line); border-bottom: 0; }
a.ak-chip { display: inline-flex; align-items: center; text-decoration: none; }
.ak-chip.sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }

.ak-ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-ptile .ak-badge { z-index: 1; }

/* Collapsible sidebar group (Settings) and the notifications bell */
.ak-collapse > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.ak-collapse > summary::-webkit-details-marker { display: none; }
.ak-collapse > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.ak-collapse[open] > summary svg { transform: rotate(180deg); }
.ak-collapse > summary:hover { color: #fff; }
.ak-bar { display: flex; justify-content: flex-end; padding: 14px 28px 0; }
.ak-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--ak-line); color: var(--ak-ink); text-decoration: none; }
.ak-bell:hover { background: var(--ak-line-soft); color: var(--ak-ink); }
.ak-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ak-bell .ak-pill { position: absolute; top: -6px; right: -6px; margin: 0; min-width: 18px; text-align: center; background: #C0392B; }
.ak-top .ak-bell { background: transparent; border-color: var(--ak-navy-2); color: #fff; }
@media (max-width: 991.98px) { .ak-bar { display: none; } }

/* Pager (client-side tables and server-side lists) */
.ak-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
.ak-pager .page-link { color: var(--ak-ink); border-color: var(--ak-line); }
.ak-pager .page-item.active .page-link { background: var(--ak-navy-2); border-color: var(--ak-navy-2); color: #fff; }
.ak-pager .page-item.disabled .page-link { color: var(--ak-muted); }

/* ---------- POS (neutral) ---------- */
.pos-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.pos-tools .form-control { height: 46px; }
.pos-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-cat { border: 1px solid #CBD5DF; background: #fff; color: var(--ak-ink); border-radius: 99px; padding: 8px 16px; font-weight: 500; cursor: pointer; min-height: 40px; }
.pos-cat span { background: var(--ak-line-soft); border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.pos-cat.on { background: #212529; border-color: #212529; color: #fff; }
.pos-cat.on span { background: rgba(255,255,255,.2); }
.pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pos-product-col.d-none { display: none; }
.pos-card { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--ak-line); background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .05s; color: var(--ak-ink); }
.pos-card:hover:not(:disabled) { border-color: #212529; box-shadow: 0 2px 10px rgba(20,30,50,.10); }
.pos-card:active:not(:disabled) { transform: scale(.985); }
.pos-card:focus-visible { outline: 3px solid rgba(33,37,41,.35); outline-offset: 2px; }
.pos-card.is-off { cursor: not-allowed; opacity: .6; }
.pos-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #EDF0F3; overflow: hidden; }
.pos-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pos-init { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; color: #8A97A6; letter-spacing: .04em; }
.pos-stock { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.95); color: #374151; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pos-stock.low { background: #FDEBD0; color: #8A3A05; }
.pos-stock.out { background: #FADCDC; color: #8A1C1C; }
.pos-incart { position: absolute; right: 8px; top: 8px; background: #212529; color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pos-incart.d-none { display: none; }
.pos-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.pos-name { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pos-meta { font-size: .78rem; color: var(--ak-muted); min-height: 1.2em; }
.pos-price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pos-price small { font-weight: 400; color: var(--ak-muted); font-size: .78rem; }
.pos-tags { display: flex; gap: 6px; margin-top: 2px; }
.pos-tag { font-size: .7rem; background: var(--ak-line-soft); color: #4B5563; border-radius: 6px; padding: 1px 7px; }
.pos-tag.warn { background: #FDEBD0; color: #8A3A05; }

.pos-cart { background: #fff; border: 1px solid var(--ak-line); border-radius: 14px; padding: 16px; }
@media (min-width: 992px) { .pos-cart { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.pos-cart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pos-empty { text-align: center; color: var(--ak-muted); padding: 22px 8px; border: 1px dashed var(--ak-line); border-radius: 10px; font-size: .92rem; }
.pos-lines { display: flex; flex-direction: column; }
.pos-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ak-line-soft); align-items: start; }
.pos-lines .pos-line:first-child { border-top: 0; }
.pos-thumb { width: 48px; height: 48px; border-radius: 8px; background: #EDF0F3; overflow: hidden; display: grid; place-items: center; color: #8A97A6; font-weight: 700; font-size: .85rem; }
.pos-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos-line-name { font-weight: 600; line-height: 1.25; }
.pos-line-sub { font-size: .78rem; color: var(--ak-muted); margin-bottom: 6px; }
.pos-line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-height: 48px; }
.pos-line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos-remove-btn { border: 0; background: transparent; color: #9CA3AF; font-size: 1.3rem; line-height: 1; padding: 0 4px; cursor: pointer; }
.pos-remove-btn:hover { color: #B91C1C; }
.pos-qty-input { width: 52px; }
.pos-totals { border-top: 1px solid var(--ak-line); margin-top: 8px; padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; color: var(--ak-muted); font-size: .92rem; }
.pos-totals > div { display: flex; justify-content: space-between; }
.pos-totals .pos-grand { color: var(--ak-ink); font-size: 1.45rem; font-weight: 700; padding-top: 4px; }
.pos-section { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-muted); font-weight: 600; margin: 16px 0 8px; }
.pos-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-pay label { margin: 0; position: relative; }
.pos-pay input { position: absolute; opacity: 0; pointer-events: none; }
.pos-pay span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #CBD5DF; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.pos-pay input:checked + span { background: #212529; border-color: #212529; color: #fff; }
.pos-pay input:focus-visible + span { outline: 3px solid rgba(33,37,41,.35); outline-offset: 2px; }
.pos-cash { margin-top: 10px; background: var(--ak-bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.pos-cash.d-none { display: none; }
.pos-cash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pos-cash-row .form-control { max-width: 150px; text-align: right; }
#pos-checkout-btn { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.pos-submit { position: sticky; bottom: -16px; background: #fff; padding: 10px 0 4px; margin-bottom: -4px; }
.pos-mobilebar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1030; background: #212529; color: #fff; border-radius: 12px; padding: 12px 16px; text-decoration: none; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.pos-mobilebar:hover { color: #fff; }
.pos-mobilebar .pos-mb-go { font-weight: 600; }
@media (max-width: 991.98px) { .pos-mobilebar:not(.d-none) { display: flex; } .pos-cart { scroll-margin-top: 70px; } body { padding-bottom: 0; } }

/* ---------- Reports ---------- */
.rp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ak-line); margin-bottom: 16px; overflow-x: auto; }
.rp-tabs a { padding: 10px 16px; color: var(--ak-muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.rp-tabs a:hover { color: var(--ak-ink); }
.rp-tabs a.on { color: var(--ak-ink); border-bottom-color: #212529; font-weight: 600; }
.rp-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-filter { background: #fff; border: 1px solid var(--ak-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.rp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-chip { border: 1px solid #CBD5DF; border-radius: 99px; padding: 5px 13px; font-size: .85rem; text-decoration: none; color: var(--ak-ink); background: #fff; }
.rp-chip:hover { border-color: #212529; color: var(--ak-ink); }
.rp-chip.on { background: #212529; border-color: #212529; color: #fff; }
.rp-fields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.rp-fields label { font-size: .75rem; color: var(--ak-muted); display: flex; flex-direction: column; gap: 2px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rp-kpi { background: #fff; border: 1px solid var(--ak-line); border-radius: 12px; padding: 14px 16px; }
.rp-kpi.strong { border-top: 3px solid #212529; }
.rp-kpi .l { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); font-weight: 600; }
.rp-kpi .v { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.rp-kpi .s { font-size: .82rem; color: var(--ak-muted); margin-top: 2px; }
.rp-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-bottom: 18px; }
.rp-grid > * { grid-column: span 12; }
@media (min-width: 992px) { .rp-grid > .c8 { grid-column: span 8; } .rp-grid > .c6 { grid-column: span 6; } .rp-grid > .c4 { grid-column: span 4; } }
.rp-card { background: #fff; border: 1px solid var(--ak-line); border-radius: 12px; padding: 16px; min-width: 0; }
.rp-card h2 { font-size: .95rem; font-weight: 600; margin: 0 0 12px; }
.rp-card h2 small { font-weight: 400; color: var(--ak-muted); }
.rp-card .rp-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rp-share { margin-bottom: 10px; }
.rp-share .top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 3px; }
.rp-share small { color: var(--ak-muted); }
.rp-table { width: 100%; font-size: .88rem; border-collapse: collapse; }
.rp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ak-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--ak-line); white-space: nowrap; }
.rp-table td { padding: 8px 10px; border-bottom: 1px solid var(--ak-line-soft); font-variant-numeric: tabular-nums; }
.rp-table .n { text-align: right; }
.rp-table tbody tr:hover { background: var(--ak-bg); }
.rp-note { font-size: .82rem; color: var(--ak-muted); margin: -6px 0 18px; }

/* Tables inside Bootstrap cards: soft off-white surface (less glare than pure white), light border */
.card { background: #FAFBFC; border: 1px solid #E4E8EE; border-radius: 12px; overflow: hidden; }
.card > .table-responsive > .table, .card > .table { --bs-table-bg: #FAFBFC; --bs-table-hover-bg: #F1F4F8; margin-bottom: 0; }
.card .table > thead th { color: var(--ak-muted); font-size: .75rem; font-weight: 600; background: #F3F5F8; border-bottom: 1px solid #E4E8EE; padding: 10px 12px; }
.card .table > tbody td { border-bottom: 1px solid #ECEFF3; padding: 10px 12px; background: #FAFBFC; }
.card .table > tbody tr:hover td { background: #F1F4F8; }
.card > .card-header { background: #F3F5F8; border-bottom: 1px solid #E4E8EE; }

/* ---- analytics (public/js/akcharts.js) ---- */
.ak-insight { margin: 10px 0 0; font-size: .85rem; color: var(--ak-ink); background: #F3F5F8; border-radius: 8px; padding: 8px 12px; }
.ak-up { color: #15803D; font-weight: 600; } 
.ak-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: .78rem; color: var(--ak-muted); }
.ak-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.ak-legend i.sq { width: 10px; height: 10px; border-radius: 2px; }
.ak-legend i.line { width: 16px; height: 3px; border-radius: 2px; }
.ak-legend i.dash { width: 16px; height: 0; border-top: 2px dashed; }
.ak-ramp { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(31,58,95,.12), #1F3A5F); }
.ak-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ak-donut-ring { width: 150px; height: 150px; flex: none; }
.ak-donut-legend { flex: 1 1 140px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; min-width: 0; }
.ak-donut-legend div { display: flex; align-items: center; gap: 8px; }
.ak-donut-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.ak-donut-legend .l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-donut-legend em { color: var(--ak-muted); font-style: normal; font-size: .78rem; min-width: 40px; text-align: right; }
.ak-heat { display: grid; gap: 3px; align-items: center; }
.ak-heat .c { height: 26px; border-radius: 4px; }
.ak-heat .dd, .ak-heat .hh { font-size: .7rem; color: var(--ak-muted); }
.ak-heat .hh { text-align: center; }
@media (max-width: 575px) { .ak-heat .c { height: 20px; } }

/* hover highlighting */
.ak-tip{position:absolute;z-index:5;background:#1B1F2E;color:#fff;font-size:12px;padding:6px 9px;border-radius:7px;pointer-events:none;white-space:nowrap}
.ak-heat .c:hover{outline:2px solid #1B1F2E;outline-offset:-1px}
.ak-donut-legend>div{transition:opacity .15s;border-radius:6px}
.ak-donut-legend>div.on{background:#F1F4F8}.ak-donut-legend>div.dim{opacity:.45}
.rp-share>*:hover{background:#F1F4F8}

/* row actions */
.ak-act{display:inline-block}
.ak-act-btn{line-height:1;padding:.2rem .55rem;font-size:1.05rem;color:#475066}
.ak-act .dropdown-menu{min-width:11rem;font-size:.9rem}
.ak-act .dropdown-item{padding:.4rem .9rem}
.ak-act form{margin:0}
.ak-act .dropdown-item.text-danger:hover{background:#FDECEC}

/* profile avatar */
.ak-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;border:1px solid #E4E8EE;flex:none}
.ak-avatar-init{display:inline-flex;align-items:center;justify-content:center;background:#E8ECF2;color:#1F3A5F;font-weight:600;font-size:1.6rem}
.ak-side-foot .nm a{color:inherit;text-decoration:none}.ak-side-foot .nm a:hover{text-decoration:underline}

/* report tabs */
.rp-tabs{display:flex;gap:6px;border-bottom:1px solid #E4E8EE}
.rp-tabs a{padding:10px 16px;text-decoration:none;color:#475066;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.rp-tabs a span{font-weight:400;font-size:.78rem;color:#8A93A6;margin-left:6px}
.rp-tabs a.on{color:#1B1F2E;border-bottom-color:#1B1F2E}
.rp-funnel{display:grid;gap:8px}.rp-funnel .st{display:grid;grid-template-columns:150px 1fr 48px;align-items:center;gap:10px;font-size:.88rem}
.rp-funnel .bar{height:22px;border-radius:5px;background:#E8ECF2;overflow:hidden}.rp-funnel .bar i{display:block;height:100%;background:#1F3A5F}

/* chart tools */
.ak-tools{display:flex;justify-content:flex-end;gap:6px;margin:-4px 0 6px}
.ak-tool{font-size:.72rem;padding:2px 9px;border:1px solid #D5DAE1;background:#fff;color:#4A5568;border-radius:6px;cursor:pointer}
.ak-tool:hover{border-color:#1B1F2E;color:#1B1F2E}
.ak-tool.on{background:#1B1F2E;border-color:#1B1F2E;color:#fff}
.ak-tblwrap{max-height:320px;overflow:auto}
.ak-tbl{width:100%;font-size:.82rem;border-collapse:collapse}
.ak-tbl th,.ak-tbl td{padding:5px 8px;border-bottom:1px solid #EEF0F3}
.ak-tbl th{color:#6B7280;font-weight:600;text-align:right}.ak-tbl th:first-child{text-align:left}

/* sidebar user card actions */
.ak-foot-act{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.ak-foot-act a,.ak-foot-act button{display:block;width:100%;text-align:center;padding:6px 8px;border:1px solid rgba(255,255,255,.18);border-radius:7px;font-size:12px;line-height:1.2;cursor:pointer}
.ak-foot-act a:hover,.ak-foot-act button:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);text-decoration:none}

/* ---- auth shell (login, signup, password, 2FA) ---- */
.au-body{background:#fff;margin:0}
.au-shell{display:flex;min-height:100vh}
.au-side{flex:0 0 42%;max-width:520px;background:#1B1F2E;color:#C9CFDD;padding:40px 48px;display:flex;flex-direction:column;
  background-image:radial-gradient(rgba(255,255,255,.055) 1px,transparent 1px);background-size:22px 22px}
.au-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff}
.au-logo{width:38px;height:38px;border-radius:10px;background:#fff;color:#1B1F2E;display:grid;place-items:center;font-weight:800}
.au-logo-img{height:38px;width:auto;max-width:150px}
.au-brand-name{font-weight:700;font-size:1.2rem;letter-spacing:.02em}
.au-pitch{margin:auto 0;padding:48px 0}
.au-pitch h2{color:#fff;font-size:1.75rem;line-height:1.25;font-weight:700;margin:0 0 28px;max-width:22ch}
.au-pts{list-style:none;margin:0;padding:0;display:grid;gap:20px}
.au-pts li{display:flex;gap:14px;align-items:flex-start;font-size:.93rem;line-height:1.45}
.au-pts strong{color:#fff;font-weight:600}
.au-dot{flex:0 0 26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;font-size:.78rem;color:#fff;margin-top:1px}
.au-foot{font-size:.8rem;color:#8A93A6;line-height:1.6}
.au-main{flex:1 1 0;display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fff}
.au-card{width:100%;max-width:400px}
.au-card.wide{max-width:560px}
.au-card h1{font-size:1.55rem;font-weight:700;color:#1B1F2E;margin:0 0 6px}
.au-card .au-sub{color:#6B7280;margin:0 0 24px}
.au-card .form-label{font-weight:600;font-size:.85rem;color:#374151;margin-bottom:5px}
.au-card .form-control{padding:.62rem .8rem;border-color:#D5DAE1;border-radius:8px}
.au-card .form-control:focus{border-color:#1B1F2E;box-shadow:0 0 0 3px rgba(27,31,46,.12)}
.au-card .btn-dark{background:#1B1F2E;border-color:#1B1F2E;padding:.7rem;border-radius:8px;font-weight:600}
.au-card .btn-dark:hover{background:#2A3045}
.au-pw{position:relative}.au-pw .form-control{padding-right:4.2rem}
.au-pw button{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:#4A5568;font-size:.8rem;font-weight:600;padding:6px 8px}
.au-sec{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#8A93A6;font-weight:700;margin:22px 0 10px;display:flex;align-items:center;gap:10px}
.au-sec:after{content:"";flex:1;height:1px;background:#E4E8EE}
.au-help{font-size:.85rem;color:#6B7280}
.au-help a{color:#1B1F2E;font-weight:600}
.au-ok{width:56px;height:56px;border-radius:50%;background:#E3F1EA;color:#15803D;display:grid;place-items:center;font-size:1.6rem;margin-bottom:18px}
.au-steps{list-style:none;padding:0;margin:20px 0;display:grid;gap:12px}
.au-steps li{display:flex;gap:12px;font-size:.92rem;color:#374151}
.au-steps b{flex:0 0 24px;height:24px;border-radius:50%;background:#1B1F2E;color:#fff;display:grid;place-items:center;font-size:.75rem}
@media (max-width:860px){
  .au-shell{flex-direction:column}
  .au-side{flex:none;max-width:none;padding:20px 24px;flex-direction:row;align-items:center}
  .au-pitch,.au-foot{display:none}
  .au-main{align-items:flex-start;padding:28px 20px 40px}
}

/* Language switcher in the sidebar footer (includes/i18n.php locale_switcher) */
.ak-lang{margin-top:10px;font-size:12px;opacity:.85}
.ak-lang a{color:inherit;text-decoration:underline}
.ak-lang .on{font-weight:600}
