/* ============================================================================
   THEME SKIN (FRONTEND) — đồng bộ giao diện khu người dùng với admin CashBack
   - Khớp với block "cashback-admin-theme" bên admin (Shopee #ee4d2d, card 12px, btn 9px).
   - CHỈ override TRÌNH BÀY trên nền Bootstrap. KHÔNG đụng markup/form/JS/route → giữ nguyên logic.
   - Nạp SAU bootstrap.min.css của frontend để thắng cascade. Gỡ nhanh = bỏ <link>.
   ============================================================================ */

:root {
  /* (FIX white-label) Brand THEO từng site: kế thừa --bs-primary (do setting color_primary mỗi site đặt qua inline <style>).
     KHÔNG ép --bs-primary ở đây nữa để không phá branding của site con/đại lý. Fallback cam khi site chưa cấu hình màu. */
  --shopee: var(--bs-primary, #ee4d2d);
  --shopee-dark: color-mix(in srgb, var(--shopee) 82%, #000);

  --skin-bg: #f6f8fb;
  --skin-surface: #ffffff;
  --skin-border: #eef0f3;
  --skin-border-strong: #e2e8f0;
  --skin-text: #334155;
  --skin-muted: #64748b;
  --skin-heading: #0f172a;
  --skin-radius-sm: 8px;
  --skin-radius: 10px;
  --skin-radius-lg: 12px;
  --skin-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 18px -8px rgba(15,23,42,.10);
  --skin-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
}

/* ---- Nền + typography (Inter cho khớp admin) ---- */
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  color: var(--skin-text);
  background-color: var(--skin-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,.card-title { color: var(--skin-heading); letter-spacing: -.011em; }
a { color: var(--shopee); }
a:hover { color: var(--shopee-dark); }

/* Cột số/tiền thẳng hàng (hợp trang nạp xu, ví, lịch sử) */
.table td, .table th, .fw-bold, .fw-semibold, .badge, [data-order] { font-variant-numeric: tabular-nums; }

/* ---- Card kiểu CashBack (khớp admin: 12px, viền mảnh, shadow mềm, hover) ---- */
.card {
  border: 1px solid var(--skin-border) !important;
  border-radius: var(--skin-radius-lg) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
  background: var(--skin-surface);
}
.card:hover { box-shadow: 0 6px 18px -6px rgba(15,23,42,.10) !important; }
.card .card-header {
  background: transparent !important;
  border-bottom: 1px solid #f1f3f5 !important;
  font-weight: 600;
}

/* ---- Nút (bo 9px khớp admin) ---- */
.btn { border-radius: 9px !important; font-weight: 600; transition: transform .06s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary {
  --bs-btn-bg: var(--shopee); --bs-btn-border-color: var(--shopee);
  --bs-btn-hover-bg: var(--shopee-dark); --bs-btn-hover-border-color: var(--shopee-dark);
  --bs-btn-active-bg: var(--shopee-dark); --bs-btn-active-border-color: var(--shopee-dark);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 238,77,45),.22);
}
.btn-outline-primary {
  --bs-btn-color: var(--shopee); --bs-btn-border-color: var(--shopee);
  --bs-btn-hover-bg: var(--shopee); --bs-btn-hover-border-color: var(--shopee);
}
.btn-sm { border-radius: 8px !important; }

/* ---- Badge dạng viên ---- */
.badge { border-radius: 999px !important; font-weight: 600; padding: .34em .7em; letter-spacing: .01em; }

/* ---- Form ---- */
.form-control, .form-select {
  border-radius: 10px !important;
  border-color: var(--skin-border-strong) !important;
  padding: .55rem .8rem;
  background-color: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--shopee) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 238,77,45),.14) !important;
  background-color: #fff;
}
.form-label { font-weight: 600; color: var(--skin-muted); font-size: .82rem; }
.input-group-text { border-radius: 10px; background: #f1f5f9; border-color: var(--skin-border-strong); }

/* ---- Bảng ---- */
.table { --bs-table-border-color: var(--skin-border); }
.table > thead th {
  text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
  color: var(--skin-muted); font-weight: 700;
  border-bottom: 1px solid var(--skin-border-strong); background: #fbfcfe;
}
.table > tbody > tr { border-color: var(--skin-border); }
.table-hover > tbody > tr:hover > * { background-color: #f6f8fb; }
.table-responsive { border-radius: 10px; }

/* ---- Dropdown / modal / alert ---- */
.dropdown-menu { border-radius: 12px !important; border: 1px solid var(--skin-border) !important; box-shadow: var(--skin-shadow) !important; padding: .35rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item.active, .dropdown-item:active { background-color: var(--shopee); }
.modal-content { border-radius: 14px !important; border: 1px solid var(--skin-border) !important; box-shadow: 0 24px 60px rgba(15,23,42,.18) !important; }
.modal-header, .modal-footer { border-color: var(--skin-border) !important; }
.alert { border-radius: 10px !important; }
.nav-pills .nav-link.active { background-color: var(--shopee); }
.page-link { color: var(--shopee); }
.page-item.active .page-link { background-color: var(--shopee); border-color: var(--shopee); }

/* ---- Cuộn gọn ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

/* ---- Tiện ích an toàn (từ CashBack) ---- */
form.dang-gui button[type="submit"], form.dang-gui button:not([type]), form.dang-gui input[type="submit"] { opacity: .55; pointer-events: none; cursor: wait; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ============================================================================
   APP-SHELL SIDEBAR (khu người dùng) — vỏ mới kiểu CashBack: sidebar trái + topbar mảnh.
   Chỉ là VỎ, nội dung {{ $slot }} giữ nguyên. Responsive: <992px sidebar thành drawer.
   ============================================================================ */
:root { --sb-w: 264px; --tb-h: 62px; }

.app-shell { min-height: 100vh; background: var(--skin-bg); }

/* ----- Sidebar (LIGHT — kiểu ảnh mẫu) ----- */
.app-sidebar {
  position: fixed; inset: var(--tb-h) auto 0 0; width: var(--sb-w); z-index: 1040;
  background: #ffffff; color: #475569;
  display: flex; flex-direction: column;
  border-right: 1px solid #eef0f3;
  transition: transform .22s ease;
}
.app-sidebar__brand {
  height: var(--tb-h); display: flex; align-items: center; gap: .6rem;
  padding: 0 1.1rem; background: #fff; border-bottom: 1px solid #f1f3f5;
  flex: 0 0 auto;
}
.app-sidebar__brand img { max-height: 36px; width: auto; max-width: 190px; object-fit: contain; }
.app-sidebar__nav { flex: 1 1 auto; overflow-y: auto; padding: .6rem .5rem 1rem; }
.app-sidebar__nav::-webkit-scrollbar { width: 6px; }
.app-sidebar__nav::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 999px; }
.app-sidebar__cat { color: #94a3b8; text-transform: uppercase; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; padding: 1rem .95rem .35rem; }
.app-sidebar__link {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .85rem; margin: 3px 8px; border-radius: 12px;
  color: #475569; font-weight: 500; font-size: .9rem; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.app-sidebar__link i, .app-sidebar__link img { width: 20px; text-align: center; color: #94a3b8; flex: 0 0 20px; }
.app-sidebar__link:hover { background: #f6f8fb; color: #0f172a; }
.app-sidebar__link:hover i { color: var(--shopee); }
.app-sidebar__link.active { background: var(--shopee); color: #fff; box-shadow: 0 8px 18px -6px rgba(var(--bs-primary-rgb, 238,77,45),.45); }
.app-sidebar__link.active i, .app-sidebar__link.active img { color: #fff; }
.app-sidebar__link .sb-badge { margin-left: auto; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; letter-spacing: .03em; }
.sb-badge--hot { background: #fee2e2; color: #dc2626; }
.sb-badge--new { background: #dbeafe; color: #2563eb; }
.app-sidebar__link.active .sb-badge { background: rgba(255,255,255,.25); color: #fff; }
.app-sidebar__foot { flex: 0 0 auto; border-top: 1px solid #f1f3f5; padding: .6rem; }
.app-sidebar__user { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 12px; color: #334155; text-decoration: none; }
.app-sidebar__user:hover { background: #f6f8fb; color: #0f172a; }
.app-sidebar__user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ----- Main + topbar ----- */
.app-main { margin-left: var(--sb-w); min-height: 100vh; padding-top: var(--tb-h); display: flex; flex-direction: column; }
.app-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1045; height: var(--tb-h);
  display: flex; align-items: center; gap: .75rem; padding: 0 1.1rem;
  background: rgba(255,255,255,.95); backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #e5e7eb;
}
.app-topbar__brand { display: flex; align-items: center; flex: 0 0 auto; width: calc(var(--sb-w) - 1.1rem); }
.app-topbar__brand img { max-height: 38px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 991.98px) { .app-topbar__brand { width: auto; } .app-topbar__brand img { max-height: 34px; } }
.app-topbar__toggle { display: none; background: none; border: 0; font-size: 1.25rem; color: #334155; padding: .25rem .4rem; border-radius: 8px; }
.app-topbar__toggle:hover { background: #f1f5f9; }
.app-topbar__spacer { flex: 1 1 auto; }
.app-topbar .header-select select, .app-topbar .select { border: 1px solid var(--skin-border-strong); border-radius: 9px; background:#fff; padding: .3rem .5rem; font-size: .82rem; }
.app-content { flex: 1 1 auto; padding: 1.25rem 1.5rem; }
/* (FIX sidebar + main nhìn tách nhau) Cho nội dung LẤP ĐẦY vùng main thay vì co giữa theo .container → gắn kết với sidebar,
   không còn khoảng trống lớn cạnh sidebar. Chỉ áp trong khu app-shell (không đụng landing/auth). */
.app-content .container,
.app-content .container-sm,
.app-content .container-md,
.app-content .container-lg,
.app-content .container-xl,
.app-content .container-xxl { max-width: 100% !important; width: 100% !important; padding-left: 0; padding-right: 0; }
/* Viền phải sidebar mềm + đổ bóng nhẹ để chuyển tiếp mượt sang main (bớt cảm giác 2 khối rời) */
.app-sidebar { box-shadow: 1px 0 0 #eef0f3, 6px 0 18px -12px rgba(15,23,42,.12); }

/* ----- Overlay (mobile) ----- */
.app-sidebar__overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1039; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
body.sidebar-open .app-sidebar__overlay { opacity: 1; visibility: visible; }

/* ----- Responsive: <992px sidebar thành drawer ----- */
/* Bottom-nav mobile (ẩn ở desktop) */
.app-bottomnav { display: none; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-topbar__toggle { display: inline-flex; align-items: center; }
  .app-content { padding-bottom: 78px; } /* chừa chỗ cho bottom-nav */

  .app-bottomnav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 1041;
    background: #fff; border-top: 1px solid var(--skin-border);
    box-shadow: 0 -4px 16px -8px rgba(15,23,42,.15);
    padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: stretch;
  }
  .app-bottomnav a, .app-bottomnav button {
    flex: 1; background: none; border: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--skin-muted); font-size: 10.5px; font-weight: 600; text-decoration: none;
    padding: .35rem 0; border-radius: 10px; min-width: 0;
  }
  .app-bottomnav a i, .app-bottomnav button i { font-size: 18px; }
  .app-bottomnav a span, .app-bottomnav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .app-bottomnav a.active, .app-bottomnav__menu { color: var(--shopee); }

  /* Nút "Nạp tiền" nổi bật giữa (FAB kiểu app) */
  .app-bottomnav__cta { color: var(--shopee); font-weight: 700; justify-content: flex-end; }
  .app-bottomnav__cta .app-bottomnav__fab {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--shopee), var(--shopee-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    margin-top: -28px; margin-bottom: 3px; border: 3px solid #fff;
    box-shadow: 0 8px 18px -4px rgba(var(--bs-primary-rgb, 238,77,45), .55);
  }
  .app-bottomnav__cta .app-bottomnav__fab i { font-size: 21px; color: #fff; }
}

/* ============================================================================
   WIDGET DASHBOARD (kiểu ảnh mẫu): thanh tìm kiếm + thẻ thống kê + ticker nạp
   ============================================================================ */
.dash-search { display:flex; align-items:center; gap:.6rem; background:#fff; border:1px solid var(--skin-border); border-radius:14px; padding:.7rem 1rem; box-shadow:var(--skin-shadow); margin: .25rem 0 1rem; }
.dash-search i { color:#94a3b8; }
.dash-search input { flex:1; border:0; outline:0; background:transparent; font-size:.95rem; color:var(--skin-text); }
.dash-search kbd { background:#f1f5f9; color:#64748b; border-radius:6px; padding:2px 8px; font-size:.72rem; font-weight:600; }
.dash-stats { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
@media (max-width:575.98px){ .dash-stats{ grid-template-columns:1fr; } }
.dash-stat { display:flex; align-items:center; gap:1rem; padding:1.1rem 1.25rem; border-radius:16px; border:1px solid var(--skin-border); box-shadow:var(--skin-shadow); }
.dash-stat--xu { background:linear-gradient(120deg,#fff7ed,#ffedd5); }
.dash-stat--qua { background:linear-gradient(120deg,#fef2f2,#fee2e2); }
.dash-stat__icon { width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:#fff;flex:0 0 52px; }
.dash-stat--xu .dash-stat__icon { background:linear-gradient(135deg,#fb923c,#ea580c); }
.dash-stat--qua .dash-stat__icon { background:linear-gradient(135deg,#f87171,#dc2626); }
.dash-stat__num { font-size:1.5rem; font-weight:800; color:var(--skin-heading); line-height:1.1; font-variant-numeric:tabular-nums; }
.dash-stat__num span { font-size:.85rem; font-weight:600; color:var(--skin-muted); }
.dash-stat__label { font-size:.82rem; color:var(--skin-muted); font-weight:600; margin-top:2px; }
.dash-ticker { overflow:hidden; background:#fff; border:1px solid var(--skin-border); border-radius:12px; padding:.6rem 0; margin-bottom:1.25rem; box-shadow:var(--skin-shadow-sm); }
.dash-ticker__track { display:inline-flex; gap:2.5rem; white-space:nowrap; animation: dash-marquee 45s linear infinite; padding-left:2.5rem; }
.dash-ticker:hover .dash-ticker__track { animation-play-state: paused; }
.dash-ticker__item { font-size:.85rem; color:var(--skin-muted); }
.dash-ticker__item i { color:#16a34a; }
.dash-ticker__item b { color:var(--skin-heading); font-weight:700; }
@keyframes dash-marquee { from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---- Settings tabs (đổi menu cài đặt từ cột dọc -> tabs ngang, hết trùng sidebar) ---- */
.settings-tabs { display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:1.25rem; background:#fff; border:1px solid var(--skin-border); border-radius:14px; padding:.5rem; box-shadow:var(--skin-shadow-sm); }
.settings-tab { display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:10px; color:var(--skin-muted); font-weight:600; font-size:.88rem; text-decoration:none; white-space:nowrap; cursor:pointer; }
.settings-tab:hover { background:#f6f8fb; color:var(--skin-heading); }
.settings-tab.active { background:var(--shopee); color:#fff; }

/* ---- DataTables / bảng chuyên nghiệp hơn (áp mọi bảng khu user, gồm tab Tài khoản) ---- */
.dataTables_wrapper { padding: .25rem 0; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--skin-border-strong); border-radius: 10px; padding: .45rem .75rem;
  background: #fbfcfe; font-size: .88rem; color: var(--skin-text);
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--shopee); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 238,77,45), .14); outline: 0; background:#fff;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { color: var(--skin-muted); font-size: .85rem; font-weight: 500; }
.dataTables_wrapper .dataTables_paginate { margin-top: .6rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 9px !important; margin: 0 2px !important; padding: .38rem .72rem !important;
  border: 1px solid var(--skin-border) !important; background: #fff !important; color: var(--skin-text) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--shopee) !important; color: #fff !important; border-color: var(--shopee) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f6f8fb !important; color: var(--skin-heading) !important; border-color: var(--skin-border-strong) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }
/* thân bảng gọn, canh giữa dọc, header rõ */
table.dataTable { border-collapse: separate !important; border-spacing: 0; width: 100% !important; }
table.dataTable thead th { border-bottom: 2px solid var(--skin-border-strong) !important; white-space: nowrap; }
table.dataTable tbody td { padding: .72rem .75rem; vertical-align: middle; border-color: var(--skin-border) !important; }
table.dataTable tbody tr:hover > * { background-color: #f6f8fb; }
/* bọc bảng trong khung mềm khi ở trong card/table-responsive */
.table-responsive { border: 1px solid var(--skin-border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > .table, .table-responsive > table { margin-bottom: 0; }

/* ############################################################################
   [SHELL FLOATING v2] (2026-09-02) — 3 vung noi tren nen aurora nhat.
   Topbar + sidebar = CARD TRANG NOI tach mep man hinh, main cach gap 24px.
   Mau accent GIU var(--shopee) theo tung site (white-label an toan).
   Chi override khoi app-shell phia tren. ROLLBACK = xoa tu day den cuoi file.
   ############################################################################ */
:root { --shell-pad: 24px; --shell-top: 12px; --shell-gap: 24px; --shell-radius: 20px; }

/* Nen aurora nhat + 2 khoi blur tron (1 theo brand site, 1 vang am) */
body { background: linear-gradient(160deg, #f1f6fb 0%, #f6f8fb 45%, #faf8f2 100%) fixed; }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%;
  pointer-events: none; filter: blur(90px);
}
body::before { width: 520px; height: 520px; top: -150px; left: -130px; background: color-mix(in srgb, var(--shopee) 12%, transparent); }
body::after  { width: 460px; height: 460px; top: 70px; right: -150px; background: rgba(251,191,36,.10); }
.app-shell { background: transparent; }

/* Topbar -> card noi bo goc, tach mep tren mot chut */
.app-topbar {
  top: var(--shell-top); left: var(--shell-pad); right: var(--shell-pad);
  background: #fff; border: 1px solid var(--skin-border);
  border-radius: 16px; box-shadow: var(--skin-shadow-sm);
  padding: 0 1rem;
}

/* Sidebar -> card trang noi: rounded lon, shadow mem, tach topbar + mep trai/duoi */
.app-sidebar {
  inset: calc(var(--shell-top) + var(--tb-h) + var(--shell-gap)) auto var(--shell-gap) var(--shell-pad);
  border: 1px solid var(--skin-border);
  border-radius: var(--shell-radius);
  box-shadow: var(--skin-shadow-sm);
}
.app-sidebar__nav { padding: .65rem .5rem 1rem; }

/* Section header: IN HOA nho, xam, letter-spacing rong + duong ke manh ben canh */
.app-sidebar__cat { display: flex; align-items: center; gap: .55rem; letter-spacing: .12em; }
.app-sidebar__cat::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--skin-border-strong), transparent); }

/* Nav item thoang hon + active kieu PILL gradient bao tron dong, chu trang */
.app-sidebar__link { padding: .65rem .85rem; }
.app-sidebar__link.active {
  background: linear-gradient(135deg, var(--shopee), var(--shopee-dark));
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(var(--bs-primary-rgb, 238,77,45), .40);
}

/* Main: cach sidebar dung 1 gap 24px, canh top thang hang voi sidebar */
.app-main {
  margin-left: calc(var(--shell-pad) + var(--sb-w) + var(--shell-gap));
  padding-top: calc(var(--shell-top) + var(--tb-h) + var(--shell-gap));
}
.app-content { padding: 0 var(--shell-pad) 1.5rem 0; }

/* Card noi dung bo goc lon hon cho hop tone floating */
.card { border-radius: 16px !important; }

/* Mobile <992px: topbar noi nhe sat mep hon, drawer full-height bo goc phai, main full */
@media (max-width: 991.98px) {
  .app-topbar { top: 8px; left: 10px; right: 10px; }
  .app-sidebar {
    inset: 0 auto 0 0; width: min(84vw, 300px);
    border: 0; border-radius: 0 var(--shell-radius) var(--shell-radius) 0;
    padding-top: .5rem;
    z-index: 1050; /* drawer noi TREN topbar (1045) o mobile */
  }
  .app-sidebar__overlay { z-index: 1046; } /* overlay phu ca topbar */
  .app-main { margin-left: 0; padding-top: calc(8px + var(--tb-h) + 16px); }
  .app-content { padding: 0 10px 78px; }
}

/* ############################################################################
   [SHELL FLOATING v2.2] (2026-09-02) — DONG NHAT DATAGRID + va audit toan khu user.
   Mot kieu bang/filter/phan trang DUY NHAT cho moi trang: de len .oh-table,
   .tt-accounts, table-striped/bordered, style inline cua header.blade, main.css.
   ############################################################################ */

/* ---- 0) Alpine x-cloak toan cuc (truoc day thieu -> nhay noi dung/FOUC) ---- */
[x-cloak] { display: none !important; }

/* ---- 1) BANG THONG NHAT (scope .app-content, !important thang moi skin rieng) ---- */
.app-content table thead tr th {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  padding: .7rem .85rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--skin-border-strong) !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
.app-content table thead tr th:first-child { border-top-left-radius: 10px; }
.app-content table thead tr th:last-child { border-top-right-radius: 10px; }
.app-content table tbody tr td {
  padding: .68rem .85rem !important;
  font-size: .875rem;
  border: 0 !important;
  border-bottom: 1px solid var(--skin-border) !important;
  vertical-align: middle !important;
  background-color: transparent;
}
.app-content table tbody tr:last-child td { border-bottom: 0 !important; }
.app-content table tbody tr:hover td { background-color: #f6f8fb !important; }
/* tat soc van (striped) + mau nen cell cua Bootstrap 5 (dung box-shadow inset) */
.app-content .table > :not(caption) > * > * { box-shadow: none !important; }
/* khung boc bang dong nhat */
.app-content .table-responsive {
  border: 1px solid var(--skin-border) !important;
  border-radius: 12px !important;
  overflow-x: auto;
  background: #fff;
}
/* badge trong bang cung co */
.app-content table .badge, .app-content table .oh-status {
  font-size: .7rem !important; font-weight: 700; padding: .34em .72em !important; border-radius: 999px !important;
}
/* empty-state DataTables */
.app-content td.dataTables_empty {
  text-align: center !important; padding: 44px 16px !important; color: #94a3b8 !important; font-size: .9rem !important;
}

/* ---- 2) FILTER + INFO THONG NHAT ---- */
.app-content .dataTables_wrapper .dataTables_info,
.app-content .page-info {
  color: var(--skin-muted) !important; font-size: .82rem !important; font-weight: 500 !important; padding-top: .8rem;
}
.app-content input#filter-search-table,
.app-content input#filter-search,
.app-content .oh-search input,
.app-content select#filter-limit,
.app-content .filter-show select,
.app-content .filter-search input {
  height: 38px !important; border: 1px solid var(--skin-border-strong) !important;
  border-radius: 10px !important; background: #fbfcfe !important; font-size: .86rem !important;
  padding: 0 .8rem !important; width: auto; min-width: 170px; outline: 0;
}
/* Ô tìm kiếm có icon kính lúp: phải thắng cả rule ID input#filter-search-table ở trên
   (trước đây bị đè -> chữ đè lên icon + ô bị bóp hẹp cụt placeholder) */
.app-content .oh-search input,
.app-content .oh-search input#filter-search-table {
  padding-left: 34px !important;
  min-width: 240px;
}
.app-content input#filter-search-table:focus,
.app-content input#filter-search:focus,
.app-content .oh-search input:focus,
.app-content .filter-search input:focus {
  border-color: var(--shopee) !important; background: #fff !important;
  box-shadow: 0 0 0 .18rem rgba(var(--bs-primary-rgb, 238,77,45), .12) !important;
}
.app-content .bottom-paginate { padding-top: 14px; }

/* ---- 3) Tat not animation trang tri VO HAN con sot (audit toan khu) ---- */
.backtop,
.inv-qr-scan i,
.inv-status--wait,
.acc-verify-alert,
.bx-status::before,
.bx-qr-badge::before,
.floating-coin,
.tkp-saving::before, .tkp-saving::after,
.buy-coins-section .tkp-saving b, .buy-coins-section .tkp-saving i { animation: none !important; }

/* ---- 4) z-index: widget noi khong duoc de topbar/drawer/modal/Swal ---- */
.integration-fixed { z-index: 1030 !important; }
.search-results { z-index: 1035 !important; }
.daterangepicker { z-index: 1035 !important; }
@media (max-width: 991.98px) {
  .integration-fixed { bottom: 92px !important; right: 14px !important; } /* khong de bottom-nav */
}

/* ---- 5) Chan page-level override pha shell (order-create tung doi .card hover + btn xanh) ---- */
.card, .card:hover { transform: none !important; }
.btn-primary {
  background-image: none !important;
  background-color: var(--shopee) !important;
  border-color: var(--shopee) !important;
}
.btn-primary:hover, .btn-primary:active {
  background-color: var(--shopee-dark) !important; border-color: var(--shopee-dark) !important;
}

/* ---- 6) Select ngon ngu/tien te topbar (niceSelect thay the select goc nen phai style .nice-select) ---- */
.app-topbar .nice-select {
  height: 38px; line-height: 36px; border: 1px solid var(--skin-border-strong);
  border-radius: 10px; background: #fff; font-size: .84rem; padding-left: .8rem; float: none;
}
.app-topbar .nice-select:after { border-color: #94a3b8; }
.app-topbar .nice-select .list { border-radius: 12px; box-shadow: var(--skin-shadow); border: 1px solid var(--skin-border); }
.app-topbar .nice-select .option.selected, .app-topbar .nice-select .option:hover { background: #f6f8fb; color: var(--skin-heading); }

/* ############################################################################
   [SHELL FLOATING v2.1] (2026-09-02) — vá loạt lỗi user báo sau v2:
   nền bị page override, icon rung lắc, pagination phình, footer lệch.
   ############################################################################ */

/* 1) NỀN THỐNG NHẤT: html body (0,0,2) + !important thắng mọi <style> body !important
      của từng trang (vd buy-coins tự vẽ radial tím nhạt -> dải lavender loang lổ).
      Tint đậm hơn v2 để card trắng "nổi" rõ. */
html body {
  background: linear-gradient(160deg, #e2ebf6 0%, #ecf1f7 45%, #f3ecdf 100%) fixed !important;
}

/* Topbar nền đặc (bỏ backdrop-filter cũ cho gọn compositing) */
.app-topbar { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 2) TẮT ANIMATION TRANG TRÍ VÔ HẠN (icon rung lắc liên tục):
      - trang buy-coins: icon quà lắc lư + số tiền đập + vệt shine
      - nút chuông/Zalo: float-bob nhún vô hạn */
.buy-coins-section .tkp-saving i,
.buy-coins-section .tkp-saving b,
.buy-coins-section .tkp-saving::before,
.buy-coins-section .tkp-saving::after { animation: none !important; }
.zalo-button, .notifcation-button { animation: none !important; }

/* 3) PAGINATION GỌN LẠI (DataTables BS5 + Bootstrap thường):
      - bỏ "ô vuông trắng" trên li.paginate_button (skin cũ vẽ border/padding lên li)
      - bỏ hình tròn 40px của main.css -> chip bo 12px, active = brand */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 0 !important; padding: 0 !important; background: transparent !important;
  margin: 0 !important; box-shadow: none !important;
}
.pagination { gap: 6px; }
.pagination .page-item { margin-left: 0; }
.pagination .page-link,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
  width: auto; min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--skin-border-strong);
  background: #fff; color: var(--skin-text); font-size: .9rem; line-height: 1;
}
.pagination .page-link:hover { background: #eef2f7; color: var(--skin-heading); }
.pagination .page-item.active .page-link,
.pagination .paginate_button.active .page-link {
  background: var(--shopee) !important; border-color: var(--shopee) !important; color: #fff !important;
}
.pagination .page-item.disabled .page-link { opacity: .45; }

/* 4) FOOTER: thành card tối bo góc khớp shell (thay dải centered lệch),
      margin-top auto để dính đáy khi trang ngắn */
.footer-part {
  margin: auto var(--shell-pad) var(--shell-pad) 0;
  border-radius: 16px; overflow: hidden;
}
.footer-part .container,
.footer-part .container-lg, .footer-part .container-xl { max-width: 100%; width: 100%; }
@media (max-width: 991.98px) {
  .footer-part { margin: auto 10px 86px; } /* chừa chỗ bottom-nav */
}
