/* ==========================================================================
   BÁO GIÁ NHANH NỘI THẤT MAY ĐO (OFFLINE PRO) - STYLESYSTEM V2
   Kế thừa 100% chuẩn "Borderless Minimalist Design System" từ Web App Online
   Sidebar Trắng #FFFFFF, Viền siêu mảnh #F1F5F9, Nút Ant Design #007aff
   ========================================================================== */

:root {
  /* 1. Nền giao diện chuẩn Web App */
  --ui-bg-page: #ffffff;
  --ui-bg-subtle: #f8fafc;
  --ui-bg-hover: rgba(0, 0, 0, 0.025);

  /* 2. Đường kẻ phân cách & Viền siêu mảnh */
  --ui-border-divider: #f1f5f9;
  --ui-border-input: #e2e8f0;
  --ui-border-focus: #007aff;

  /* 3. Màu chữ phân cấp (Slate Crisp Contrast) */
  --ui-text-primary: #0f172a;   /* Đen đậm sắc nét (Slate 900) */
  --ui-text-body: #1e293b;      /* Đen dịu cao cấp (Slate 800) */
  --ui-text-secondary: #334155; /* Nhãn phụ, tiêu đề bảng (Slate 700) */
  --ui-text-muted: #64748b;     /* Gợi ý, chú thích (Slate 500) */

  /* 4. Màu sắc tương tác chuẩn Ant Design Token */
  --primary: #007aff;
  --primary-hover: #0056b3;
  --primary-light: rgba(0, 122, 255, 0.08);
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #d92d20;
  --danger-bg: #fef2f2;

  /* 5. Khung kích thước chuẩn */
  --sidebar-w: 250px;
  --sidebar-w-collapsed: 68px;
  --header-h: 60px;
  --radius: 6px;
  --radius-sm: 4px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-normal: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

/* THANH CUỘN HIỆN ĐẠI NỔI BẬT TRÊN TOÀN HỆ THỐNG */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

body {
  background-color: var(--ui-bg-page);
  color: var(--ui-text-body);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SIDEBAR TRẮNG SÁNG CHUẨN ANT DESIGN (THEME LIGHT - KHỚP 100% WEB APP)
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-w);
  background-color: #ffffff;
  color: var(--ui-text-body);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  border-right: 1px solid var(--ui-border-divider);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-box {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.brand-icon-bolt {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.brand-meta h2 {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ui-text-primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.brand-meta span {
  font-size: 11px;
  color: var(--ui-text-secondary);
  font-weight: 450;
}

/* NÚT TẠO BÁO GIÁ TRONG SIDEBAR */
.sidebar-cta-btn {
  margin: 0 14px 12px;
}

.btn-sidebar-create {
  width: 100%;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sidebar-create:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 8px rgba(0, 122, 255, 0.35);
  color: #ffffff;
}

/* MENU DANH MỤC */
.sidebar-menu {
  list-style: none;
  padding: 0 8px;
  flex: 1;
}

.menu-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 10px 4px;
  white-space: nowrap;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 2px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sidebar-item a:hover {
  background-color: var(--ui-bg-subtle);
  color: var(--ui-text-primary);
}

.sidebar-item.active a {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--ui-border-divider);
  font-size: 12px;
  background: #ffffff;
}

.sidebar-footer-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 11px;
  transition: all 0.2s ease;
}

.sidebar-footer-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.sidebar-footer-full {
  display: block;
}

.sidebar-footer-collapsed {
  display: none;
}

/* SIDEBAR COLLAPSED (NÉP MENU) */
.app-sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.app-sidebar.collapsed .sidebar-brand-box {
  padding: 16px 0 12px;
  justify-content: center;
}

.app-sidebar.collapsed .brand-meta {
  display: none;
}

.app-sidebar.collapsed .sidebar-cta-btn {
  margin: 0 10px 12px;
}

.app-sidebar.collapsed .btn-sidebar-create {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 0;
}

.app-sidebar.collapsed .btn-sidebar-create .btn-text {
  display: none;
}

.app-sidebar.collapsed .menu-section-label {
  display: none;
}

.app-sidebar.collapsed .sidebar-item a {
  justify-content: center;
  padding: 10px 0;
}

.app-sidebar.collapsed .sidebar-item a .item-label {
  display: none;
}

.app-sidebar.collapsed .sidebar-footer {
  padding: 10px 4px;
  text-align: center;
}

.app-sidebar.collapsed .sidebar-footer-card {
  padding: 0;
  border: none;
  background: transparent;
}

.app-sidebar.collapsed .sidebar-footer-full {
  display: none;
}

.app-sidebar.collapsed .sidebar-footer-collapsed {
  display: flex;
  justify-content: center;
}

.app-sidebar.collapsed .sidebar-footer .footer-text,
.app-sidebar.collapsed .sidebar-footer .status-text {
  display: none;
}

.app-sidebar.collapsed .status-badge-clean {
  justify-content: center;
  display: flex;
}

.status-badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 600;
}

.dot-green {
  width: 6px;
  height: 6px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  width: 6px;
  height: 6px;
  background-color: #dc2626;
  border-radius: 50%;
  display: inline-block;
}

.dot-amber {
  width: 6px;
  height: 6px;
  background-color: #f59e0b;
  border-radius: 50%;
  display: inline-block;
}

.dot-blue {
  width: 6px;
  height: 6px;
  background-color: #0284c7;
  border-radius: 50%;
  display: inline-block;
}

.dot-gray {
  width: 6px;
  height: 6px;
  background-color: #94a3b8;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   KHUNG NỘI DUNG CHÍNH (MAIN AREA)
   ========================================================================== */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #ffffff;
  transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-w-collapsed);
}

.app-topbar {
  height: var(--header-h);
  background-color: #ffffff;
  border-bottom: 1px solid var(--ui-border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-toggle-sidebar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ui-border-input);
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-sidebar:hover {
  background: var(--ui-bg-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.page-title-text {
  font-size: 17px;
  font-weight: 650;
  color: var(--ui-text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.topbar-center {
  flex: 1;
  max-width: 480px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .topbar-center {
    max-width: 300px;
    margin: 0 10px;
  }
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-content {
  padding: 24px 28px;
  flex: 1;
  background-color: var(--ui-bg-page);
}

/* ==========================================================================
   THẺ CARD PHẲNG CHUẨN (BORDERLESS CARD)
   ========================================================================== */
.borderless-card {
  background: #ffffff;
  border: 1px solid var(--ui-border-divider);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: none !important;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border-divider);
}

.card-heading {
  font-size: 15px;
  font-weight: 650;
  color: var(--ui-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BẢNG PHẲNG KHÔNG VIỀN DỌC (FLAT MINIMALIST TABLE - CHUẨN ANT DESIGN)
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--ui-border-divider);
  border-radius: 8px;
  background: #ffffff;
}

.flat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.flat-table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ui-border-divider);
  white-space: nowrap;
}

.flat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ui-border-divider);
  color: var(--ui-text-body);
  vertical-align: middle;
}

.flat-table tbody tr:hover {
  background-color: var(--ui-bg-hover);
}

.flat-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   CÁC NÚT THAO TÁC (BUTTONLESS & ANT DESIGN BUTTONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-default {
  background-color: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-default:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* Nút hành động dạng liên kết siêu gọn (Buttonless Actions) */
.btn-link-action {
  background: transparent !important;
  border: none !important;
  padding: 3px 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-link-action:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

.btn-link-danger {
  color: #ef4444;
}

.btn-link-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

/* ==========================================================================
   FORM CONTROLS (Ô NHẬP LIỆU)
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ui-text-secondary);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ui-border-input);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ui-text-primary);
  background: #ffffff;
  transition: all 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

textarea.form-control {
  height: auto;
  padding: 8px 10px;
  resize: vertical;
}

/* ==========================================================================
   BADGES TRẠNG THÁI
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.badge-draft { background: #f1f5f9; color: #475569; }
.badge-sent { background: #e0f2fe; color: #0284c7; }
.badge-confirmed { background: #d1fae5; color: #059669; }
.badge-in_production { background: #fef3c7; color: #d97706; }

/* ==========================================================================
   STATS CARDS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card-clean {
  background: #ffffff;
  border: 1px solid var(--ui-border-divider);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ui-text-primary);
  margin-bottom: 2px;
}

.stat-content span {
  font-size: 12px;
  color: var(--ui-text-muted);
}

/* ==========================================================================
   MODAL HỘP THOẠI (CHUẨN ANT DESIGN VỚI LỚP PHỦ TỐI RÕ NÉT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 580px;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: all 0.2s ease;
}

.modal-box.modal-lg {
  max-width: 780px !important;
}

.modal-box.modal-variant-manager {
  max-width: 1040px !important;
  width: 94% !important;
}

.modal-box.modal-data-hub {
  max-width: 680px !important;
  width: 94% !important;
  border-radius: 14px;
}

/* ==========================================================================
   DATA HUB MODAL STYLES (TRUNG TÂM DỮ LIỆU & ĐỒNG BỘ JSON)
   ========================================================================== */
.data-hub-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  user-select: none;
  box-sizing: border-box;
}

.data-hub-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.12);
  transform: translateY(-1px);
  background: #f8fafc;
}

.data-hub-card:active {
  transform: translateY(0);
}

.data-hub-card .card-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.data-hub-card .card-body {
  flex: 1;
  min-width: 0;
}

.data-hub-card .card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 2px;
}

.data-hub-card .card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  word-break: break-word;
}

.modal-box.modal-xl {
  max-width: 1320px !important;
  width: 96% !important;
  height: min(860px, 92%) !important;
  max-height: 92% !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-box.modal-xl .modal-header {
  flex-shrink: 0 !important;
}

.modal-box.modal-xl .modal-body {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 18px !important;
}

.modal-box.modal-xl .modal-footer {
  flex-shrink: 0 !important;
}

/* BOM (BILL OF MATERIALS) MODAL STYLES */
.bom-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.bom-table-wrapper {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  text-align: left;
}

.bom-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f1f5f9;
  color: #334155;
  font-weight: 650;
  font-size: 11.5px;
  padding: 10px 8px;
  border-bottom: 1.5px solid #cbd5e1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bom-table tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  background: #ffffff;
  font-size: 12px;
}

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

.bom-table tbody tr:last-child td {
  border-bottom: none;
}

.bom-table .form-control {
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
}

.bom-table .form-control:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
  background: #ffffff;
}

.bom-empty-state-cell {
  text-align: center;
  padding: 54px 16px !important;
  background: #ffffff !important;
}

.bom-empty-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Quote Empty Rooms Starter Card */
.quote-empty-rooms-starter {
  background: #fffbf5;
  border: 1.5px dashed #fed7aa;
  border-radius: 8px;
  padding: 46px 20px;
  text-align: center;
  margin: 12px 0;
}

.empty-starter-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.empty-starter-label {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.empty-starter-select {
  height: 38px;
  width: 220px;
  max-width: 260px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  background: #ffffff;
  color: #0f172a;
  flex-shrink: 0;
}

.empty-starter-btn {
  height: 38px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  background: #ea580c;
  border-color: #ea580c;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 520px) {
  .empty-starter-controls-row {
    flex-direction: column;
    gap: 8px;
  }
  .empty-starter-select,
  .empty-starter-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 992px) {
  .modal-box.modal-xl {
    height: 95% !important;
  }
  .modal-box.modal-xl .modal-body {
    overflow-y: auto !important;
  }
  .bom-split-layout {
    grid-template-columns: 1fr;
    overflow-y: visible;
  }
}

.bom-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.bom-metric-item {
  display: flex;
  flex-direction: column;
}

.bom-metric-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bom-metric-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.bom-catalog-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.bom-catalog-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bom-catalog-card:hover {
  border-color: #007aff;
  background: #f0f7ff;
}

.bom-catalog-card.selected {
  border-color: #10b981;
  background: #f0fdf4;
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ui-border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--ui-text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ui-text-muted);
  cursor: pointer;
}
.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 20px 22px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--ui-border-divider);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   TOAST THÔNG BÁO
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 260px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { background: #065f46; color: #ffffff; }
.toast-error { background: #991b1b; color: #ffffff; }
.toast-info { background: #1e40af; color: #ffffff; }

/* ==========================================================================
   BỘ XỬ LÝ ẢNH 3D PHỐI CẢNH (DROPZONE, PREVIEW & LIGHTBOX)
   ========================================================================== */
.photo-upload-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px 20px;
  background-color: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.photo-upload-zone:hover,
.photo-upload-zone.dragover {
  border-color: #007aff;
  background-color: #eff6ff;
}

.photo-upload-zone.dragover {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.photo-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--ui-border-divider);
  border-radius: 8px;
  padding: 12px 16px;
}

.photo-thumb-wrap {
  width: 90px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-thumb-wrap:hover img {
  transform: scale(1.05);
}

.photo-meta-info {
  flex: 1;
  min-width: 0;
}

.photo-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* LIGHTBOX MODAL PHÓNG TO ẢNH */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   BỐ CỤC KHÔNG GIAN / PHÒNG CHUẨN WEB APP ONLINE (QUOTE ROOM BOX & ROOM PHOTOS)
   ========================================================================== */
.quote-room-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: visible;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-room-box:hover,
.quote-room-box:focus-within,
.quote-room-box.is-active {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.06);
}

.quote-room-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quote-room-box:hover .quote-room-header,
.quote-room-box.is-active .quote-room-header {
  background: #f1f5f9;
  border-bottom-color: #cbd5e1;
}

.quote-room-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-room-folder-icon {
  color: #007aff;
  display: flex;
  align-items: center;
}

.quote-room-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.quote-room-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.quote-room-subtotal {
  font-size: 13.5px;
  font-weight: 700;
  color: #007aff;
  margin-left: 6px;
}

.quote-room-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* NÚT ẢNH PHÒNG */
.quote-room-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.quote-room-photo-btn:hover,
.quote-room-photo-btn.is-active {
  background: #eff6ff !important;
  color: #007aff !important;
  border-color: #93c5fd !important;
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.15) !important;
}

.quote-room-photo-btn.has-photos {
  background: #007aff !important;
  color: #ffffff !important;
  border-color: #007aff !important;
}

.quote-room-photo-btn.has-photos:hover {
  background: #0056b3 !important;
  color: #ffffff !important;
}

/* NÚT THÊM SẢN PHẨM TRÊN PHÒNG */
.quote-room-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.quote-room-add-btn:hover {
  background: #007aff;
  color: #ffffff;
  border-color: #007aff;
}

.quote-room-tool-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-room-tool-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

/* DẢI ẢNH PHỐI CẢNH CỦA RIÊNG TỪNG PHÒNG */
.room-photos-strip {
  padding: 10px 14px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.room-photos-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.room-photo-item {
  width: 96px;
  height: 66px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
}

.room-photo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.room-photo-item:hover img {
  transform: scale(1.06);
}

.room-photo-delete-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.room-photo-add-btn {
  width: 96px;
  height: 66px;
  border-radius: 6px;
  border: 1.5px dashed #93c5fd;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #007aff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.room-photo-add-btn:hover {
  background: #dbeafe;
  border-color: #007aff;
}

/* NỘI DUNG MÓN TRONG PHÒNG */
.quote-room-items-container {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ô ẢNH ĐẠI DIỆN RIÊNG CHO TỪNG HẠNG MỤC (ITEM PHOTO SLOT) */
.item-with-photo-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.item-photo-slot {
  width: 68px;
  min-height: 68px;
  border-radius: 6px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}

.item-photo-slot:hover {
  border-color: #007aff;
  background: #eff6ff;
}

.item-photo-slot.has-image {
  border-style: solid;
  border-color: #cbd5e1;
  background: #ffffff;
  padding: 2px;
}

.item-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.item-photo-del-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  z-index: 5;
}

.item-content-wrap {
  flex: 1;
  min-width: 0;
}

/* KHÔNG BAO GIỜ HIỆN 2 DẤU CỘNG (++) TRONG NÚT BẤM */
.btn svg,
.btn-sidebar-create svg,
.btn-tab-mode svg {
  flex-shrink: 0;
}

/* SECTION ĐIỀU KHOẢN & TỔNG KẾT TÀI CHÍNH */
.terms-summary-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .terms-summary-grid {
    grid-template-columns: 1fr;
  }
}

.quick-tags-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-quick-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.btn-quick-tag:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #007aff;
}

.financial-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.fin-label {
  color: #475569;
  font-size: 12px;
}

.fin-val {
  font-size: 14px;
  color: #0f172a;
}

.fin-control-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}

.segmented-mini-group {
  display: inline-flex;
  border-radius: 4px;
  background: #f1f5f9;
  padding: 2px;
}

.btn-seg-mini {
  border: none;
  background: transparent;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-seg-mini.active {
  background: #ffffff;
  color: #007aff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.vat-pills-wrap {
  display: inline-flex;
  gap: 4px;
}

.btn-vat-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-vat-pill:hover {
  border-color: #007aff;
  color: #007aff;
}

.btn-vat-pill.active {
  background: #007aff;
  border-color: #007aff;
  color: #ffffff;
}

.fin-grand-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 12px;
}

/* NÚT BẤM CHỌN MÀU THEME PRESET */
.btn-color-preset {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn-color-preset:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* KHỐI CHỮ KÝ XÁC NHẬN 2 BÊN (A4 LANDSCAPE & IN ẤN) */
.pdf-signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 14px;
  padding-top: 8px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.pdf-signature-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-sig-date-line {
  font-size: 8pt;
  font-style: italic;
  color: #475569;
  margin-bottom: 3px;
  min-height: 13px;
}

.pdf-sig-role {
  font-size: 9pt;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-sig-hint {
  font-size: 7.5pt;
  font-style: italic;
  color: #64748b;
  margin-top: 2px;
}

.pdf-sig-space {
  height: 48px;
}

.pdf-sig-name {
  font-size: 9.5pt;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

/* ==========================================================================
   THANH TỔNG TIỀN DÍNH CỐ ĐỊNH CHÂN TRANG & HUY HIỆU PHIÊN BẢN (OFFLINE UX)
   ========================================================================== */
.quote-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid #cbd5e1;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 990;
  transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
body.sidebar-collapsed .quote-sticky-bottom-bar {
  left: 64px;
}
@media (max-width: 1024px) {
  .quote-sticky-bottom-bar {
    left: 0 !important;
    padding: 0 10px;
  }
}
.sticky-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sticky-kpi-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sticky-kpi-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}
.sticky-kpi-value {
  font-size: 13.5px;
  font-weight: 750;
  color: #0f172a;
}
.sticky-kpi-value.text-primary {
  color: #007aff;
}
.sticky-kpi-value.text-orange {
  color: #ea580c;
}
.sticky-kpi-profit {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.sticky-kpi-badge {
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}
.sticky-kpi-divider {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
}
.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.builder-container {
  padding-bottom: 60px;
}
.badge-version {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}
.badge-version.v1 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-version.vx {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f0abfc;
}

/* ==========================================================================
   TÙY CHỌN CHẾ ĐỘ HIỂN THỊ (ẨN LÃI/LỖ & 3 CHẾ ĐỘ BOM: ITEM / QUOTE / OFF)
   ========================================================================== */
body.bgn-hide-profit-loss .profit-box,
body.bgn-hide-profit-loss .profit-loss-only,
body.bgn-hide-profit-loss .profit-loss-col {
  display: none !important;
}

/* Chế độ 1 (item): Ẩn khung BOM chung của toàn báo giá, hiện BOM trên từng hạng mục */
body.bgn-bom-mode-item .quote-bom-card {
  display: none !important;
}

/* Chế độ 2 (quote): Ẩn BOM trên từng hạng mục, hiện khung BOM chung của toàn báo giá */
body.bgn-bom-mode-quote .btn-bom-tag,
body.bgn-bom-mode-quote .item-bom-summary-bar {
  display: none !important;
}

/* Chế độ 3 (off): Tắt toàn bộ BOM */
body.bgn-hide-bom .bom-feature-only,
body.bgn-hide-bom .btn-bom-tag,
body.bgn-hide-bom .item-bom-summary-bar,
body.bgn-hide-bom .quote-bom-card,
body.bgn-bom-mode-off .bom-feature-only,
body.bgn-bom-mode-off .btn-bom-tag,
body.bgn-bom-mode-off .item-bom-summary-bar,
body.bgn-bom-mode-off .quote-bom-card {
  display: none !important;
}

/* Khi ẩn Lãi/Lỗ VÀ không hiện BOM trên từng món (quote hoặc off) -> ẩn gọn cột phải thừa */
body.bgn-hide-profit-loss.bgn-hide-bom .item-cost-bom-col,
body.bgn-hide-profit-loss.bgn-bom-mode-off .item-cost-bom-col,
body.bgn-hide-profit-loss.bgn-bom-mode-quote .item-cost-bom-col {
  display: none !important;
}

/* Thẻ chọn 3 chế độ BOM trong trang Cài Đặt */
.bom-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.bom-mode-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 11px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.bom-mode-option:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.bom-mode-option.is-active {
  border-color: #007aff;
  background: #eff6ff;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.12);
}

.bom-mode-option .mode-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bom-mode-option.is-active .mode-title {
  color: #007aff;
}

.bom-mode-option .mode-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bom-mode-option.is-active .mode-radio-dot {
  border: 4.5px solid #007aff;
}

.bom-mode-option .mode-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .bom-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Công tắc gạt hiện đại trong trang Cài Đặt */
.bgn-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bgn-toggle-row:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.bgn-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.bgn-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bgn-switch-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: background-color 0.2s ease;
}

.bgn-switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.bgn-switch input:checked + .bgn-switch-slider {
  background-color: #007aff;
}

.bgn-switch input:checked + .bgn-switch-slider::before {
  transform: translateX(20px);
}

.custom-bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 11.5px;
  color: #1e40af;
  font-weight: 550;
}

.custom-bank-chip button {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.custom-bank-chip button:hover {
  color: #b91c1c;
}



