:root {
  --bc-yellow: #FDD10B;
  --bc-yellow-hover: #EAB308;
  --bc-gold: #CA8A04;
  --bc-charcoal: #0F172A;
  --bc-slate: #64748B;
  --bc-border: #E2E8F0;
  --bc-bg: #F8FAFC;
  --bc-white: #FFFFFF;
  --bc-radius: 12px;
  --bc-font: 'Be Vietnam Pro', system-ui, sans-serif;
  --bc-vv-height: 100dvh;
  --bc-vv-top: 0px;
  --bc-kb-inset: 0px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--bc-font); color: var(--bc-charcoal); background: var(--bc-bg); }
[x-cloak] { display: none !important; }

.bc-public-body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(253,209,11,.28), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(15,23,42,.07), transparent 48%),
    linear-gradient(180deg, #fffef8 0%, #f8fafc 42%, #f1f5f9 100%);
}
html.bc-keyboard-open .bc-form-shell,
html.bc-keyboard-open .bc-admin-content,
html.bc-keyboard-open .bc-card {
  scroll-margin-bottom: calc(var(--bc-kb-inset, 0px) + 24px);
}
html.bc-keyboard-open .bc-form-page {
  padding-bottom: calc(var(--bc-kb-inset, 0px) + 32px);
}

.bc-hub-page { min-height: 100vh; display: flex; flex-direction: column; }
.bc-hub-simple {
  width: min(720px, 100%); margin: 0 auto; padding: 40px 20px 8px; text-align: center;
  position: relative;
}
.bc-hub-staff-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 10px 12px; border-radius: 12px;
  background: #0f172a; color: #e2e8f0; text-align: left; font-size: .88rem; font-weight: 600;
}
.bc-hub-workplace {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bc-yellow); color: #111; text-decoration: none; font-weight: 800;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: .88rem;
}
.bc-hub-workplace:hover { background: var(--bc-yellow-hover); }
.bc-hub-logo {
  height: 52px; width: auto; margin: 0 auto 18px; display: block;
}
.bc-hub-simple h1 {
  margin: 0 0 8px; font-size: clamp(1.35rem, 3.5vw, 1.85rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25;
}
.bc-hub-simple p { margin: 0; color: var(--bc-slate); font-size: 1rem; }

.bc-hub-choose { width: min(980px, 100%); margin: 0 auto; padding: 28px 20px 24px; flex: 1; }

.bc-hub-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) {
  .bc-hub-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.bc-hub-card {
  background: var(--bc-white); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 30px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.bc-hub-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.bc-hub-card-media { position: relative; height: 180px; background: #f1f5f9; }
.bc-hub-card-media img, .bc-hub-card-ph {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bc-hub-card-ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FDD10B, #FACC15 45%, #334155);
  font-size: 2.8rem; font-weight: 800; color: #713f12;
}
.bc-hub-badge {
  position: static; align-self: flex-start;
  display: inline-flex; margin: -4px 0 2px;
  background: #0f172a; color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.bc-hub-card-body { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-hub-card-body h3 { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.bc-hub-card-body p { margin: 0; color: var(--bc-slate); font-size: .92rem; line-height: 1.45; flex: 1; }
.bc-cta {
  display: inline-flex; align-self: flex-start; margin-top: 6px;
  background: var(--bc-yellow); color: #111; font-weight: 800;
  padding: 10px 14px; border-radius: 10px; font-size: .9rem;
}
.bc-hub-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  background: #fff; border-radius: 16px; border: 1px dashed #e2e8f0;
}
.bc-hub-empty strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.bc-hub-empty p { color: var(--bc-slate); margin: 0 0 12px; }
.bc-hub-empty a { color: var(--bc-gold); font-weight: 700; }
.bc-hub-foot {
  text-align: center; margin-top: auto; padding: 28px 20px 40px;
  color: #94a3b8; font-size: .9rem; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.bc-hub-foot a { color: var(--bc-gold); font-weight: 700; text-decoration: none; }

.bc-form-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.bc-form-shell {
  width: 100%; max-width: 760px; background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.2); position: relative; overflow: hidden;
}
@media (min-width: 768px) { .bc-form-shell { padding: 36px 40px; } }
.bc-form-logo-wrap { text-align: center; margin-bottom: 14px; }
.bc-form-logo {
  height: 42px; width: auto; max-width: min(220px, 70vw);
  object-fit: contain; display: inline-block;
}
.bc-success-logo-wrap { margin-bottom: 10px; }
.bc-form-cover { margin: 0 -28px 16px; }
@media (min-width: 768px) { .bc-form-cover { margin: 0 -40px 16px; } }
.bc-form-cover img { width: 100%; max-height: 180px; object-fit: cover; display: block; }

.bc-progress-wrap { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: #f1f5f9; }
.bc-progress-bar { height: 100%; background: var(--bc-yellow); transition: width .35s ease; width: 33%; }

.bc-title { font-size: 1.5rem; font-weight: 800; margin: 12px 0 8px; }
.bc-subtitle { color: var(--bc-slate); font-size: .9rem; margin: 0 0 20px; }
.bc-label { display: block; font-size: 11px; font-weight: 700; color: var(--bc-slate); text-transform: uppercase; margin: 0 0 6px; }
.bc-form-group { margin-bottom: 16px; }
.bc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .bc-form-row { grid-template-columns: 1fr; } }
.bc-input {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: var(--bc-radius);
  font: inherit; background: #fff; color: #334155; outline: none;
}
.bc-input:focus { border-color: var(--bc-yellow); box-shadow: 0 0 0 2px rgba(253,209,11,.25); }
.bc-btn-submit, .bc-btn {
  width: 100%; background: var(--bc-yellow); color: #111; font-weight: 700; border: 0; border-radius: var(--bc-radius);
  padding: 14px 18px; cursor: pointer; font: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(253,209,11,.35);
}
.bc-btn { width: auto; padding: 10px 16px; }
.bc-btn-submit:hover, .bc-btn:hover { background: var(--bc-yellow-hover); }
.bc-btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.bc-btn-black { background: var(--bc-charcoal); color: #fff; box-shadow: none; }
.bc-btn-ghost { background: transparent; border: 0; color: var(--bc-gold); font-weight: 600; cursor: pointer; font: inherit; padding: 6px 8px; }
.bc-btn-danger {
  width: auto; padding: 10px 16px; border: 1px solid #fecaca; border-radius: var(--bc-radius);
  background: #fff; color: #dc2626; font-weight: 700; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center;
}
.bc-btn-danger:hover { background: #fef2f2; }
.bc-btn-back { background: transparent; border: 0; color: var(--bc-gold); font-weight: 600; cursor: pointer; margin: 0 0 16px; padding: 0; font: inherit; }
.bc-btn-back-inline { margin: 0; font-size: .85rem; white-space: nowrap; }
.bc-choice-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a;
}
.bc-choice-bar-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-choice-bar-copy span { font-size: .72rem; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .04em; }
.bc-choice-bar-copy strong { font-size: 1rem; color: #0f172a; }
.bc-choice-card {
  margin: 0 0 18px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
  border: 1px solid #fde68a;
}
.bc-choice-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.bc-choice-kicker {
  font-size: .72rem; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: .05em;
}
.bc-choice-card-body { display: flex; gap: 12px; align-items: flex-start; }
.bc-choice-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: #f1f5f9; border: 1px solid #fef3c7;
}
.bc-choice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-choice-info { min-width: 0; flex: 1; }
.bc-choice-info strong { display: block; font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.bc-choice-info p { margin: 0 0 2px; font-size: .88rem; color: #64748b; line-height: 1.4; }
.bc-choice-info .bc-choice-phone { color: #0f172a; font-weight: 600; }
.bc-choice-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bc-choice-card-product { background: linear-gradient(180deg, #f8fafc 0%, #fff 70%); border-color: #e2e8f0; }
.bc-choice-card-product .bc-choice-kicker { color: #475569; }

.bc-summary {
  margin: 0 0 20px; border-radius: 16px; overflow: hidden;
  border: 1px solid #fde68a; background: #fff;
  box-shadow: 0 8px 22px rgba(253,209,11,.08);
}
.bc-summary-head {
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-bottom: 1px solid #fde68a;
}
.bc-summary-kicker {
  margin: 0 0 2px; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #92400e;
}
.bc-summary-head h3 {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em;
}
.bc-summary-list { list-style: none; margin: 0; padding: 0; }
.bc-summary-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
}
.bc-summary-list li:last-child { border-bottom: 0; }
.bc-summary-ico {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  background: #0f172a; color: #fde68a; margin-top: 2px;
}
.bc-summary-thumb {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #f8fafc; border: 1px solid #eef2f7;
}
.bc-summary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-summary-copy { flex: 1; min-width: 0; }
.bc-summary-copy span {
  display: block; font-size: .68rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
}
.bc-summary-copy strong {
  display: block; font-size: .95rem; font-weight: 800; color: #0f172a; line-height: 1.3;
}
.bc-summary-copy em {
  display: block; font-style: normal; font-size: .82rem; color: #64748b; margin-top: 2px; line-height: 1.35;
}
.bc-summary-edit {
  all: unset; cursor: pointer; flex-shrink: 0; align-self: center;
  font-size: .82rem; font-weight: 700; color: #a16207; padding: 6px 8px;
}
.bc-summary-edit:hover { text-decoration: underline; }

.bc-pick-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 640px) {
  .bc-pick-grid { grid-template-columns: 1fr 1fr; }
}
.bc-pick-grid-inline { margin-top: 4px; }
.bc-pick-swipe-hint {
  display: none;
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 600;
  color: #94a3b8;
}
@media (max-width: 639px) {
  .bc-pick-swipe-hint.is-on { display: block; }
  .bc-pick-grid.is-horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 2px 12px;
    margin-inline: -2px;
  }
  .bc-pick-grid.is-horizontal::-webkit-scrollbar { height: 4px; }
  .bc-pick-grid.is-horizontal::-webkit-scrollbar-thumb {
    background: #fcd34d; border-radius: 999px;
  }
  .bc-pick-grid.is-horizontal > .bc-pick-product,
  .bc-pick-grid.is-horizontal > button.bc-pick-product {
    flex: 0 0 min(72vw, 240px);
    width: min(72vw, 240px);
    max-width: 240px;
    scroll-snap-align: start;
  }
  .bc-pick-grid.is-horizontal .bc-pick-product-media { aspect-ratio: 1 / 1; }
  .bc-pick-grid.is-horizontal .bc-pick-product-body strong {
    font-size: .84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bc-pick-grid.is-vertical {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.bc-pick-product {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border: 1.5px solid #e2e8f0; border-radius: 16px; background: #fff; cursor: pointer;
  overflow: hidden; padding: 0; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bc-pick-product:hover {
  border-color: #fbbf24; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.bc-pick-product.is-selected {
  border-color: #f59e0b; background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(253,209,11,.35);
}
.bc-pick-product-media {
  aspect-ratio: 4 / 3; background: #f8fafc; overflow: hidden;
}
.bc-pick-product-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bc-pick-product-body { padding: 10px 12px 12px; }
.bc-pick-product-body strong {
  display: block; font-size: .9rem; font-weight: 800; line-height: 1.3; color: #0f172a;
}
.bc-pick-product-body span {
  display: block; margin-top: 4px; font-size: .82rem; font-weight: 700; color: #b45309;
}
.bc-pick-check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 999px;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  background: #fff; color: transparent; border: 1.5px solid #e2e8f0;
}
.bc-pick-product.is-selected .bc-pick-check {
  background: var(--bc-yellow); color: #111; border-color: var(--bc-yellow);
}

.bc-slot-box { margin-top: 2px; }
.bc-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 480px) {
  .bc-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bc-slot-chip {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s, opacity .15s;
  font: inherit;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bc-slot-chip:hover:not(:disabled):not(.is-disabled) {
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(253, 209, 11, .2);
}
.bc-slot-chip.is-selected {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(253, 209, 11, .35);
}
.bc-slot-chip.is-disabled,
.bc-slot-chip:disabled {
  opacity: .48;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  text-decoration: line-through;
}
.bc-slot-chip.is-disabled strong,
.bc-slot-chip:disabled strong { text-decoration: line-through; }
.bc-slot-chip small {
  font-size: .68rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
}
.bc-slot-chip strong { font-size: .92rem; font-weight: 700; }
.bc-slot-hint, .bc-slot-hours {
  margin: 8px 0 0; font-size: .82rem; line-height: 1.4;
}
.bc-slot-hours { color: #475569; font-weight: 600; }
.bc-slot-hint { color: #92400e; }

.bc-date-wrap {
  position: relative;
  display: block;
  min-height: 52px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bc-date-face {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  pointer-events: none; /* cả thanh → input date phía trên */
  user-select: none;
}
.bc-date-face.is-empty .bc-date-face-text {
  color: #94a3b8;
  font-weight: 500;
}
.bc-date-face-text {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: .01em;
}
.bc-date-face-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.bc-date-wrap:active .bc-date-face-ico,
.bc-date-wrap:focus-within .bc-date-face-ico {
  background: #fdd10b;
  border-color: #f0c400;
  color: #111;
}
/* Input date phủ cả ô — bấm đâu cũng mở lịch (mobile + desktop) */
.bc-date-native {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.011; /* iOS/Android cần >0 để nhận tap */
  cursor: pointer;
  font-size: 16px; /* tránh zoom iOS */
  color: transparent;
  background: transparent;
}
.bc-date-native::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

/* Chuẩn ngày Beecube: dd/MM/yyyy (text) + native date ẩn đồng bộ */
.bc-date-vi-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
}
.bc-date-vi-wrap .bc-date-vi-text {
  width: 100%;
  min-height: 48px;
}
.bc-date-vi-wrap .bc-date-vi-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bc-date-vi-text.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

/* Admin: date / datetime-local — bấm cả thanh mở lịch */
.bc-date-easy-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.bc-date-easy-wrap.bc-date-easy-inline {
  display: inline-block;
  width: auto;
  min-width: 160px;
  flex: 1 1 160px;
}
.bc-date-easy-wrap .bc-date-easy,
input.bc-input.bc-date-easy[type="date"],
input.bc-input.bc-date-easy[type="datetime-local"],
input.bc-input[type="date"],
input.bc-input[type="datetime-local"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  font-size: 16px; /* tránh zoom iOS */
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.bc-date-easy-ico {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  pointer-events: none;
}
.bc-date-easy-wrap:focus-within .bc-date-easy-ico {
  background: #fdd10b;
  border-color: #f0c400;
  color: #111;
}
/* WebKit: vùng lịch phủ cả ô */
.bc-date-easy-wrap input[type="date"]::-webkit-calendar-picker-indicator,
.bc-date-easy-wrap input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input.bc-input[type="date"]::-webkit-calendar-picker-indicator,
input.bc-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.bc-error { color: #dc2626; font-size: .9rem; margin: 8px 0; }
.bc-empty { color: var(--bc-slate); }
.bc-address-box { background: #f8fafc; border: 1px solid var(--bc-border); border-radius: 12px; padding: 14px; }
.bc-addr-preview { margin: 10px 0 0; font-size: .85rem; color: #475569; line-height: 1.4; }

.bc-region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .bc-region-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.bc-region-item {
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.bc-region-item:hover {
  border-color: var(--bc-yellow);
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.bc-region-item.is-selected {
  border-color: var(--bc-yellow);
  background: #fefce8;
  box-shadow: 0 0 0 2px rgba(253, 209, 11, .35);
}
.bc-region-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #fef9c3, #f1f5f9);
  overflow: hidden;
}
.bc-region-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.bc-region-item:hover .bc-region-thumb img { transform: scale(1.04); }
.bc-region-item strong {
  display: block;
  padding: 14px 12px 16px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.bc-region-item small {
  display: block;
  margin-top: -10px;
  padding: 0 12px 14px;
  color: var(--bc-slate);
  font-size: 12px;
}
.bc-scroll { max-height: 350px; overflow-y: auto; padding-right: 4px; }

/* Mobile: list dọc · Desktop: lưới 2–3 cột cho đỡ trống */
.bc-store-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.bc-store-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin: 0;
  border: 2px solid #f1f5f9;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bc-store-item:hover {
  border-color: var(--bc-yellow);
  background: #fefce8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.bc-store-item:active { transform: scale(.99); }
.bc-store-thumb {
  width: 72px; height: 64px; border-radius: 10px; overflow: hidden;
  background: #f1f5f9; flex-shrink: 0;
}
.bc-store-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-store-info { min-width: 0; flex: 1; }
.bc-store-info h4 { margin: 0 0 4px; font-size: 14px; line-height: 1.3; }
.bc-store-info .bc-store-region {
  display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7;
}
.bc-store-info .addr { margin: 0 0 4px; font-size: 11px; color: var(--bc-slate); line-height: 1.35; }
.bc-store-info .phone { margin: 0 0 2px; font-size: 11px; font-weight: 600; color: var(--bc-gold); }
.bc-store-info .hours { margin: 0; font-size: 11px; color: #64748b; }

@media (min-width: 720px) {
  .bc-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-height: none;
    overflow: visible;
  }
  .bc-store-item {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    height: 100%;
  }
  .bc-store-thumb {
    width: 100%;
    height: 140px;
    border-radius: 0;
  }
  .bc-store-info { padding: 12px 14px 14px; }
  .bc-store-info h4 { font-size: 15px; }
  .bc-store-item:hover { transform: translateY(-2px); }
}

@media (min-width: 980px) {
  .bc-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-store-thumb { height: 150px; }
}

.bc-icon-success {
  width: 56px; height: 56px; border-radius: 50%; background: #fef08a; display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #854d0e; margin: 0 auto 12px;
}
.bc-success-img { max-width: 100%; border-radius: 12px; margin-bottom: 12px; }
.bc-ticket { background: #f8fafc; border: 1px solid var(--bc-border); border-radius: 12px; margin: 0 0 24px; text-align: left; }
.bc-ticket-head {
  background: rgba(253,209,11,.2); padding: 16px; border-bottom: 1px dashed #cbd5e1; border-radius: 12px 12px 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.bc-ticket-body { padding: 20px; }
.bc-t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.bc-t-label { font-size: 11px; color: var(--bc-slate); margin: 0 0 4px; }
.bc-t-val { font-size: 14px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.bc-t-val.yellow { color: var(--bc-gold); }
.bc-t-divider { border-top: 1px solid var(--bc-border); margin: 12px 0; padding-top: 12px; }
.bc-badge { background: var(--bc-yellow); color: #111; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
.bc-ticket-qr { margin: -6px 0 14px; text-align: center; }
.bc-ticket-qr img {
  width: 138px; height: 138px; object-fit: contain; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; padding: 8px;
}
.bc-ticket-qr p { margin: 8px 0 0; font-size: .82rem; color: #64748b; }
.bc-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.bc-btn-success-act {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .15s, background .15s, transform .15s;
}
.bc-btn-success-act:hover:not(:disabled) {
  border-color: #fbbf24;
  background: #fffbeb;
  transform: translateY(-1px);
}
.bc-btn-success-act.is-share {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.bc-btn-success-act.is-share:hover:not(:disabled) {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}
.bc-btn-success-act:disabled { opacity: .55; cursor: wait; }
.bc-success-act-hint {
  margin: -4px 0 14px;
  font-size: .82rem;
  font-weight: 600;
  color: #b45309;
  min-height: 1.2em;
}
.bc-success-links {
  text-align: left; margin: 4px 0 20px;
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 14px;
}
.bc-success-links h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.bc-success-links > p { margin: 0 0 12px; color: #64748b; font-size: .85rem; line-height: 1.4; }
.bc-success-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}
@media (min-width: 560px) {
  .bc-success-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-success-link-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .bc-success-link-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bc-success-link-ico.bc-ico-shop { background: #dcfce7; color: #15803d; }
.bc-ticket-link-box {
  text-align: left;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  border-radius: 12px;
}
.bc-ticket-link {
  display: block;
  margin: 4px 0 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: .88rem;
  word-break: break-all;
  text-decoration: underline;
}
.bc-btn-copy-link {
  appearance: none;
  border: 1.5px solid #f59e0b;
  background: #fff;
  color: #92400e;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
}
.bc-btn-copy-link:hover { background: #fef3c7; }
.bc-success-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 100%;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 10px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.bc-success-link-ico {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; display: grid; place-items: center; flex-shrink: 0;
}
.bc-success-link-ico.bc-ico-zalo {
  border-radius: 10px;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}
.bc-success-link-ico.bc-ico-phone { background: #fee2e2; color: #dc2626; }
.bc-success-link-ico.bc-ico-community { background: #ede9fe; color: #7c3aed; }
.bc-success-link-card strong {
  color: #0f172a; font-size: .86rem; font-weight: 800; line-height: 1.25;
  min-height: 2.4em; display: flex; align-items: center; justify-content: center;
}
.bc-success-link-card span {
  color: #64748b; font-size: .78rem; line-height: 1.35;
  margin-top: auto;
}
.bc-success-link-card:hover {
  border-color: #fcd34d; background: #fffbeb; transform: translateY(-1px);
}
.bc-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Admin */
.bc-admin-body {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(253,209,11,.12), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  color: #0f172a;
}
.bc-admin-shell { display: flex; min-height: 100vh; }
.bc-sidebar {
  width: 268px; background: linear-gradient(180deg, #0b1220 0%, #111827 60%, #0b1220 100%); color: #fff;
  display: flex; flex-direction: column; padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.bc-sidebar::before {
  content: ""; position: absolute; left: 0; top: 80px; bottom: 60px; width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(253,209,11,.5) 50%, transparent 100%);
  pointer-events: none;
}
.bc-sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.bc-sidebar-brand::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--bc-yellow, #FDD10B) 0%, transparent 80%);
  border-radius: 2px;
}
.bc-sidebar-brand img { height: 36px; width: auto; max-width: 120px; object-fit: contain; background: transparent; border-radius: 0; padding: 0; }
.bc-sidebar-brand strong { display: block; font-weight: 800; font-size: 1rem; line-height: 1.1; background: linear-gradient(90deg, #fff 0%, #FDD10B 120%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bc-sidebar-brand span { display: block; color: #94a3b8; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.bc-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-right: 2px; }
.bc-nav::-webkit-scrollbar { width: 4px; }
.bc-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }
.bc-nav::-webkit-scrollbar-thumb:hover { background: rgba(253,209,11,.35); }
.bc-nav-label {
  margin: 16px 8px 6px; color: #64748b; font-size: .66rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.bc-nav-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, transparent 100%);
}
.bc-nav a {
  color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 10px;
  transition: background .18s ease, color .18s ease, transform .18s ease, padding-left .18s ease;
  position: relative; border-left: 3px solid transparent;
}
.bc-nav-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%);
  color: #f8fafc; font-size: .9rem; flex-shrink: 0; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.bc-nav-ico-svg {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bc-nav-ico-svg svg { width: 100%; height: 100%; display: block; }
.bc-nav a:hover { background: rgba(253,209,11,.08); color: #fff; padding-left: 16px; }
.bc-nav a:hover .bc-nav-ico { background: linear-gradient(135deg, rgba(253,209,11,.25) 0%, rgba(253,209,11,.10) 100%); color: var(--bc-yellow, #FDD10B); transform: scale(1.05); }
.bc-nav a:hover .bc-nav-ico-svg { transform: scale(1.08); box-shadow: 0 4px 14px rgba(253,209,11,.35); }
.bc-nav a.active {
  background: linear-gradient(90deg, rgba(253,209,11,.20) 0%, rgba(253,209,11,.04) 100%);
  color: var(--bc-yellow, #FDD10B);
  border-left-color: var(--bc-yellow, #FDD10B);
  box-shadow: 0 2px 8px rgba(253,209,11,.12);
  font-weight: 700;
}
.bc-nav a.active .bc-nav-ico {
  background: linear-gradient(135deg, var(--bc-yellow, #FDD10B) 0%, #f0c400 100%);
  color: #111; box-shadow: 0 2px 6px rgba(253,209,11,.4);
}
.bc-nav a.active .bc-nav-ico-svg {
  box-shadow: 0 0 0 2px var(--bc-yellow, #FDD10B), 0 4px 12px rgba(253,209,11,.4);
  transform: scale(1.05);
}
.bc-sidebar-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 10px; }
.bc-user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .85rem; padding: 0 4px; }
a.bc-user-chip-link {
  text-decoration: none; color: inherit; border-radius: 12px; padding: 8px;
  border: 1px solid transparent; transition: .15s ease;
}
a.bc-user-chip-link:hover,
a.bc-user-chip-link.is-active {
  background: rgba(255,255,255,.06); border-color: rgba(253,209,11,.35);
}
.bc-user-avatar {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bc-yellow); color: #111;
  display: grid; place-items: center; font-weight: 800;
}
.bc-user-chip strong { display: block; font-size: .88rem; }
.bc-user-chip span { color: #94a3b8; font-size: .72rem; font-weight: 600; }
.bc-logout-btn {
  width: 100%; background: rgba(255,255,255,.06); color: #fecaca; border: 1px solid rgba(254,202,202,.2);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.bc-logout-btn:hover { background: rgba(239,68,68,.15); }
.bc-admin-main { flex: 1; min-width: 0; }
.bc-topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--bc-border); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.bc-topbar-title { font-weight: 800; flex: 1; font-size: 1.15rem; letter-spacing: -.02em; min-width: 120px; }
.bc-topbar-actions { display: flex; align-items: center; gap: 10px; }

/* Trial badge — nút vàng chuẩn Beecube (như Cho phép thông báo) */
.bc-trial-btn {
  position: relative; overflow: hidden; flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; padding: 8px 14px; min-height: 44px;
  border-radius: var(--bc-radius, 12px); text-decoration: none;
  color: #111; background: var(--bc-yellow, #fdd10b);
  box-shadow: 0 4px 14px rgba(253,209,11,.35);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  animation: bc-trial-pulse 2.8s ease-in-out infinite;
}
.bc-trial-btn:hover {
  background: var(--bc-yellow-hover, #f0c400);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(253,209,11,.42);
}
.bc-trial-btn-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: bc-trial-shine 3.6s ease-in-out infinite;
}
.bc-trial-btn-main {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.15;
}
.bc-trial-btn-tag {
  font-size: .62rem; font-weight: 900; letter-spacing: .12em;
  padding: 3px 6px; border-radius: 6px; background: #111; color: var(--bc-yellow, #fdd10b);
}
.bc-trial-btn-text {
  font-size: .84rem; font-weight: 800; color: #111; white-space: nowrap;
}
.bc-trial-btn-meta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 600; color: #78350f; white-space: nowrap;
}
.bc-trial-btn-meta b { font-weight: 800; color: #111; }
.bc-trial-btn-clock {
  display: inline-flex; align-items: center; gap: 3px;
  font-variant-numeric: tabular-nums; color: #92400e;
}
.bc-trial-btn-clock b { font-weight: 800; color: #92400e; }
.bc-trial-btn.is-expired {
  background: #fee2e2; color: #991b1b;
  box-shadow: 0 4px 14px rgba(239,68,68,.18);
  animation: none;
}
.bc-trial-btn.is-expired .bc-trial-btn-tag {
  background: #b91c1c; color: #fff;
}
.bc-trial-btn.is-expired .bc-trial-btn-text,
.bc-trial-btn.is-expired .bc-trial-btn-meta,
.bc-trial-btn.is-expired .bc-trial-btn-meta b,
.bc-trial-btn.is-expired .bc-trial-btn-clock,
.bc-trial-btn.is-expired .bc-trial-btn-clock b { color: #991b1b; }
.bc-trial-btn.is-expired .bc-trial-btn-shine { display: none; }

@keyframes bc-trial-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(253,209,11,.32); }
  50% { box-shadow: 0 4px 18px rgba(253,209,11,.55), 0 0 0 4px rgba(253,209,11,.18); }
}
@keyframes bc-trial-shine {
  0%, 55% { transform: translateX(-130%); }
  75%, 100% { transform: translateX(130%); }
}

.bc-trial-lock-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d;
}
.bc-trial-lock-banner strong { display: block; margin-bottom: 2px; }
.bc-trial-lock-banner p { margin: 0; font-size: .88rem; color: #991b1b; }
.bc-trial-lock-banner .bc-btn { background: #b91c1c; color: #fff; }

.bc-danger-zone {
  margin-top: 8px; padding: 16px; border-radius: 14px;
  border: 1px solid #fecaca; background: #fef2f2;
}
.bc-danger-zone strong { color: #991b1b; display: block; margin-bottom: 4px; }
.bc-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer;
  background: #b91c1c; color: #fff; font: inherit; font-weight: 800;
}
.bc-btn-danger:hover { background: #991b1b; }

.bc-trial-day-row {
  display: flex; gap: 8px; align-items: stretch;
}
.bc-trial-day-row .bc-input { flex: 1; min-width: 0; }
.bc-trial-day-row .bc-btn-ghost { white-space: nowrap; }
.bc-trial-presets {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.bc-chip-btn {
  border: 1px solid var(--bc-border); background: #fff; color: #334155;
  border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .78rem;
  font-weight: 700; cursor: pointer;
}
.bc-chip-btn:hover { border-color: #f59e0b; background: #fffbeb; color: #92400e; }

.bc-mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px;
}
.bc-mode-card {
  border: 1.5px solid var(--bc-border); border-radius: 14px; padding: 14px 16px;
  background: #f8fafc; display: grid; gap: 6px;
}
.bc-mode-card strong { font-size: 1rem; }
.bc-mode-card span { color: var(--bc-slate); font-size: .86rem; line-height: 1.45; }
.bc-mode-card em { font-style: normal; font-size: .82rem; font-weight: 700; color: #854d0e; }
.bc-mode-card.is-active {
  border-color: #f59e0b; background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(253,209,11,.2);
}
.bc-mode-card.is-active.is-prod {
  border-color: #0f172a; background: #f1f5f9;
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
.bc-mode-card.is-active.is-prod em { color: #0f172a; }
@media (max-width: 720px) {
  .bc-trial-btn { padding: 7px 10px; min-height: 40px; max-width: min(56vw, 220px); }
  .bc-trial-btn-text { font-size: .76rem; white-space: normal; }
  .bc-trial-btn-meta { font-size: .62rem; gap: 6px; }
  .bc-mode-switch { grid-template-columns: 1fr; }
}

.bc-top-link {
  color: #475569; text-decoration: none; font-weight: 600; font-size: .88rem;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--bc-border); background: #fff;
}
.bc-top-link:hover { border-color: #fcd34d; color: #111; }
.bc-menu-btn { display: none; background: #fff; border: 1px solid var(--bc-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.bc-admin-content { padding: 22px; }
.bc-sidebar-backdrop { display: none; }
.bc-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bc-page-head h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.bc-page-head p { margin: 6px 0 0; color: var(--bc-slate); font-size: .92rem; }
.bc-muted { color: var(--bc-slate); font-size: .9rem; }

@media (max-width: 900px) {
  .bc-sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-105%); transition: transform .25s;
  }
  .bc-sidebar.is-open { transform: translateX(0); }
  .bc-menu-btn { display: inline-flex; }
  .bc-sidebar-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40;
  }
  .bc-top-link { display: none; }
}

.bc-card {
  background: #fff; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
  margin-bottom: 16px; border: 1px solid rgba(226,232,240,.9);
}
.bc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bc-card-head h2, .bc-card h2, .bc-card h3 { margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.bc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bc-stat {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 20px rgba(15,23,42,.04);
  border: 1px solid rgba(226,232,240,.9);
}
.bc-stat span { color: var(--bc-slate); font-size: .8rem; font-weight: 600; }
.bc-stat strong { display: block; font-size: 1.7rem; margin-top: 6px; letter-spacing: -.03em; }
.bc-table-wrap { overflow-x: auto; }
.bc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bc-table th, .bc-table td { padding: 12px 10px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: middle; }
.bc-table th { color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bc-table tbody tr:hover { background: #f8fafc; }
.bc-pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #e2e8f0; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-new { background: #fef08a; color: #713f12; }
.status-contacted { background: #bfdbfe; color: #1e3a8a; }
.status-consulting { background: #ddd6fe; color: #5b21b6; }
.status-booked { background: #bbf7d0; color: #14532d; }
.status-purchased { background: #86efac; color: #14532d; }
.status-lost { background: #fecaca; color: #7f1d1d; }
.bc-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.bc-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.bc-filters .bc-input { width: auto; min-width: 150px; background: #fff; }
.bc-empty-state {
  text-align: center; padding: 42px 16px; color: var(--bc-slate);
}
.bc-empty-state strong { display: block; color: #0f172a; font-size: 1.05rem; margin-bottom: 6px; }
.bc-kanban {
  display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px;
  overflow-x: auto; padding-bottom: 16px; align-items: start;
  position: relative;
}
.bc-kanban-col {
  background: #f1f5f9; border-radius: 16px; padding: 10px; min-height: 420px;
  border: 1px solid #e2e8f0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.bc-kanban-col.is-drop-target {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(253,209,11,.35), 0 12px 28px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.bc-kanban-col.is-busy { opacity: .92; }
.bc-kanban-col-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 4px 4px 8px;
}
.bc-kanban-col-head h3 { margin: 0; font-size: .86rem; font-weight: 800; color: #334155; }
.bc-kanban-col-head span {
  background: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; color: #0f172a; border: 1px solid #e2e8f0;
}
.bc-kanban-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 320px; }
.bc-kanban-card {
  display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px;
  text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(15,23,42,.04); cursor: grab;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, opacity .16s ease;
  user-select: none;
  touch-action: none;
}
.bc-kanban-card:hover { transform: translateY(-2px); border-color: #fde68a; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.bc-kanban-card:active { cursor: grabbing; }
.bc-kanban-card.is-dragging {
  opacity: .25;
  border-style: dashed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
.bc-kanban-ghost {
  position: fixed !important;
  top: 0; left: 0;
  z-index: 9999;
  margin: 0;
  pointer-events: none !important;
  opacity: 1 !important;
  cursor: grabbing;
  display: block !important;
  background: #fff !important;
  border: 2px solid #f59e0b !important;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.28), 0 0 0 4px rgba(253,209,11,.35);
  will-change: transform;
  color: #0f172a;
}
.bc-kanban-ghost code { font-size: .72rem; color: #64748b; }
.bc-kanban-ghost strong { display: block; font-size: .92rem; margin-top: 2px; color: #0f172a; }
.bc-kanban-ghost > span,
.bc-kanban-ghost > small { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.bc-kanban-ghost .bc-kanban-sale {
  display: block; margin-top: 6px; font-size: .75rem; color: #92400e;
  font-style: normal; font-weight: 700;
}
body.bc-kanban-dragging { cursor: grabbing !important; user-select: none; }
body.bc-kanban-dragging * { cursor: grabbing !important; }
.bc-kanban-card.is-just-dropped {
  animation: bcKanbanPop .42s ease;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(253,209,11,.3);
}
@keyframes bcKanbanPop {
  0% { transform: scale(.92); opacity: .6; }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.bc-kanban-card.is-waiting { border-color: #fcd34d; background: #fffbeb; }
.bc-kanban-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bc-kanban-card strong { display: block; font-size: .92rem; }
.bc-kanban-card span, .bc-kanban-card small { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.bc-kanban-sale { display: block; margin-top: 6px; font-size: .75rem; color: #92400e; font-style: normal; font-weight: 700; }
.bc-kanban-empty { color: #94a3b8; font-size: .82rem; text-align: center; padding: 24px 8px; border: 1px dashed #cbd5e1; border-radius: 12px; }
.bc-kanban-hint {
  position: sticky; left: 0; grid-column: 1 / -1; margin: 4px 0 0;
  font-size: .85rem; font-weight: 700; color: #b45309;
}
.bc-dot-warn { width: 8px; height: 8px; border-radius: 999px; background: #f59e0b; display: inline-block; }
.bc-kanban-col.tone-new { background: #fffbeb; border-color: #fde68a; }
.bc-kanban-col.tone-contacted { background: #eff6ff; border-color: #bfdbfe; }
.bc-kanban-col.tone-consulting { background: #f5f3ff; border-color: #ddd6fe; }
.bc-kanban-col.tone-booked { background: #fff7ed; border-color: #fed7aa; }
.bc-kanban-col.tone-purchased { background: #ecfdf5; border-color: #a7f3d0; }
.bc-kanban-col.tone-lost { background: #f8fafc; border-color: #e2e8f0; }
.bc-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 960px) { .bc-detail-grid { grid-template-columns: 1fr; } }
.bc-form-stack { display: flex; flex-direction: column; gap: 8px; }
.bc-stack { display: flex; flex-direction: column; gap: 16px; }
.bc-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.bc-note { background: #f8fafc; border-radius: 10px; padding: 10px 12px; border: 1px solid #eef2f7; }
.bc-note time { color: var(--bc-slate); font-size: .75rem; margin-left: 8px; }
.bc-meta { margin-top: 18px; color: var(--bc-slate); font-size: .9rem; }
.bc-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-tag-check span { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: .8rem; font-weight: 700; }
.bc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bc-tab {
  padding: 8px 14px; border-radius: 999px; background: #e2e8f0; color: #334155; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem;
}
.bc-tab.active { background: var(--bc-yellow); color: #111; }

.bc-settings-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 0 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.bc-settings-tab {
  flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--bc-border); color: #475569; text-decoration: none; font-weight: 700; font-size: .88rem;
  white-space: nowrap;
}
.bc-settings-tab.active { background: var(--bc-yellow); border-color: #f59e0b; color: #111; }
.bc-settings-panel { display: flex; flex-direction: column; gap: 14px; }
.bc-settings-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.bc-settings-hero h2 { margin: 0 0 4px; }
.bc-settings-hero p { margin: 0; }
.bc-settings-form { display: flex; flex-direction: column; gap: 12px; }
.bc-settings-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 700px) {
  .bc-settings-grid { grid-template-columns: 1fr 1fr; }
  .bc-settings-grid .bc-span-2 { grid-column: span 2; }
}
.bc-settings-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.bc-settings-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bc-settings-list { display: flex; flex-direction: column; gap: 12px; }
.bc-settings-item {
  background: #fff; border: 1px solid rgba(226,232,240,.95); border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 20px rgba(15,23,42,.04);
}
.bc-settings-item.is-inactive { opacity: .72; }
.bc-settings-item-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.bc-settings-item-copy { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.bc-settings-item-copy strong { font-size: 1rem; }
.bc-settings-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bc-settings-thumb {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f5f9;
}
.bc-settings-thumb-ph {
  display: grid; place-items: center; font-weight: 800; background: #fef08a; color: #713f12;
}
.bc-avatar-edit {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 14px; padding: 12px; border: 1px dashed #e2e8f0; border-radius: 14px; background: #f8fafc;
}
.bc-avatar-preview {
  width: 88px; height: 88px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  background: #fef08a; display: grid; place-items: center; border: 1px solid #fde68a;
}
.bc-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-avatar-ph { font-weight: 800; color: #713f12; font-size: 1.25rem; }
.bc-avatar-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.bc-avatar-fields .bc-btn-ghost { align-self: flex-start; padding-left: 0; }
.bc-row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.bc-btn-sm { padding: 7px 12px; font-size: .85rem; }
.bc-settings-table .bc-settings-thumb { width: 44px; height: 44px; border-radius: 10px; }
.bc-settings-table tr.is-inactive { opacity: .65; }
.bc-stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px;
}
@media (min-width: 700px) {
  .bc-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.bc-stat-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  display: flex; flex-direction: column; gap: 4px;
}
.bc-stat-label { font-size: .8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .02em; }
.bc-stat-value { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.bc-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  /* luôn trong vùng nhìn thấy (trừ bàn phím ảo) */
  height: var(--bc-vv-height, 100dvh);
  max-height: var(--bc-vv-height, 100dvh);
  top: var(--bc-vv-top, 0px);
  bottom: auto;
}
@media (min-width: 720px) {
  .bc-modal { align-items: center; padding: 24px; }
}
.bc-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px);
}
.bc-modal-panel {
  position: relative; z-index: 1; width: min(560px, 100%);
  max-height: min(92vh, calc(var(--bc-vv-height, 100dvh) - 12px));
  overflow: auto; background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px;
  padding-bottom: calc(18px + var(--bc-kb-inset, 0px) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(15,23,42,.18);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (min-width: 720px) {
  .bc-modal-panel {
    border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.2);
    padding-bottom: 18px;
  }
}
.bc-modal-lg { width: min(720px, 100%); }
.bc-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.bc-modal-head h3 { margin: 0; font-size: 1.15rem; }

/* Forms list */
.bc-forms-stats { margin-bottom: 18px; }
.bc-forms-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; position: relative;
}
@media (min-width: 760px) {
  .bc-forms-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) {
  .bc-forms-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.bc-form-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px rgba(15,23,42,.04);
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bc-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,23,42,.1);
}
.bc-form-card.is-dim { opacity: .88; }
.bc-form-card-media {
  position: relative; height: 140px; background: linear-gradient(135deg, #fff7cc, #fef9c3 40%, #f8fafc);
}
.bc-form-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-form-card-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800; color: #854d0e;
}
.bc-form-card-status { position: absolute; top: 12px; left: 12px; }
.bc-form-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bc-form-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bc-form-card-top h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.bc-form-card-desc { margin: 0; color: #64748b; font-size: .88rem; line-height: 1.45; }
.bc-form-metric {
  flex-shrink: 0; min-width: 58px; text-align: center; padding: 8px 10px;
  border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a;
}
.bc-form-metric strong { display: block; font-size: 1.2rem; font-weight: 800; color: #92400e; line-height: 1; }
.bc-form-metric span { font-size: .72rem; color: #a16207; font-weight: 600; }
.bc-form-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-form-card-meta code {
  font-size: .78rem; background: #f1f5f9; color: #334155; padding: 4px 8px; border-radius: 8px;
}
.bc-form-card-actions, .bc-form-card-foot {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.bc-form-card-actions { margin-top: 4px; }
.bc-form-card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.bc-form-card-actions .bc-btn { padding: 8px 14px; }
.bc-form-card-embed {
  margin-top: 4px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.bc-forms-empty { grid-column: 1 / -1; }
.bc-pill-draft { background: #f1f5f9; color: #475569; }
.bc-text-ok { color: #15803d !important; }
.bc-copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px rgba(15,23,42,.25);
}
.bc-form-embed {
  margin-top: 18px; padding: 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.bc-form-embed-head h3 { margin: 0 0 4px; font-size: 1rem; }
.bc-form-embed-head p { margin: 0 0 12px; font-size: .85rem; }
.bc-form-embed-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bc-form-embed-grid { grid-template-columns: 1fr 1fr; }
  .bc-form-embed-item.is-wide { grid-column: 1 / -1; }
}
.bc-form-embed-item {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #eef2f7;
}
.bc-form-embed-code {
  display: block; width: 100%; font-size: .78rem; background: #f1f5f9; color: #334155;
  padding: 8px 10px; border-radius: 8px; word-break: break-all;
}
.bc-form-embed-pre {
  margin: 0; width: 100%; max-height: 120px; overflow: auto;
  font-size: .75rem; line-height: 1.45; background: #0f172a; color: #e2e8f0;
  padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-all;
}

/* Form builder */
.bc-builder .bc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; }
.bc-tab {
  border: 0; background: #f1f5f9; color: #475569; font: inherit; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.bc-tab.active { background: #0f172a; color: #fff; }
.bc-builder-checks { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 8px 0 4px; }

/* Form: chọn SP hiển thị */
.bc-form-products-control { margin-top: 4px; }
.bc-product-mode {
  display: grid; gap: 8px; margin-top: 8px;
}
@media (min-width: 700px) {
  .bc-product-mode { grid-template-columns: 1fr 1fr; }
}
.bc-product-mode-opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 14px;
  background: #fff; cursor: pointer; transition: .15s ease;
}
.bc-product-mode-opt input { margin-top: 3px; }
.bc-product-mode-opt span { display: flex; flex-direction: column; gap: 2px; }
.bc-product-mode-opt strong { font-size: .92rem; }
.bc-product-mode-opt small { color: #64748b; font-size: .78rem; line-height: 1.35; }
.bc-product-mode-opt.is-on {
  border-color: #f0c400; background: #fffbeb;
  box-shadow: 0 0 0 1px rgba(253,209,11,.35);
}
.bc-product-pick {
  margin-top: 12px; padding: 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  max-height: 520px; overflow: auto;
}
.bc-product-pick-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  position: sticky; top: 0; z-index: 1; background: #f8fafc; padding-bottom: 8px;
}
.bc-product-pick-search { flex: 1 1 180px; min-width: 160px; max-width: 280px; }
.bc-product-pick-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bc-product-pick-cat { margin-bottom: 14px; }
.bc-product-pick-cat:last-child { margin-bottom: 0; }
.bc-product-pick-cat-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0;
}
.bc-product-pick-cat-head strong { flex: 1; font-size: .9rem; color: #0f172a; }
.bc-product-pick-grid {
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
  padding-right: 2px;
}
@media (min-width: 700px) {
  .bc-product-pick-grid { grid-template-columns: 1fr 1fr; }
}
.bc-product-pick-item {
  display: grid; grid-template-columns: 18px 44px 1fr; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0;
  cursor: pointer;
}
.bc-product-pick-item.is-on { border-color: #f0c400; background: #fffef5; }
.bc-product-pick-thumb {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: #f1f5f9; display: grid; place-items: center;
}
.bc-product-pick-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bc-product-pick-thumb em {
  font-style: normal; font-weight: 900; color: #111; background: #fdd10b;
  width: 100%; height: 100%; display: grid; place-items: center;
}
.bc-product-pick-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-product-pick-meta strong {
  font-size: .84rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-product-pick-meta small { color: #64748b; font-size: .75rem; font-weight: 700; }
.bc-builder-media { display: flex; flex-direction: column; gap: 14px; }
.bc-media-editor {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  padding: 14px; border: 1px solid #eef2f7; border-radius: 16px; background: #f8fafc;
}
.bc-media-editor.is-featured {
  border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff);
  box-shadow: 0 8px 24px rgba(253,209,11,.12);
}
.bc-media-preview {
  width: 96px; height: 96px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: #fef08a; display: grid; place-items: center; border: 1px solid #fde68a;
}
.bc-media-preview.is-wide { width: min(220px, 100%); height: 124px; }
.bc-media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-builder-footer {
  display: flex; justify-content: flex-end; gap: 10px; align-items: center;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef2f7; flex-wrap: wrap;
}
.bc-page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.bc-designer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  min-height: 520px;
}
@media (max-width: 1100px) {
  .bc-designer { grid-template-columns: 200px minmax(0, 1fr); }
  .bc-designer-preview { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .bc-designer { grid-template-columns: 1fr; }
}
.bc-designer-palette,
.bc-designer-canvas {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
}
.bc-designer-palette h3,
.bc-designer-canvas-head h3 { margin: 0 0 4px; font-size: .95rem; }
.bc-designer-palette .bc-muted,
.bc-designer-canvas-head .bc-muted { margin: 0 0 12px; font-size: .78rem; }
.bc-palette-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bc-palette-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 12px; padding: 10px; cursor: grab; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.bc-palette-item:hover { border-color: #fbbf24; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.bc-palette-ico {
  width: 32px; height: 32px; border-radius: 10px; background: #fffbeb;
  display: grid; place-items: center; flex-shrink: 0;
}
.bc-palette-item strong { display: block; font-size: .84rem; }
.bc-palette-item small { color: #94a3b8; font-size: .72rem; }
.bc-btn-block { width: 100%; justify-content: center; }
.bc-designer-canvas { background: #fff; min-height: 480px; }
.bc-designer-canvas-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.bc-canvas-list { display: flex; flex-direction: column; gap: 10px; }
.bc-canvas-card {
  border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 10px 12px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.bc-canvas-card.is-selected { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(253,209,11,.28); }
.bc-canvas-card.is-dragging { opacity: .55; }
.bc-canvas-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-drag-handle { cursor: grab; color: #94a3b8; font-size: .95rem; user-select: none; padding: 2px 4px; }
.bc-canvas-card-title { flex: 1; min-width: 120px; }
.bc-canvas-card-title strong { display: block; font-size: .9rem; }
.bc-canvas-card-title span { font-size: .72rem; color: #64748b; }
.bc-check-sm { font-size: .78rem; white-space: nowrap; }
.bc-canvas-card-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.bc-canvas-empty {
  border: 2px dashed #cbd5e1; border-radius: 14px; padding: 36px 16px; text-align: center; color: #64748b;
}
.bc-preview-phone {
  background: #0f172a; border-radius: 28px; padding: 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
  position: sticky; top: 16px;
}
.bc-preview-phone-bar { display: flex; justify-content: center; margin-bottom: 10px; }
.bc-preview-phone-bar span { width: 72px; height: 6px; border-radius: 999px; background: #334155; }
.bc-preview-phone-body {
  background: #fff; border-radius: 20px; padding: 16px 14px 18px; max-height: 70vh; overflow: auto;
}
.bc-preview-kicker {
  margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8;
}
.bc-preview-title { margin: 4px 0 6px; font-size: 1.05rem; line-height: 1.25; }
.bc-preview-desc { margin: 0 0 14px; font-size: .82rem; color: #64748b; }
.bc-preview-address { display: grid; gap: 8px; }
.bc-preview-products { display: grid; gap: 8px; }
.bc-preview-products.is-horizontal { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
.bc-preview-product {
  border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
  min-height: 64px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #64748b;
}
.bc-preview-products.is-horizontal .bc-preview-product { flex: 0 0 88px; width: 88px; }
.bc-preview-product.is-on { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.bc-preview-note { margin: 10px 0 0; text-align: center; font-size: .72rem; color: #94a3b8; }

/* Tags board */
.bc-tag-board {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 640px) {
  .bc-tag-board { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .bc-tag-board { grid-template-columns: 1fr 1fr 1fr; }
}
.bc-tag-chip-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc;
}
.bc-tag-swatch {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.bc-tag-chip-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-tag-chip-copy strong { font-size: .95rem; }
.bc-tag-chip-copy code { font-size: .75rem; color: #64748b; }
.bc-tag-preview { margin-bottom: 10px; }
.bc-tag-live {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; color: #111; box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.bc-color-palette {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.bc-color-dot {
  width: 28px; height: 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.12);
}
.bc-color-dot.is-selected {
  border-color: #0f172a; transform: scale(1.08);
}
.bc-check {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #334155; font-size: .9rem;
}
.bc-check-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width: 640px) {
  .bc-check-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .bc-check-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.bc-product-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 640px) {
  .bc-product-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .bc-product-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.bc-product-card {
  display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc;
}
.bc-product-card.is-inactive { opacity: .65; }
.bc-product-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff; }
.bc-product-card strong { display: block; font-size: .92rem; }
.bc-product-card strong a { color: inherit; text-decoration: none; }
.bc-product-card span { display: block; color: #b45309; font-weight: 700; margin-top: 2px; }
.bc-product-card small { display: block; color: #64748b; margin-top: 4px; font-size: .78rem; }

@media (max-width: 720px) {
  .bc-admin-content { padding: 14px; }
  .bc-page-head h1 { font-size: 1.25rem; }
  .bc-toolbar { flex-direction: column; }
  .bc-filters { width: 100%; }
  .bc-filters .bc-input,
  .bc-filters .bc-btn { width: 100%; min-width: 0; }
  .bc-table-stack thead { display: none; }
  .bc-table-stack tr {
    display: block; border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff;
  }
  .bc-table-stack td {
    display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 0;
  }
  .bc-table-stack td::before {
    content: attr(data-label); color: #64748b; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  }
  .bc-kanban { grid-template-columns: repeat(6, minmax(220px, 1fr)); }
  .bc-settings-actions { flex-direction: column; align-items: stretch; }
  .bc-settings-actions .bc-btn,
  .bc-settings-actions .bc-btn-ghost,
  .bc-settings-actions .bc-btn-danger { width: 100%; justify-content: center; }
  .bc-settings-btn-row { width: 100%; margin-left: 0; }
  .bc-settings-btn-row .bc-btn,
  .bc-settings-btn-row .bc-btn-danger { flex: 1; }
  .bc-source-grid { grid-template-columns: 1fr; }
  .bc-form-row { grid-template-columns: 1fr; }
}
.bc-flash { background: #ecfccb; border: 1px solid #bef264; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.bc-field-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto auto; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 900px) { .bc-field-row { grid-template-columns: 1fr; } }
.bc-thumb-preview { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; }
.bc-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; overflow: auto; font-size: .8rem; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-actions a { color: #b45309; font-weight: 700; text-decoration: none; font-size: .85rem; }
.bc-actions a:hover { text-decoration: underline; }
.bc-remind-list { padding-left: 18px; color: var(--bc-slate); font-size: .85rem; }

/* —— Login workspace —— */
.bc-login-body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: #e2e8f0;
  background: #070b14;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
.bc-login-stage {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: clamp(16px, 3vw, 40px);
  padding-bottom: max(clamp(16px, 3vw, 40px), env(safe-area-inset-bottom));
}
.bc-login-atmosphere {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(253,209,11,.22), transparent 60%),
    radial-gradient(700px 480px at 88% 85%, rgba(253,209,11,.1), transparent 55%),
    radial-gradient(500px 400px at 50% 50%, rgba(30,41,59,.55), transparent 70%),
    linear-gradient(160deg, #070b14 0%, #0f172a 48%, #111827 100%);
}
.bc-login-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(253,209,11,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,209,11,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(58deg) translateY(-8%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
  animation: bc-login-grid 18s linear infinite;
}
@keyframes bc-login-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 48px, 48px 0; }
}
.bc-login-orb {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55;
  animation: bc-login-float 9s ease-in-out infinite;
}
.bc-login-orb-a {
  width: min(42vw, 340px); height: min(42vw, 340px);
  left: -6%; top: 18%;
  background: rgba(253,209,11,.35);
}
.bc-login-orb-b {
  width: min(36vw, 280px); height: min(36vw, 280px);
  right: -4%; bottom: 8%;
  background: rgba(250,204,21,.22);
  animation-delay: -4s;
}
@keyframes bc-login-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

.bc-login-wrap {
  position: relative; z-index: 1; width: min(920px, 100%);
  display: flex; flex-direction: column; align-items: stretch;
  gap: 22px;
  animation: bc-login-rise .7s cubic-bezier(.22,1,.36,1) both;
}
.bc-login-top {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 14px;
}
.bc-login-mark {
  width: auto; height: clamp(46px, 6.5vw, 62px);
  display: block;
  filter: drop-shadow(0 10px 28px rgba(253,209,11,.35));
  animation: bc-login-mark .9s cubic-bezier(.22,1,.36,1) .08s both;
}
.bc-login-top::after {
  content: ""; width: 56px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--bc-yellow), transparent);
  opacity: .85;
}
@keyframes bc-login-mark {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.bc-login-shell {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(253,209,11,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  backdrop-filter: blur(16px);
}
@keyframes bc-login-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.bc-login-brand {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 40px);
  min-width: 0;
  background:
    linear-gradient(160deg, rgba(253,209,11,.08), transparent 55%),
    rgba(7, 11, 20, .35);
}
.bc-login-eyebrow {
  margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #fde68a;
}
.bc-login-title {
  margin: 0 0 12px;
  font-family: Sora, "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: #fff;
}
.bc-login-title span {
  display: inline-block; color: #fde68a; font-weight: 700;
}
.bc-login-lead {
  margin: 0 0 20px; max-width: 34ch;
  font-size: .95rem; line-height: 1.55; color: #94a3b8; font-weight: 500;
}
.bc-login-points {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
}
.bc-login-points li {
  position: relative; padding-left: 22px;
  font-size: .92rem; font-weight: 600; color: #e2e8f0;
  letter-spacing: -.01em;
}
.bc-login-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 2px; rotate: 45deg;
  background: var(--bc-yellow); box-shadow: 0 0 12px rgba(253,209,11,.55);
}

.bc-login-panel {
  background: #fff;
  color: var(--bc-charcoal);
  border-radius: 0;
  padding: clamp(28px, 4vw, 40px);
  border: 0;
  border-left: 1px solid rgba(226,232,240,.7);
  box-shadow: none;
  display: flex; flex-direction: column;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}
.bc-login-panel-mark { display: none; }
.bc-login-panel-head { margin-bottom: 20px; }
.bc-login-panel-head h2 {
  margin: 0 0 6px;
  font-family: Sora, "Be Vietnam Pro", sans-serif;
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
}
.bc-login-panel-head p { margin: 0; color: var(--bc-slate); font-size: .9rem; }

.bc-login-error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  font-size: .88rem; font-weight: 600;
}
.bc-login-form { display: grid; gap: 14px; }
.bc-login-field { display: grid; gap: 6px; }
.bc-login-field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #64748b;
}
.bc-login-pass { position: relative; }
.bc-login-pass .bc-login-input { padding-right: 48px; }
.bc-login-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: #64748b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.bc-login-eye-icon { display: none; flex-shrink: 0; }
.bc-login-eye-icon.is-on { display: block; }
.bc-login-eye:hover { color: #0f172a; background: #f1f5f9; }
.bc-login-eye[aria-pressed="true"] { color: #b45309; }

/* Password eye (CRM / settings / account) — cùng UX login */
.bc-pass-wrap { position: relative; }
.bc-pass-wrap .bc-input { padding-right: 48px; width: 100%; }
.bc-pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: #64748b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.bc-pass-eye-icon { display: none; flex-shrink: 0; }
.bc-pass-eye-icon.is-on { display: block; }
.bc-pass-eye:hover { color: #0f172a; background: #f1f5f9; }
.bc-pass-eye[aria-pressed="true"] { color: #b45309; }

.bc-login-input {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 13px 14px; font: inherit; font-size: 1rem; font-weight: 500;
  background: #f8fafc; color: var(--bc-charcoal);
  transition: border-color .15s, box-shadow .15s, background .15s;
  min-height: 48px;
}
.bc-login-input::placeholder { color: #94a3b8; font-weight: 400; }
.bc-login-input:hover { border-color: #cbd5e1; background: #fff; }
.bc-login-input:focus {
  outline: none; border-color: #f59e0b; background: #fff;
  box-shadow: 0 0 0 4px rgba(253,209,11,.28);
}
.bc-login-remember {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 0; cursor: pointer; user-select: none;
  font-size: .9rem; font-weight: 600; color: #334155;
}
.bc-login-remember input {
  width: 18px; height: 18px; accent-color: #ca8a04; cursor: pointer;
  flex-shrink: 0;
}
.bc-login-submit {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 0; border-radius: 12px; padding: 14px 18px;
  min-height: 50px;
  background: var(--bc-yellow); color: #0f172a;
  font-family: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(253,209,11,.35);
  transition: transform .15s, background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.bc-login-submit:hover {
  background: var(--bc-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(234,179,8,.4);
}
.bc-login-submit:active { transform: translateY(0); }
.bc-login-submit svg { transition: transform .2s; }
.bc-login-submit:hover svg { transform: translateX(3px); }
.bc-login-foot {
  margin: 18px 0 0; text-align: center;
  font-size: .75rem; color: #94a3b8; font-weight: 500;
}

/* Tablet / mobile: logo giữa → form → slogan */
@media (max-width: 860px) {
  .bc-login-stage {
    place-items: start center;
    align-content: start;
    min-height: 100dvh;
    height: auto;
    overflow: auto;
    padding: 20px 16px max(28px, env(safe-area-inset-bottom));
  }
  .bc-login-wrap {
    width: min(440px, 100%);
    gap: 14px;
    margin: 0 auto;
  }
  .bc-login-mark { height: 42px; }
  .bc-login-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
    border-radius: 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .bc-login-panel {
    order: 1;
    position: relative;
    z-index: 2;
    border-left: 0;
    border-radius: 20px;
    padding: 22px 18px 18px;
    box-shadow: 0 22px 50px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.1);
  }
  .bc-login-panel-mark { display: none; }
  .bc-login-panel-head { text-align: center; margin-bottom: 18px; }
  .bc-login-brand {
    order: 2;
    position: relative;
    z-index: 1;
    text-align: center;
    align-items: center;
    padding: 8px 16px 12px;
    background: transparent;
  }
  .bc-login-eyebrow { letter-spacing: .14em; }
  .bc-login-title {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
    margin-bottom: 8px;
  }
  .bc-login-title br { display: none; }
  .bc-login-lead {
    margin: 0 auto 14px;
    font-size: .88rem;
    max-width: 34ch;
  }
  .bc-login-points {
    width: 100%;
    gap: 8px;
  }
  .bc-login-points li {
    padding: 10px 12px 10px 34px;
    text-align: left;
    font-size: .86rem;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(253,209,11,.12);
  }
  .bc-login-points li::before {
    left: 14px; top: 50%; transform: translateY(-50%) rotate(45deg);
  }
  .bc-login-orb { opacity: .35; filter: blur(40px); }
  .bc-login-grid { opacity: .55; }
}

@media (max-width: 380px) {
  .bc-login-panel { padding: 18px 14px 14px; }
  .bc-login-title { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-login-grid, .bc-login-orb, .bc-login-wrap, .bc-login-panel, .bc-login-mark {
    animation: none !important;
  }
}

/* legacy */
.bc-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 30px; }
.bc-login-logo { height: 42px; display: block; margin: 0 auto 12px; }
.bc-claim-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fef9c3, #fef08a); border: 1px solid #fde047;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.bc-claim-banner p { margin: 4px 0 0; color: #713f12; font-size: .9rem; }
.bc-claim-form, .bc-explain-inline, .bc-lobby-explain, .bc-claim-with-reason {
  display: flex; flex-direction: column; gap: 8px; width: min(420px, 100%);
}
.bc-explain-banner {
  display: flex; flex-direction: column; gap: 12px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 16px;
}
.bc-explain-banner strong { color: #991b1b; }
.bc-explain-banner p { margin: 4px 0 0; color: #7f1d1d; font-size: .9rem; }
.bc-note-explain { border-left: 3px solid #f59e0b; }
.bc-lost-reason {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 12px;
}
.bc-btn-claim { background: #0f172a !important; color: #fff !important; box-shadow: none !important; white-space: nowrap; }
.bc-btn-claim-sm {
  background: #0f172a; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px;
  font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.bc-pill-unassigned { background: #fef08a; color: #713f12; }
.bc-pill-mine { background: #bbf7d0; color: #14532d; }
.bc-pill-danger { background: #fecaca; color: #7f1d1d; }
.bc-row-unassigned { background: #fffbeb; }
.bc-row-sla-danger { background: #fef2f2; }
.bc-text-danger { color: #b91c1c; }
.bc-stat-claim { border: 2px solid #FDD10B; }
.bc-stat-claim a { font-size: .8rem; color: #CA8A04; font-weight: 700; text-decoration: none; }

/* Dashboard /admin */
.bc-dash-page { display: flex; flex-direction: column; gap: 14px; }
.bc-dash-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: 18px; color: #f8fafc;
  background:
    radial-gradient(520px 160px at 0% 0%, rgba(253,209,11,.4), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #111827 100%);
}
.bc-dash-kicker {
  margin: 0 0 6px; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #fdd10b;
}
.bc-dash-hero h1 {
  margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 800; letter-spacing: -.03em; color: #fff;
}
.bc-dash-hero-copy p { margin: 0; color: #cbd5e1; font-size: .92rem; max-width: 48ch; line-height: 1.45; }
.bc-dash-hero-copy strong { color: #fde68a; font-weight: 800; }
.bc-dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-dash-hero-ghost {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #fff !important;
}
.bc-dash-hero-ghost:hover { background: rgba(255,255,255,.14) !important; }

.bc-dash-filter {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between;
  margin: 0; padding: 14px 16px; background: #fff; border: 1px solid #e8edf3; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.bc-period-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px; border-radius: 12px; background: #f1f5f9;
}
.bc-period-pill {
  text-decoration: none; color: #475569; font-weight: 700; font-size: .84rem;
  padding: 8px 12px; border-radius: 9px; background: transparent; border: 0;
  transition: background .15s, color .15s, box-shadow .15s;
}
.bc-period-pill:hover { color: #0f172a; background: rgba(255,255,255,.7); }
.bc-period-pill.is-active {
  background: #0f172a; color: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.bc-period-pickers { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bc-period-field { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; font-weight: 700; color: #64748b; }
.bc-period-field .bc-input { min-width: 150px; }
@media (max-width: 720px) {
  .bc-dash-filter { flex-direction: column; align-items: stretch; }
  .bc-period-pickers { width: 100%; }
  .bc-period-field { flex: 1; min-width: 0; }
  .bc-period-field .bc-input { width: 100%; min-width: 0; }
}
.bc-dash-hero-stats {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0;
}
@media (min-width: 800px) {
  .bc-dash-hero-stats { grid-template-columns: 1.2fr 1fr 1fr; }
}
.bc-dash-hero-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
a.bc-dash-hero-card:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  box-shadow: 0 10px 24px rgba(15,23,42,.07);
}
.bc-dash-hero-card span {
  font-size: .72rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em;
}
.bc-dash-hero-card strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #0f172a; }
.bc-dash-hero-card small { color: #94a3b8; font-size: .85rem; font-weight: 600; }
.bc-dash-hero-sub { font-size: .78rem; color: #b45309; font-style: normal; font-weight: 600; }
.bc-dash-hero-card.is-accent {
  background: linear-gradient(160deg, #fffbeb 0%, #fff 70%);
  border-color: #fde68a;
}
.bc-dash-hero-card.is-warn {
  background: linear-gradient(160deg, #fff7ed 0%, #fff 70%);
  border-color: #fed7aa;
}
.bc-dash-hero-card.is-warn strong { color: #9a3412; }

.bc-tv-visit-panel {
  margin: 0; padding: 16px 18px; border-radius: 18px;
  background:
    radial-gradient(400px 120px at 100% 0%, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(135deg, #eff6ff, #fff);
  border: 1px solid #bfdbfe;
}
.bc-tv-visit-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.bc-tv-visit-head h2 { margin: 0; font-size: 1.05rem; }
.bc-tv-visit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 800px) {
  .bc-tv-visit-grid { grid-template-columns: repeat(4, 1fr); }
}
.bc-tv-visit-card {
  background: #fff; border: 1px solid #e0e7ff; border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.bc-tv-visit-card span { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.bc-tv-visit-card strong { font-size: 1.55rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.bc-tv-visit-card.is-total { border-color: #93c5fd; background: #f0f9ff; }

.bc-tv-popup-block {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed #bfdbfe;
}
.bc-tv-popup-block h3 { color: #0f172a; }
.bc-tv-popup-list {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 900px) {
  .bc-tv-popup-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bc-tv-popup-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #e0e7ff; border-radius: 14px; padding: 12px;
}
.bc-tv-popup-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: #f1f5f9; flex-shrink: 0;
}
.bc-tv-popup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-tv-popup-body { min-width: 0; flex: 1; }
.bc-tv-popup-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.bc-tv-popup-top strong { font-size: .95rem; line-height: 1.3; }
.bc-tv-popup-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bc-tv-popup-msg { margin: 6px 0 0; font-size: .82rem; line-height: 1.4; }

.bc-dash-check {
  margin: 0; padding: 10px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #eef2f7;
  font-size: .82rem; color: #64748b;
}
.bc-dash-check strong { color: #0f172a; }
.bc-dash-status-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0;
}
@media (min-width: 900px) {
  .bc-dash-status-grid { grid-template-columns: repeat(6, 1fr); }
}
.bc-dash-status-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 14px 14px 12px;
  border-top: 3px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: transform .15s, box-shadow .15s;
}
.bc-dash-status-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.bc-dash-status-card span {
  display: block; font-size: .7rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}
.bc-dash-status-card strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.bc-dash-status-card.status-new { border-top-color: #FDD10B; }
.bc-dash-status-card.status-contacted { border-top-color: #3B82F6; }
.bc-dash-status-card.status-consulting { border-top-color: #8B5CF6; }
.bc-dash-status-card.status-booked { border-top-color: #F97316; }
.bc-dash-status-card.status-purchased { border-top-color: #10B981; }
.bc-dash-status-card.status-lost { border-top-color: #94a3b8; }
.bc-dash-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0;
}
@media (min-width: 1100px) {
  .bc-dash-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.bc-dash-page > .bc-card { margin-top: 0 !important; border-radius: 16px; }
.bc-filter-active {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f;
}
.bc-filter-active strong { color: #92400e; }
.bc-text-warn { color: #b45309 !important; font-weight: 700; }

.bc-bulk-bar {
  position: sticky; top: 0; z-index: 20;
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
  background: #111; color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}
.bc-bulk-form { display: flex; flex-direction: column; gap: 10px; }
.bc-bulk-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-bulk-info .bc-btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.bc-bulk-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-bulk-fields .bc-input { min-width: 140px; max-width: 200px; }
.bc-claim-store-pick { margin: 0 0 10px; }
.bc-claim-store-pick.is-compact { margin: 0 0 8px; }
.bc-claim-store-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bc-claim-store-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bc-claim-store-option:has(input:checked),
.bc-claim-store-option.is-on {
  border-color: #f59e0b;
  background: #fffbeb;
}
.bc-claim-store-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
  flex-shrink: 0;
}
.bc-claim-store-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.bc-claim-store-hint { color: #64748b; }

.bc-th-check, .bc-td-check {
  width: 48px;
  min-width: 48px;
  padding: 0 !important;
  text-align: center;
  vertical-align: middle;
}
.bc-th-check .bc-row-check,
.bc-td-check .bc-row-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bc-th-check .bc-row-check input,
.bc-td-check .bc-row-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #0f172a;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .bc-bulk-fields .bc-input { min-width: 100%; max-width: none; }
  .bc-th-check, .bc-td-check { width: 52px; min-width: 52px; }
  .bc-th-check .bc-row-check,
  .bc-td-check .bc-row-check { min-height: 48px; }
  .bc-th-check .bc-row-check input,
  .bc-td-check .bc-row-check input { width: 20px; height: 20px; }
}

/* Lưới cửa hàng — toàn thời gian */
.bc-store-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.bc-store-stat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bc-store-stat-card:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  box-shadow: 0 10px 24px rgba(253,209,11,.16);
}
.bc-store-stat-card.is-empty { background: #f8fafc; }
.bc-store-stat-card.is-zero { opacity: .72; }
.bc-store-stat-card.is-zero:hover { opacity: 1; }
.bc-store-stat-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: linear-gradient(145deg, #111827, #1f2937);
  display: grid; place-items: center;
}
.bc-store-stat-media.has-img { background: #0f172a; }
.bc-store-stat-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bc-store-stat-fallback {
  font-size: 1.5rem; font-weight: 900; color: #fdd10b;
}
.bc-store-stat-share {
  position: absolute; top: 8px; right: 8px;
  font-style: normal; font-size: .68rem; font-weight: 800;
  padding: 4px 7px; border-radius: 999px;
  background: rgba(17,24,39,.82); color: #fdd10b;
}
.bc-store-stat-body { display: grid; gap: 5px; }
.bc-store-stat-body > strong {
  font-size: .95rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-store-stat-region { font-size: .75rem; font-weight: 600; color: #64748b; }
.bc-store-stat-nums {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .78rem; color: #64748b; font-weight: 600;
}
.bc-store-stat-nums b { color: #111; font-size: 1.05rem; }
.bc-store-stat-bar {
  height: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden;
}
.bc-store-stat-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #fdd10b, #f59e0b);
}
.bc-store-stat-mini {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: .68rem; font-weight: 700; color: #94a3b8;
}
@media (max-width: 640px) {
  .bc-store-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Cửa hàng × sản phẩm — cột đều, không cắt lệch */
.bc-store-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
@media (min-width: 720px) {
  .bc-store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .bc-store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bc-store-product-card {
  border: 1px solid #eef2f7; border-radius: 16px; background: #fff;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  min-width: 0; height: 100%;
  overflow: hidden;
}
.bc-store-product-card.is-best-store {
  border-color: #fde68a;
  box-shadow: 0 0 0 1px #fde68a, 0 8px 20px rgba(245, 158, 11, .08);
}
.bc-store-product-head {
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 0;
}
.bc-store-product-store-thumb {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: #111827; color: #fdd10b; display: grid; place-items: center; font-weight: 900;
}
.bc-store-product-store-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-store-product-store-meta { min-width: 0; flex: 1; }
.bc-store-best-badge {
  display: inline-block; margin: 0 0 4px; padding: 2px 7px; border-radius: 999px;
  font-style: normal; font-size: .65rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; color: #92400e; background: #fef3c7;
}
.bc-store-product-store-link { text-decoration: none; color: inherit; display: block; min-width: 0; }
.bc-store-product-store-link:hover strong { color: #b45309; }
.bc-store-product-store-meta strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .92rem; line-height: 1.3; word-break: break-word;
}
.bc-store-product-store-meta span {
  display: block; margin-top: 2px; font-size: .75rem; color: #64748b; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-store-conv {
  flex-shrink: 0; text-align: center; width: 68px;
  padding: 6px 6px; border-radius: 12px; background: #f1f5f9; color: #475569;
}
.bc-store-conv b { display: block; font-size: 1.05rem; font-weight: 900; line-height: 1.1; }
.bc-store-conv small { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.bc-store-conv.is-good { background: #ecfdf5; color: #047857; }
.bc-store-conv.is-mid { background: #fffbeb; color: #b45309; }
.bc-store-conv.is-low { background: #fff7ed; color: #c2410c; }
.bc-store-conv.is-zero { background: #f8fafc; color: #94a3b8; }
.bc-store-conv-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
.bc-store-conv-kpis > div {
  border-radius: 10px; background: #f8fafc; border: 1px solid #eef2f7;
  padding: 8px 4px; text-align: center; min-width: 0;
}
.bc-store-conv-kpis em {
  display: block; font-style: normal; font-size: .95rem; font-weight: 900; color: #111;
}
.bc-store-conv-kpis span {
  display: block; font-size: .6rem; font-weight: 700; color: #94a3b8; margin-top: 1px;
  white-space: nowrap;
}
.bc-store-product-top {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a;
  min-width: 0;
}
.bc-store-product-top > div:last-child { min-width: 0; flex: 1; }
.bc-store-product-top-media {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #fff; border: 1px solid #fef3c7; display: grid; place-items: center;
  font-weight: 900; color: #92400e;
}
.bc-store-product-top-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block;
}
.bc-store-product-top em {
  display: block; font-style: normal; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: #b45309;
}
.bc-store-product-top strong {
  font-size: .88rem; line-height: 1.25; margin: 2px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.bc-store-product-top span { font-size: .75rem; font-weight: 700; color: #78350f; }
.bc-store-product-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
  flex: 1;
}
.bc-store-product-list a {
  display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit;
  padding: 6px; border-radius: 10px; min-width: 0;
}
.bc-store-product-list a:hover { background: #f8fafc; }
.bc-store-product-mini {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: #f1f5f9; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #64748b;
}
.bc-store-product-mini img {
  width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; background: #fff;
}
.bc-store-product-line { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bc-store-product-line strong {
  font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-store-product-line small { font-size: .68rem; color: #94a3b8; font-weight: 600; }
.bc-store-product-bar {
  height: 4px; border-radius: 999px; background: #f1f5f9; overflow: hidden; width: 100%;
}
.bc-store-product-bar i {
  display: block; height: 100%; max-width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #fdd10b, #f59e0b);
}
/* —— Đơn hàng web —— */
.bc-orders-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; margin: 0 0 18px; padding: 18px 20px; border-radius: 18px;
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(253,209,11,.35), transparent 60%),
    linear-gradient(135deg, #111827 0%, #1f2937 55%, #0f172a 100%);
  color: #f8fafc;
}
.bc-orders-hero h1 { margin: 0 0 6px; font-size: 1.45rem; color: #fff; }
.bc-orders-hero p { margin: 0; color: #cbd5e1; font-size: .9rem; max-width: 56ch; line-height: 1.45; }
.bc-orders-kicker {
  margin: 0 0 4px !important; font-size: .72rem !important; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fdd10b !important;
}
.bc-orders-hero-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.bc-orders-sync-meta {
  text-align: right; font-size: .78rem; color: #94a3b8; line-height: 1.35;
  min-width: min(340px, 72vw);
}
.bc-orders-sync-meta small { display: block; color: #fdd10b; font-weight: 700; }
.bc-orders-sync-progress { width: 100%; margin-top: 6px; text-align: left; }
.bc-orders-sync-progress-bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden;
}
.bc-orders-sync-progress-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #fdd10b, #f59e0b);
  transition: width .25s ease;
}
.bc-orders-sync-progress em {
  display: block; margin-top: 4px; font-style: normal; font-size: .72rem;
  color: #e2e8f0; font-weight: 600;
}
.bc-orders-sync-forms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-orders-sync { white-space: nowrap; }
.bc-orders-sync-full { white-space: nowrap; font-size: .85rem; }
.bc-order-pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  margin: 16px 0 8px;
}
.bc-order-pager a, .bc-order-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-weight: 700; font-size: .85rem;
  text-decoration: none;
}
.bc-order-pager a:hover { border-color: #f0c400; background: #fffbeb; }
.bc-order-pager .is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.bc-order-pager .is-disabled { opacity: .45; pointer-events: none; }

.bc-order-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 0 0 14px;
}
.bc-order-care { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-order-care-btn {
  text-decoration: none; font-size: .8rem; font-weight: 800;
  padding: 7px 12px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; color: #475569;
}
.bc-order-care-btn.is-on { background: #fdd10b; border-color: #f0c400; color: #111; }

.bc-order-tabs {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 14px;
  overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.bc-order-tab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  background: #fff; border: 1px solid #e2e8f0; color: #334155;
  font-size: .84rem; font-weight: 700; transition: .15s ease;
}
.bc-order-tab em {
  font-style: normal; min-width: 22px; text-align: center;
  padding: 2px 7px; border-radius: 999px; background: #f1f5f9; font-size: .75rem; font-weight: 800;
}
.bc-order-tab.is-active { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-order-tab.is-active em { background: #fdd10b; color: #111; }
.bc-order-tab.tone-processing.is-active { background: #1d4ed8; border-color: #1d4ed8; }
.bc-order-tab.tone-done.is-active { background: #15803d; border-color: #15803d; }
.bc-order-tab.tone-cancel.is-active { background: #b91c1c; border-color: #b91c1c; }
.bc-order-tab.tone-pending.is-active,
.bc-order-tab.tone-hold.is-active { background: #b45309; border-color: #b45309; }

.bc-order-search {
  display: flex; gap: 8px; margin: 0; align-items: center; flex: 1;
  justify-content: flex-end; min-width: min(100%, 280px); flex-wrap: wrap;
}
.bc-order-search .bc-input { flex: 1; max-width: 320px; }
.bc-order-search .bc-order-province {
  flex: 0 1 200px; max-width: 220px; min-width: 140px;
}

/* List CRM — 1 cột dễ quét */
.bc-order-list {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 8px; overflow: hidden;
}
.bc-order-list-head {
  display: none; padding: 8px 12px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #94a3b8;
}
@media (min-width: 1100px) {
  .bc-order-list-head {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 1fr) 140px 110px minmax(220px, 1.2fr);
    gap: 12px; align-items: center;
  }
}

.bc-order-row {
  display: grid; gap: 10px 12px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid #eef2f7;
  background: #fafbfc; border-left: 3px solid #cbd5e1;
}
.bc-order-row.tone-processing { border-left-color: #3b82f6; }
.bc-order-row.tone-pending,
.bc-order-row.tone-hold { border-left-color: #f59e0b; }
.bc-order-row.tone-done { border-left-color: #22c55e; }
.bc-order-row.tone-cancel { border-left-color: #ef4444; opacity: .9; }
.bc-order-row.is-mine { background: #fffbeb; border-color: #fde68a; }
.bc-order-row.is-open { background: #fff; }

@media (min-width: 1100px) {
  .bc-order-row {
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 1fr) 140px 110px minmax(220px, 1.2fr);
  }
}

.bc-order-col-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.bc-order-thumb {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: #f1f5f9; display: grid; place-items: center;
}
.bc-order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bc-order-thumb span {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: #fdd10b; color: #111; font-weight: 900; font-size: 1.05rem;
}
.bc-order-main-text { min-width: 0; }
.bc-order-idline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.bc-order-idline code {
  font-weight: 800; font-size: .82rem; background: #f1f5f9;
  padding: 2px 7px; border-radius: 7px;
}
.bc-order-st {
  font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 999px;
  background: #e2e8f0; color: #334155; text-transform: uppercase;
}
.tone-processing .bc-order-st { background: #dbeafe; color: #1d4ed8; }
.tone-pending .bc-order-st,
.tone-hold .bc-order-st { background: #fef3c7; color: #92400e; }
.tone-done .bc-order-st { background: #dcfce7; color: #166534; }
.tone-cancel .bc-order-st { background: #fee2e2; color: #991b1b; }
.bc-order-customer {
  display: block; font-size: .98rem; font-weight: 800; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-order-sub {
  margin: 2px 0 0; font-size: .78rem; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-order-sub a { color: #0f172a; font-weight: 700; text-decoration: none; }

.bc-order-col-prod { min-width: 0; }
.bc-order-prod {
  display: block; font-size: .86rem; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-order-col-prod small { color: #64748b; font-size: .75rem; font-weight: 600; }

.bc-order-col-care { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bc-care-pill {
  display: inline-flex; font-size: .72rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
}
.bc-care-pill.is-open { background: #fee2e2; color: #b91c1c; }
.bc-care-pill.is-mine { background: #fdd10b; color: #111; }
.bc-care-pill.is-other { background: #e0e7ff; color: #3730a3; }
.bc-order-col-care small { font-size: .75rem; color: #64748b; font-weight: 600; }
.bc-order-claim-form { margin: 0; }
.bc-order-dispatch-form {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 2px 0 0; width: 100%;
}
.bc-order-dispatch-select {
  width: auto; min-width: 110px; max-width: 140px;
  padding: 5px 7px; font-size: .72rem; font-weight: 700;
  border-radius: 9px; height: auto;
}

.bc-order-col-price strong {
  font-size: 1.02rem; font-weight: 900; color: #0f172a; white-space: nowrap;
}

.bc-order-acts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bc-order-status-form {
  display: inline-flex; align-items: center; gap: 5px; margin: 0; min-width: 0;
}
.bc-order-status-select {
  width: auto; min-width: 118px; max-width: 150px;
  padding: 6px 8px; font-size: .78rem; font-weight: 700;
  border-radius: 9px; height: auto;
}
.bc-order-act {
  appearance: none; border: 1px solid #e2e8f0; background: #fff; color: #334155;
  font: inherit; font-size: .72rem; font-weight: 800; padding: 6px 9px;
  border-radius: 9px; cursor: pointer; text-decoration: none; line-height: 1;
}
.bc-order-act.tone-claim { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-order-act.tone-done { background: #fdd10b; border-color: #f0c400; color: #111; }
.bc-order-act.tone-processing { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.bc-order-act.tone-hold { border-color: #fcd34d; color: #92400e; background: #fffbeb; }
.bc-order-act.tone-cancel { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.bc-order-act.tone-link { background: #fff; color: #64748b; }
.bc-order-act.is-current,
.bc-order-act:disabled {
  opacity: 1; cursor: default; background: #0f172a; border-color: #0f172a; color: #fff;
}

@media (max-width: 1099px) {
  .bc-order-col-prod::before,
  .bc-order-col-care::before,
  .bc-order-col-price::before,
  .bc-order-col-acts::before {
    content: attr(data-label);
    display: block; font-size: .68rem; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; margin-bottom: 3px;
  }
}

.bc-order-empty {
  text-align: center; padding: 40px 16px; color: #64748b;
}
.bc-order-empty strong { display: block; margin-bottom: 6px; font-size: 1.02rem; color: #0f172a; }
.bc-order-empty p { margin: 0; }

.bc-order-hint { margin: 0 0 10px; font-size: .82rem; }
.bc-order-row { cursor: pointer; }
.bc-order-row:hover { border-color: #cbd5e1; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.bc-order-row:focus-visible { outline: 2px solid #fdd10b; outline-offset: 2px; }

.bc-order-detail-modal {
  width: min(1100px, 96vw) !important;
  max-height: min(94vh, calc(var(--bc-vv-height, 100dvh) - 16px));
  padding: 22px 26px;
}
@media (min-width: 900px) {
  .bc-order-detail-modal { padding: 26px 32px; }
}
.bc-order-detail-modal .bc-modal-head h3 { font-size: 1.25rem; }
.bc-order-detail-modal .bc-order-detail-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .bc-order-detail-modal .bc-order-detail-top { grid-template-columns: repeat(4, 1fr); }
}
.bc-order-detail-modal .bc-order-detail-top > div { padding: 14px 16px; }
.bc-order-detail-modal .bc-order-detail-top strong { font-size: 1rem; }
.bc-order-detail-modal .bc-order-detail-item-list li { padding: 12px 16px; font-size: .95rem; }
.bc-order-detail-top > div {
  background: #f8fafc; border-radius: 12px; padding: 10px 12px;
}
.bc-order-detail-top span {
  display: block; font-size: .68rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; margin-bottom: 3px;
}
.bc-order-detail-top strong { font-size: .92rem; color: #0f172a; word-break: break-word; }
.bc-order-detail-item-list {
  list-style: none; margin: 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.bc-order-detail-item-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: .88rem;
}
.bc-order-detail-item-list li:last-child { border-bottom: 0; }
.bc-order-detail-item-name { font-weight: 700; color: #0f172a; }
.bc-order-detail-item-main {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.bc-order-detail-item-main small { font-size: .78rem; font-weight: 600; }
.bc-order-detail-item-meta { flex-shrink: 0; color: #64748b; font-weight: 700; font-size: .8rem; }
.bc-order-detail-totals {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end;
  margin-top: 8px; font-size: .84rem; color: #64748b;
}
.bc-order-detail-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0;
}
.bc-order-claim-pop { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; }
.bc-order-note-field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: #334155; }
.bc-order-note-field textarea { font-weight: 500; resize: vertical; min-height: 72px; }
.bc-sales-feed-row { cursor: pointer; }

.bc-page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Lead: tóm tắt đơn — xử lý ở /admin/orders */
.bc-wc-order-card {
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.bc-wc-order-summary {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 0;
  font-size: .9rem; color: #475569;
}
.bc-wc-order-summary strong { color: #0f172a; }
.bc-wc-lead-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}

.bc-sale-rate {
  display: inline-block; min-width: 42px; text-align: center;
  font-weight: 800; font-size: .82rem; padding: 3px 8px; border-radius: 999px;
  background: #f1f5f9; color: #475569;
}
.bc-sale-rate.is-good { background: #ecfdf5; color: #047857; }
.bc-sale-rate.is-zero { background: #f8fafc; color: #94a3b8; }

/* Lưới sản phẩm quan tâm */
.bc-product-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.bc-product-stat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bc-product-stat-card:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  box-shadow: 0 10px 24px rgba(253,209,11,.16);
}
.bc-product-stat-card.is-empty { background: #f8fafc; }
.bc-product-stat-card.is-zero { opacity: .72; }
.bc-product-stat-card.is-zero:hover { opacity: 1; }
.bc-product-stat-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid #f1f5f9;
  display: grid; place-items: center;
}
.bc-product-stat-media.has-img { background: #fff; }
.bc-product-stat-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; padding: 10px; background: #fff;
}
.bc-product-stat-fallback {
  font-size: 1.6rem; font-weight: 900; color: #94a3b8; letter-spacing: -.02em;
}
.bc-product-stat-share {
  position: absolute; top: 8px; right: 8px;
  font-style: normal; font-size: .68rem; font-weight: 800;
  padding: 4px 7px; border-radius: 999px;
  background: rgba(17,24,39,.82); color: #fdd10b;
}
.bc-product-stat-body { display: grid; gap: 6px; }
.bc-product-stat-body > strong {
  font-size: .92rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.3em;
}
.bc-product-stat-nums {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .78rem; color: #64748b; font-weight: 600;
}
.bc-product-stat-nums b { color: #111; font-size: 1rem; }
.bc-product-stat-bar {
  height: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden;
}
.bc-product-stat-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #fdd10b, #f59e0b);
}
.bc-product-stat-mini {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: .68rem; font-weight: 700; color: #94a3b8;
}
@media (max-width: 640px) {
  .bc-product-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bc-product-stat-card { padding: 10px; border-radius: 14px; }
}
.bc-recent-list { display: flex; flex-direction: column; gap: 8px; }
.bc-recent-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; background: #f8fafc; border: 1px solid #eef2f7;
}
.bc-recent-item:hover { border-color: #fde68a; background: #fffbeb; }
.bc-recent-item strong { display: block; font-size: .92rem; }
.bc-recent-item .bc-muted { font-size: .8rem; }

/* Lobby */
.bc-lobby-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .bc-lobby-stats { grid-template-columns: 1fr; }
}
.bc-lobby-stat {
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 14px 16px;
}
.bc-lobby-stat span { display: block; font-size: .75rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.bc-lobby-stat strong { font-size: 1.5rem; font-weight: 800; }
.bc-lobby-stat.is-danger { background: #fef2f2; border-color: #fecaca; }
.bc-lobby-stat.is-danger strong { color: #dc2626; }
.bc-lobby-list { display: flex; flex-direction: column; gap: 12px; }
.bc-lobby-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 16px;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.bc-lobby-card.is-overdue { border-color: #fecaca; background: linear-gradient(180deg, #fef2f2, #fff); }
.bc-lobby-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.bc-lobby-card-top > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bc-lobby-wait { font-size: .95rem; }
.bc-lobby-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.bc-lobby-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; color: #64748b; font-size: .88rem; }
.bc-lobby-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-dispatch-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bc-dispatch-form .bc-input { min-width: 140px; width: auto; }

/* Leads list */
.bc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-filter-card { margin-bottom: 14px; padding: 14px; }
.bc-filters-pro {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width: 700px) {
  .bc-filters-pro { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .bc-filters-pro { grid-template-columns: 1.5fr repeat(4, 1fr) auto auto auto; align-items: center; }
}
.bc-leads-table-card { padding: 0; overflow: hidden; }
.bc-leads-table-card .bc-table-wrap { margin: 0; }
.bc-leads-table th, .bc-leads-table td { padding: 14px 12px; }
.bc-leads-table tbody tr:hover { background: #fffbeb; }
.bc-lead-row { cursor: pointer; }
.bc-lead-row:focus-visible { outline: 2px solid #fde68a; outline-offset: -2px; }
.bc-lead-phone-line { margin-top: 2px; font-weight: 600; color: #475569; }
.bc-lead-product-line { margin-top: 4px; font-size: .8rem; color: #92400e; font-weight: 600; }
.bc-lead-preview { width: min(680px, 100%); }
.bc-lead-preview-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bc-lead-preview-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px;
}
@media (min-width: 640px) {
  .bc-lead-preview-grid { grid-template-columns: 1fr 1fr; }
  .bc-lead-preview-grid .bc-span-2 { grid-column: span 2; }
}
.bc-lead-preview-grid > div {
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px;
}
.bc-lead-preview-grid span {
  display: block; font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 4px;
}
.bc-lead-preview-grid strong { font-size: .95rem; font-weight: 700; color: #0f172a; word-break: break-word; }
.bc-lead-preview-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px;
}

.bc-source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .bc-source-grid { grid-template-columns: repeat(3, 1fr); }
}
.bc-source-card {
  text-align: left;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bc-source-card strong { display: block; font-size: .95rem; margin-bottom: 4px; color: #0f172a; }
.bc-source-card span { display: block; color: #64748b; font-size: .82rem; line-height: 1.4; }
.bc-source-card:hover { border-color: #fde68a; background: #fffbeb; }
.bc-source-card.is-selected {
  border-color: var(--bc-yellow);
  background: #fefce8;
  box-shadow: 0 0 0 2px rgba(253,209,11,.28);
}

.bc-notif-wrap { position: relative; }
.bc-notif-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bc-border);
  background: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1rem;
}
.bc-notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}
.bc-notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 86vw); background: #fff;
  border: 1px solid var(--bc-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.16); overflow: hidden; z-index: 40;
}
.bc-notif-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--bc-border); background: #f8fafc;
}
.bc-notif-list { max-height: 360px; overflow: auto; }
.bc-notif-item {
  display: block; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9;
}
.bc-notif-item:hover { background: #fffbeb; }
.bc-notif-item.is-unread { background: #fefce8; }
.bc-notif-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.bc-notif-item span { display: block; color: #64748b; font-size: .82rem; }
.bc-notif-item small { display: block; color: #94a3b8; font-size: .72rem; margin-top: 4px; }

.bc-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center;
}

/* Sub-item (mục con trong sidebar, vd: "Xử lý đơn sàn" dưới "Đa kênh") */
.bc-nav a.bc-nav-sub {
  padding-left: 32px;
  font-size: .85rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
}
.bc-nav a.bc-nav-sub .bc-nav-ico {
  width: 24px; height: 24px; font-size: .78rem; background: rgba(255,255,255,.04);
}
.bc-nav a.bc-nav-sub:hover { background: rgba(253,209,11,.06); color: #fff; padding-left: 36px; }
.bc-nav a.bc-nav-sub:hover .bc-nav-ico { background: rgba(253,209,11,.15); color: var(--bc-yellow, #FDD10B); }
.bc-nav a.bc-nav-sub.active {
  background: linear-gradient(90deg, rgba(253,209,11,.18) 0%, rgba(253,209,11,.03) 100%);
  color: var(--bc-yellow, #FDD10B);
  border-left: 2px solid var(--bc-yellow, #FDD10B);
  padding-left: 30px;
  font-weight: 700;
}
.bc-nav a.bc-nav-sub.active .bc-nav-ico {
  background: var(--bc-yellow, #FDD10B); color: #111;
}

/* Channel badges trong menu (Shopee / TikTok chip) */
.bc-nav a .bc-channel-tag {
  margin-left: auto; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 5px;
  letter-spacing: .04em; text-transform: uppercase;
}
.bc-nav a .bc-channel-tag.is-shopee { background: rgba(238,77,45,.18); color: #ee4d2d; }
.bc-nav a .bc-channel-tag.is-tiktok { background: rgba(0,0,0,.35); color: #ff0050; }
.bc-nav a:hover .bc-channel-tag { transform: scale(1.05); }

/* ===== Quản lý giải trình ===== */
.bc-ex-page { display: flex; flex-direction: column; gap: 16px; }
.bc-ex-hero {
  display: grid; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(253,209,11,.18), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #eef2f7;
}
@media (min-width: 900px) {
  .bc-ex-hero { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.bc-ex-kicker {
  margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #92400e;
}
.bc-ex-hero-copy h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; }
.bc-ex-hero-copy p { margin: 6px 0 0; color: var(--bc-slate); font-size: .92rem; max-width: 46ch; }
.bc-ex-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) {
  .bc-ex-hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.bc-ex-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px;
  border-radius: 14px; background: #fff; border: 1px solid #eef2f7; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.bc-ex-stat:hover { border-color: #fde68a; transform: translateY(-1px); }
.bc-ex-stat span { font-size: .7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.bc-ex-stat strong { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.bc-ex-stat.is-hot { border-color: #fdba74; background: #fff7ed; }
.bc-ex-stat.is-hot strong { color: #c2410c; }
.bc-ex-stat.is-warn { border-color: #fde68a; background: #fffbeb; }
.bc-ex-stat.is-warn strong { color: #a16207; }

.bc-ex-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px;
  background: #fff; border: 1px solid #eef2f7;
}
.bc-ex-tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; color: #475569; font-size: .88rem; font-weight: 700;
}
.bc-ex-tabs a:hover { background: #f8fafc; color: #0f172a; }
.bc-ex-tabs a.is-active { background: #0f172a; color: #fff; }
.bc-ex-tabs a em {
  font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800;
  background: #ef4444; color: #fff;
}
.bc-ex-tabs a.is-active em { background: var(--bc-yellow); color: #111; }

.bc-ex-filter {
  padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #eef2f7;
}
.bc-ex-filter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-ex-filter-form .bc-input { flex: 1; min-width: 160px; }

.bc-ex-grid { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1100px) {
  .bc-ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

.bc-ex-card {
  position: relative; display: flex; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid #e8edf4; border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bc-ex-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.08); border-color: #fcd34d; }
.bc-ex-card-rail { width: 5px; flex: 0 0 5px; background: #cbd5e1; }
.bc-ex-card.is-awaiting .bc-ex-card-rail { background: linear-gradient(180deg, #fb923c, #f59e0b); }
.bc-ex-card.is-urgent .bc-ex-card-rail { background: linear-gradient(180deg, #ef4444, #f97316); }
.bc-ex-card.is-pending .bc-ex-card-rail { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.bc-ex-card.is-approved .bc-ex-card-rail { background: #22c55e; }
.bc-ex-card.is-rejected .bc-ex-card-rail { background: #ef4444; }
.bc-ex-card.is-awaiting, .bc-ex-card.is-urgent { background: linear-gradient(180deg, #fffbeb 0%, #fff 55%); }
.bc-ex-card-body { flex: 1; padding: 14px 16px 14px 14px; min-width: 0; }

.bc-ex-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.bc-ex-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bc-ex-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; background: #f1f5f9; color: #334155;
}
.bc-ex-badge.is-danger { background: #fee2e2; color: #991b1b; }
.bc-ex-badge.is-pending { background: #fef3c7; color: #92400e; }
.bc-ex-badge.is-approved { background: #dcfce7; color: #166534; }
.bc-ex-badge.is-rejected { background: #fee2e2; color: #991b1b; }
.bc-ex-code {
  font-size: .78rem; font-weight: 700; color: #64748b; background: transparent; padding: 0;
}
.bc-ex-wait {
  text-align: right; flex-shrink: 0; padding: 6px 10px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
}
.bc-ex-wait span { display: block; font-size: .65rem; font-weight: 700; color: #9a3412; text-transform: uppercase; }
.bc-ex-wait strong { font-size: 1rem; font-weight: 800; color: #c2410c; }
.bc-ex-wait.is-urgent { background: #fef2f2; border-color: #fecaca; }
.bc-ex-wait.is-urgent span { color: #991b1b; }
.bc-ex-wait.is-urgent strong { color: #dc2626; }
.bc-ex-time { font-size: .8rem; color: #94a3b8; white-space: nowrap; }

.bc-ex-name { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.bc-ex-name-btn {
  all: unset; cursor: pointer; color: inherit; font: inherit; font-weight: 800;
}
.bc-ex-name-btn:hover { color: #b45309; text-decoration: underline; text-underline-offset: 3px; }

.bc-ex-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bc-ex-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: #f8fafc; border: 1px solid #eef2f7; font-size: .8rem; font-weight: 600; color: #475569;
}
.bc-ex-chip.is-muted { color: #94a3b8; font-style: italic; }

.bc-ex-owner {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #eef2f7; margin-bottom: 12px;
}
.bc-ex-owner.is-empty { background: #fff7ed; border-color: #fed7aa; }
.bc-ex-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
  background: #0f172a; color: #fde68a;
}
.bc-ex-avatar.is-warn { background: #f59e0b; color: #111; }
.bc-ex-owner-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bc-ex-owner-label { font-size: .65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.bc-ex-owner-copy strong { font-size: .92rem; font-weight: 800; color: #0f172a; }
.bc-ex-owner-copy em { font-style: normal; font-size: .75rem; color: #64748b; font-weight: 600; }

.bc-ex-quote {
  padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed #e2e8f0; margin-bottom: 12px;
}
.bc-ex-quote span { display: block; font-size: .68rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 4px; }
.bc-ex-quote p { margin: 0; font-size: .92rem; line-height: 1.45; color: #334155; white-space: pre-wrap; }

.bc-ex-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 4px;
}
.bc-ex-link {
  all: unset; cursor: pointer; font-size: .88rem; font-weight: 700; color: #a16207;
}
.bc-ex-link:hover { text-decoration: underline; }
.bc-ex-remind-form { margin: 0; }
.bc-ex-btn-remind {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 999px;
  background: var(--bc-yellow); color: #111; font-weight: 800; font-size: .88rem; cursor: pointer;
  font-family: inherit; box-shadow: 0 4px 12px rgba(253,209,11,.35);
}
.bc-ex-btn-remind:hover { background: var(--bc-yellow-hover); }
.bc-ex-btn-remind:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.bc-ex-btn-ghost {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #fff; color: #334155; text-decoration: none;
  font-size: .85rem; font-weight: 700;
}

.bc-ex-decide {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px;
}
@media (min-width: 640px) {
  .bc-ex-decide { grid-template-columns: 1fr 1fr; }
}
.bc-ex-decide-ok, .bc-ex-decide-no { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bc-ex-btn-ok, .bc-ex-btn-no {
  border: 0; border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: .88rem;
  cursor: pointer; font-family: inherit;
}
.bc-ex-btn-ok { background: #0f172a; color: #fff; }
.bc-ex-btn-ok:hover { background: #1e293b; }
.bc-ex-btn-no { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bc-ex-btn-no:hover { background: #fee2e2; }

.bc-ex-review {
  padding: 10px 12px; border-radius: 12px; font-size: .88rem; margin-bottom: 10px;
  background: #f8fafc; border: 1px solid #eef2f7; color: #475569;
}
.bc-ex-review.is-approved { background: #f0fdf4; border-color: #bbf7d0; }
.bc-ex-review.is-rejected { background: #fef2f2; border-color: #fecaca; }
.bc-ex-review strong { display: block; color: #0f172a; margin-bottom: 2px; }
.bc-ex-review p { margin: 6px 0 0; }

.bc-ex-empty {
  padding: 36px 20px; text-align: center; border-radius: 16px;
  background: #fff; border: 1px dashed #e2e8f0;
}
.bc-ex-empty strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.bc-ex-empty p { margin: 0; color: var(--bc-slate); }

.bc-ex-customer-modal { width: min(700px, 100%); }
.bc-btn-danger-ghost { color: #b91c1c !important; border-color: #fecaca !important; }
.bc-checkin-camera {
  margin: 8px 0 14px; border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; background: #0f172a;
}
.bc-checkin-camera video {
  width: 100%; max-height: 360px; object-fit: cover; display: block;
}

.bc-preview-block {
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.bc-preview-block strong { font-size: .9rem; }
.bc-preview-actions-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.bc-preview-dispatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-preview-dispatch-row .bc-input { flex: 1; min-width: 160px; }
.bc-preview-explain { border-color: #fecaca; background: #fef2f2; }
.bc-notif-tip {
  padding: 12px 14px; border-bottom: 1px solid #fde68a; background: #fffbeb;
}
.bc-notif-tip p { margin: 0 0 8px; font-size: .82rem; color: #92400e; }
.bc-notif-banner {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a;
}
.bc-notif-banner[hidden] { display: none !important; }
.bc-notif-banner strong { display: block; color: #92400e; margin-bottom: 4px; }
.bc-notif-banner p { margin: 0; color: #78350f; font-size: .88rem; max-width: 52ch; }
.bc-notif-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Users settings */
.bc-users-stats { margin-bottom: 14px; }
.bc-stat-roles { display: flex; gap: 10px; font-size: 1.1rem !important; }
.bc-stat-roles span { background: #f1f5f9; border-radius: 8px; padding: 4px 8px; font-size: .95rem; }
.bc-user-cell { display: flex; align-items: center; gap: 10px; }
.bc-user-avatar-sm {
  width: 36px; height: 36px; border-radius: 10px; background: #0f172a; color: #fde68a;
  display: grid; place-items: center; font-weight: 800; flex: 0 0 auto;
}
.bc-tag-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bc-chip {
  display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3;
  font-size: .72rem; font-weight: 700;
}
.bc-chip-store { background: #ecfdf5; color: #065f46; }
.bc-role-admin { background: #0f172a; color: #fde68a; }
.bc-role-manager { background: #dbeafe; color: #1e3a8a; }
.bc-role-sale { background: #fef3c7; color: #92400e; }
.bc-role-warehouse { background: #e0e7ff; color: #3730a3; }
.bc-role-marketing { background: #fce7f3; color: #9d174d; }
.bc-row-inactive { opacity: .62; }
.bc-row-warn { background: #fffbeb; }
.bc-warn-text { margin-top: 4px; font-size: .75rem; font-weight: 700; color: #b45309; }
.bc-pill-warn { background: #fef3c7; color: #92400e; }
.bc-text-danger { color: #b91c1c; }
.bc-text-warn { color: #b45309; }
.bc-assign-hint {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .85rem;
}
.bc-user-assign-block {
  margin-top: 14px; padding: 14px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc;
}
.bc-user-assign-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px;
}
.bc-check-card {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-weight: 600; font-size: .88rem;
}
.bc-check-card.is-on { border-color: #fde68a; background: #fffbeb; }
.bc-store-check-grid { max-height: 220px; overflow: auto; }

.bc-btn-danger-text { color: #b91c1c !important; }

/* WordPress-style media library */
.bc-wp-media { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.bc-wp-media-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.bc-wp-media-tabs { display: flex; gap: 4px; }
.bc-wp-media-tabs button,
.bc-wp-upload-tab {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 8px;
  font-weight: 700; font-size: .9rem; color: #64748b; cursor: pointer;
}
.bc-wp-media-tabs button.is-active,
.bc-wp-upload-tab:hover { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.bc-wp-upload-tab { display: inline-flex; align-items: center; }
.bc-wp-media-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-wp-media-filters .bc-input { min-width: 160px; }
.bc-wp-drop {
  margin: 12px 16px 0; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 12px;
  text-align: center; color: #64748b; font-size: .9rem; background: #fafafa;
  transition: border-color .15s, background .15s;
}
.bc-wp-drop.is-over { border-color: #f59e0b; background: #fffbeb; }
.bc-wp-media-body {
  display: grid; grid-template-columns: 1fr 280px; min-height: 420px;
}
@media (max-width: 900px) {
  .bc-wp-media-body { grid-template-columns: 1fr; }
  .bc-wp-media-details { border-left: 0 !important; border-top: 1px solid #e2e8f0; }
}
.bc-wp-media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; padding: 16px; align-content: start; max-height: 62vh; overflow: auto;
}
.bc-wp-media-item {
  border: 2px solid transparent; border-radius: 10px; background: #f1f5f9;
  padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; aspect-ratio: 1;
}
.bc-wp-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-wp-media-item > span {
  display: none; font-size: .68rem; padding: 4px 6px; background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-wp-media-item.is-selected {
  border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1, 0 8px 20px rgba(34,113,177,.18);
}
.bc-wp-media-details {
  border-left: 1px solid #e2e8f0; padding: 16px; background: #fafafa;
}
.bc-wp-media-details h3 { margin: 0 0 12px; font-size: .95rem; }
.bc-wp-details-preview {
  width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  height: 180px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; padding: 8px;
  cursor: zoom-in; position: relative;
}
.bc-wp-details-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-wp-details-preview em {
  position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: .72rem; font-weight: 700;
  background: rgba(15,23,42,.75); color: #fff; padding: 3px 8px; border-radius: 999px;
}

.bc-wp-lightbox {
  position: fixed; inset: 0; z-index: 11000; background: rgba(15,23,42,.88);
  display: grid; place-items: center; padding: 24px 16px;
}
.bc-wp-lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.bc-wp-lightbox-close:hover { background: rgba(255,255,255,.28); }
.bc-wp-lightbox-figure {
  margin: 0; max-width: min(1100px, 100%); max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bc-wp-lightbox-figure img {
  max-width: 100%; max-height: min(72vh, 820px); width: auto; height: auto;
  object-fit: contain; border-radius: 10px; background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.bc-wp-lightbox-figure figcaption {
  color: #e2e8f0; text-align: center; display: grid; gap: 4px; font-size: .9rem;
}
.bc-wp-lightbox-figure figcaption code {
  font-size: .75rem; color: #94a3b8; word-break: break-all;
}
.bc-wp-lightbox-actions {
  display: flex; gap: 8px; justify-content: center; margin-top: 6px; flex-wrap: wrap;
}
.bc-wp-details-list { margin: 0; display: grid; gap: 8px; }
.bc-wp-details-list div { display: grid; gap: 2px; }
.bc-wp-details-list dt { font-size: .72rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.bc-wp-details-list dd { margin: 0; font-size: .86rem; word-break: break-all; }
.bc-wp-details-list code { font-size: .75rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 6px; display: block; }
.bc-wp-details-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.bc-wp-picker {
  position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 16px;
}
.bc-wp-picker-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); }
.bc-wp-picker-panel {
  position: relative; width: min(980px, 100%); height: min(720px, 92vh);
  background: #fff; border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,.28); overflow: hidden;
}
.bc-wp-picker-head, .bc-wp-picker-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.bc-wp-picker-foot { border-bottom: 0; border-top: 1px solid #e2e8f0; }
.bc-wp-picker-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid #eef2f7;
}
.bc-wp-picker-toolbar .bc-input { min-width: 140px; flex: 1; }
.bc-wp-picker-drop { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bc-wp-picker-drop.is-over { outline: 2px dashed #f59e0b; outline-offset: -8px; background: #fffbeb; }
.bc-wp-picker-empty {
  flex: 1; display: grid; place-content: center; gap: 10px; text-align: center; padding: 40px 16px; color: #64748b;
}
.bc-wp-picker-empty strong { color: #0f172a; font-size: 1.05rem; }
.bc-wp-picker-body {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 240px;
}
.bc-wp-picker-grid { max-height: none; height: 100%; }
@media (max-width: 720px) {
  .bc-wp-picker-body { grid-template-columns: 1fr; }
}

.bc-media-pick-field { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.bc-media-pick-preview {
  border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; cursor: pointer;
  display: grid; place-items: center; overflow: hidden; padding: 8px; color: #64748b; font-size: .82rem; font-weight: 700;
}
.bc-media-pick-preview:hover { border-color: #f59e0b; background: #fffbeb; }
.bc-media-pick-preview.is-wide { width: 180px; height: 64px; }
.bc-media-pick-preview.is-icon { width: 56px; height: 56px; }
.bc-media-pick-preview.is-square { width: 88px; height: 88px; }
.bc-media-pick-preview.is-on-light { background: #fff; border-color: #e2e8f0; }
.bc-media-pick-preview.is-on-dark {
  background: #0f172a; border-color: #334155; color: #94a3b8;
}
.bc-media-pick-preview.is-on-dark:hover { border-color: #f59e0b; background: #111827; }
.bc-media-pick-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-media-pick-actions { flex: 1; min-width: 200px; display: grid; gap: 8px; align-content: start; }
.bc-media-pick-path {
  display: block; font-size: .72rem; color: #64748b; background: #f1f5f9; border-radius: 6px;
  padding: 4px 8px; word-break: break-all;
}

.bc-product-cat-block { margin-top: 18px; }
.bc-product-cat-block:first-child { margin-top: 8px; }
.bc-product-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.bc-product-cat-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.bc-product-sort-grid { margin-top: 8px; }
.bc-product-sort-card {
  position: relative; cursor: grab; user-select: none; touch-action: none;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.bc-product-sort-card:active { cursor: grabbing; }
.bc-product-sort-card.is-dragging {
  opacity: .28; border-style: dashed; box-shadow: none; pointer-events: none;
}
.bc-product-sort-card.is-drop-target {
  border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(253,209,11,.35);
}
.bc-product-sort-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: #0f172a; color: #fde68a; font-size: .72rem; font-weight: 800; font-style: normal;
  display: grid; place-items: center;
}
.bc-product-sort-placeholder {
  width: 64px; height: 64px; border-radius: 10px; background: #e2e8f0; color: #64748b;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.bc-product-sort-btns { display: flex; gap: 4px; margin-top: 8px; }
.bc-product-ghost {
  position: fixed !important; top: 0; left: 0; z-index: 9999; margin: 0;
  pointer-events: none !important; opacity: 1 !important;
  border: 2px solid #f59e0b !important; background: #fff !important;
  box-shadow: 0 18px 40px rgba(15,23,42,.28), 0 0 0 4px rgba(253,209,11,.35);
  will-change: transform;
}
body.bc-product-dragging { cursor: grabbing !important; user-select: none; }
body.bc-product-dragging * { cursor: grabbing !important; }

/* Coupons */
.bc-coupon-layout {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 980px) {
  .bc-coupon-layout { grid-template-columns: 1fr; }
}
.bc-coupon-section {
  margin: 4px 0 10px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.bc-coupon-section > strong { display: block; margin-bottom: 10px; font-size: .88rem; }
.bc-coupon-flags { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 4px 0 0; }
.bc-coupon-flags label { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; }
.bc-coupon-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-coupon-search .bc-input { flex: 1; min-width: 140px; }
.bc-coupon-table-wrap { overflow-x: auto; }
.bc-coupon-table td, .bc-coupon-table th { vertical-align: top; }
.bc-coupon-table tr.is-off { opacity: .62; }
.bc-coupon-code { font-family: ui-monospace, monospace; letter-spacing: .03em; }
.bc-coupon-acts { display: flex; flex-wrap: wrap; gap: 4px; white-space: nowrap; }
.bc-notif-head-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; }

.bc-form-track-mini {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 0;
  font-size: .78rem; font-weight: 700; color: #64748b;
}
.bc-form-stats-period { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.bc-form-stats-period .bc-chip-btn.is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.bc-form-stats-range {
  display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto;
}
@media (max-width: 720px) {
  .bc-form-stats-range { margin-left: 0; width: 100%; }
}
.bc-form-stats-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .bc-form-stats-grid { grid-template-columns: 1fr; }
}
.bc-funnel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bc-funnel-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; margin-bottom: 4px; }
.bc-funnel-bar { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bc-funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fdd10b, #f59e0b); border-radius: 999px; }
.bc-track-daily { display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; min-height: 96px; padding-bottom: 4px; }
.bc-track-day { flex: 0 0 auto; width: 28px; text-align: center; }
.bc-track-day-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 76px; }
.bc-track-day-bars span { width: 8px; border-radius: 4px 4px 0 0; display: block; }
.bc-track-day-bars .is-view { background: #0f172a; }
.bc-track-day-bars .is-submit { background: #f59e0b; }
.bc-track-day small { display: block; margin-top: 4px; font-size: .62rem; color: #94a3b8; }
.bc-track-rank { list-style: none; margin: 0; padding: 0; }
.bc-track-rank li {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f1f5f9; font-size: .9rem;
}
.bc-track-rank li:last-child { border-bottom: 0; }
.bc-track-rank strong { font-variant-numeric: tabular-nums; }

/* —— App Kho Beecube (layout riêng) —— */
.bc-kho-body {
  margin: 0; min-height: 100vh; background: #e8eef5;
  font-family: "Be Vietnam Pro", system-ui, sans-serif; color: #0f172a;
}
.bc-kho-shell { display: flex; min-height: 100vh; }
.bc-kho-sidebar {
  width: 280px; flex-shrink: 0; background: #0f172a; color: #e2e8f0;
  display: flex; flex-direction: column; padding: 16px 12px;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.bc-kho-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; padding: 4px 8px 12px; border-bottom: 1px solid #1e293b; }
.bc-kho-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #1e293b; }
.bc-kho-brand strong { display: block; font-size: 1rem; color: #f8fafc; }
.bc-kho-brand span { font-size: .72rem; color: #94a3b8; }
.bc-kho-nav {
  display: flex; flex-direction: column; gap: 10px; flex: 1;
  overflow-y: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch;
}
.bc-kho-group { border-radius: 14px; background: #111827; padding: 6px; }
.bc-kho-group.has-active { outline: 1px solid rgba(253,209,11,.35); }
.bc-kho-parent {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 12px;
  background: #1e293b; color: #f8fafc; font: inherit; font-weight: 800;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; touch-action: manipulation;
}
.bc-kho-parent:hover { background: #334155; }
.bc-kho-group.is-open > .bc-kho-parent { background: #334155; }
.bc-kho-parent-chevron {
  font-size: .85rem; color: #94a3b8; transition: transform .15s ease;
}
.bc-kho-group.is-open .bc-kho-parent-chevron { transform: rotate(180deg); color: #fdd10b; }
.bc-kho-children { display: grid; gap: 6px; padding: 8px 4px 4px; }
.bc-kho-child {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  min-height: 56px; justify-content: center;
  padding: 12px 14px; border-radius: 12px; border: 1px solid transparent;
  background: #0f172a; color: #e2e8f0; touch-action: manipulation;
}
.bc-kho-child strong { font-size: .95rem; font-weight: 800; color: #f8fafc; }
.bc-kho-child small { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.bc-kho-child:hover { border-color: #475569; background: #1e293b; }
.bc-kho-child.is-active {
  background: #fdd10b; border-color: #f0c400; color: #0f172a;
}
.bc-kho-child.is-active strong { color: #0f172a; }
.bc-kho-child.is-active small { color: #78350f; }
.bc-kho-foot { border-top: 1px solid #1e293b; padding-top: 12px; margin-top: 8px; display: grid; gap: 8px; }
.bc-kho-switch {
  display: block; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 800;
  color: #0f172a; background: #fdd10b; border-radius: 12px; padding: 12px 10px; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.bc-kho-user { text-decoration: none; color: #e2e8f0; padding: 6px 8px; }
.bc-kho-user strong { display: block; font-size: .85rem; }
.bc-kho-user span { font-size: .72rem; color: #94a3b8; }
.bc-kho-logout {
  width: 100%; border: 1px solid #334155; background: transparent; color: #94a3b8;
  border-radius: 12px; padding: 12px; min-height: 48px; font-weight: 800; cursor: pointer;
  touch-action: manipulation;
}
.bc-kho-logout:hover { border-color: #fdd10b; color: #fdd10b; }
.bc-kho-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-kho-top {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 22px 8px; background: transparent;
}
.bc-kho-top h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.bc-kho-kicker {
  margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #64748b;
}
.bc-kho-menu {
  display: none; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px;
  width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer;
}
.bc-kho-content { padding: 8px 22px 28px; flex: 1; width: 100%; box-sizing: border-box; }

/* Trang kho — full bề ngang, không cột hẹp */
.bc-kho-page { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: none; }
.bc-kho-page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px 16px;
}
.bc-kho-page-lead { margin: 0; color: #64748b; font-size: .92rem; line-height: 1.45; max-width: 72ch; }
.bc-kho-workspace {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
.bc-kho-panel { margin: 0; min-width: 0; }
.bc-kho-panel-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; }
.bc-kho-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.bc-kho-panel-head .bc-kho-panel-title { margin: 0; }
.bc-kho-panel-side { overflow: auto; }
.bc-kho-fields {
  display: grid; gap: 12px 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bc-kho-fields .bc-form-group { margin: 0; min-width: 0; }
.bc-kho-form-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px;
}
.bc-kho-form-actions .bc-btn { min-width: 220px; }
.bc-kho-guide-toc {
  padding: 16px 18px;
}
.bc-kho-guide-toc ol {
  margin: 10px 0 0; padding-left: 1.25rem; columns: 2; gap: 24px;
  line-height: 1.7;
}
.bc-kho-guide-toc a { color: #0f172a; font-weight: 600; text-decoration: none; }
.bc-kho-guide-toc a:hover { color: #b45309; text-decoration: underline; }
.bc-kho-guide-section h2 {
  margin: 0 0 10px; font-size: 1.15rem; font-weight: 800;
}
.bc-kho-guide-section h3 {
  margin: 16px 0 8px; font-size: 1rem; font-weight: 750;
}
.bc-kho-guide-section p,
.bc-kho-guide-section li { line-height: 1.55; color: #334155; }
.bc-kho-guide-section ul,
.bc-kho-guide-section ol { margin: 0 0 8px; padding-left: 1.2rem; }
.bc-kho-guide-section { scroll-margin-top: 16px; }
@media (max-width: 720px) {
  .bc-kho-guide-toc ol { columns: 1; }
}
.bc-kho-fields > .bc-form-group[style*="grid-column"] { grid-column: span 2; }
@media (max-width: 640px) {
  .bc-kho-fields > .bc-form-group[style*="grid-column"] { grid-column: span 1; }
}
.bc-kho-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.bc-kho-toolbar-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-kho-toolbar-links {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.bc-kho-toolbar-links a {
  font-size: .84rem; font-weight: 650; color: #475569; text-decoration: none;
}
.bc-kho-toolbar-links a:hover { color: #0f172a; text-decoration: underline; }

.bc-kho-summary {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bc-kho-summary-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.bc-kho-summary-card header {
  font-size: .92rem; font-weight: 800; color: #0f172a; line-height: 1.3;
}
.bc-kho-bin-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.bc-kho-bin-row li {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 6px;
  background: #f8fafc; border-radius: 10px; text-align: center;
}
.bc-kho-bin-row span { font-size: .68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .02em; }
.bc-kho-bin-row strong { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bc-kho-summary-card footer {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: #64748b;
}
.bc-kho-summary-card footer b { color: #0f172a; font-weight: 800; }

.bc-kho-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: stretch; padding: 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 12px;
}
.bc-kho-filters > .bc-input { flex: 1 1 170px; width: auto; min-width: 0; }
.bc-kho-filters-search {
  display: flex; gap: 6px; align-items: stretch; min-width: 0; flex: 2 1 300px;
}
.bc-kho-filters-search .bc-input { flex: 1; min-width: 0; }
.bc-kho-filters-search .bc-btn,
.bc-kho-filters-search .bc-btn-ghost { flex-shrink: 0; }

.bc-kho-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 2px;
}
.bc-kho-pager-pages {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.bc-kho-pager-pages a,
.bc-kho-pager-pages strong,
.bc-kho-pager-pages span {
  min-width: 34px; height: 34px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: .88rem; font-weight: 700; text-decoration: none;
}
.bc-kho-pager-pages a { background: #fff; border: 1px solid #e2e8f0; color: #0f172a; }
.bc-kho-pager-pages a:hover { border-color: #f0c400; background: #fffbeb; }
.bc-kho-pager-pages strong { background: #fdd10b; color: #0f172a; }
.bc-kho-pager-pages span { color: #94a3b8; }
.bc-kho-table-card { overflow: auto; margin: 0; padding: 0; }
.bc-kho-table-card .bc-table { margin: 0; }
.bc-kho-table-card thead th {
  position: sticky; top: 0; background: #f8fafc; z-index: 1;
}
.bc-kho-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px 16px; text-align: center;
}
.bc-kho-empty strong { font-size: 1.05rem; }
.bc-kho-empty span { color: #64748b; font-size: .9rem; max-width: 36ch; }
.bc-kho-empty .bc-btn { margin-top: 6px; }
.bc-kho-bh-exp { font-size: .82rem; font-weight: 650; }
.bc-kho-bh-exp.is-ok { color: #166534; }
.bc-kho-bh-exp.is-expired { color: #b91c1c; }

.bc-kho-mode-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px;
}
.bc-kho-mode {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.bc-kho-mode strong { font-size: .95rem; color: #0f172a; }
.bc-kho-mode span { font-size: .8rem; color: #64748b; line-height: 1.35; }
.bc-kho-mode.is-on {
  border-color: #f0c400; background: #fffbeb;
}
.bc-kho-mode .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .bc-kho-mode-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .bc-kho-workspace { grid-template-columns: 1fr; }
  .bc-kho-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bc-kho-fields { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .bc-kho-filters-search { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .bc-kho-filters > .bc-input { flex-basis: 100%; }
  .bc-kho-bin-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-kho-toolbar { flex-direction: column; align-items: stretch; }
}

.bc-kho-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 30; display: none;
}
@media (max-width: 900px) {
  .bc-kho-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0,0,0,.25);
  }
  .bc-kho-sidebar.is-open { transform: translateX(0); }
  .bc-kho-menu { display: inline-flex; align-items: center; justify-content: center; }
  .bc-kho-backdrop { display: block; }
  .bc-kho-content, .bc-kho-top { padding-left: 14px; padding-right: 14px; }
}

/* Quét IMEI */
.bc-kho-scan-row { display: flex; gap: 8px; align-items: stretch; }
.bc-kho-scan-input {
  flex: 1; min-height: 52px !important; font-size: 1.05rem !important;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.bc-kho-scan-row .bc-btn-ghost {
  min-width: 52px; min-height: 52px; font-size: 1.2rem; padding: 0 12px;
}
.bc-kho-scan-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  color: #0f172a;
}
.bc-kho-scan-ico {
  width: 22px; height: 22px; display: block;
}
.bc-kho-scan-btn:hover { color: #0f172a; }
.bc-kho-imei-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 8px;
}
.bc-kho-imei-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0f172a; color: #f8fafc; border-radius: 999px;
  padding: 6px 8px 6px 12px; font-size: .82rem;
}
.bc-kho-imei-chip code { font-size: .8rem; color: #fde68a; }
.bc-kho-imei-chip button {
  border: 0; background: #334155; color: #fff; width: 28px; height: 28px;
  border-radius: 999px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.bc-kho-uid-dump { font-family: ui-monospace, monospace; font-size: .85rem; }
.bc-kho-scan-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: .2s ease; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.bc-kho-scan-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.bc-kho-scan-toast.is-err { background: #b91c1c; }
.bc-kho-cam {
  position: fixed; inset: 0; background: rgba(15,23,42,.72); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.bc-kho-cam.is-on { display: flex; }
.bc-kho-cam-panel {
  background: #0f172a; color: #fff; border-radius: 16px; padding: 14px;
  width: min(420px, 100%); display: grid; gap: 10px;
}
.bc-kho-cam-panel video {
  width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4/3; object-fit: cover;
}
.bc-kho-cam-panel p { margin: 0; font-size: .85rem; color: #94a3b8; text-align: center; }

/* Lô hàng / nhập lần đầu */
.bc-kho-batch-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 14px 18px; padding: 4px 2px 2px;
}
.bc-kho-batch-hero-title {
  margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a;
}
.bc-kho-batch-hero-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.bc-kho-batch-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bc-kho-batch-filters {
  margin: 0; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
}
.bc-kho-batch-meta { font-size: .9rem; color: #334155; }
.bc-kho-batch-table td { vertical-align: top; }
.bc-kho-batch-id {
  font-weight: 800; color: #0f172a; text-decoration: none;
}
.bc-kho-batch-id:hover { color: #b45309; text-decoration: underline; }
.bc-kho-batch-code {
  font-size: .85rem; background: #f1f5f9; padding: 3px 7px; border-radius: 6px;
}
.bc-kho-batch-actions {
  display: flex; flex-direction: column; gap: 4px; white-space: nowrap;
}
.bc-kho-batch-actions a {
  font-size: .85rem; font-weight: 650; color: #0f172a; text-decoration: none;
}
.bc-kho-batch-actions a:hover { color: #b45309; text-decoration: underline; }
.bc-kho-create-modal .bc-kho-fields { margin-top: 4px; }

.bc-kho-approve-list { display: grid; gap: 14px; }
.bc-kho-approve-card { padding: 16px 18px; }
.bc-kho-approve-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.bc-kho-approve-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b;
}
.bc-kho-approve-title {
  margin: 4px 0 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; line-height: 1.35;
}
.bc-kho-approve-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
}
@media (min-width: 720px) {
  .bc-kho-approve-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .bc-kho-approve-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bc-kho-approve-grid > div { min-width: 0; display: grid; gap: 2px; }
.bc-kho-approve-grid span {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b;
}
.bc-kho-approve-grid strong {
  font-size: .92rem; font-weight: 750; color: #0f172a; word-break: break-word;
}
.bc-kho-approve-grid small { font-size: .78rem; }
.bc-kho-approve-foot { margin-top: 14px; }
.bc-kho-approve-form {
  display: flex; flex-direction: column; gap: 8px; max-width: 520px;
}
.bc-kho-approve-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  display: grid;
  gap: 4px;
}
.bc-kho-approve-note span {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #92400e;
}
.bc-kho-approve-note strong {
  font-size: .95rem; font-weight: 650; color: #0f172a; white-space: pre-wrap;
}
.bc-kho-uid-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bc-kho-uid-chips code {
  font-size: .78rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
}
.bc-kho-workflow {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
@media (min-width: 720px) {
  .bc-kho-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
.bc-kho-workflow-step {
  display: flex; gap: 10px; align-items: flex-start;
  opacity: .45;
}
.bc-kho-workflow-step.is-done,
.bc-kho-workflow-step.is-current { opacity: 1; }
.bc-kho-workflow-dot {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
  background: #e2e8f0; color: #334155; flex-shrink: 0;
}
.bc-kho-workflow-step.is-done .bc-kho-workflow-dot {
  background: #dcfce7; color: #166534;
}
.bc-kho-workflow-step.is-current .bc-kho-workflow-dot {
  background: #fef3c7; color: #92400e;
}
.bc-kho-workflow-step strong {
  display: block; font-size: .9rem; color: #0f172a;
}
.bc-kho-workflow-step small {
  display: block; margin-top: 2px; font-size: .78rem; color: #64748b; line-height: 1.35;
}
.bc-kho-dash-stats { margin: 16px 0; }
.bc-kho-dash-stats .bc-stat {
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
.bc-kho-dash-stats .bc-stat:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.bc-kho-dash-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .bc-kho-dash-grid { grid-template-columns: 1fr 1fr; }
}
.bc-kho-dash-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
}
.bc-kho-dash-list li {
  display: grid; gap: 2px; padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.bc-kho-dash-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-kho-dash-list a {
  color: #0f172a; text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.bc-kho-dash-list a:hover { text-decoration: underline; }
.bc-kho-dash-bars { display: grid; gap: 12px; }
.bc-kho-dash-bar-label {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .85rem; margin-bottom: 4px;
}
.bc-kho-dash-bar-track {
  height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.bc-kho-dash-bar-track i {
  display: block; height: 100%; border-radius: 999px; background: #0f172a;
}
.bc-kho-dash-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}

/* Đơn bán — layout tham khảo Sapo */
.bc-sapo-create[x-cloak] { display: none !important; }
.bc-sapo-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 16px;
}
.bc-sapo-top h1 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.bc-sapo-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  text-decoration: none; font-size: 1.1rem; line-height: 1;
}
.bc-sapo-back:hover { border-color: #fbbf24; background: #fffbeb; }
.bc-sapo-layout {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 88px;
}
@media (min-width: 980px) {
  .bc-sapo-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  }
  .bc-sapo-foot { grid-column: 1 / -1; }
}
.bc-sapo-main,
.bc-sapo-side {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.bc-sapo-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bc-sapo-card h2 {
  margin: 0 0 12px; font-size: .95rem; font-weight: 700; color: #0f172a;
}
.bc-sapo-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px;
}
.bc-sapo-card-head h2 { margin: 0; }
.bc-sapo-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid #dbe3ee; border-radius: 10px;
  background: #f8fafc; position: relative;
}
.bc-sapo-search-wrap.is-compact { padding: 4px 8px; }
.bc-sapo-search-ico { color: #94a3b8; font-size: 1.1rem; flex-shrink: 0; }
.bc-sapo-search {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font-size: .95rem; padding: 8px 4px; outline: none; color: #0f172a;
}
.bc-sapo-hint { margin: 8px 0 0; font-size: .82rem; }
.bc-sapo-dropdown,
.bc-sapo-unit-panel {
  margin-top: 8px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; max-height: 280px; overflow: auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.bc-sapo-unit-panel { max-height: 340px; }
.bc-sapo-unit-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.bc-sapo-drop-row {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  gap: 12px; text-align: left; padding: 10px 12px; border: 0;
  border-bottom: 1px solid #f1f5f9; background: #fff; cursor: pointer; color: inherit;
}
.bc-sapo-drop-row:last-child { border-bottom: 0; }
.bc-sapo-drop-row:hover:not(:disabled) { background: #fffbeb; }
.bc-sapo-drop-row.is-added,
.bc-sapo-drop-row:disabled { opacity: .55; cursor: default; background: #f8fafc; }
.bc-sapo-drop-empty {
  padding: 16px; text-align: center; color: #64748b; font-size: .88rem;
}
.bc-sapo-empty {
  margin-top: 18px; padding: 28px 16px; text-align: center;
  border: 1px dashed #dbe3ee; border-radius: 12px; background: #fafbfc;
}
.bc-sapo-empty-ico {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #94a3b8; font-size: 1.4rem;
}
.bc-sapo-empty p { margin: 0 0 12px; color: #64748b; }
.bc-sapo-lines { margin-top: 14px; overflow-x: auto; }
.bc-sapo-price { max-width: 110px; padding: 6px 8px; font-size: .9rem; }
.bc-sapo-pay-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: .95rem; border-bottom: 1px solid #f1f5f9;
}
.bc-sapo-pay-row.is-muted { color: #64748b; font-size: .88rem; }
.bc-sapo-pay-row.is-total {
  border-bottom: 0; padding-top: 12px; font-size: 1.05rem;
}
.bc-sapo-pay-row.is-total strong { color: #b45309; font-size: 1.15rem; }
.bc-sapo-discount { padding: 10px 0 4px; border-bottom: 1px solid #f1f5f9; }
.bc-sapo-discount .bc-label { margin-bottom: 8px; display: block; }
.bc-sapo-discount-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.bc-sapo-discount-tabs {
  display: inline-flex; padding: 3px; border-radius: 10px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
}
.bc-sapo-discount-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: .82rem; font-weight: 600; color: #64748b;
  padding: 7px 12px; border-radius: 8px;
}
.bc-sapo-discount-tab.is-on {
  background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.bc-sapo-discount-input {
  display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 140px;
}
.bc-sapo-discount-input .bc-input { max-width: 140px; padding: 7px 10px; }
.bc-sapo-discount-suffix {
  font-size: .85rem; font-weight: 600; color: #64748b; min-width: 1.2em;
}
.bc-sapo-customer .bc-form-group { margin-bottom: 10px; }
.bc-sales-web-items {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px; font-size: .85rem;
}
.bc-sales-web-items li {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  padding: 4px 0; border-top: 1px dashed #e2e8f0;
}
.bc-sapo-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  padding: 12px 0 4px; margin-top: 4px;
  background: linear-gradient(180deg, transparent, var(--bc-bg, #f4f6f9) 28%);
}
.bc-sapo-submit {
  min-width: 160px; min-height: 44px; font-weight: 700;
  justify-content: center;
}
.bc-sapo-price[readonly] {
  background: #f8fafc; color: #b45309; font-weight: 600; cursor: default;
}
.bc-sapo-web-fulfill {
  padding: 12px; border-radius: 10px; border: 1px solid #fde68a; background: #fffbeb;
}
/* —— Bán hàng /admin/sales —— */
.bc-sales-page { display: flex; flex-direction: column; gap: 14px; }
.bc-sales-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 4px 2px 2px;
}
.bc-sales-head h1 {
  margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15;
}
.bc-sales-head-lead {
  margin: 6px 0 0; color: var(--bc-slate); font-size: .9rem; max-width: 52ch; line-height: 1.45;
}
.bc-sales-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.bc-sales-hub {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.bc-sales-hub-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 16px 14px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(226, 232, 240, .95); background: #fff; color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .18s ease, border-color .18s, box-shadow .18s, background .18s;
}
.bc-sales-hub-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #e2e8f0; transition: background .18s;
}
.bc-sales-hub-card:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffef5 0%, #fff 70%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}
.bc-sales-hub-card:hover::before { background: var(--bc-yellow); }
.bc-sales-hub-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: #f1f5f9; color: #0f172a; font-size: .85rem; font-weight: 800;
  letter-spacing: -.02em;
}
.bc-sales-hub-card:hover .bc-sales-hub-ico { background: #fdd10b; }
.bc-sales-hub-card strong { font-size: .95rem; color: #0f172a; font-weight: 800; }
.bc-sales-hub-card span { font-size: .78rem; color: #64748b; line-height: 1.35; }

.bc-sales-toolbar {
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; border: 1px solid #e8edf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.bc-ch-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px; border-radius: 12px; background: #f1f5f9;
}
.bc-ch-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 9px; border: 0;
  background: transparent; text-decoration: none; color: #475569;
  font-size: .84rem; font-weight: 700; transition: background .15s, color .15s, box-shadow .15s;
}
.bc-ch-tab:hover { color: #0f172a; background: rgba(255,255,255,.7); }
.bc-ch-tab.is-on {
  background: #0f172a; color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.bc-ch-tab .n {
  font-size: .7rem; font-weight: 600; opacity: .7;
  padding: 1px 6px; border-radius: 999px; background: rgba(15,23,42,.06);
}
.bc-ch-tab.is-on .n { background: rgba(255,255,255,.16); opacity: .9; }
.bc-ch-tab.is-off { opacity: .48; }
.bc-sales-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.bc-sales-filters .bc-input { min-width: min(260px, 100%); flex: 1; }
.bc-sales-filters .bc-btn-ghost { white-space: nowrap; }

.bc-ch-pill-shopee { background: #ee4d2d; color: #fff; }
.bc-ch-pill-tiktok { background: #111; color: #fff; }
.bc-ch-pill-woocommerce { background: #7f54b3; color: #fff; }
.bc-ch-pill-facebook { background: #1877f2; color: #fff; }
.bc-ch-pill-pos { background: #0f172a; color: #fff; }

.bc-sales-board {
  border-radius: 16px; overflow: hidden;
  border: 1px solid #e8edf3; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.bc-sales-board .bc-table { font-size: .9rem; }
.bc-sales-board .bc-table th {
  padding: 12px 14px; background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.bc-sales-board .bc-table td { padding: 13px 14px; }
.bc-sales-board .bc-table tbody tr {
  cursor: pointer; transition: background .12s;
}
.bc-sales-board .bc-table tbody tr:hover { background: #fffbeb; }
.bc-sales-board .bc-table tbody tr:last-child td { border-bottom: 0; }
.bc-sales-code {
  font-weight: 800; color: #0f172a; text-decoration: none; letter-spacing: -.01em;
}
.bc-sales-code:hover { color: #92400e; }
.bc-sales-money { font-variant-numeric: tabular-nums; font-weight: 800; color: #0f172a; white-space: nowrap; }
.bc-sales-time { font-size: .82rem; color: #64748b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-sales-cust strong { display: block; font-weight: 700; }
.bc-sales-cust .bc-muted { margin-top: 2px; font-size: .8rem; }
.bc-st-completed, .bc-st-complete, .bc-st-done { background: #dcfce7; color: #14532d; }
.bc-st-processing, .bc-st-pending { background: #ffedd5; color: #9a3412; }
.bc-st-cancelled, .bc-st-failed, .bc-st-refunded { background: #fee2e2; color: #991b1b; }
.bc-st-shipped, .bc-st-delivering { background: #dbeafe; color: #1e3a8a; }
.bc-sales-row-act { white-space: nowrap; }
.bc-sales-row-act a {
  font-size: .82rem; font-weight: 700; text-decoration: none; color: #92400e;
}
.bc-sales-row-act a:hover { text-decoration: underline; }
.bc-sales-empty {
  padding: 48px 20px; text-align: center;
  background: #fff; border: 1px dashed #e2e8f0; border-radius: 16px;
}
.bc-sales-empty strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.bc-sales-empty p { margin: 0; color: #64748b; font-size: .9rem; }

/* Chi tiết đơn bán */
.bc-sales-show { display: flex; flex-direction: column; gap: 14px; }
.bc-sales-show-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: 18px; color: #f8fafc;
  background:
    radial-gradient(560px 180px at 0% 0%, rgba(253,209,11,.38), transparent 58%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #111827 100%);
}
.bc-sales-show-kicker {
  margin: 0 0 6px; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #fdd10b;
}
.bc-sales-show-hero h1 {
  margin: 0 0 10px; font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.bc-sales-show-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bc-sales-show-meta span {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: #cbd5e1; font-weight: 600;
}
.bc-sales-show-hero-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.bc-sales-show-back {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #fff !important;
}
.bc-sales-show-back:hover { background: rgba(255,255,255,.14) !important; }

.bc-sales-show-stats {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.bc-sales-stat {
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid #e8edf3;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.bc-sales-stat-label {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 6px;
}
.bc-sales-stat-value {
  font-size: 1.05rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em;
}
.bc-sales-stat-value a { color: #0f172a; text-decoration: none; }
.bc-sales-stat-value a:hover { color: #92400e; }
.bc-sales-stat-value .is-warn { color: #b91c1c; }

.bc-sales-show-grid {
  display: grid; grid-template-columns: minmax(260px, .95fr) minmax(0, 1.35fr); gap: 14px;
}
@media (max-width: 960px) {
  .bc-sales-show-grid { grid-template-columns: 1fr; }
}
.bc-sales-panel { padding: 18px 18px 16px; border-radius: 16px; }
.bc-sales-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.bc-sales-panel-head h2 {
  margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.01em;
}
.bc-sales-cust-name {
  margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
}
.bc-sales-dl { margin: 0; display: grid; gap: 8px; }
.bc-sales-dl > div {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: baseline;
}
.bc-sales-dl dt {
  margin: 0; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: #94a3b8;
}
.bc-sales-dl dd { margin: 0; font-size: .92rem; font-weight: 600; }
.bc-sales-dl a { color: #0f172a; text-decoration: none; }
.bc-sales-dl a:hover { color: #92400e; text-decoration: underline; }
.bc-sales-cust-addr {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #eef2f7; font-size: .9rem; line-height: 1.5;
}
.bc-sales-addr-label {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 4px;
}
.bc-sales-cust-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0;
}
.bc-sales-chip-link {
  display: inline-flex; align-items: center;
  padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  text-decoration: none; color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
}
.bc-sales-chip-link:hover { background: #fef3c7; }
.bc-sales-note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px dashed #e2e8f0; font-size: .88rem; color: #475569; line-height: 1.45;
}
.bc-sales-note span {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 4px;
}

.bc-sales-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-sales-line {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 12px; border-radius: 12px; border: 1px solid #eef2f7; background: #fafbfc;
}
.bc-sales-line-main { display: flex; gap: 10px; min-width: 0; flex: 1; }
.bc-sales-line-idx {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0f172a; color: #fff; font-size: .75rem; font-weight: 800;
}
.bc-sales-line-body { min-width: 0; }
.bc-sales-line-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px;
}
.bc-sales-line-title strong { font-size: .95rem; }
.bc-sales-line-sub {
  font-size: .8rem; color: #64748b; line-height: 1.4;
}
.bc-sales-line-sub code {
  font-size: .78rem; background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
}
.bc-sales-line-link {
  display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700;
  color: #92400e; text-decoration: none;
}
.bc-sales-line-link:hover { text-decoration: underline; }
.bc-sales-line-price {
  text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px;
}
.bc-sales-line-price strong {
  font-size: .98rem; font-variant-numeric: tabular-nums; font-weight: 800;
}
.bc-sales-line-price span { font-size: .75rem; color: #94a3b8; }

.bc-sales-total-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb, #fff);
  border: 1px solid #fde68a;
}
.bc-sales-total-box .line,
.bc-sales-total-box .grand {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.bc-sales-total-box .line { color: #64748b; font-size: .88rem; margin-bottom: 6px; }
.bc-sales-total-box .grand {
  font-size: 1.12rem; font-weight: 800; color: #0f172a; padding-top: 4px;
}

.bc-sales-ship-card {
  padding: 18px; border-radius: 16px; border: 1px solid #e8edf3;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(253,209,11,.14), transparent 60%),
    #fff;
}
.bc-sales-ship-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.bc-sales-ship-head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.bc-sales-ship-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #b45309; background: #fff7ed; border: 1px solid #fed7aa;
  padding: 5px 11px; border-radius: 999px;
}
.bc-ship-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .88rem; line-height: 1.45;
}
.bc-ship-alert strong { display: block; margin-bottom: 2px; font-size: .92rem; }
.bc-ship-alert a { color: #9a3412; font-weight: 700; }
.bc-ship-alert code {
  font-size: .78rem; background: rgba(255,255,255,.7); padding: 1px 5px; border-radius: 4px;
}
.bc-sales-ship-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start;
}
@media (max-width: 840px) {
  .bc-sales-ship-layout { grid-template-columns: 1fr; }
}
.bc-sales-ship-history { display: grid; gap: 8px; }
.bc-ship-attempt {
  padding: 12px 14px; border-radius: 12px; border: 1px solid #eef2f7; background: #fafbfc;
}
.bc-ship-attempt-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.bc-ship-attempt-code { margin-bottom: 8px; font-size: .92rem; }
.bc-ship-attempt-code code {
  font-weight: 700; font-size: .9rem; background: #f1f5f9; padding: 2px 7px; border-radius: 6px;
}
.bc-ship-attempt-money {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #64748b;
}
.bc-ship-attempt-money strong { color: #0f172a; font-variant-numeric: tabular-nums; }
.bc-ship-empty {
  padding: 20px 16px; border-radius: 12px; border: 1px dashed #e2e8f0;
  background: #f8fafc; text-align: center;
}
.bc-ship-empty strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.bc-ship-empty span { font-size: .86rem; color: #64748b; line-height: 1.4; }
.bc-sales-ship-create {
  padding: 14px; border-radius: 14px; border: 1px solid #fde68a; background: #fffbeb;
}
.bc-ship-form { display: grid; gap: 10px; margin: 0; max-width: none; padding: 0; border: 0; }
.bc-ship-form-row { display: grid; gap: 4px; }
.bc-ship-form-row label { font-size: .78rem; font-weight: 700; color: #64748b; }
.bc-ship-cod {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #fde68a;
  font-size: .88rem; font-weight: 600; cursor: pointer;
}
.bc-ship-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .bc-sales-hub { grid-template-columns: 1fr 1fr; }
  .bc-ch-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .bc-ch-tab { flex-shrink: 0; }
  .bc-sales-line { flex-direction: column; }
  .bc-sales-line-price { text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
}
.bc-sales-add-tabs {
  display: flex; gap: 6px; margin: 0 0 14px;
  padding: 4px; border-radius: 10px; background: #f1f5f9;
}
.bc-sales-add-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; font-weight: 700;
  font-size: .9rem; color: #64748b;
}
.bc-sales-add-tab.is-on {
  background: #fff; color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.bc-sapo-pick-panel {
  margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; overflow: hidden;
}
.bc-sapo-pick-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
  background: #f8fafc; font-size: .88rem;
}
.bc-sapo-product-browse {
  max-height: 320px; overflow: auto;
}
.bc-sapo-unit-panel.is-embedded {
  margin-top: 10px; max-height: none;
  box-shadow: none;
}

/* =====================================================================
   Beecube UI v2 — token + component dùng chung (POS / Kho / Tài chính)
   Desktop sáng sạch · Mobile kiểu app (nút to, tab dưới, bottom sheet)
   ===================================================================== */
:root {
  --bc-tap: 48px;
  --bc-radius-lg: 16px;
  --bc-radius-md: 12px;
  --bc-fs-sm: 13px;
  --bc-fs-base: 15px;
  --bc-fs-lg: 17px;
  --bc-fs-xl: 22px;
  --bc-sp-1: 8px;
  --bc-sp-2: 12px;
  --bc-sp-3: 16px;
  --bc-sp-4: 24px;
  --bc-line: #e8edf3;
  --bc-ok: #15803d;      --bc-ok-bg: #dcfce7;
  --bc-warn: #c2410c;    --bc-warn-bg: #ffedd5;
  --bc-bad: #b91c1c;     --bc-bad-bg: #fee2e2;
  --bc-ret: #6d28d9;     --bc-ret-bg: #ede9fe;
  --bc-mute: #475569;    --bc-mute-bg: #f1f5f9;
  --bc-info: #1d4ed8;    --bc-info-bg: #dbeafe;
  --bc-tabbar-h: 64px;
}

/* Nút */
.bc-ui-btn,
.bc-ui-btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border-radius: var(--bc-radius-md);
  border: 1px solid transparent; font: inherit; font-weight: 800; font-size: var(--bc-fs-base);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--bc-yellow); color: #111;
  transition: background .15s, transform .08s, box-shadow .15s;
}
.bc-ui-btn-lg { min-height: var(--bc-tap); padding: 12px 22px; font-size: var(--bc-fs-lg); border-radius: 14px; }
.bc-ui-btn:hover, .bc-ui-btn-lg:hover { background: var(--bc-yellow-hover); }
.bc-ui-btn:active, .bc-ui-btn-lg:active { transform: scale(.98); }
.bc-ui-btn:disabled, .bc-ui-btn-lg:disabled { opacity: .5; cursor: not-allowed; }
.bc-ui-btn.is-dark, .bc-ui-btn-lg.is-dark { background: #0f172a; color: #fff; }
.bc-ui-btn.is-dark:hover, .bc-ui-btn-lg.is-dark:hover { background: #1e293b; }
.bc-ui-btn.is-ghost, .bc-ui-btn-lg.is-ghost { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.bc-ui-btn.is-ghost:hover, .bc-ui-btn-lg.is-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.bc-ui-btn.is-danger, .bc-ui-btn-lg.is-danger { background: #fff; color: var(--bc-bad); border-color: #fecaca; }
.bc-ui-btn.is-danger:hover, .bc-ui-btn-lg.is-danger:hover { background: #fef2f2; }
.bc-ui-btn.is-ret, .bc-ui-btn-lg.is-ret { background: #fff; color: var(--bc-ret); border-color: #ddd6fe; }
.bc-ui-btn.is-block, .bc-ui-btn-lg.is-block { width: 100%; }
.bc-ui-btn.is-sm { min-height: 34px; padding: 6px 12px; font-size: var(--bc-fs-sm); border-radius: 10px; }

/* Ô nhập to */
.bc-ui-input {
  width: 100%; min-height: var(--bc-tap); padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: var(--bc-radius-md);
  font: inherit; font-size: 16px; background: #fff; color: #0f172a; outline: none;
}
.bc-ui-input:focus { border-color: var(--bc-yellow); box-shadow: 0 0 0 3px rgba(253,209,11,.28); }
.bc-ui-label { display: block; margin: 0 0 6px; font-size: var(--bc-fs-sm); font-weight: 800; color: #475569; }
.bc-ui-field { display: grid; gap: 6px; }

/* Card + page */
.bc-ui-page { display: flex; flex-direction: column; gap: var(--bc-sp-3); }
.bc-ui-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.bc-ui-head h1 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; }
.bc-ui-head p { margin: 4px 0 0; color: #64748b; font-size: .9rem; }
.bc-ui-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-ui-card {
  background: #fff; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-3); box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.bc-ui-card h2, .bc-ui-card h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
.bc-ui-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bc-ui-kpi {
  background: #fff; border: 1px solid var(--bc-line); border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px;
}
.bc-ui-kpi span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.bc-ui-kpi strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bc-ui-kpi small { font-size: .78rem; color: #64748b; }
.bc-ui-kpi.is-accent { background: linear-gradient(160deg,#fffbeb,#fff 70%); border-color: #fde68a; }
.bc-ui-kpi.is-ok strong { color: var(--bc-ok); }
.bc-ui-kpi.is-bad strong { color: var(--bc-bad); }

/* Pill trạng thái thống nhất */
.bc-ui-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; white-space: nowrap; background: var(--bc-mute-bg); color: var(--bc-mute);
}
.bc-ui-pill.is-ok { background: var(--bc-ok-bg); color: var(--bc-ok); }
.bc-ui-pill.is-warn { background: var(--bc-warn-bg); color: var(--bc-warn); }
.bc-ui-pill.is-bad { background: var(--bc-bad-bg); color: var(--bc-bad); }
.bc-ui-pill.is-ret { background: var(--bc-ret-bg); color: var(--bc-ret); }
.bc-ui-pill.is-info { background: var(--bc-info-bg); color: var(--bc-info); }
.bc-ui-pill.is-draft { background: var(--bc-mute-bg); color: var(--bc-mute); }

/* Segmented tabs */
.bc-ui-seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f1f5f9;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bc-ui-seg::-webkit-scrollbar { display: none; }
.bc-ui-seg a, .bc-ui-seg button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 8px 14px; border-radius: 9px; border: 0; background: transparent;
  font: inherit; font-size: .86rem; font-weight: 800; color: #475569; text-decoration: none; cursor: pointer;
}
.bc-ui-seg a:hover, .bc-ui-seg button:hover { background: rgba(255,255,255,.7); color: #0f172a; }
.bc-ui-seg .is-on { background: #0f172a !important; color: #fff !important; box-shadow: 0 2px 8px rgba(15,23,42,.18); }
.bc-ui-seg .n { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(15,23,42,.07); }
.bc-ui-seg .is-on .n { background: rgba(255,255,255,.18); }

/* Danh sách thẻ (mobile thay bảng) */
.bc-ui-card-list { display: grid; gap: 10px; }
.bc-ui-row-card {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--bc-line); background: #fff;
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.bc-ui-row-card:hover { border-color: #fde68a; background: #fffef7; }
.bc-ui-row-card .t { font-weight: 800; font-size: .98rem; }
.bc-ui-row-card .s { font-size: .82rem; color: #64748b; }
.bc-ui-row-card .r { text-align: right; }
.bc-ui-row-card .money { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Bảng gọn */
.bc-ui-table-wrap { overflow-x: auto; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-lg); background: #fff; }
.bc-ui-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bc-ui-table th {
  text-align: left; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; white-space: nowrap;
}
.bc-ui-table td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bc-ui-table tbody tr:last-child td { border-bottom: 0; }
.bc-ui-table tbody tr.is-link { cursor: pointer; }
.bc-ui-table tbody tr:hover { background: #fffbeb; }
.bc-ui-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-ui-money { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-ui-only-mobile { display: none; }
@media (max-width: 767px) {
  .bc-ui-only-desktop { display: none !important; }
  .bc-ui-only-mobile { display: block; }
}

/* Stepper (luồng nhiều bước) */
.bc-ui-stepper { display: flex; gap: 6px; counter-reset: bcstep; }
.bc-ui-stepper > * {
  flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px;
  border-radius: 12px; background: #f1f5f9; color: #64748b; font-weight: 800; font-size: .84rem;
  border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.bc-ui-stepper > *::before {
  counter-increment: bcstep; content: counter(bcstep);
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; background: #fff; color: #0f172a; font-size: .78rem;
}
.bc-ui-stepper > .is-on { background: #0f172a; color: #fff; }
.bc-ui-stepper > .is-on::before { background: var(--bc-yellow); }
.bc-ui-stepper > .is-done { background: var(--bc-ok-bg); color: var(--bc-ok); }
.bc-ui-stepper > .is-done::before { content: "✓"; }

/* Timeline trạng thái (lô nhập, phiếu chi) */
.bc-ui-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bc-ui-flow > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; background: #f1f5f9; color: #94a3b8;
}
.bc-ui-flow > span.is-done { background: var(--bc-ok-bg); color: var(--bc-ok); }
.bc-ui-flow > span.is-on { background: #0f172a; color: #fff; }
.bc-ui-flow > i { width: 12px; height: 2px; background: #e2e8f0; }

/* Quy trình từng bước — ui_flow() */
.bc-flow { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 16px 14px; margin: 0 0 14px; }
.bc-flow-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.bc-flow-head span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.bc-flow-head strong { font-size: .9rem; color: #0f172a; }
.bc-flow.is-complete .bc-flow-head strong { color: #047857; }
.bc-flow.is-stopped .bc-flow-head strong { color: #b91c1c; }
.bc-flow ol { display: flex; list-style: none; margin: 0; padding: 0; }
.bc-flow li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.bc-flow li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #e2e8f0; border-radius: 3px; }
.bc-flow li:first-child::before { display: none; }
.bc-flow li.is-done::before, .bc-flow li.is-on::before, .bc-flow li.is-bad::before { background: #10b981; }
.bc-flow-dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: #f8fafc; color: #94a3b8; border: 2px solid #e2e8f0;
}
.bc-flow li.is-done .bc-flow-dot { background: #10b981; border-color: #10b981; color: #fff; }
.bc-flow li.is-on .bc-flow-dot { background: #0f172a; border-color: #0f172a; color: var(--bc-yellow, #facc15); box-shadow: 0 0 0 5px rgba(250, 204, 21, .35); animation: bcFlowPulse 2s ease-in-out infinite; }
.bc-flow li.is-bad .bc-flow-dot { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }
.bc-flow-txt { display: flex; flex-direction: column; gap: 2px; max-width: 150px; }
.bc-flow-txt b { font-size: .8rem; line-height: 1.25; color: #94a3b8; font-weight: 700; }
.bc-flow-txt small { font-size: .7rem; line-height: 1.25; color: #94a3b8; }
.bc-flow li.is-done .bc-flow-txt b { color: #047857; }
.bc-flow li.is-on .bc-flow-txt b { color: #0f172a; font-weight: 800; }
.bc-flow li.is-on .bc-flow-txt small { color: #475569; }
.bc-flow li.is-bad .bc-flow-txt b, .bc-flow li.is-bad .bc-flow-txt small { color: #b91c1c; }
@keyframes bcFlowPulse { 50% { box-shadow: 0 0 0 9px rgba(250, 204, 21, .12); } }
@media (prefers-reduced-motion: reduce) { .bc-flow li.is-on .bc-flow-dot { animation: none; } }
@media (max-width: 640px) {
  .bc-flow { padding: 10px 8px 12px; }
  .bc-flow-txt small { display: none; }
  .bc-flow li.is-on .bc-flow-txt small { display: block; }
  .bc-flow-txt b { font-size: .7rem; }
  .bc-flow-dot { width: 28px; height: 28px; font-size: .78rem; }
  .bc-flow li::before { top: 13px; }
}

/* Bottom sheet (mobile) / modal giữa (desktop) */
.bc-ui-sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.bc-ui-sheet {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(15,23,42,.25);
}
.bc-ui-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.bc-ui-sheet-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.bc-ui-sheet-close { border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 10px; font-size: 1.1rem; cursor: pointer; }
.bc-ui-sheet-foot { display: flex; gap: 8px; margin-top: 16px; }
.bc-ui-sheet-foot > * { flex: 1; }
@media (max-width: 767px) {
  .bc-ui-sheet-backdrop { align-items: flex-end; padding: 0; }
  .bc-ui-sheet {
    width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .bc-ui-sheet::before {
    content: ""; display: block; width: 44px; height: 5px; border-radius: 999px;
    background: #cbd5e1; margin: -4px auto 12px;
  }
}

/* Thanh hành động dính đáy (mobile) */
.bc-ui-actionbar { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .bc-ui-actionbar.is-sticky {
    position: sticky; bottom: calc(var(--bc-tabbar-h) + env(safe-area-inset-bottom));
    z-index: 30; margin: 0 -14px; padding: 10px 14px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--bc-line);
  }
  .bc-ui-actionbar.is-sticky > * { flex: 1; }
}

/* Tab bar dưới (mobile) */
.bc-ui-tabbar { display: none; }
@media (max-width: 767px) {
  .bc-ui-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bc-tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--bc-line); box-shadow: 0 -6px 20px rgba(15,23,42,.06);
  }
  .bc-ui-tabbar a, .bc-ui-tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: transparent; font: inherit; font-size: .68rem; font-weight: 800;
    color: #64748b; text-decoration: none; cursor: pointer;
  }
  .bc-ui-tabbar .ico { font-size: 1.25rem; line-height: 1; }
  .bc-ui-tabbar .is-on { color: #0f172a; }
  .bc-ui-tabbar .is-on .ico { color: #ca8a04; }
  .bc-ui-tabbar .is-scan .ico {
    width: 48px; height: 48px; margin-top: -22px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fdd10b; color: #111; box-shadow: 0 8px 18px rgba(253,209,11,.45);
  }
  body.has-ui-tabbar .bc-admin-content,
  body.has-ui-tabbar .bc-kho-content { padding-bottom: calc(var(--bc-tabbar-h) + 24px + env(safe-area-inset-bottom)) !important; }
  /* nút cơ bản to hơn trên mobile */
  .bc-admin-content .bc-btn, .bc-kho-content .bc-btn { min-height: 44px; }
  .bc-admin-content .bc-input, .bc-kho-content .bc-input { min-height: 44px; font-size: 16px; }
}

/* Nút quét nổi + overlay camera */
.bc-ui-scan-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 55;
  width: 58px; height: 58px; border-radius: 18px; border: 0; cursor: pointer;
  background: #0f172a; color: #fdd10b; font-size: 1.5rem;
  box-shadow: 0 12px 26px rgba(15,23,42,.3);
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 767px) { .bc-ui-scan-fab { display: none; } }
.bc-scan-cam {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: #000; flex-direction: column;
}
.bc-scan-cam.is-on { display: flex; }
.bc-scan-cam video { flex: 1; width: 100%; object-fit: cover; }
.bc-scan-cam-frame {
  position: absolute; left: 8%; right: 8%; top: 32%; height: 22%;
  border: 3px solid #fdd10b; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  pointer-events: none;
}
.bc-scan-cam-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff;
}
.bc-scan-cam-bar p { margin: 0; text-align: center; font-weight: 700; font-size: .95rem; }
.bc-scan-cam-count { text-align: center; font-size: 1.6rem; font-weight: 800; color: #fdd10b; }
.bc-scan-cam-last { text-align: center; font-family: ui-monospace, monospace; font-size: .9rem; color: #e2e8f0; min-height: 1.2em; }
.bc-scan-cam-top {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.bc-scan-cam-top button {
  min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 0;
  background: rgba(15,23,42,.75); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
}
.bc-scan-toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 130;
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: #0f172a; color: #fff;
  font-weight: 800; font-size: .92rem; transition: opacity .18s, transform .18s; max-width: 90vw; text-align: center;
}
.bc-scan-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.bc-scan-toast.is-err { background: #b91c1c; }
.bc-scan-toast.is-ok { background: #15803d; }

/* Ô quét lớn + chip IMEI */
.bc-ui-scanbox {
  display: flex; gap: 8px; align-items: stretch;
  padding: 10px; border-radius: 16px; background: #0f172a;
}
.bc-ui-scanbox .bc-ui-input { border-color: transparent; font-family: ui-monospace, monospace; letter-spacing: .02em; }
.bc-ui-scanbox .bc-ui-btn { flex-shrink: 0; }
.bc-ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-ui-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border-radius: 10px;
  background: #f1f5f9; font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 700;
}
.bc-ui-chip.is-ok { background: var(--bc-ok-bg); color: var(--bc-ok); }
.bc-ui-chip.is-bad { background: var(--bc-bad-bg); color: var(--bc-bad); }
.bc-ui-chip.is-warn { background: var(--bc-warn-bg); color: var(--bc-warn); }
.bc-ui-chip button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; }

/* Empty */
.bc-ui-empty {
  padding: 40px 20px; text-align: center; border: 1px dashed #e2e8f0; border-radius: 16px; background: #fff;
}
.bc-ui-empty strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.bc-ui-empty p { margin: 0; color: #64748b; font-size: .9rem; }

/* Grid 2 cột responsive */
.bc-ui-grid-2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bc-ui-grid-main { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 960px) {
  .bc-ui-grid-2, .bc-ui-grid-main { grid-template-columns: 1fr; }
}
.bc-ui-dl { display: grid; gap: 8px; margin: 0; }
.bc-ui-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.bc-ui-dl dt { color: #64748b; margin: 0; }
.bc-ui-dl dd { margin: 0; font-weight: 700; text-align: right; }
.bc-ui-note { padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .88rem; line-height: 1.45; }
.bc-ui-alert { padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .9rem; }
.bc-ui-success { padding: 12px 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: .9rem; }

/* POS 3 bước (mobile) */
.bc-pos-stepper em { margin-left: auto; font-style: normal; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.bc-pos-foot-total { flex: 1 1 100%; }
@media (max-width: 767px) {
  .bc-pos-stepper.bc-ui-only-mobile { display: flex; position: sticky; top: 0; z-index: 25; background: var(--bc-bg, #f4f6f9); padding: 6px 0 10px; }
  .bc-pos[data-step="1"] .bc-pos-s2, .bc-pos[data-step="1"] .bc-pos-s3,
  .bc-pos[data-step="2"] .bc-pos-s1, .bc-pos[data-step="2"] .bc-pos-s3,
  .bc-pos[data-step="3"] .bc-pos-s1, .bc-pos[data-step="3"] .bc-pos-s2 { display: none !important; }
  .bc-pos:not([data-step="3"]) .bc-pos-final { display: none !important; }
  .bc-pos .bc-pos-hide-m { display: none; }
  .bc-pos .bc-sapo-foot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid #e2e8f0; box-shadow: 0 -6px 20px rgba(15,23,42,.08);
  }
  .bc-pos .bc-sapo-foot > button { flex: 1; min-height: var(--bc-tap, 48px); }
  .bc-pos-foot-total.bc-ui-only-mobile { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: #64748b; }
  .bc-pos-foot-total strong { font-size: 1.1rem; color: #0f172a; }
  .bc-pos { padding-bottom: 140px; }
  .bc-pos .bc-sapo-lines .bc-table thead { display: none; }
  .bc-pos .bc-sapo-lines .bc-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
  .bc-pos .bc-sapo-lines .bc-table td { border: 0; padding: 0; }
  .bc-pos .bc-sapo-lines .bc-table td:first-child { grid-column: 1 / -1; }
  .bc-pos .bc-pos-pay { flex-wrap: wrap; }
  body.has-ui-tabbar .bc-pos .bc-sapo-foot { bottom: calc(var(--bc-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body.has-ui-tabbar .bc-pos { padding-bottom: 200px; }
}

/* Đơn bán: vòng đời */
.bc-sale-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-sale-return-list { display: grid; gap: 8px; max-height: 46vh; overflow: auto; margin: 8px 0 12px; }
.bc-sale-return-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; }
.bc-sale-return-list label.is-on { border-color: #0f172a; background: #f8fafc; }
.bc-sale-return-list input[type=checkbox] { width: 20px; height: 20px; }
.bc-sale-history { display: grid; gap: 10px; }
.bc-sale-history > div { padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; font-size: .88rem; }

/* Tài chính */
.bc-fin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bc-fin-amount-in { color: #15803d; font-weight: 800; }
.bc-fin-amount-out { color: #b91c1c; font-weight: 800; }
.bc-fin-bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bc-fin-bar > i { display: block; height: 100%; background: #0f172a; border-radius: 999px; }
.bc-fin-print { max-width: 148mm; margin: 0 auto; background: #fff; padding: 10mm; font-size: 13px; color: #000; }
.bc-fin-print h1 { text-align: center; font-size: 18px; margin: 4px 0 2px; }
.bc-fin-print table { width: 100%; border-collapse: collapse; }
.bc-fin-print td { padding: 4px 0; vertical-align: top; }
.bc-fin-print .sig { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-top: 18px; font-weight: 700; }
.bc-fin-print .sig small { display: block; font-weight: 400; font-style: italic; }
@media print {
  @page { size: A5 landscape; margin: 6mm; }
  body * { visibility: hidden; }
  .bc-fin-print, .bc-fin-print * { visibility: visible; }
  .bc-fin-print { position: absolute; left: 0; top: 0; width: 100%; max-width: none; padding: 0; }
}

/* Topbar mobile: Trial gọn, không đẩy tràn ngang */
@media (max-width: 520px) {
  .bc-trial-btn { max-width: 118px; padding: 5px 8px; min-height: 36px; gap: 1px; }
  .bc-trial-btn-text, .bc-trial-btn-meta > span:not(.bc-trial-btn-clock) { display: none; }
  .bc-topbar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* —— Nút lọc / tab dùng chung (.bc-ui-seg — mọi trang CRM, Bán hàng, Thu chi, Kho) —— */
.bc-ui-seg { flex-wrap: wrap; gap: 8px; padding: 0; background: transparent; border-radius: 0; overflow: visible; }
.bc-ui-seg a, .bc-ui-seg button {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff;
  color: #334155; font-size: .86rem; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: background .15s, border-color .15s, color .15s, transform .1s; touch-action: manipulation;
}
.bc-ui-seg a:hover, .bc-ui-seg button:hover { background: #fffbeb; border-color: #fde68a; color: #0f172a; }
.bc-ui-seg a:active, .bc-ui-seg button:active { transform: scale(.97); }
.bc-ui-seg .is-on { border-color: #0f172a !important; }
.bc-ui-seg .n { min-width: 22px; text-align: center; font-size: .72rem; font-weight: 800; padding: 2px 7px; background: #f1f5f9; color: #475569; }
.bc-ui-seg .n.is-alert { background: #fdd10b; color: #111; }
.bc-ui-seg .is-on .n { background: rgba(255,255,255,.18); color: #fff; }
.bc-ui-seg .is-on .n.is-alert { background: #fdd10b; color: #111; }
.bc-ui-seg .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bc-ui-seg.is-sm a, .bc-ui-seg.is-sm button { min-height: 34px; padding: 6px 12px; font-size: .8rem; }
@media (max-width: 720px) {
  .bc-ui-seg { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
}
/* —— Lịch chọn ngày (date-vi.js) —— */
.bc-date-vi-wrap { position: relative; display: block; width: 100%; }
.bc-date-vi-wrap .bc-date-vi-text { padding-right: 46px; cursor: pointer; }
.bc-date-vi-wrap .bc-date-vi-native { pointer-events: none; }
.bc-date-vi-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f8fafc; color: #475569;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bc-date-vi-btn:hover, .bc-date-vi-wrap.is-open .bc-date-vi-btn { background: #fdd10b; color: #111; }
.bc-cal {
  position: absolute; z-index: 9999; width: 312px; padding: 12px; border-radius: 18px;
  background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 24px 60px rgba(15,23,42,.22);
  font-family: inherit; color: #0f172a; animation: bc-cal-in .14s ease-out;
}
@keyframes bc-cal-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.bc-cal[hidden], .bc-cal-backdrop[hidden] { display: none !important; }
.bc-cal-top { display: none; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.bc-cal-top strong { font-size: 1rem; }
.bc-cal-x { border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: .9rem; }
.bc-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.bc-cal-head select {
  flex: 1; min-width: 0; height: 38px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 8px;
  font: inherit; font-weight: 800; font-size: .88rem; background: #fff; color: #0f172a; cursor: pointer;
}
.bc-cal-head select:last-of-type { flex: 0 0 82px; }
.bc-cal-nav {
  flex: 0 0 38px; height: 38px; border: 0; border-radius: 10px; background: #f1f5f9; font-size: 1.3rem;
  line-height: 1; cursor: pointer; color: #0f172a;
}
.bc-cal-nav:hover { background: #fdd10b; }
.bc-cal-dow, .bc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bc-cal-dow span { text-align: center; font-size: .7rem; font-weight: 800; color: #94a3b8; padding: 4px 0; }
.bc-cal-dow span:last-child { color: #dc2626; }
.bc-cal-day {
  height: 38px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .88rem;
  font-weight: 700; color: #0f172a; cursor: pointer; font-variant-numeric: tabular-nums;
}
.bc-cal-day:hover:not(:disabled) { background: #fef9c3; }
.bc-cal-day.is-out { color: #cbd5e1; }
.bc-cal-day.is-sun:not(.is-out) { color: #dc2626; }
.bc-cal-day.is-today { box-shadow: inset 0 0 0 2px #fdd10b; }
.bc-cal-day.is-sel { background: #0f172a !important; color: #fff !important; box-shadow: none; }
.bc-cal-day:disabled { color: #e2e8f0; cursor: not-allowed; text-decoration: line-through; }
.bc-cal-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.bc-cal-chip {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 6px 11px; min-height: 32px;
  font: inherit; font-size: .78rem; font-weight: 800; color: #334155; cursor: pointer;
}
.bc-cal-chip:hover { border-color: #fde68a; background: #fffbeb; }
.bc-cal-chip.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-cal-chip.is-clear { margin-left: auto; color: #b91c1c; }
.bc-cal-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(15,23,42,.42); }
.bc-cal.is-sheet {
  position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto;
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: bc-cal-up .2s ease-out;
}
@keyframes bc-cal-up { from { transform: translateY(100%); } to { transform: none; } }
.bc-cal.is-sheet .bc-cal-top { display: flex; }
.bc-cal.is-sheet .bc-cal-day { height: 46px; font-size: 1rem; }
.bc-cal.is-sheet .bc-cal-chip { min-height: 40px; padding: 8px 14px; font-size: .86rem; }

/* —— Ô tiền VNĐ (money-vi.js) —— */
.bc-money-wrap { position: relative; display: block; width: 100%; }
.bc-money-wrap .bc-money-input { padding-right: 34px; font-variant-numeric: tabular-nums; font-weight: 700; }
.bc-money-unit {
  position: absolute; right: 12px; top: 0; height: 48px; display: flex; align-items: center;
  font-weight: 800; color: #94a3b8; pointer-events: none;
}
.bc-money-hint { display: block; min-height: 0; margin-top: 3px; font-size: .74rem; font-weight: 600; color: #92400e; }
.bc-money-hint:empty { display: none; }
/* —— Nút phụ dùng chung: .bc-btn-ghost = nút viền (không còn là link chữ) —— */
.bc-btn-ghost, a.bc-btn-ghost, button.bc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  font: inherit; font-size: .86rem; font-weight: 700; line-height: 1.2; text-decoration: none !important;
  white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: background .15s, border-color .15s, color .15s, transform .1s; touch-action: manipulation;
}
.bc-btn-ghost:hover { background: #fffbeb; border-color: #fde68a; color: #0f172a; }
.bc-btn-ghost:active { transform: scale(.97); }
.bc-btn-ghost.is-active, .bc-btn-ghost[aria-current="page"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-btn-ghost:disabled, .bc-btn-ghost[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.bc-table .bc-btn-ghost { min-height: 34px; padding: 6px 12px; font-size: .8rem; border-radius: 10px; }
.bc-avatar-fields .bc-btn-ghost { padding-left: 14px; }
.bc-orders-hero .bc-btn-ghost, .bc-kho-batch-hero .bc-btn-ghost { background: rgba(255,255,255,.96); }
.bc-kho-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-kho-tabs .bc-btn-ghost { border-radius: 999px; }

/* Thao tác nhanh kho */
.bc-kho-quick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.bc-kho-quick a {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #e2e8f0; color: #0f172a; text-decoration: none; font-weight: 800; font-size: .9rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bc-kho-quick a:hover { transform: translateY(-2px); border-color: #fde68a; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.bc-kho-quick .ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: #fef9c3; font-size: 1rem;
}

/* Kho thông minh — việc cần làm */
.bc-kho-todo { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 14px 0; }
.bc-kho-todo a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #0f172a;
  border-left: 4px solid #94a3b8; transition: transform .15s, box-shadow .15s;
}
.bc-kho-todo a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.07); }
.bc-kho-todo a.is-warn { border-left-color: #f59e0b; background: #fffbeb; }
.bc-kho-todo a.is-bad { border-left-color: #dc2626; background: #fff7f7; }
.bc-kho-todo a.is-info { border-left-color: #2563eb; }
.bc-kho-todo .ico { font-size: 1.2rem; }
.bc-kho-todo strong { display: block; font-size: .9rem; }
.bc-kho-todo small { display: block; color: #64748b; font-size: .76rem; margin-top: 2px; }
.bc-kho-todo b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bc-kho-todo-ok { padding: 14px 16px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-weight: 700; margin: 14px 0; }

/* Menu kho gọn: 1 dòng + badge bên phải */
.bc-kho-child { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 14px; }
.bc-kho-child strong { font-size: .9rem; font-weight: 700; }
.bc-kho-child small { display: none; }
.bc-kho-children { gap: 3px; padding: 6px 2px 2px; }
.bc-kho-parent { min-height: 38px; padding: 8px 12px; font-size: .74rem; letter-spacing: .1em; color: #94a3b8; background: transparent !important; cursor: default; }
.bc-kho-group { padding: 4px; background: transparent; }
.bc-kho-group.has-active { outline: 0; }
.bc-kho-nav { gap: 4px; }
.bc-kho-badge {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; background: #334155; color: #f8fafc; font-variant-numeric: tabular-nums;
}
.bc-kho-badge.is-alert { background: #fdd10b; color: #111; }
.bc-kho-child.is-active .bc-kho-badge { background: #0f172a; color: #fdd10b; }
/* —— Đại lý đối tác —— */
.bc-dl-list { display: grid; gap: 8px; }
.bc-dl-row {
  display: grid; grid-template-columns: minmax(240px, 2fr) auto minmax(180px, 1.2fr) minmax(150px, 1fr); gap: 12px 18px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid #e8edf3; background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bc-dl-row:hover { border-color: #fde68a; box-shadow: 0 8px 20px rgba(15,23,42,.06); transform: translateY(-1px); }
.bc-dl-row.is-off { opacity: .55; }
.bc-dl-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bc-dl-id strong { display: block; font-size: .98rem; }
.bc-dl-id small { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-dl-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #fde68a, #fdd10b); color: #111; font-weight: 900; font-size: 1.05rem;
}
.bc-dl-avatar.is-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
.bc-dl-tier { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-dl-debt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bc-dl-debt-top span { font-size: .72rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.bc-dl-debt-top strong { font-variant-numeric: tabular-nums; }
.bc-dl-debt small, .bc-dl-meta small { display: block; color: #64748b; font-size: .74rem; margin-top: 4px; }
.bc-dl-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 6px; }
.bc-dl-bar i { display: block; height: 100%; border-radius: 999px; background: #16a34a; }
.bc-dl-bar.is-warn i { background: #f59e0b; }
.bc-dl-bar.is-bad i { background: #dc2626; }
.bc-dl-meta { text-align: right; }
.bc-dl-grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bc-dl-detail { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.bc-dl-info { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; margin: 0; font-size: .88rem; }
.bc-dl-info dt { color: #94a3b8; font-weight: 700; }
.bc-dl-info dd { margin: 0; font-weight: 600; }
.bc-dl-pay { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-dl-pay li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; }
.bc-dl-pay strong { color: #15803d; font-variant-numeric: tabular-nums; }
.bc-dl-pay small { display: block; color: #64748b; font-size: .76rem; }

.bc-dl-export { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.bc-dl-export-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bc-dl-export .is-dim { opacity: .5; pointer-events: none; }
.bc-dl-step {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center;
  background: #0f172a; color: #fdd10b; font-size: .78rem; margin-right: 6px;
}
.bc-dl-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 10px; }
.bc-dl-pick button {
  text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 14px;
  border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; font: inherit; cursor: pointer;
}
.bc-dl-pick button:hover:not(:disabled) { border-color: #fdd10b; background: #fffbeb; }
.bc-dl-pick button:disabled { opacity: .5; cursor: not-allowed; }
.bc-dl-pick small { color: #64748b; font-size: .76rem; }
.bc-dl-chosen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a;
}
.bc-dl-chosen > div:first-child { flex: 1; min-width: 180px; }
.bc-dl-chosen strong { display: block; font-size: 1rem; }
.bc-dl-chosen small { color: #78350f; font-size: .78rem; }
.bc-dl-chosen-debt { display: flex; flex-direction: column; font-size: .8rem; color: #475569; }
.bc-dl-scan { display: flex; gap: 8px; }
.bc-dl-scan .bc-input { flex: 1; min-width: 0; }
.bc-dl-lines { display: grid; gap: 6px; margin-top: 12px; }
.bc-dl-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7;
}
.bc-dl-line:has(.bc-dl-qty) { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.bc-dl-line strong { display: block; font-size: .9rem; }
.bc-dl-line small { color: #64748b; font-size: .75rem; }
.bc-dl-line code { font-size: .74rem; }
.bc-dl-price { position: relative; display: block; width: 140px; }
.bc-dl-price .bc-input { min-height: 40px; padding-right: 26px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bc-dl-price span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 800; }
.bc-dl-qty { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.bc-dl-qty button { width: 34px; height: 38px; border: 0; background: #f1f5f9; font-size: 1.1rem; cursor: pointer; }
.bc-dl-qty input { width: 48px; height: 38px; border: 0; text-align: center; font: inherit; font-weight: 800; }
.bc-dl-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fee2e2; color: #b91c1c; font-size: 1.1rem; cursor: pointer; }
.bc-dl-summary { position: sticky; top: 16px; }
.bc-dl-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 12px; font-size: .9rem; }
.bc-dl-summary dt { color: #64748b; }
.bc-dl-summary dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bc-dl-summary dd.is-ok { color: #15803d; }
.bc-dl-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px dashed #e2e8f0; }
.bc-dl-total strong { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .bc-dl-row { grid-template-columns: 1fr auto; }
  .bc-dl-debt, .bc-dl-meta { grid-column: span 1; }
  .bc-dl-meta { text-align: left; }
  .bc-dl-detail, .bc-dl-export { grid-template-columns: 1fr; }
  .bc-dl-summary { position: static; }
}
@media (max-width: 560px) {
  .bc-dl-row { grid-template-columns: 1fr; }
  .bc-dl-line, .bc-dl-line:has(.bc-dl-qty) { grid-template-columns: 1fr auto; }
  .bc-dl-line > div:first-child { grid-column: 1 / -1; }
  .bc-dl-price { width: 100%; }
}
/* —— Bán hàng: KPI + tỉ trọng kênh + thẻ feed —— */
.bc-ch-pill-dealer { background: #d97706; color: #fff; }
.bc-ui-kpi.is-warn strong { color: #b45309; }
.bc-sales-kpis { margin-bottom: 14px; }
.bc-sales-mix { margin-bottom: 14px; }
.bc-sales-mix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bc-sales-mix-head h3 { margin: 0; font-size: .95rem; }
.bc-sales-mix-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f1f5f9; gap: 2px; }
.bc-sales-mix-bar i { display: block; height: 100%; }
.bc-sales-mix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.bc-sales-mix-legend a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; font-size: .84rem; padding: 4px 8px; border-radius: 10px; }
.bc-sales-mix-legend a:hover { background: #f8fafc; }
.bc-sales-mix-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.bc-sales-mix-legend span:last-child { color: #64748b; }
.bc-sales-feed-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.bc-sales-feed-ch { color: #fff; font-size: .68rem; font-weight: 800; padding: 4px 8px; border-radius: 8px; white-space: nowrap; align-self: center; }
.bc-sales-toolbar .bc-ui-seg { margin-bottom: 10px; }
/* —— Sảnh chờ khách —— */
.bc-lb { display: flex; flex-direction: column; gap: 14px; }
.bc-lb-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(253,209,11,.28), transparent 55%), linear-gradient(135deg, #0f172a, #1e293b);
}
.bc-lb-hero h1 { margin: 6px 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.bc-lb-hero p { margin: 0; color: #cbd5e1; font-size: .9rem; max-width: 560px; }
.bc-lb-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fdd10b; }
.bc-lb-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: bcLbPulse 1.8s infinite; }
@keyframes bcLbPulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.bc-lb-hero-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bc-lb-hero .bc-btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.bc-lb-hero .bc-btn-ghost:hover { background: rgba(255,255,255,.16); }
.bc-lb-auto { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #e2e8f0; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); cursor: pointer; }
.bc-lb-auto span { color: #fdd10b; font-variant-numeric: tabular-nums; }
.bc-lb-kpis button.bc-ui-kpi { text-align: left; font: inherit; cursor: pointer; }
.bc-lb-filters { display: flex; flex-direction: column; gap: 10px; }
.bc-lb-filters .bc-ui-seg { margin: 0; }
.bc-lb-filter-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bc-lb-search { max-width: 320px; flex: 1 1 220px; }
.bc-lb-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.bc-lb-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px;
  background: #fff; border: 1px solid #e8edf3; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.bc-lb-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--src, #94a3b8); }
.bc-lb-card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.08); transform: translateY(-1px); }
.bc-lb-card.is-overdue { border-color: #fecaca; background: linear-gradient(180deg, #fff7f7, #fff 45%); }
.bc-lb-card-head { display: flex; align-items: center; gap: 12px; }
.bc-lb-avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; background: var(--src, #64748b); letter-spacing: .02em;
}
.bc-lb-who { flex: 1; min-width: 0; }
.bc-lb-who h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-lb-who h3 a { color: #0f172a; text-decoration: none; }
.bc-lb-who h3 a:hover { text-decoration: underline; }
.bc-lb-phone { font-size: .84rem; color: #475569; text-decoration: none; font-variant-numeric: tabular-nums; }
.bc-lb-phone:hover { color: #0f172a; }
.bc-lb-src { flex-shrink: 0; font-size: .7rem; font-weight: 800; color: #fff; background: var(--src, #64748b); padding: 4px 9px; border-radius: 999px; }
.bc-lb-sla { padding: 10px 12px; border-radius: 12px; background: #f8fafc; }
.bc-lb-sla-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; color: #475569; }
.bc-lb-sla-top b { color: #0f172a; font-variant-numeric: tabular-nums; }
.bc-lb-left { font-size: .76rem; color: #64748b; font-weight: 700; }
.bc-lb-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 8px; }
.bc-lb-bar i { display: block; height: 100%; border-radius: 999px; background: #16a34a; transition: width .3s; }
.bc-lb-sla.is-warn .bc-lb-bar i { background: #f59e0b; }
.bc-lb-sla.is-bad { background: #fef2f2; }
.bc-lb-sla.is-bad .bc-lb-bar i { background: #dc2626; }
.bc-lb-sla.is-bad .bc-lb-sla-top b { color: #b91c1c; }
.bc-lb-info { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; margin: 0; font-size: .85rem; }
.bc-lb-info dt { color: #94a3b8; font-weight: 700; }
.bc-lb-info dd { margin: 0; color: #1e293b; min-width: 0; overflow-wrap: anywhere; }
.bc-lb-info code { font-size: .76rem; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }
.bc-lb-note { margin: 0; font-size: .82rem; color: #b91c1c; }
.bc-lb-explain { border: 1px dashed #fca5a5; border-radius: 12px; padding: 8px 12px; background: #fff; }
.bc-lb-explain summary { cursor: pointer; font-size: .84rem; font-weight: 700; color: #b91c1c; list-style: none; }
.bc-lb-explain summary::-webkit-details-marker { display: none; }
.bc-lb-explain form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bc-lb-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #f1f5f9; margin-top: auto; }
.bc-lb-claim { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bc-lb-claim-btn { width: 100%; min-height: 44px; font-size: .95rem; }
.bc-lb-sub { display: flex; gap: 8px; align-items: center; }
.bc-lb-dispatch { display: flex; gap: 6px; flex: 1; margin: 0; min-width: 0; }
.bc-lb-dispatch select { flex: 1; min-width: 0; min-height: 40px; }
.bc-lb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: #64748b; }
.bc-lb-empty strong { font-size: 1.1rem; color: #0f172a; }
@media (max-width: 560px) {
  .bc-lb-hero { padding: 18px; border-radius: 16px; }
  .bc-lb-hero h1 { font-size: 1.3rem; }
  .bc-lb-grid { grid-template-columns: 1fr; }
  .bc-lb-search { max-width: none; }
}
/* ===== Lobby table + drawer ===== */
.bc-lb-tablewrap { padding: 0; overflow: hidden; }
.bc-lb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.bc-lb-table thead th { position: sticky; top: 0; background: #f8fafc; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.bc-lb-table th.is-sort { cursor: pointer; user-select: none; }
.bc-lb-table th.is-sort:hover { color: #0f172a; }
.bc-lb-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bc-lb-row { cursor: default; transition: background .12s; }
.bc-lb-row:hover { background: #fffbeb; }
.bc-lb-row.is-sel, .bc-lb-row:focus { background: #fef3c7; outline: none; box-shadow: inset 3px 0 0 #f59e0b; }
.bc-lb-row.is-bad td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.bc-lb-slacell { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; margin-right: 6px; }
.bc-lb-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.bc-lb-row.is-warn .bc-lb-dot { background: #f59e0b; }
.bc-lb-row.is-bad .bc-lb-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.bc-lb-row.is-bad .bc-lb-slacell b { color: #b91c1c; }
.bc-lb-name { display: block; font-weight: 700; color: #0f172a; text-decoration: none; }
.bc-lb-name:hover { text-decoration: underline; }
.bc-lb-tel { font-size: .82rem; color: #475569; text-decoration: none; }
.bc-lb-chan { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: #334155; }
.bc-lb-chan::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--src, #64748b); }
.bc-lb-kind { display: block; font-size: .8rem; color: #475569; margin-top: 2px; }
.bc-lb-kind.is-msg { color: #1d4ed8; font-weight: 600; }
.bc-lb-kind.is-mp { color: #c2410c; font-weight: 600; }
.bc-lb-kind.is-web { color: #6d28d9; }
.bc-lb-unread { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
.bc-lb-preview { font-style: italic; color: #334155; }
.bc-lb-interest { color: #0f172a; }
.bc-lb-code { display: block; font-size: .72rem; }
.bc-lb-time { white-space: nowrap; color: #475569; font-size: .82rem; }
.bc-lb-table th.is-actions, .bc-lb-table td.is-actions { text-align: right; }
.bc-lb-acts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.bc-lb-acts form { margin: 0; display: inline-flex; }
.bc-lb-acts .bc-lb-claim-btn { padding: 6px 14px; font-size: .85rem; white-space: nowrap; }
.bc-lb-acts .bc-lb-dispatch select { max-width: 130px; padding: 6px 8px; font-size: .82rem; }
.bc-lb-peek { padding: 4px 10px; font-weight: 800; }
.bc-lb-hint { margin: 0; padding: 8px 12px; font-size: .75rem; color: #94a3b8; border-top: 1px solid #f1f5f9; }
.bc-lb-tablewrap .bc-lb-empty { padding: 24px; text-align: center; }
.bc-lb-empty.is-big { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px; }

.bc-lb-drawer-wrap { justify-content: flex-end; align-items: stretch; padding: 0; }
.bc-lb-drawer { width: min(480px, 100%); max-height: 100vh; height: 100vh; border-radius: 20px 0 0 20px; display: flex; flex-direction: column; padding: 18px; animation: bcLbSlide .18s ease-out; }
@keyframes bcLbSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bc-lb-drawer .bc-ui-sheet-head strong { display: block; font-size: 1.1rem; }
.bc-lb-dr-body { flex: 1; overflow: auto; }
.bc-lb-dr-kind { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bc-lb-dr-kind .bc-lb-kind { margin: 0; }
.bc-lb-dr-info { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0 0 12px; font-size: .9rem; }
.bc-lb-dr-info dt { color: #64748b; }
.bc-lb-dr-info dd { margin: 0; font-weight: 600; }
.bc-lb-dr-sec { border-top: 1px solid #f1f5f9; padding: 12px 0; }
.bc-lb-dr-sec h4 { margin: 0 0 8px; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-lb-chat { display: flex; flex-direction: column; gap: 6px; background: #f8fafc; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.bc-lb-msg { max-width: 85%; padding: 7px 10px; border-radius: 12px; font-size: .86rem; }
.bc-lb-msg small { display: block; font-size: .68rem; opacity: .65; margin-top: 2px; }
.bc-lb-msg.is-in { background: #fff; border: 1px solid #e2e8f0; align-self: flex-start; }
.bc-lb-msg.is-out { background: #1877f2; color: #fff; align-self: flex-end; }
.bc-lb-items { list-style: none; margin: 0 0 8px; padding: 0; }
.bc-lb-items li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e2e8f0; font-size: .86rem; }
.bc-lb-total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 10px; }
.bc-lb-dr-actions { border-top: 1px solid #f1f5f9; padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.bc-lb-dr-actions .bc-lb-claim-btn { width: 100%; margin-top: 8px; }
.bc-lb-dr-actions .bc-lb-dispatch { display: flex; gap: 6px; }
.bc-lb-dr-actions .bc-lb-dispatch select { flex: 1; }
.bc-lb-dr-actions textarea { width: 100%; }

@media (max-width: 860px) {
  .bc-lb-table thead { display: none; }
  .bc-lb-table, .bc-lb-table tbody, .bc-lb-table tr, .bc-lb-table td { display: block; width: 100%; }
  .bc-lb-row { position: relative; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; display: grid !important; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .bc-lb-row[style*="display: none"] { display: none !important; }
  .bc-lb-table td { border: 0; padding: 0; }
  .bc-lb-table td[data-l="Khách"] { grid-column: 1; grid-row: 1; }
  .bc-lb-table td[data-l="SLA"] { grid-column: 2; grid-row: 1; text-align: right; }
  .bc-lb-table td[data-l="Loại"] { grid-column: 1 / -1; }
  .bc-lb-table td[data-l="Quan tâm"] { grid-column: 1 / -1; font-size: .84rem; }
  .bc-lb-table td[data-l="Cửa hàng"], .bc-lb-table td[data-l="Vào lúc"] { display: none; }
  .bc-lb-table td.is-actions { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .bc-lb-acts { justify-content: flex-start; flex-wrap: wrap; }
  .bc-lb-drawer-wrap { align-items: flex-end; }
  .bc-lb-drawer { height: auto; max-height: 92vh; border-radius: 20px 20px 0 0; }
}.bc-lb-acts .bc-lb-claim-btn { width: auto; min-width: 72px; }
.bc-lb-table td.is-actions { white-space: nowrap; width: 1%; }
/* ===== Kho con / linh kiện / vay ===== */
.bc-bins-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.bc-bins-head h2 { margin: 0 0 2px; font-size: 1.05rem; }
.bc-bins-head p { margin: 0; }
.bc-bins-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bc-bins-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #0f172a; border-top: 4px solid #94a3b8; transition: transform .12s, box-shadow .12s; }
.bc-bins-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.bc-bins-card.is-ok { border-top-color: #22c55e; }
.bc-bins-card.is-warn { border-top-color: #f59e0b; }
.bc-bins-card.is-info { border-top-color: #0ea5e9; }
.bc-bins-card.is-accent { border-top-color: #8b5cf6; }
.bc-bins-card-label { font-size: .78rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .03em; }
.bc-bins-card strong { font-size: 1.6rem; font-weight: 800; }
.bc-bins-card small { color: #64748b; font-size: .75rem; line-height: 1.35; }
.bc-bins-table td.num, .bc-bins-table th.num, .bc-parts-table .num { text-align: right; }
.bc-bins-cell { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: #0f172a; padding: 4px 8px; border-radius: 8px; }
.bc-bins-cell:hover { background: #fef3c7; }
.bc-bins-cell small { font-size: .68rem; color: #64748b; }
.bc-parts-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.bc-parts-table tr.is-low td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.bc-parts-table td.is-low b, tr.is-low td { color: inherit; }
.bc-parts-table td.is-low { background: #fef2f2; }
.bc-parts-table td.is-low b { color: #b91c1c; }
.bc-parts-salv-row { display: flex; gap: 6px; margin-bottom: 6px; }
.bc-parts-salv-row select { flex: 1; }
.bc-neg { color: #b91c1c; }
.bc-pos { color: #15803d; }
.bc-form-grid { display: grid; gap: 10px; }
.bc-form-grid .bc-label { display: flex; flex-direction: column; gap: 4px; }
.bc-loan-grid { display: grid; grid-template-columns: 340px 1fr; gap: 14px; margin-top: 12px; align-items: start; }
.bc-loan-form { display: flex; flex-direction: column; gap: 10px; }
.bc-loan-form h3, .bc-loan-head h3 { margin: 0; font-size: 1rem; }
.bc-loan-form .bc-label { display: flex; flex-direction: column; gap: 4px; }
.bc-loan-form .bc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-loan-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; }
.bc-table tr.is-low td { background: #fff7ed; }
@media (max-width: 900px) { .bc-loan-grid { grid-template-columns: 1fr; } }
/* ===== Bảo hành xịn ===== */
.bc-wr-receive > summary{cursor:pointer;list-style:none;display:flex;gap:6px;align-items:baseline}
.bc-wr-receive > summary::-webkit-details-marker{display:none}
.bc-wr-receive[open] > summary{margin-bottom:14px}
.bc-wr-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;max-width:760px}
.bc-wr-filter .bc-input{flex:1 1 180px;min-width:0}
.bc-wr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.bc-wr-card{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:12px;padding:12px 14px;color:inherit;text-decoration:none;transition:box-shadow .15s,transform .15s}
.bc-wr-card:hover{box-shadow:0 6px 20px rgba(15,23,42,.08);transform:translateY(-1px)}
.bc-wr-card.is-info{border-left-color:#3b82f6}.bc-wr-card.is-warn{border-left-color:#f59e0b}.bc-wr-card.is-ok{border-left-color:#10b981}
.bc-wr-card.is-bad{border-left-color:#ef4444}.bc-wr-card.is-draft{border-left-color:#cbd5e1;opacity:.85}
.bc-wr-card.is-overdue{background:#fff7f7}
.bc-wr-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bc-wr-code{font-size:.95rem;letter-spacing:.2px}
.bc-wr-card-prod{font-weight:600}
.bc-wr-card-meta code{font-size:.78rem;color:#475569}
.bc-wr-card-cust{font-size:.86rem}
.bc-wr-card-issue{font-size:.82rem;color:#64748b;background:#f8fafc;border-radius:6px;padding:4px 8px}
.bc-wr-card-tags{display:flex;gap:4px;flex-wrap:wrap}
.bc-wr-card-foot{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:.75rem;color:#64748b;border-top:1px dashed #e2e8f0;padding-top:6px;margin-top:2px}
.bc-wr-sla{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:600}
.bc-wr-sla-bar{flex:1;height:6px;border-radius:99px;background:#eef2f7;overflow:hidden}
.bc-wr-sla-bar i{display:block;height:100%;background:#10b981;border-radius:99px}
.bc-wr-sla.is-warn{color:#b45309}.bc-wr-sla.is-warn i{background:#f59e0b}
.bc-wr-sla.is-bad{color:#b91c1c}.bc-wr-sla.is-bad i{background:#ef4444}
.bc-wr-sla.is-ok{color:#047857}

.bc-wr-stepper{display:flex;list-style:none;margin:14px 0;padding:0;gap:0;counter-reset:s}
.bc-wr-stepper li{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;font-size:.8rem;color:#94a3b8;text-align:center}
.bc-wr-stepper li::before{content:"";position:absolute;top:14px;left:-50%;width:100%;height:3px;background:#e2e8f0;z-index:0}
.bc-wr-stepper li:first-child::before{display:none}
.bc-wr-stepper li i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;border:2px solid #e2e8f0;font-style:normal;font-weight:700;z-index:1}
.bc-wr-stepper li.is-done{color:#047857}.bc-wr-stepper li.is-done i{background:#10b981;border-color:#10b981;color:#fff}
.bc-wr-stepper li.is-done::before,.bc-wr-stepper li.is-cur::before{background:#10b981}
.bc-wr-stepper li.is-cur{color:#0f172a;font-weight:700}.bc-wr-stepper li.is-cur i{background:#fff;border-color:#2563eb;color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.15)}
.bc-wr-stepper li.is-bad i{border-color:#ef4444;color:#ef4444}.bc-wr-stepper li.is-bad{color:#b91c1c}

.bc-wr-cols{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.bc-wr-main,.bc-wr-side{display:flex;flex-direction:column;gap:12px}
.bc-wr-main > .bc-card,.bc-wr-side > .bc-card{margin:0}
.bc-wr-actions{border:1px solid #bfdbfe;background:linear-gradient(180deg,#eff6ff,#fff)}
.bc-wr-actbar{display:flex;gap:8px;flex-wrap:wrap}
.bc-wr-actbar form{margin:0}
.bc-btn-ghost.is-danger{color:#b91c1c;border-color:#fecaca}
.bc-wr-dl{display:grid;grid-template-columns:130px 1fr;gap:6px 12px;margin:0;font-size:.9rem}
.bc-wr-dl dt{color:#64748b}.bc-wr-dl dd{margin:0}
.bc-wr-inline{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}
.bc-wr-inline .bc-label{margin:0}.bc-wr-inline .bc-input{max-width:240px}
.bc-wr-sec-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bc-wr-check{display:inline-flex;gap:6px;align-items:center;font-size:.86rem;white-space:nowrap}
.bc-wr-parts td,.bc-wr-parts th{font-size:.86rem}
.bc-wr-fee{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.bc-wr-fee div{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #f1f5f9;font-size:.9rem}
.bc-wr-fee div:last-child{border-bottom:0}
.bc-wr-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.bc-wr-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0}
.bc-wr-timeline{list-style:none;margin:0;padding:0;position:relative}
.bc-wr-timeline::before{content:"";position:absolute;left:13px;top:4px;bottom:4px;width:2px;background:#e2e8f0}
.bc-wr-timeline li{display:flex;gap:10px;padding:0 0 12px;position:relative}
.bc-wr-timeline li i{width:28px;height:28px;flex:none;border-radius:50%;background:#fff;border:2px solid #e2e8f0;display:grid;place-items:center;font-style:normal;font-size:.8rem;z-index:1}
.bc-wr-timeline li.is-step i{border-color:#3b82f6}
.bc-wr-timeline p{margin:2px 0;font-size:.86rem;color:#334155}
.bc-wr-timeline small{color:#94a3b8;font-size:.74rem}

.bc-wr-batch-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;align-items:start}
.bc-wr-batch-layout > div > .bc-card{margin:0 0 12px}
.bc-wr-batch-list{display:flex;flex-direction:column;gap:6px}
.bc-wr-batch-row{display:block;padding:8px 10px;border-radius:8px;border:1px solid #e2e8f0;color:inherit;text-decoration:none}
.bc-wr-batch-row small{color:#64748b}
.bc-wr-batch-row.is-on,.bc-wr-batch-row:hover{border-color:#3b82f6;background:#eff6ff}
.bc-wr-result{display:flex;gap:4px;flex-wrap:wrap}
.bc-wr-result .bc-input{padding:4px 8px;font-size:.8rem;max-width:150px}

.bc-wr-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:12px}
.bc-wr-report-grid > .bc-card{margin:0;overflow:auto}
.bc-wr-bars{display:flex;align-items:flex-end;gap:8px;height:150px;padding-top:10px}
.bc-wr-bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:2px;font-size:.75rem}
.bc-wr-bars i{display:block;width:100%;max-width:38px;background:linear-gradient(180deg,#60a5fa,#2563eb);border-radius:6px 6px 0 0}
.bc-wr-bars small{color:#64748b}

/* Trang khách tra cứu */
.bc-bh-track{max-width:560px}
.bc-bh-form{display:grid;grid-template-columns:1fr 130px;gap:8px;margin:14px 0}
.bc-bh-form .bc-btn-submit{grid-column:1/-1;margin:0}
.bc-bh-error{background:#fef2f2;color:#b91c1c;border-radius:10px;padding:10px 12px;margin:8px 0;text-align:center}
.bc-bh-card{border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin:12px 0;background:#fff}
.bc-bh-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.bc-bh-card-head div{display:flex;flex-direction:column;gap:2px}
.bc-bh-card-head small{color:#64748b;font-size:.78rem}
.bc-bh-status{font-size:.78rem;font-weight:700;padding:4px 10px;border-radius:99px;background:#eff6ff;color:#1d4ed8;text-align:right}
.bc-bh-status.is-ok{background:#ecfdf5;color:#047857}.bc-bh-status.is-warn{background:#fffbeb;color:#b45309}
.bc-bh-status.is-bad{background:#fef2f2;color:#b91c1c}.bc-bh-status.is-draft{background:#f1f5f9;color:#475569}
.bc-bh-steps{display:flex;list-style:none;padding:0;margin:14px 0 6px}
.bc-bh-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.7rem;color:#94a3b8;position:relative;text-align:center}
.bc-bh-steps li::before{content:"";position:absolute;top:6px;left:-50%;width:100%;height:2px;background:#e2e8f0}
.bc-bh-steps li:first-child::before{display:none}
.bc-bh-steps li i{width:14px;height:14px;border-radius:50%;background:#e2e8f0;z-index:1}
.bc-bh-steps li.is-done i,.bc-bh-steps li.is-done::before,.bc-bh-steps li.is-cur::before{background:#10b981}
.bc-bh-steps li.is-done{color:#047857}
.bc-bh-steps li.is-cur{color:#0f172a;font-weight:700}.bc-bh-steps li.is-cur i{background:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.18)}
.bc-bh-eta{font-size:.88rem;margin:8px 0;background:#f8fafc;border-radius:8px;padding:8px 10px}
.bc-bh-log{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:6px;font-size:.85rem}
.bc-bh-log li{display:flex;flex-direction:column;border-left:2px solid #e2e8f0;padding-left:10px}
.bc-bh-log small{color:#94a3b8;font-size:.72rem}
.bc-bh-call{display:block;text-align:center;padding:10px;border-radius:10px;background:#0f172a;color:#fff;text-decoration:none;font-weight:600;margin-top:8px}

@media (max-width: 900px){
  .bc-wr-cols,.bc-wr-batch-layout{grid-template-columns:1fr}
  .bc-wr-report-grid{grid-template-columns:1fr}
  .bc-wr-stepper li span{font-size:.68rem}
  .bc-wr-dl{grid-template-columns:110px 1fr}
}

/* ================= Hành chính (/hc) ================= */
.bc-hc-nav { margin-bottom: 14px; }
.bc-hc-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(90deg, #eff6ff, #fff); border: 1px solid #bfdbfe; color: #1e3a8a; text-decoration: none; font-size: .92rem; }
.bc-hc-banner span { margin-left: auto; font-weight: 600; white-space: nowrap; }
.bc-hc-banner:hover { border-color: #60a5fa; }
.bc-hc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.bc-hc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .98rem; font-weight: 700; color: #0f172a; }
.bc-hc-h a, .bc-hc-h .bc-ui-btn, .bc-hc-h .bc-ui-pill { margin-left: auto; font-size: .8rem; font-weight: 600; }
.bc-hc-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed #e2e8f0; color: inherit; text-decoration: none; font-size: .9rem; }
.bc-hc-line:last-child { border-bottom: 0; }
a.bc-hc-line:hover { background: #f8fafc; }
.bc-hc-form { display: flex; flex-direction: column; gap: 10px; }
.bc-hc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bc-hc-inline label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.bc-ui-head-actions:has(> .bc-hc-inline) { align-items: center; }
.bc-ui-head-actions > .bc-hc-inline { flex-wrap: nowrap; }
.bc-ui-head-actions > .bc-hc-inline .bc-ui-input { width: auto; }
/* Phiếu chuyển: kho + kho con → kho + kho con */
.bc-tr-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.bc-tr-end { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px 12px; margin: 0; background: #f8fafc; display: grid; gap: 8px; min-width: 0; }
.bc-tr-end legend { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 0 4px; }
.bc-tr-arrow { align-self: center; font-size: 1.4rem; font-weight: 800; color: #94a3b8; }
.bc-tr-bins { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-tr-bins label {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid #cbd5e1;
  background: #fff; font-size: .8rem; font-weight: 700; color: #334155; cursor: pointer; user-select: none;
}
.bc-tr-bins label input { position: absolute; opacity: 0; pointer-events: none; }
.bc-tr-bins label.is-on { background: #0f172a; border-color: #0f172a; color: #fdd10b; }
.bc-tr-bins label:focus-within { outline: 2px solid #fdd10b; outline-offset: 1px; }
.bc-tr-mode { margin: 4px 0 0; font-size: .85rem; font-weight: 600; color: #0f766e; }
@media (max-width: 760px) {
  .bc-tr-route { grid-template-columns: 1fr; }
  .bc-tr-arrow { justify-self: center; transform: rotate(90deg); }
}
.bc-kho-dash-bins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bc-kho-dash-bin {
  display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; border-top: 4px solid #94a3b8;
  text-decoration: none; color: #0f172a; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.bc-kho-dash-bin:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .08); border-color: #cbd5e1; }
.bc-kho-dash-bin span { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
.bc-kho-dash-bin strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.bc-kho-dash-bin small { font-size: .74rem; color: #64748b; line-height: 1.3; }
.bc-kho-dash-bin.is-new { border-top-color: #22c55e; }
.bc-kho-dash-bin.is-warranty { border-top-color: #f97316; }
.bc-kho-dash-bin.is-pending { border-top-color: #3b82f6; }
.bc-kho-dash-bin.is-loan { border-top-color: #a855f7; }
.bc-kho-dash-bin.is-parts { border-top-color: #64748b; }
/* Tồn kho — chọn kho (cửa hàng) → 5 kho con */
.bc-kho-storepick { margin: 12px 0 0; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e8edf3; }
.bc-kho-storetabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-kho-storetabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #f8fafc; color: #0f172a; font-weight: 700; font-size: .88rem; text-decoration: none;
}
.bc-kho-storetabs a b { padding: 1px 8px; border-radius: 999px; background: #e2e8f0; font-size: .78rem; }
.bc-kho-storetabs a:hover { border-color: #cbd5e1; }
.bc-kho-storetabs a.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-kho-storetabs a.is-on b { background: #facc15; color: #0f172a; }
.bc-kho-storehead { margin: 12px 0 0; font-size: .85rem; color: #64748b; }
.bc-kho-storehead strong { color: #0f172a; font-size: 1rem; }
.bc-kho-binbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.bc-kho-binbar-item {
  display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; border-top: 4px solid #0f172a;
  background: #fff; color: #0f172a; text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.bc-kho-binbar-item:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.bc-kho-binbar-item span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #475569; line-height: 1.25; min-height: 2.5em; }
.bc-kho-binbar-item strong { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.bc-kho-binbar-item small { font-size: .72rem; color: #64748b; }
.bc-kho-binbar-item.is-new { border-top-color: #22c55e; }
.bc-kho-binbar-item.is-warranty { border-top-color: #f97316; }
.bc-kho-binbar-item.is-pending { border-top-color: #3b82f6; }
.bc-kho-binbar-item.is-loan { border-top-color: #a855f7; }
.bc-kho-binbar-item.is-parts { border-top-color: #64748b; }
.bc-kho-binbar-item.is-on { background: #fffbeb; border-color: #facc15; box-shadow: 0 0 0 2px #facc15 inset; }
.bc-kho-binbar-note { margin: 8px 0 0; font-size: .85rem; color: #475569; }
.bc-kho-binchip { text-decoration: none; color: #0f172a; font-family: inherit; border-left: 3px solid #94a3b8; }
.bc-kho-binchip.is-new { border-left-color: #22c55e; }
.bc-kho-binchip.is-warranty { border-left-color: #f97316; }
.bc-kho-binchip.is-pending { border-left-color: #3b82f6; }
.bc-kho-binchip.is-loan { border-left-color: #a855f7; }
@media (max-width: 900px) { .bc-kho-binbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* App HRM — dùng khung bc-kho-*, đổi tông xanh ngọc */
.bc-hrm-body { background: #eaf3f1; }
.bc-hrm-body .bc-kho-sidebar { background: #0b3b36; }
.bc-hrm-body .bc-kho-brand img { background: #12524b; }
.bc-hrm-body .bc-kho-child { background: transparent; }
.bc-hrm-body .bc-kho-child:hover { background: #12524b; border-color: #1d6b62; }
.bc-hrm-body .bc-kho-brand span, .bc-hrm-body .bc-kho-parent-label { color: #8fd3c8; }
.bc-hrm-body .bc-kho-child.is-active { background: #2dd4bf; border-color: #14b8a6; color: #042f2b; }
.bc-hrm-body .bc-kho-child.is-active strong { color: #042f2b; }
.bc-hrm-body .bc-kho-child.is-active .bc-kho-badge { background: #042f2b; color: #5eead4; }
.bc-hrm-body .bc-kho-foot { border-top-color: #12524b; }
.bc-hrm-body .bc-kho-switch { background: #fdd10b; }
.bc-hrm-body .bc-kho-kicker { color: #0f766e; }
.bc-hrm-punch {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px;
  background: #0f766e; color: #fff; font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap;
}
.bc-hrm-punch:hover { background: #115e59; color: #fff; }
.bc-hrm-body .bc-ui-page { max-width: none; }
@media (max-width: 720px) { .bc-hrm-punch { display: none; } }
.bc-hc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bc-hc-filter .bc-ui-input { max-width: 240px; }
.bc-hc-check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.bc-hc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.bc-hc-bar { height: 6px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin: 4px 0 8px; }
.bc-hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: inherit; transition: width .3s; }
.bc-hc-prose { line-height: 1.65; font-size: .95rem; color: #1e293b; }
.bc-hc-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.bc-hc-dl dt { color: #64748b; }
.bc-hc-dl dd { margin: 0; font-weight: 500; }

/* Tổng quan: bảng chấm công hôm nay */
.bc-hc-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.bc-hc-person { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid #e2e8f0; border-left-width: 4px; background: #fff; }
.bc-hc-person img, .bc-hc-person i { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #f1f5f9; color: #475569; }
.bc-hc-person strong { display: block; font-size: .88rem; }
.bc-hc-person small { display: block; font-size: .75rem; color: #64748b; }
.bc-hc-person.is-ok { border-left-color: #10b981; }
.bc-hc-person.is-warn { border-left-color: #f59e0b; background: #fffbeb; }
.bc-hc-person.is-info { border-left-color: #3b82f6; background: #eff6ff; }
.bc-hc-person.is-bad { border-left-color: #ef4444; opacity: .85; }

/* Đơn từ */
.bc-hc-req { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e2e8f0; }
.bc-hc-req:last-child { border-bottom: 0; }
.bc-hc-req > div { flex: 1; min-width: 0; font-size: .9rem; }
.bc-hc-req small { display: block; color: #64748b; font-size: .78rem; }
.bc-hc-req-ico { width: 34px; height: 34px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.bc-hc-req-acts { display: flex; gap: 6px; margin: 0; }
.bc-hc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.bc-hc-types label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid #e2e8f0; cursor: pointer; font-size: .85rem; background: #fff; transition: all .15s; }
.bc-hc-types label input { display: none; }
.bc-hc-types label span { font-size: 1.05rem; }
.bc-hc-types label:hover { border-color: #fbbf24; }
.bc-hc-types label.is-on { border-color: #0f172a; background: #0f172a; color: #fff; }

/* Chấm công */
.bc-hc-punch { max-width: 460px; margin: 0 auto; text-align: center; padding: 22px 20px 18px; background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15,23,42,.06); font-family: inherit; }
.bc-hc-clock { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #0f172a; }
.bc-hc-date { color: #64748b; margin: 4px 0 14px; font-size: .95rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.bc-hc-verdict { margin: 12px 0 14px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; color: #334155; font-size: .92rem; font-weight: 650; line-height: 1.45; }
.bc-hc-verdict.is-ok { background: #ecfdf5; color: #065f46; }
.bc-hc-verdict.is-bad { background: #fef2f2; color: #991b1b; }
.bc-hc-checks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.bc-hc-wifi-row { display: flex; flex-direction: column; gap: 6px; }
.bc-hc-wifi-row small { color: #64748b; font-size: .78rem; font-weight: 500; }
.bc-hc-checks div { padding: 8px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: .9rem; font-weight: 500; line-height: 1.45; color: #334155; }
.bc-hc-checks .is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.bc-hc-checks .is-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bc-hc-cam { margin-bottom: 14px; }
.bc-hc-cam video, .bc-hc-cam img { width: 100%; max-width: 320px; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; background: #0f172a; transform: scaleX(-1); }
.bc-hc-cam-acts { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.bc-hc-bigbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 190px; height: 190px; margin: 6px auto 12px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-family: inherit; font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; background: radial-gradient(circle at 30% 30%, #34d399, #059669); box-shadow: 0 12px 30px rgba(5,150,105,.35), inset 0 -6px 0 rgba(0,0,0,.12); transition: transform .12s; }
.bc-hc-bigbtn small { font-size: .85rem; font-weight: 500; opacity: .92; letter-spacing: 0; line-height: 1.3; }
.bc-hc-bigbtn.is-out { background: radial-gradient(circle at 30% 30%, #fb923c, #ea580c); box-shadow: 0 12px 30px rgba(234,88,12,.35), inset 0 -6px 0 rgba(0,0,0,.12); }
.bc-hc-bigbtn:hover:not(:disabled) { transform: translateY(-1px); }
.bc-hc-bigbtn:active:not(:disabled) { transform: scale(.96); }
.bc-hc-bigbtn:disabled,
.bc-hc-bigbtn.is-out:disabled { opacity: 1; cursor: default; background: #e2e8f0; color: #94a3b8; box-shadow: none; transform: none; }
.bc-hc-bigbtn:disabled small { color: #94a3b8; }
.bc-hc-bigbtn.is-busy:disabled { cursor: wait; background: #cbd5e1; color: #475569; }
.bc-hc-wifi { margin: 0 0 14px; text-align: left; }
.bc-hc-wifi h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.bc-hc-wifi > p { margin: 0 0 4px; color: #64748b; font-size: .9rem; line-height: 1.5; }
.bc-hc-wifi form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.bc-hc-wifi label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; color: #334155; }
.bc-hc-wifi textarea, .bc-hc-wifi input { font-weight: 500; }
.bc-hc-hint { margin: 14px 0 0; text-align: left; font-size: .92rem; font-weight: 400; line-height: 1.6; color: #475569; text-wrap: pretty; }
.bc-hc-hint strong { font-weight: 700; color: #0f172a; }

/* Bảng công tháng */
.bc-hc-gridwrap { overflow: auto; padding: 0 !important; }
.bc-hc-att { border-collapse: separate; border-spacing: 0; font-size: .78rem; width: max-content; min-width: 100%; }
.bc-hc-att th, .bc-hc-att td { padding: 3px 2px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.bc-hc-att thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; font-weight: 600; min-width: 30px; }
.bc-hc-att thead th small { display: block; font-weight: 400; color: #94a3b8; font-size: .65rem; }
.bc-hc-att .is-name { position: sticky; left: 0; background: #fff; text-align: left; padding: 6px 10px; min-width: 170px; z-index: 2; border-right: 1px solid #e2e8f0; }
.bc-hc-att thead .is-name { background: #f8fafc; z-index: 3; }
.bc-hc-att .is-name a { font-weight: 600; color: #0f172a; text-decoration: none; }
.bc-hc-att .is-name small { display: block; color: #94a3b8; }
.bc-hc-att .is-sun { background: #fef2f2; }
.bc-hc-att .is-today { background: #fffbeb; }
.bc-hc-cell { width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent; background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; color: #cbd5e1; padding: 0; }
.bc-hc-cell:hover { border-color: #0f172a; }
.bc-hc-cell.is-ok { background: #d1fae5; color: #065f46; }
.bc-hc-cell.is-warn { background: #fef3c7; color: #92400e; }
.bc-hc-cell.is-info { background: #dbeafe; color: #1e40af; }
.bc-hc-cell.is-draft { background: #e2e8f0; color: #475569; }
.bc-hc-cell.is-bad { background: #fee2e2; color: #991b1b; }
.bc-hc-cell.is-manual { box-shadow: inset 0 0 0 2px #fb923c; }
.bc-hc-cell.is-explained { text-decoration: line-through; }
.bc-hc-selfie { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* Hồ sơ nhân sự */
.bc-hc-formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 12px; }
.bc-hc-formgrid .is-wide { grid-column: span 2; }
@media (max-width: 560px) { .bc-hc-formgrid .is-wide { grid-column: auto; } }

/* Lương */
.bc-hc-payroll { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .bc-hc-payroll { grid-template-columns: 1fr; } }
.bc-hc-dept td { background: #f8fafc; color: #0f172a; font-weight: 700; font-size: .82rem; letter-spacing: .01em; text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; }
.bc-hc-period { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.bc-hc-period form { margin: 8px 0 0; }
.bc-hc-periods a { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid transparent; margin-bottom: 4px; }
.bc-hc-period a { flex: 1; margin-bottom: 0; }
.bc-hc-periods a small { grid-column: 1 / -1; color: #64748b; font-size: .76rem; }
.bc-hc-periods a:hover { background: #f8fafc; }
.bc-hc-periods a.is-on { border-color: #0f172a; background: #f8fafc; }
.bc-hc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; }
.bc-hc-steps > span { padding: 5px 10px; border-radius: 99px; font-size: .8rem; background: #f1f5f9; color: #64748b; }
.bc-hc-steps > span.is-cur { background: #0f172a; color: #fff; }
.bc-hc-steps > span.is-done { background: #d1fae5; color: #065f46; }
.bc-hc-steps-acts { margin-left: auto; }
.bc-hc-paytable { font-variant-numeric: tabular-nums; }
.bc-hc-paytable td, .bc-hc-paytable th { white-space: nowrap; }
.bc-hc-paytable thead th { font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: #64748b; }
.bc-hc-paytable tbody tr:hover td { background: #f8fafc; }
.bc-hc-paytable tfoot th { background: #f8fafc; font-size: .84rem; }
.bc-hc-adjust td { background: #fffbeb; white-space: normal; text-align: left; }
.bc-hc-slip { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr); gap: 14px 28px; padding: 8px 2px 4px; }
.bc-hc-slip h4 { margin: 0 0 8px; font-size: .84rem; font-weight: 700; }
.bc-hc-slip dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; margin: 0; font-size: .84rem; }
.bc-hc-slip dt { color: #64748b; }
.bc-hc-slip dd { margin: 0; }
.bc-hc-slip p { margin: 0 0 8px; font-size: .84rem; }
.bc-hc-slip table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bc-hc-slip th, .bc-hc-slip td { padding: 4px 6px; border-bottom: 1px solid #fde68a; text-align: left; white-space: nowrap; }
.bc-hc-slip .is-num { text-align: right; }
.bc-hc-slip-orders { max-height: 220px; overflow: auto; margin-top: 8px; }
.bc-hc-slip-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #fcd34d; }
.bc-hc-slip-edit label { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; }
.bc-hc-slip-edit input { width: 140px; font-weight: 500; }
@media (max-width: 800px) { .bc-hc-slip { grid-template-columns: 1fr; } }

/* Văn thư */
.bc-hc-unread td { font-weight: 600; }
.bc-hc-signers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bc-hc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 99px; background: #f1f5f9; border: 1px solid #e2e8f0; font-size: .82rem; }
.bc-hc-chip b { width: 20px; height: 20px; border-radius: 50%; background: #0f172a; color: #fff; display: grid; place-items: center; font-size: .7rem; }
.bc-hc-chip button { border: 0; background: transparent; cursor: pointer; color: #94a3b8; font-size: 1rem; line-height: 1; }
.bc-hc-signbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; border: 2px solid #f59e0b !important; background: #fffbeb !important; }
.bc-hc-signbox .bc-ui-input { flex: 1; min-width: 200px; }
.bc-hc-docgrid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.bc-hc-docgrid aside { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .bc-hc-docgrid { grid-template-columns: 1fr; } }
.bc-hc-docbody { min-height: 240px; }
.bc-hc-signflow { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.bc-hc-signflow li { position: relative; padding: 0 0 14px 34px; counter-increment: s; }
.bc-hc-signflow li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: #e2e8f0; color: #475569; }
.bc-hc-signflow li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: #e2e8f0; }
.bc-hc-signflow li.is-ok::before { content: '✓'; background: #10b981; color: #fff; }
.bc-hc-signflow li.is-bad::before { content: '✕'; background: #ef4444; color: #fff; }
.bc-hc-signflow li.is-warn::before { background: #f59e0b; color: #fff; }
.bc-hc-signflow strong { display: block; font-size: .9rem; }
.bc-hc-signflow small { color: #64748b; font-size: .78rem; }
.bc-hc-signflow em { display: block; font-size: .8rem; color: #334155; margin-top: 2px; }

/* Tài sản */
.bc-hc-counthead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bc-hc-countlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.bc-hc-countlist label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; border: 1px solid #e2e8f0; cursor: pointer; font-size: .88rem; }
.bc-hc-countlist label:has(input:checked) { background: #ecfdf5; border-color: #a7f3d0; }
.bc-hc-countlist small { display: block; color: #64748b; font-size: .76rem; }
.bc-hc-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #e2e8f0; }
.bc-hc-timeline li { position: relative; padding: 0 0 12px 12px; font-size: .88rem; }
.bc-hc-timeline li::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #0f172a; }
.bc-hc-timeline small { display: block; color: #64748b; font-size: .78rem; }
.bc-hc-timeline a { font-size: .8rem; }

/* Giao việc (kanban) */
.bc-hc-kanban { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.bc-hc-col { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 10px; min-height: 260px; transition: background .15s, border-color .15s; }
.bc-hc-col h3 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: .9rem; }
.bc-hc-col h3 span { font-size: .72rem; padding: 1px 8px; border-radius: 99px; background: #e2e8f0; color: #475569; }
.bc-hc-col.is-todo h3 { color: #1d4ed8; }
.bc-hc-col.is-doing h3 { color: #b45309; }
.bc-hc-col.is-done h3 { color: #047857; }
.bc-hc-col.is-over { background: #fffbeb; border-color: #fbbf24; border-style: dashed; }
.bc-hc-task { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; color: inherit; text-decoration: none; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.bc-hc-task:hover { border-color: #94a3b8; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.bc-hc-task .bc-ui-pill { align-self: flex-start; font-size: .68rem; }
.bc-hc-task strong { font-size: .9rem; line-height: 1.35; }
.bc-hc-task small { color: #64748b; font-size: .76rem; }
.bc-hc-col.is-done .bc-hc-task strong { text-decoration: line-through; color: #64748b; }
.bc-hc-empty { text-align: center; padding: 24px 0; }
.bc-hc-comment { padding: 8px 10px; border-radius: 12px; background: #f8fafc; margin-bottom: 6px; font-size: .88rem; }
.bc-hc-comment.is-me { background: #eff6ff; }
.bc-hc-comment small { color: #94a3b8; }
.bc-hc-comment p { margin: 2px 0 0; }

/* Checklist */
.bc-hc-checklist.is-full { border-color: #a7f3d0 !important; }
.bc-hc-ticks { list-style: none; margin: 8px 0 0; padding: 0; }
.bc-hc-ticks li label { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed #e2e8f0; cursor: pointer; font-size: .92rem; }
.bc-hc-ticks li:last-child label { border-bottom: 0; }
.bc-hc-ticks input { width: 20px; height: 20px; accent-color: #059669; flex: none; }
.bc-hc-ticks input:checked + span { color: #64748b; text-decoration: line-through; }
.bc-hc-ticks small { margin-left: auto; color: #059669; font-size: .74rem; white-space: nowrap; }
[x-cloak] { display: none !important; }

/* ===== Panel quét nhiều người (scan session) ===== */
.bc-scanp { display: flex; flex-direction: column; gap: 10px; }
.bc-scanp-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.bc-scanp-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; background: #f1f5f9; color: #475569; }
.bc-scanp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.bc-scanp-live.is-on::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); animation: bcScanPulse 1.6s infinite; }
.bc-scanp-live.is-off { background: #fee2e2; color: #b91c1c; }
@keyframes bcScanPulse { 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.bc-scanp-user { padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.bc-scanp-user span { font-weight: 700; margin-left: 2px; }
.bc-scanp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bc-scanp-kpis > div { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #fff; }
.bc-scanp-kpis span { display: block; font-size: .72rem; color: #64748b; line-height: 1.2; }
.bc-scanp-kpis strong { font-size: 1.35rem; line-height: 1.2; }
.bc-scanp-kpis .is-ok { border-color: #86efac; background: #f0fdf4; }
.bc-scanp-kpis .is-warn { border-color: #fdba74; background: #fff7ed; }
.bc-scanp-kpis .is-bad { border-color: #fca5a5; background: #fef2f2; }
.bc-scanp-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bc-scanp-bar i { display: block; height: 100%; background: #16a34a; transition: width .3s; }
.bc-scanp-hear { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .82rem; color: #64748b; }
.bc-scanp-hear button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 700; color: #0f172a; cursor: pointer; }
.bc-scanp-hear button:hover { border-color: #0f172a; }
.bc-scanp-box { display: flex; gap: 8px; }
.bc-scanp-box .bc-ui-input { flex: 1; font-size: 1.05rem; min-height: 46px; }
.bc-scanp-box .bc-ui-btn { min-height: 46px; white-space: nowrap; }
.bc-scanp-last { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.bc-scanp-last.is-ok { background: #dcfce7; color: #166534; }
.bc-scanp-last.is-bad { background: #fee2e2; color: #991b1b; }
.bc-scanp-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bc-scanp-tabs button { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }
.bc-scanp-tabs button.is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.bc-scanp-q { flex: 1 1 140px; min-height: 34px; padding: 4px 10px; }
.bc-scanp-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.bc-scanp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; border-left: 4px solid transparent; }
.bc-scanp-list li:last-child { border-bottom: 0; }
.bc-scanp-list li.is-ok { border-left-color: #16a34a; }
.bc-scanp-list li.is-warn { border-left-color: #f59e0b; background: #fffbeb; }
.bc-scanp-list li.is-bad { border-left-color: #dc2626; background: #fef2f2; }
.bc-scanp-list li.is-miss { border-left-color: #94a3b8; }
.bc-scanp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-scanp-main code { font-size: .88rem; word-break: break-all; }
.bc-scanp-prod { font-size: .8rem; color: #475569; }
.bc-scanp-main small { font-size: .76rem; color: #b45309; }
.bc-scanp-list li.is-bad .bc-scanp-main small { color: #b91c1c; }
.bc-scanp-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .76rem; color: #64748b; white-space: nowrap; }
.bc-scanp-meta b { color: #0f172a; font-weight: 600; }
.bc-scanp-x { border: 0; background: #f1f5f9; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.bc-scanp-empty { justify-content: center; color: #64748b; font-size: .85rem; text-align: center; }
.bc-scanp-legend { margin: 0; font-size: .75rem; color: #64748b; }
.bc-scanp-legend .is-ok { color: #166534; } .bc-scanp-legend .is-warn { color: #b45309; } .bc-scanp-legend .is-bad { color: #b91c1c; }
.bc-scan-report { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.bc-scan-report > div { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: .85rem; }
.bc-scan-report strong { display: block; font-size: 1.1rem; }
.bc-scan-uids { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.bc-scan-uids code { font-size: .75rem; padding: 2px 6px; border-radius: 6px; background: #f1f5f9; }
.bc-scan-uids.is-warn code { background: #ffedd5; } .bc-scan-uids.is-bad code { background: #fee2e2; }
@media (max-width: 640px) {
  .bc-scanp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-scanp-list { max-height: 55vh; }
}
.bc-scanp-last.is-warn { background: #ffedd5; color: #9a3412; }
.bc-scanp-other { margin: 10px 0; padding: 8px 12px; border-radius: 8px; background: #fef9c3; border: 1px solid #facc15; color: #713f12; font-size: .88rem; }
.bc-scanp small.is-other { color: #a16207; font-weight: 700; }
.bc-scanp-sum { margin: 10px 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; }
.bc-scanp-sum-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 12px; background: #f8fafc; border: 0; cursor: pointer; font: inherit; }
.bc-scanp-sum-wrap { overflow-x: auto; }
.bc-scanp-sum table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bc-scanp-sum th, .bc-scanp-sum td { padding: 6px 6px; border-top: 1px solid #f1f5f9; text-align: right; white-space: nowrap; }
.bc-scanp-sum th:first-child, .bc-scanp-sum td:first-child { text-align: left; white-space: normal; min-width: 170px; padding-left: 12px; }
.bc-scanp-sum th { white-space: normal; line-height: 1.2; }
.bc-scanp-sum th { font-size: .75rem; color: #64748b; font-weight: 600; background: #fff; }
.bc-scanp-sum tfoot td { font-weight: 700; background: #f8fafc; }
.bc-scanp-sum tr.is-diff td { background: #fff7ed; }
.bc-scanp-sum tr.is-other td { background: #fef9c3; }
.bc-scanp-sum small { color: #a16207; font-weight: 600; }
.bc-scanp-sum .is-plus { color: #1d4ed8; font-weight: 700; }
.bc-scanp-sum .is-minus { color: #b91c1c; font-weight: 700; }
.bc-trn-step h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.bc-trn-step h3 > span:first-child { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0f172a; color: #fff; font-size: .8rem; }
.bc-trn-step h3 small { margin-left: auto; font-weight: 500; }
.bc-trn { display: grid; gap: 12px; margin-top: 12px; }
.bc-trn-step { padding: 14px; }
.bc-trn-paste { margin: 10px 0; } .bc-trn-paste summary { cursor: pointer; color: #1d4ed8; font-size: .88rem; }
.bc-trn-groups { display: grid; gap: 8px; margin-top: 10px; }
.bc-trn-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; }
.bc-trn-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.bc-trn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bc-trn-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: 6px; font: .75rem ui-monospace, monospace; }
.bc-trn-chip.is-ok { background: #dcfce7; } .bc-trn-chip.is-wait { background: #ffedd5; }
.bc-trn-chip button { border: 0; background: transparent; cursor: pointer; color: #64748b; font-size: .9rem; }
.bc-trn-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.bc-trn-sum { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; font-size: .9rem; }

/* HRM — cài đặt vị trí chấm công */
.bc-hc-howto { margin-bottom: 14px; font-size: .88rem; background: #f0fdf4; border-color: #bbf7d0; }
.bc-hc-howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: #334155; }
.bc-hc-loc { scroll-margin-top: 80px; }
.bc-hc-sites { display: flex; flex-direction: column; gap: 14px; }
.bc-hc-site { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr); gap: 16px 22px; align-items: start; }
.bc-hc-site-fields, .bc-hc-site-map { min-width: 0; }
.bc-hc-site-map .bc-hc-map { min-height: 340px; }
.bc-hc-site-map .bc-hc-map iframe { height: 340px; }
.bc-hc-map.is-empty { display: grid; place-items: center; padding: 16px; text-align: center; color: #64748b; background: #f8fafc; font-size: .9rem; }
.bc-hc-rules { grid-column: 1 / -1; }
@media (max-width: 860px) { .bc-hc-site { grid-template-columns: 1fr; } }
.bc-hc-addr { margin: -4px 0 10px; font-size: .82rem; }
.bc-hc-msg { display: block; margin-top: 4px; font-size: .8rem; }
.bc-hc-msg.is-ok { color: #047857; }
.bc-hc-msg.is-bad { color: #b91c1c; }
.bc-hc-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
.bc-hc-map iframe { display: block; width: 100%; height: 280px; border: 0; }
.bc-hc-map a { position: absolute; right: 8px; bottom: 8px; background: #fff; padding: 4px 8px; border-radius: 6px; font-size: .75rem; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.15); z-index: 2; }
.bc-hc-radius { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); border: 2px solid #2563eb; background: rgba(37,99,235,.16); border-radius: 50%; pointer-events: none; z-index: 1; box-sizing: border-box; }
.bc-hc-radius span { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: #1d4ed8; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.bc-hc-loc input[type=range] { width: 100%; accent-color: #0f766e; }
.bc-hc-hits { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.bc-hc-hits button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f1f5f9; padding: 8px 10px; cursor: pointer; font-size: .82rem; color: #0f172a; }
.bc-hc-hits button:hover { background: #f8fafc; }
.bc-hc-rules { display: grid; gap: 8px; }
.bc-hc-acts { white-space: nowrap; text-align: right; }
.bc-hc-acts form { display: inline; }
.bc-hc-off td { opacity: .55; }
/* HRM · hồ sơ nhân sự */
.bc-hc-avatar { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #e0e7ff, #fae8ff); color: #4338ca; font-weight: 800; font-size: .9rem; }
.bc-hc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bc-hc-avatar.is-lg { width: 72px; height: 72px; font-size: 1.6rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e2e8f0; }
.bc-hc-avatar.is-xl { width: 64px; height: 64px; font-size: 1.5rem; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(15, 23, 42, .12); }
.bc-hc-avatar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 0 6px; }
.bc-hc-avatar-row .bc-ui-btn { cursor: pointer; }
.bc-hc-person { display: inline-flex; align-items: center; gap: 10px; }
.bc-hc-who { display: flex; align-items: center; gap: 14px; }
.bc-hc-who > div p { margin: 0; }
.bc-hc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.bc-hc-tags > * { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; color: #334155; font-size: .78rem; font-weight: 600; text-decoration: none; }
.bc-hc-tags > .is-info { background: #e0f2fe; color: #0369a1; }
.bc-hc-sec { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6366f1; }
.bc-hc-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #e0e7ff, transparent); }
.bc-hc-profile .bc-ui-input::placeholder { color: #a3aec2; }
.bc-hc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.bc-hc-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.bc-hc-opt:hover { border-color: #c7d2fe; background: #fafaff; }
.bc-hc-opt:has(input:checked) { border-color: #818cf8; background: #eef2ff; }
.bc-hc-opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: #4f46e5; }
.bc-hc-opt strong { display: block; font-size: .9rem; color: #0f172a; }
.bc-hc-opt small { display: block; margin-top: 2px; color: #64748b; font-size: .8rem; line-height: 1.4; }
.bc-hc-savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px calc(-1 * var(--bc-sp-3)) calc(-1 * var(--bc-sp-3)); padding: 12px var(--bc-sp-3); border-top: 1px solid #e2e8f0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-radius: 0 0 var(--bc-radius-lg) var(--bc-radius-lg); }

/* HRM · cảnh báo checklist trễ */
.bc-hc-late { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #fff1f2); border: 1px solid #fed7aa; }
.bc-hc-late-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bc-hc-late-head strong { display: block; color: #9a3412; font-size: .95rem; }
.bc-hc-late-head small { color: #b45309; font-size: .82rem; }
.bc-hc-late-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(234, 88, 12, .15); font-size: 1.15rem; }
.bc-hc-late-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bc-hc-late-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #fde2c8; color: #1e293b; text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.bc-hc-late-item:hover { transform: translateY(-1px); border-color: #fb923c; box-shadow: 0 4px 14px rgba(234, 88, 12, .14); }
.bc-hc-late-item.is-on { border-color: #ea580c; box-shadow: 0 0 0 2px rgba(234, 88, 12, .18); }
.bc-hc-late-name { font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; }
.bc-hc-late-name em { font-style: normal; font-weight: 500; font-size: .76rem; color: #c2410c; }
.bc-hc-late-num { grid-row: 1; grid-column: 2; font-size: .8rem; color: #64748b; white-space: nowrap; }
.bc-hc-late-num b { color: #ea580c; font-size: .95rem; }
.bc-hc-late-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #ffedd5; overflow: hidden; }
.bc-hc-late-bar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #fb923c, #ea580c); }
/* Chế độ chỉ xem (Kế toán) */
.bc-ro-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: .88rem; }
.is-readonly form[method="post" i] button:not([type="button"]),
.is-readonly form[method="post" i] input[type="submit"],
.is-readonly a[href$="/create"], .is-readonly a[href*="/new"] { opacity: .45; pointer-events: none; filter: grayscale(1); }
/* ===== Quy trình duyệt & người phụ trách ===== */
.bc-wf .bc-ui-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.bc-wf-store label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: #64748b; }
.bc-wf-store select { min-width: 200px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; font: inherit; background: #fff; }
.bc-wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: stretch; }
@media (min-width: 1800px) { .bc-wf-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } }
.bc-wf-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.bc-wf-card-head { display: flex; align-items: flex-start; gap: 12px; }
.bc-wf-card-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bc-wf-card-head h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.bc-wf-scope { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: .72rem; font-weight: 600; }
.bc-wf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.bc-wf-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fffbeb; border: 1px solid #fde68a; font-size: 1.05rem; flex: none; }
.bc-wf-note { margin: 0; font-size: .85rem; line-height: 1.45; }
.bc-wf-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.bc-wf-steps li { display: flex; gap: 10px; position: relative; padding: 0 0 12px; }
.bc-wf-steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e2e8f0; }
.bc-wf-num { width: 28px; height: 28px; border-radius: 50%; background: #0f172a; color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.bc-wf-steps strong { display: block; font-size: .92rem; }
.bc-wf-steps small { display: block; color: #64748b; font-size: .8rem; }
.bc-wf-people { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; align-items: center; }
.bc-wf-people em { font-style: normal; font-size: .75rem; color: #94a3b8; }
.bc-wf-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .78rem; font-weight: 600; }
.bc-wf-chip.is-soft { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.bc-wf-chip.is-empty { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
@media (max-width: 520px) { .bc-wf-grid { grid-template-columns: 1fr; } }

/* ===== Luồng duyệt thu chi (admin chỉnh) ===== */
.bc-fwf-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.bc-fwf-pitem { display: inline-flex; align-items: center; gap: 6px; }
.bc-fwf-parrow { color: #94a3b8; font-weight: 700; }
.bc-fwf-pchip { display: inline-flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; font-weight: 700; font-size: .85rem; line-height: 1.25; }
.bc-fwf-pchip small { font-weight: 500; color: #64748b; font-size: .74rem; }
.bc-fwf-pchip.is-start { background: #f8fafc; border-color: #e2e8f0; }
.bc-fwf-pchip.is-end { background: #ecfdf5; border-color: #a7f3d0; }
.bc-fwf-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.bc-fwf-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.bc-fwf-step.is-fixed { background: #f8fafc; }
.bc-fwf-step.is-off { opacity: .55; background: #f8fafc; border-style: dashed; }
.bc-fwf-step.is-pay { border-color: #a7f3d0; background: #f0fdf4; }
.bc-fwf-num { width: 30px; height: 30px; border-radius: 50%; background: #0f172a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.bc-fwf-step.is-off .bc-fwf-num { background: #cbd5e1; }
.bc-fwf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bc-fwf-body > small { color: #64748b; }
.bc-fwf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bc-fwf-label { flex: 1; min-width: 200px; font-weight: 700; }
.bc-fwf-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: #64748b; min-width: 200px; flex: 1; }
.bc-fwf-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; user-select: none; }
.bc-fwf-switch input { width: 18px; height: 18px; accent-color: #16a34a; }
.bc-fwf-users { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; padding: 8px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.bc-fwf-users label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: .82rem; cursor: pointer; }
.bc-fwf-users label.is-on { background: #ecfdf5; border-color: #86efac; }
.bc-fwf-users small { color: #94a3b8; }
.bc-fwf-who { color: #0f766e !important; font-weight: 600; }
.bc-fwf-tools { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .bc-fwf-step { flex-wrap: wrap; } .bc-fwf-tools { flex-direction: row; width: 100%; justify-content: flex-end; } }

/* Logo + badge kênh bán */
.bc-ch-logo { display: inline-block; width: 18px; height: 18px; border-radius: 4px; object-fit: contain; vertical-align: middle; flex: none; }
.bc-ui-seg a .bc-ch-logo { margin-right: 5px; width: 16px; height: 16px; }
.bc-chb { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }
.bc-chb .bc-ch-logo { width: 18px; height: 18px; }
.bc-chb-woocommerce, .bc-chb-web { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bc-chb-shopee { background: #fff1ee; border-color: #fdc9bd; color: #c2410c; }
.bc-chb-tiktok { background: #f4f4f5; border-color: #d4d4d8; color: #111827; }
.bc-chb-facebook, .bc-chb-messenger { background: #eef4ff; border-color: #c7dafe; color: #1d4ed8; }
.bc-chb-zalo { background: #eef6ff; border-color: #bfdbfe; color: #0068ff; }
.bc-chb-dealer { background: #fff7ed; border-color: #fed7aa; color: #b45309; }
.bc-chb-pos, .bc-chb-dealer, .bc-chb-lead { padding-left: 9px; }
.bc-chb-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #0f172a; color: #fff; font-size: .62rem; }
.bc-dl-sell td { vertical-align: top; }
.bc-wr-steps { margin: 0 0 14px; padding: 12px 14px 12px 32px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: .84rem; color: #44403c; display: grid; gap: 4px; }
.bc-wr-result { flex-direction: column; min-width: 190px; }
.bc-wr-result .bc-input { max-width: none; width: 100%; }

/* Phiếu kho — danh sách full ngang + popup tạo phiếu */
.bc-mv-new { box-shadow: 0 6px 18px rgba(250,204,21,.35); }
.bc-mv-list { padding: 0; overflow: hidden; }
.bc-mv-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #eef2f7;
}
.bc-mv-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-mv-seg button {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .86rem; font-weight: 700; color: #475569; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.bc-mv-seg button b { font-weight: 800; color: #94a3b8; }
.bc-mv-seg button:hover { border-color: #cbd5e1; }
.bc-mv-seg button.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-mv-seg button.is-on b { color: #facc15; }
.bc-mv-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #94a3b8; }
.bc-mv-dot.is-in { background: #16a34a; } .bc-mv-dot.is-out { background: #dc2626; }
.bc-mv-dot.is-bin_move { background: #2563eb; } .bc-mv-dot.is-transfer { background: #9333ea; }
.bc-mv-search { max-width: 320px; flex: 1 1 220px; margin: 0; }
.bc-mv-table-wrap { overflow-x: auto; }
.bc-mv-table { width: 100%; margin: 0; }
.bc-mv-table th { white-space: nowrap; background: #f8fafc; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.bc-mv-table th, .bc-mv-table td { padding: 11px 14px; vertical-align: middle; }
.bc-mv-table tbody tr { transition: background .12s; }
.bc-mv-table tbody tr:hover { background: #fffbeb; }
.bc-mv-id { font-weight: 800; color: #0f172a; text-decoration: none; }
.bc-mv-id:hover { text-decoration: underline; }
.bc-mv-type {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap;
  background: #f1f5f9; color: #475569;
}
.bc-mv-type.is-in { background: #dcfce7; color: #166534; }
.bc-mv-type.is-out { background: #fee2e2; color: #991b1b; }
.bc-mv-type.is-bin_move { background: #dbeafe; color: #1e40af; }
.bc-mv-type.is-transfer { background: #f3e8ff; color: #6b21a8; }
.bc-mv-route { white-space: nowrap; font-weight: 600; }
.bc-mv-route i { font-style: normal; color: #94a3b8; margin: 0 6px; }
.bc-mv-num { text-align: right; }
.bc-mv-note { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.bc-mv-date { white-space: nowrap; color: #64748b; font-size: .86rem; }
.bc-mv-foot { margin: 0; padding: 10px 16px; font-size: .8rem; border-top: 1px solid #eef2f7; }
.bc-mv-empty { text-align: center; padding: 48px 16px; }
.bc-mv-empty p { margin: 6px 0 14px; }

.bc-modal-panel.bc-mv-modal { width: min(860px, 100%); padding: 22px 24px; }
.bc-mv-modal .bc-modal-head { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; }
.bc-mv-close {
  border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 12px; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: #475569; flex: none;
}
.bc-mv-close:hover { background: #e2e8f0; color: #0f172a; }
.bc-mv-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bc-mv-typecard {
  display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; cursor: pointer;
  border: 2px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 12px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.bc-mv-typecard:hover { border-color: #cbd5e1; }
.bc-mv-typecard i {
  font-style: normal; flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 900; background: #f1f5f9; color: #475569;
}
.bc-mv-typecard span { display: flex; flex-direction: column; min-width: 0; }
.bc-mv-typecard strong { font-size: .95rem; color: #0f172a; }
.bc-mv-typecard small { font-size: .76rem; color: #64748b; }
.bc-mv-typecard.is-on { border-color: #0f172a; background: #fffbeb; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.bc-mv-typecard.is-in.is-on i { background: #dcfce7; color: #166534; }
.bc-mv-typecard.is-out.is-on i { background: #fee2e2; color: #991b1b; }
.bc-mv-typecard.is-bin_move.is-on i { background: #dbeafe; color: #1e40af; }
.bc-mv-scan { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px; }
.bc-mv-scan .bc-form-group { margin: 0; }
.bc-mv-scan-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.bc-mv-actions {
  display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid #eef2f7;
  position: sticky; bottom: -22px; background: #fff; margin: 4px -24px -22px; padding: 14px 24px;
}
.bc-mv-actions .bc-btn { min-width: 200px; }
@media (max-width: 720px) {
  .bc-modal-panel.bc-mv-modal { padding: 18px 16px; }
  .bc-mv-types { grid-template-columns: 1fr; }
  .bc-mv-scan-grid { grid-template-columns: 1fr; }
  .bc-mv-actions { margin: 4px -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); bottom: -18px; }
  .bc-mv-actions .bc-btn { flex: 1; min-width: 0; }
  .bc-mv-search { max-width: none; }
}
@media (min-width: 720px) {
  .bc-modal.bc-mv-modal-wrap { align-items: flex-start; padding-top: max(24px, 5vh); }
}
.bc-mv-actions .bc-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.bc-mv-table td:nth-child(6) { white-space: nowrap; }
.bc-mv-hint { margin: 0; padding: 9px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: .84rem; line-height: 1.45; }
.bc-mv-hint.is-warn { background: #fff7ed; color: #9a3412; }

/* Thu chi — ảnh bill, bảng kê, sổ quỹ ngày, P&L */
.bc-fin-amount-box { display: grid; gap: 12px; padding: 14px; border: 1px solid #eef2f7; border-radius: 14px; background: #fafbfc; }
.bc-fin-items .bc-ui-input { margin: 0; padding: 8px 10px; min-height: 0; }
.bc-fin-items td { vertical-align: middle; }
.bc-fin-items tfoot td { border-top: 2px solid #e2e8f0; }
.bc-pay-sheet-card { margin-bottom: 14px; }
.bc-pay-sheet { width: 100%; border-collapse: collapse; font-size: .84rem; }
.bc-pay-sheet th, .bc-pay-sheet td { padding: 8px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.bc-pay-sheet th { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #64748b; font-weight: 700; text-align: left; }
.bc-pay-sheet .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-pay-sheet td strong { display: block; }
.bc-pay-sheet td small { display: block; color: #64748b; font-size: .72rem; font-weight: 500; }
.bc-pay-sheet .muted, .bc-pay-sheet .is-zero { color: #94a3b8; }
.bc-pay-sheet .is-total { font-weight: 800; }
.bc-pay-sheet tfoot td { border-top: 2px solid #0f172a; border-bottom: 0; font-weight: 800; }
.bc-pay-people { display: flex; flex-direction: column; gap: 8px; }
.bc-pay-person { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; background: #f8fafc; }
.bc-pay-person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-pay-person-top strong { display: block; font-size: .95rem; }
.bc-pay-person-top span { display: block; margin-top: 2px; color: #64748b; font-size: .78rem; }
.bc-pay-person-top b { font-size: 1.05rem; white-space: nowrap; }
.bc-pay-bits { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.bc-pay-bits span { font-size: .82rem; font-weight: 700; color: #0f172a; }
.bc-pay-bits em { display: block; font-style: normal; font-weight: 600; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; color: #94a3b8; }
.bc-pay-sum { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 0; font-weight: 700; }
.bc-pay-flow { margin-bottom: 12px; }
.bc-pay-flow-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.bc-pay-flow-head p { margin: 4px 0 0; font-size: .82rem; }
.bc-pay-flow-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #e2e8f0; }
.bc-pay-flow-row span { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.bc-pay-flow-row b { white-space: nowrap; }
.bc-fin-item-del { border: 0; background: #fee2e2; color: #991b1b; width: 30px; height: 30px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.bc-fin-item-del:disabled { opacity: .3; cursor: default; }
.bc-fin-sub { margin: 18px 0 8px; font-size: .95rem; font-weight: 800; }
.bc-bill-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-bill-btn { cursor: pointer; }
.bc-bill-thumbs, .bc-bill-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.bc-bill-thumb { position: relative; margin: 0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.bc-bill-thumb img, .bc-bill-thumb > span, .bc-bill-thumb a > span { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f1f5f9; font-weight: 800; color: #64748b; }
.bc-bill-thumb a { display: block; }
.bc-bill-thumb figcaption { padding: 5px 7px; font-size: .72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-bill-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.bc-bill-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 12px; }
.bc-bill-upload .bc-bill-picker { flex: 1 1 260px; margin: 0; }

.bc-db-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; padding: 12px; }
.bc-db-filter .bc-ui-input { width: auto; margin: 0; }
.bc-ui-kpi.is-warn strong { color: #c2410c; }
.bc-db-store { margin-bottom: 14px; padding: 0; overflow: hidden; }
.bc-db-store-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 16px; background: #0f172a; color: #fff; }
.bc-db-store-head h2 { margin: 0; font-size: 1.05rem; }
.bc-db-store-head .bc-muted { color: #94a3b8; }
.bc-db-store-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: #cbd5e1; }
.bc-db-store-sum strong { color: #fff; }
.bc-db-store-sum .bc-fin-amount-in strong { color: #4ade80; }
.bc-db-store-sum .bc-fin-amount-out strong { color: #f87171; }
.bc-db-acc { border-top: 1px solid #eef2f7; }
.bc-db-acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 10px 16px; background: #f8fafc; font-size: .9rem; }
.bc-db-none { margin: 0; padding: 10px 16px; font-size: .85rem; }
.bc-db-table { margin: 0; }
.bc-db-table th, .bc-db-table td { padding: 9px 12px; vertical-align: top; }
.bc-db-table tr.is-nobill { background: #fff7ed; }
.bc-db-reason { min-width: 220px; max-width: 380px; }
.bc-db-bills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bc-db-mini { display: block; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9; }
.bc-db-mini img { width: 100%; height: 100%; object-fit: cover; }
.bc-db-mini span { display: grid; place-items: center; height: 100%; font-size: .65rem; font-weight: 800; color: #64748b; }
.bc-db-more { font-size: .8rem; font-weight: 700; }
.bc-db-quick { margin: 0; }
.bc-db-add { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px dashed #94a3b8; color: #475569; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.bc-db-add:hover { border-color: #0f172a; color: #0f172a; }
.bc-db-add.is-missing { border: 1px solid #fdba74; background: #ffedd5; color: #9a3412; }

.bc-sale-bill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eef2f7; }
.bc-sale-bill:first-of-type { border-top: 0; }
.bc-sale-bill-miss { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: .74rem; font-weight: 800; }

.bc-pl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bc-pl-head h2 { margin: 0; font-size: 1.05rem; }
.bc-pl-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: baseline; padding: 9px 4px; border-top: 1px solid #f1f5f9; }
.bc-pl-row span small { display: block; font-size: .76rem; color: #94a3b8; font-weight: 500; }
.bc-pl-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.bc-pl-row em { font-style: normal; text-align: right; color: #94a3b8; font-size: .8rem; }
.bc-pl-row.is-minus strong { color: #b91c1c; }
.bc-pl-row.is-plus strong { color: #15803d; }
.bc-pl-row.is-child { padding: 5px 4px 5px 22px; font-size: .86rem; color: #475569; border-top-style: dashed; }
.bc-pl-row.is-child strong { font-weight: 600; color: #475569; }
.bc-pl-row.is-sum { background: #f8fafc; font-weight: 700; }
.bc-pl-row.is-total { background: #f0fdf4; font-weight: 800; border-top: 2px solid #bbf7d0; }
.bc-pl-row.is-total strong { color: #15803d; font-size: 1.1rem; }
.bc-pl-row.is-net { background: #0f172a; color: #fff; border-radius: 10px; margin-top: 6px; padding: 12px 12px; font-weight: 800; }
.bc-pl-row.is-net strong { color: #facc15; font-size: 1.25rem; }
.bc-pl-row.is-net.is-loss strong { color: #f87171; }
.bc-pl-row.is-net em { color: #cbd5e1; }
.bc-db-filter .bc-date-vi-wrap { width: 170px; flex: none; margin: 0; }
.bc-db-filter .bc-date-vi-wrap .bc-date-vi-text { width: 100%; min-width: 0; }
.bc-fin-home-grid { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); }

/* Màn chọn app sau đăng nhập */
.bc-apps-wrap { position: relative; z-index: 1; width: min(1080px, 100%); display: flex; flex-direction: column; align-items: center; gap: 22px; animation: bc-login-rise .7s cubic-bezier(.22,1,.36,1) both; }
.bc-apps-hello { text-align: center; }
.bc-apps-hello h1 { margin: 0; font-family: "Sora", "Be Vietnam Pro", sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.bc-apps-hello h1 span { color: var(--bc-yellow, #fdd10b); }
.bc-apps-hello p { margin: 8px 0 0; color: #94a3b8; font-size: 1.02rem; }
.bc-apps-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 6px; }
.bc-apps-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; border-radius: 24px; text-decoration: none; color: #e2e8f0; background: rgba(15, 23, 42, .6); border: 1px solid rgba(253,209,11,.12); box-shadow: 0 20px 50px rgba(0,0,0,.35); backdrop-filter: blur(14px); transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, background .2s; animation: bc-login-rise .6s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d, 0ms); }
.bc-apps-card:hover, .bc-apps-card:focus-visible { transform: translateY(-6px); border-color: rgba(253,209,11,.55); background: rgba(30, 41, 59, .75); outline: none; }
.bc-apps-icon { position: relative; width: 132px; height: 132px; margin-bottom: 10px; }
.bc-apps-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; display: block; box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: transform .25s; }
.bc-apps-card:hover .bc-apps-icon img { transform: scale(1.05) rotate(-2deg); }
.bc-apps-badge { position: absolute; top: -8px; right: -8px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #ef4444; color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 3px solid #0f172a; }
.bc-apps-card strong { font-size: 1.08rem; color: #fff; font-weight: 700; }
.bc-apps-card small { font-size: .84rem; color: #94a3b8; line-height: 1.4; }
.bc-apps-card kbd { position: absolute; top: 12px; left: 14px; font: 600 .72rem/1 "Be Vietnam Pro", sans-serif; color: #64748b; border: 1px solid #334155; border-radius: 6px; padding: 3px 6px; }
.bc-apps-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: #94a3b8; font-size: .9rem; }
.bc-apps-foot a { color: #cbd5e1; text-decoration: none; }
.bc-apps-foot a:hover { color: #fff; }
.bc-apps-foot button { background: transparent; border: 1px solid #334155; color: #cbd5e1; border-radius: 10px; padding: 6px 14px; font: inherit; cursor: pointer; }
.bc-apps-foot button:hover { border-color: #ef4444; color: #fca5a5; }
@media (max-width: 560px) {
  .bc-apps-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bc-apps-card { padding: 18px 10px 16px; border-radius: 18px; }
  .bc-apps-icon { width: 84px; height: 84px; margin-bottom: 6px; }
  .bc-apps-icon img { border-radius: 20px; }
  .bc-apps-card small, .bc-apps-card kbd { display: none; }
  .bc-apps-card strong { font-size: .95rem; }
}
.bc-app-switch { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(253,209,11,.12); border: 1px solid rgba(253,209,11,.35); color: #fde68a !important; font-weight: 700; font-size: .88rem; text-decoration: none; }
.bc-app-switch:hover { background: rgba(253,209,11,.22); }
/* Quản lý đa kênh */
.bc-ops { max-width: 1180px; }
.bc-ops-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bc-ops-head h1 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -.02em; }
.bc-ops-head p { margin: 0; max-width: 560px; color: #64748b; font-size: .9rem; line-height: 1.45; }
.bc-ops-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-ops-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.bc-ops-stats div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.bc-ops-stats strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.bc-ops-stats span { color: #64748b; font-size: .78rem; }
.bc-ops-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .88rem; }
.bc-ops-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.bc-ops-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.bc-ops-tabs button { border: 0; background: transparent; border-radius: 8px; padding: 6px 10px; font: 600 .82rem inherit; color: #475569; cursor: pointer; }
.bc-ops-tabs button.is-on { background: #0f172a; color: #fff; }
.bc-ops-tabs button em { margin-left: 6px; font-style: normal; opacity: .7; }
.bc-ops-keys { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: #94a3b8; font-size: .75rem; }
.bc-ops-keys button { color: #475569; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bc-ops-table td { vertical-align: middle; }
.bc-ops-table td strong { display: block; }
.bc-ops-table td small { display: block; color: #64748b; font-size: .75rem; }
.bc-ops-table td small.is-err { color: #b91c1c; }
.bc-ops-ch { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.bc-ops-ch img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.bc-ops-st { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; }
.bc-ops-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.bc-ops-st.is-on { color: #15803d; }
.bc-ops-st.is-on::before { background: #16a34a; }
.bc-ops-st.is-wait { color: #a16207; }
.bc-ops-st.is-wait::before { background: #ca8a04; }
.bc-ops-st.is-off { color: #64748b; }
.bc-ops-row-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.bc-ops-row-actions form { display: inline; }
.bc-ops-empty { margin: 0; padding: 28px 18px 32px; color: #64748b; }
.bc-ops-empty strong { display: block; margin-bottom: 4px; color: #0f172a; }
.bc-ops-empty p { margin: 0; }
.bc-ops-add { position: relative; }
.bc-ops-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.bc-ops-menu a, .bc-ops-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #0f172a; font: 600 .86rem inherit; text-align: left; text-decoration: none; cursor: pointer; }
.bc-ops-menu a:hover, .bc-ops-menu button:hover { background: #f8fafc; }
.bc-ops-menu img { width: 18px; height: 18px; border-radius: 4px; }
.bc-ops-menu .is-quiet { margin-top: 4px; padding-top: 10px; border-top: 1px solid #e2e8f0; color: #64748b; font-weight: 600; border-radius: 0 0 8px 8px; }
@media (max-width: 800px) { .bc-ops-stats { grid-template-columns: 1fr 1fr; } .bc-ops-keys { margin-left: 0; } }
.bc-ch-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); overflow-y: auto; }
.bc-ch-modal-card { width: min(560px, 100%); background: #fff; border-radius: 20px; padding: 20px 22px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.bc-ch-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bc-ch-modal-head img { width: 44px; height: 44px; border-radius: 12px; }
.bc-ch-modal-head > div { flex: 1; }
.bc-ch-modal-head h3 { margin: 0; font-size: 1.08rem; }
.bc-ch-modal-head small { color: #64748b; }
.bc-ch-x { border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1rem; color: #475569; }
.bc-ch-guide { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 14px; }
.bc-ch-guide > li { counter-increment: g; position: relative; padding-left: 38px; display: grid; gap: 6px; }
.bc-ch-guide > li::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fdd10b; color: #111827; font-weight: 800; font-size: .82rem; }
.bc-ch-guide > li > span { color: #475569; font-size: .88rem; }
.bc-ch-copy { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.bc-ch-copy small { grid-column: 1 / -1; color: #64748b; font-size: .72rem; font-weight: 600; }
.bc-ch-copy code { font-size: .78rem; word-break: break-all; color: #0f172a; }
.bc-ch-copy button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 4px 10px; font: 600 .76rem inherit; cursor: pointer; white-space: nowrap; }
.bc-ch-form { display: grid; gap: 10px; }
.bc-ch-form label { display: grid; gap: 4px; }
.bc-ch-form label span { font-size: .78rem; font-weight: 600; color: #475569; }
.bc-ch-form .bc-ui-btn { justify-self: start; }
@media (max-width: 560px) { .bc-ch-hero { padding: 18px; } .bc-ch-progress { width: 100%; } }
.bc-app-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.bc-app-icon-preview { width: 120px; height: 120px; padding: 0; border: 1px dashed #cbd5e1; border-radius: 26px; background: #0f172a; cursor: pointer; overflow: hidden; display: block; margin-bottom: 8px; }
.bc-app-icon-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) { .bc-fin-home-grid { grid-template-columns: 1fr; } }
.bc-fin-vtable td, .bc-fin-vtable th { white-space: nowrap; }
.bc-fin-vtable td:nth-child(4) { white-space: normal; min-width: 200px; }

/* ===== Cài đặt → In ấn ===== */
.bc-print-btn { display: inline-flex; align-items: center; gap: 6px; }
.bc-print-btn .ico { width: 16px; height: 16px; }
.bc-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 18px; align-items: start; }
.bc-pr-main { display: grid; gap: 16px; min-width: 0; }
.bc-pr-card { padding: 18px 20px; }
.bc-pr .ico { width: 1em; height: 1em; flex: none; vertical-align: -.15em; }
.bc-pr-h { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 0 0 6px; }
.bc-pr-hico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.bc-pr-hico .ico { width: 18px; height: 18px; }
.bc-pr-sub { margin: 0 0 12px; color: #64748b; font-size: .86rem; line-height: 1.45; }
.bc-pr-lico { color: #b45309; margin-right: 2px; }
.bc-pr-grid { margin-top: 12px; }
.bc-pr-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bc-pr-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.bc-pr-opt:hover { border-color: #cbd5e1; }
.bc-pr-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bc-pr-opt:has(input:checked) { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.bc-pr-opt-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; }
.bc-pr-opt-ico .ico { width: 20px; height: 20px; }
.bc-pr-opt-ico.is-thermal { background: #ecfeff; color: #0e7490; }
.bc-pr-opt-ico.is-office { background: #eef2ff; color: #4338ca; }
.bc-pr-opt-txt { display: grid; line-height: 1.25; min-width: 0; }
.bc-pr-opt-txt b { font-size: .9rem; }
.bc-pr-opt-txt small { color: #64748b; font-size: .76rem; }
.bc-pr-tem { flex: none; display: inline-flex; gap: 2px; padding: 2px; border-radius: 4px; background: #f1f5f9; flex-wrap: wrap; align-content: stretch; }
.bc-pr-tem i { flex: 1 1 0; min-width: 6px; background: #fff; border: 1px solid #94a3b8; border-radius: 2px; background-image: repeating-linear-gradient(90deg, #334155 0 1px, transparent 1px 3px); background-size: 70% 40%; background-repeat: no-repeat; background-position: center; }
.bc-pr-opts.is-label .bc-pr-opt { min-height: 58px; }
.bc-pr-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; margin-top: 12px; }
.bc-pr-switch { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; user-select: none; margin-top: 8px; }
.bc-pr-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bc-pr-switch span { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; flex: none; transition: background .15s; }
.bc-pr-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.bc-pr-switch input:checked + span { background: #f59e0b; }
.bc-pr-switch input:checked + span::after { transform: translateX(16px); }
.bc-pr-switch input:focus-visible + span { outline: 2px solid #f59e0b; outline-offset: 2px; }
.bc-pr-color { display: flex; align-items: center; gap: 8px; }
.bc-pr-color input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; cursor: pointer; }
.bc-pr-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; background: var(--c); cursor: pointer; padding: 0; }
.bc-pr-guide ol { margin: 6px 0 0; padding-left: 20px; color: #334155; font-size: .88rem; line-height: 1.55; }
.bc-pr-guide li { margin: 4px 0; }
.bc-pr-side { position: sticky; top: 16px; }
.bc-pr-preview { padding: 14px; }
.bc-pr-ptabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.bc-pr-ptabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 9px; padding: 7px 11px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.bc-pr-ptabs button.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.bc-pr-pstate { margin-left: auto; color: #94a3b8; font-size: .76rem; }
.bc-pr-frame { position: relative; overflow: hidden; border-radius: 12px; background: #e9edf3; min-height: 240px; max-height: 72vh; overflow-y: auto; }
.bc-pr-frame iframe { display: block; border: 0; width: 100%; transform-origin: 0 0; background: transparent; }
.bc-pr-actions { display: flex; gap: 8px; margin-top: 12px; }
.bc-pr-actions .bc-btn, .bc-pr-actions .bc-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
.bc-pr-note { margin: 10px 0 0; color: #64748b; font-size: .78rem; line-height: 1.45; }
@media (max-width: 1100px) { .bc-pr { grid-template-columns: 1fr; } .bc-pr-side { position: static; } }

/* ===== Kho · Bộ chọn ngày dd/mm/yyyy ===== */
.bc-dmy-wrap { display: flex; gap: 6px; align-items: center; }
.bc-dmy { flex: 1; min-width: 0; }
.bc-dmy-y { flex: 0 0 90px; }

/* ===== Dashboard · Đơn Shopee / TikTok ===== */
.bc-mp-dash {
  background: linear-gradient(135deg, #fffef8 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.bc-mp-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bc-mp-dash-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
}
.bc-mp-dash-head p { font-size: .82rem; }
.bc-mp-dash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bc-btn-mp-shopee { color: #ee4d2d; border-color: #fecaca; }
.bc-btn-mp-shopee:hover { background: #fff5f3; border-color: #fda29b; }
.bc-btn-mp-tiktok { color: #111; border-color: #e2e8f0; }
.bc-mp-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bc-mp-dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.bc-mp-dash-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: #e2e8f0;
}
.bc-mp-dash-card.is-shopee::before { background: linear-gradient(90deg, #ee4d2d 0%, #f97316 100%); }
.bc-mp-dash-card.is-tiktok::before { background: linear-gradient(90deg, #25f4ee 0%, #fe2c55 100%); }
.bc-mp-dash-card.is-sum::before { background: linear-gradient(90deg, #fdd10b 0%, #f59e0b 100%); }
.bc-mp-dash-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.06); border-color: #cbd5e1; }
.bc-mp-dash-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-mp-dash-card header strong {
  font-size: .98rem;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}
.bc-mp-dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  flex: 0 0 auto;
}
.bc-mp-dash-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.bc-mp-dash-card.is-shopee .bc-mp-dash-icon {
  background: linear-gradient(135deg, #ee4d2d 0%, #f97316 100%);
  box-shadow: 0 2px 6px rgba(238,77,45,.35);
}
.bc-mp-dash-card.is-tiktok .bc-mp-dash-icon {
  background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 50%, #0a0a0a 100%);
  box-shadow: 0 2px 6px rgba(254,44,85,.3);
}
.bc-mp-dash-card.is-tiktok .bc-mp-dash-icon svg { color: #fff; }
.bc-mp-dash-card.is-sum .bc-mp-dash-icon {
  background: linear-gradient(135deg, #fdd10b 0%, #f59e0b 100%);
  color: #78350f;
  box-shadow: 0 2px 6px rgba(245,158,11,.3);
}
.bc-mp-dash-link {
  font-size: .75rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}
.bc-mp-dash-link:hover { color: #0f172a; }
.bc-mp-dash-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.bc-mp-dash-main > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}
.bc-mp-dash-main > div span {
  font-size: .68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.bc-mp-dash-main > div strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}
.bc-mp-dash-warn { color: #d97706; }
.bc-mp-dash-info { color: #2563eb; }
.bc-mp-dash-ok { color: #059669; }
.bc-mp-dash-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}
.bc-mp-dash-card footer span { font-size: .78rem; color: #64748b; }
.bc-mp-dash-card footer b {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.bc-mp-dash-card.is-shopee footer b { color: #ee4d2d; }
.bc-mp-dash-card.is-tiktok footer b { color: #111; }
.bc-mp-dash-card.is-sum footer b { color: #b45309; }
@media (max-width: 900px) {
  .bc-mp-dash-grid { grid-template-columns: 1fr; }
  .bc-mp-dash-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* === Sync panel (Cài đặt → Đồng bộ) === */
.bc-sync-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff;
  border: 1px solid #e8edf3; border-radius: 16px;
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.bc-sync-intro-status .bc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .82rem;
}
.bc-pill-ok { background: #dcfce7; color: #166534; }
.bc-pill-warn { background: #fef3c7; color: #92400e; }
.bc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bc-dot.is-ok { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.bc-dot.is-warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }

.bc-sync-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}
@media (max-width: 1100px) { .bc-sync-grid { grid-template-columns: 1fr; } }

.bc-sync-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bc-sync-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
}
.bc-sync-card.is-catalog::before { background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); }
.bc-sync-card.is-orders::before { background: linear-gradient(90deg, #ee4d2d 0%, #f97316 100%); }
.bc-sync-card.is-realtime::before { background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%); }
.bc-sync-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.06); border-color: #cbd5e1; }

.bc-sync-card > header { display: flex; align-items: flex-start; gap: 12px; }
.bc-sync-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bc-sync-icon svg { width: 22px; height: 22px; }
.bc-sync-icon.is-catalog { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.bc-sync-icon.is-orders { background: linear-gradient(135deg, #ee4d2d, #f97316); color: #fff; }
.bc-sync-icon.is-realtime { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }
.bc-sync-card h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; color: #0f172a; }
.bc-sync-card .bc-muted { margin: 0; font-size: .85rem; line-height: 1.45; }

.bc-sync-meta {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; background: #f8fafc; border-radius: 10px;
  font-size: .82rem; color: #475569;
}
.bc-sync-meta span em { font-style: normal; color: #64748b; margin-right: 4px; }
.bc-code-sm { font-size: .76rem; padding: 1px 6px; background: #e2e8f0; border-radius: 4px; color: #334155; word-break: break-all; }
.bc-text-warn { color: #b45309; }

.bc-sync-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;
}
.bc-sync-actions form { margin: 0; }
.bc-sync-actions .bc-btn,
.bc-sync-actions .bc-btn-ghost {
  font-size: .88rem; padding: 8px 14px;
  white-space: nowrap;
}

.bc-sync-help {
  background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 12px 16px; margin-bottom: 14px;
}
.bc-sync-help summary {
  cursor: pointer; font-weight: 600; color: #475569;
  user-select: none; padding: 4px 0;
}
.bc-sync-help summary:hover { color: #0f172a; }
.bc-sync-help-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; font-size: .88rem; color: #475569; }
.bc-sync-help-body p, .bc-sync-help-body ul, .bc-sync-help-body ol { margin: 0 0 8px; }
.bc-sync-help-body li { margin-bottom: 4px; }
.bc-sync-help-body code { font-size: .82rem; background: #e2e8f0; padding: 1px 6px; border-radius: 4px; color: #334155; }

/* ===== Marketplace design system (Shopee / TikTok / Shipping) ===== */
:root {
    --mp-text: #0f172a;
    --mp-text-2: #475569;
    --mp-muted: #94a3b8;
    --mp-border: #e2e8f0;
    --mp-border-strong: #cbd5e1;
    --mp-surface: #fff;
    --mp-accent: #0ea5e9;
    --mp-amber: #f59e0b;
    --mp-blue: #2563eb;
    --mp-green: #16a34a;
    --mp-red: #dc2626;
    --mp-radius: 12px;
    --mp-radius-sm: 8px;
    --mp-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --mp-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --mp-shadow-lg: 0 10px 40px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);
}

/* ===== BUTTONS ===== */
.mp-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--mp-radius-sm); font-size: 13px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none;
}
.mp-btn-primary { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.mp-btn-primary:hover { background: linear-gradient(135deg, #1e293b, #334155); box-shadow: 0 4px 12px rgba(15, 23, 42, .2); }
.mp-btn-ghost { background: rgba(255, 255, 255, .8); color: var(--mp-text); border-color: var(--mp-border); }
.mp-btn-ghost:hover { background: #fff; border-color: var(--mp-border-strong); }
.mp-btn-ghost.is-on { background: var(--mp-text); color: #fff; border-color: var(--mp-text); }

/* ===== STATS CARDS ===== */
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mp-stats.mp-stats-5 { grid-template-columns: repeat(5, 1fr); }
.mp-stat {
    display: block; padding: 16px 18px; background: var(--mp-surface);
    border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
    text-decoration: none; color: inherit; transition: all .15s ease;
    box-shadow: var(--mp-shadow-sm);
    border-top: 3px solid var(--tab-accent, var(--mp-border));
}
.mp-stat:hover { border-color: var(--mp-border-strong); transform: translateY(-1px); box-shadow: var(--mp-shadow); }
.mp-stat.is-on { border-color: var(--tab-accent, var(--mp-accent)); background: linear-gradient(135deg, #f0f9ff, #fff); }
.mp-stat-label { font-size: 12px; font-weight: 600; color: var(--mp-muted); text-transform: uppercase; letter-spacing: .05em; }
.mp-stat-val { font-size: 28px; font-weight: 700; margin: 4px 0; letter-spacing: -.02em; }
.mp-stat-amber { color: var(--mp-amber); }
.mp-stat-blue { color: var(--mp-blue); }
.mp-stat-green { color: var(--mp-green); }
.mp-stat-trend { font-size: 11px; color: var(--mp-muted); }
.mp-stat-trend.is-up { color: var(--mp-green); font-weight: 600; }

/* ===== CHANNEL TABS ===== */
.mp-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; padding: 6px; background: #f1f5f9; border-radius: 12px; }
.mp-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: var(--mp-text-2); text-decoration: none; background: transparent;
    transition: all .15s ease; border: 1px solid transparent;
}
.mp-tab:hover { background: #fff; color: var(--mp-text); }
.mp-tab.is-on { background: #fff; color: var(--tab-accent, var(--mp-text)); border-color: var(--tab-accent, var(--mp-border)); box-shadow: var(--mp-shadow-sm); }
.mp-tab-mark { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--tab-accent, #0f172a); color: #fff; flex-shrink: 0; }
.mp-mark-all { background: #0f172a; }
.mp-mark-shopee { background: #ee4d2d; }
.mp-mark-tiktok { background: #0f172a; }
.mp-tab-label { white-space: nowrap; }
.mp-tab-count { background: rgba(15, 23, 42, .08); padding: 1px 7px; border-radius: 99px; font-size: 11px; min-width: 22px; text-align: center; }
.mp-tab.is-on .mp-tab-count { background: var(--tab-accent, #0f172a); color: #fff; }

/* ===== CHIPS (phase / status) ===== */
.mp-chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--mp-border); border-radius: 12px; }
.mp-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 600;
    color: var(--mp-text-2); text-decoration: none; background: #fff;
    border: 1px solid var(--mp-border); transition: all .15s ease;
}
.mp-chip:hover { background: #fff; border-color: var(--chip-accent, var(--mp-border-strong)); }
.mp-chip.is-on { background: var(--chip-accent, var(--mp-text)); color: #fff; border-color: var(--chip-accent, var(--mp-text)); }
.mp-chip-ico { font-size: 13px; }
.mp-chip-lbl { white-space: nowrap; }
.mp-chip-num { background: rgba(15, 23, 42, .08); padding: 0 6px; border-radius: 99px; font-size: 11px; }
.mp-chip.is-on .mp-chip-num { background: rgba(255, 255, 255, .25); color: #fff; }

/* ===== FILTER BAR ===== */
.mp-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.mp-filter-search {
    position: relative; flex: 1; min-width: 240px; display: flex; align-items: center;
    background: #fff; border: 1px solid var(--mp-border); border-radius: 10px;
    padding: 0 12px; transition: all .15s ease;
}
.mp-filter-search:focus-within { border-color: var(--mp-accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
.mp-filter-search svg { color: var(--mp-muted); flex-shrink: 0; }
.mp-filter-search input {
    flex: 1; border: 0; outline: 0; padding: 10px 8px; font-size: 13px; background: transparent; color: var(--mp-text);
}
.mp-select {
    padding: 9px 12px; border: 1px solid var(--mp-border); border-radius: 10px; background: #fff; font-size: 13px; color: var(--mp-text); cursor: pointer;
}
.mp-select:hover { border-color: var(--mp-border-strong); }
.mp-select:focus { outline: 0; border-color: var(--mp-accent); }

/* ===== ACTION ICONS (table) ===== */
.mp-act {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--mp-border);
    background: #fff; color: var(--mp-text-2); text-decoration: none; cursor: pointer;
    font-size: 14px; transition: all .15s ease;
}
.mp-act:hover { background: var(--mp-accent); color: #fff; border-color: var(--mp-accent); }
.mp-act-warn:hover { background: var(--mp-amber); border-color: var(--mp-amber); }
.mp-act-view:hover { background: var(--mp-blue); border-color: var(--mp-blue); }

/* ===== TABLE ===== */
.bc-mp-table { font-size: 13px; }
.bc-mp-table thead th { background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--mp-muted); font-weight: 700; border-bottom: 1px solid var(--mp-border); }
.bc-mp-table tbody tr { transition: background .12s; }
.bc-mp-table tbody tr:hover { background: #f8fafc; }
.bc-mp-code { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--mp-accent); text-decoration: none; }
.bc-mp-code:hover { text-decoration: underline; }
.bc-mp-sub { font-size: 11px; color: var(--mp-muted); margin-top: 2px; }
.bc-mp-tracking {
    display: inline-block; padding: 3px 8px; background: #f1f5f9; border: 1px solid var(--mp-border);
    border-radius: 6px; font-size: 12px; font-family: 'SF Mono', Menlo, monospace;
    color: var(--mp-text); cursor: pointer; transition: all .15s;
}
.bc-mp-tracking:hover { background: var(--mp-text); color: #fff; border-color: var(--mp-text); }

/* ===== MODAL ===== */
.bc-imei-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.bc-imei-modal[hidden] { display: none; }
.bc-imei-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
.bc-imei-modal__dialog {
    position: relative; background: #fff; border-radius: 16px; width: min(720px, 96vw);
    max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35); animation: bcModalIn .18s ease-out;
}
@keyframes bcModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.bc-imei-modal__head { padding: 16px 20px; border-bottom: 1px solid var(--mp-border); display: flex; align-items: flex-start; gap: 12px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.bc-imei-modal__title-wrap { display: flex; gap: 12px; align-items: center; flex: 1; }
.bc-imei-modal__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bc-imei-modal__title-wrap h2 { margin: 0; font-size: 16px; font-weight: 700; }
.bc-imei-modal__sub { margin: 4px 0 0; font-size: 12px; opacity: .8; }
.bc-imei-modal__close { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.bc-imei-modal__close:hover { background: rgba(255, 255, 255, .2); }
.bc-imei-modal__body { padding: 16px 20px; overflow: auto; flex: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .mp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .mp-stats { grid-template-columns: 1fr; }
    .mp-tab-label { display: none; }
}
