/* Minification failed. Returning unminified contents.
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(9,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(10,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(11,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(12,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(15,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(16,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(17,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(18,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(25,22): run-time error CSS1039: Token not allowed after unary operator: '-rb-bg'
(26,17): run-time error CSS1039: Token not allowed after unary operator: '-rb-text'
(37,17): run-time error CSS1039: Token not allowed after unary operator: '-rb-sidebar-w'
(38,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-sidebar-a'
(38,67): run-time error CSS1039: Token not allowed after unary operator: '-rb-sidebar-b'
(53,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(53,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(73,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(73,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(79,39): run-time error CSS1039: Token not allowed after unary operator: '-rb-sidebar-w'
(83,52): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(89,75): run-time error CSS1039: Token not allowed after unary operator: '-rb-text'
(94,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(94,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(99,35): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(100,90): run-time error CSS1039: Token not allowed after unary operator: '-rb-text'
(103,26): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(104,47): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(109,22): run-time error CSS1039: Token not allowed after unary operator: '-rb-card'
(109,56): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(110,25): run-time error CSS1039: Token not allowed after unary operator: '-rb-radius'
(110,70): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(117,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(118,25): run-time error CSS1039: Token not allowed after unary operator: '-rb-radius'
(118,75): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(128,33): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(150,55): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(153,45): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(155,96): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(164,99): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(165,96): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(167,28): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(170,105): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(172,91): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(176,30): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(179,31): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(180,25): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(184,33): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(184,71): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(188,62): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(193,98): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(198,41): run-time error CSS1039: Token not allowed after unary operator: '-rb-radius'
(207,57): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(207,90): run-time error CSS1039: Token not allowed after unary operator: '-rb-radius'
(207,138): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(222,31): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(237,30): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(242,99): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(245,41): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(313,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(313,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(318,50): run-time error CSS1039: Token not allowed after unary operator: '-rb-soft'
(346,10): run-time error CSS1039: Token not allowed after unary operator: '-rb-bg'
(370,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(370,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(375,59): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(376,47): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(376,85): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(386,62): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(395,79): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(395,98): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(406,64): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(416,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(417,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(418,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(419,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(428,10): run-time error CSS1039: Token not allowed after unary operator: '-rb-bg'
(454,43): run-time error CSS1039: Token not allowed after unary operator: '-rb-ring'
(456,30): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(459,85): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-md'
(460,35): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-lg'
(466,45): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(466,64): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-2'
(490,31): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-md'
(496,55): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(496,85): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-sm'
(500,60): run-time error CSS1039: Token not allowed after unary operator: '-rb-ring'
(511,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(512,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(513,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(514,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(515,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(516,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(517,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(518,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(519,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(521,25): run-time error CSS1039: Token not allowed after unary operator: '-rb-bg'
(521,46): run-time error CSS1039: Token not allowed after unary operator: '-rb-text'
(524,29): run-time error CSS1039: Token not allowed after unary operator: '-rb-bg'
(559,35): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(562,63): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary'
(562,94): run-time error CSS1039: Token not allowed after unary operator: '-rb-ring'
(563,31): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(568,52): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(568,82): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-md'
(569,35): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-md'
(571,54): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(571,84): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-md'
(572,54): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow-lg'
(583,56): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(593,22): run-time error CSS1039: Token not allowed after unary operator: '-rb-primary-dark'
(597,55): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(599,45): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(604,33): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(604,63): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(607,37): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(714,86): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(715,65): run-time error CSS1039: Token not allowed after unary operator: '-rb-text'
(736,32): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
(737,63): run-time error CSS1039: Token not allowed after unary operator: '-rb-shadow'
(759,141): run-time error CSS1039: Token not allowed after unary operator: '-rb-border'
 */
/* ============================================================
   RentalBike - Giao diện quản trị (v2, hiện đại & responsive)
   ============================================================ */
:root {
    --rb-primary: #6366f1;
    --rb-primary-2: #8b5cf6;
    --rb-primary-dark: #4f46e5;
    --rb-sidebar-a: #111827;
    --rb-sidebar-b: #1f2937;
    --rb-muted: #9ca3af;
    --rb-bg: #f3f4f6;
    --rb-card: #ffffff;
    --rb-border: #e5e7eb;
    --rb-text: #111827;
    --rb-soft: #6b7280;
    --rb-sidebar-w: 262px;
    --rb-radius: 16px;
    --rb-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--rb-bg);
    color: var(--rb-text);
    font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ---------- Layout ---------- */
.rb-wrap { display: flex; min-height: 100vh; }

.rb-sidebar {
    width: var(--rb-sidebar-w);
    background: linear-gradient(185deg, var(--rb-sidebar-a), var(--rb-sidebar-b));
    color: #e5e7eb;
    position: fixed; inset: 0 auto 0 0;
    display: flex; flex-direction: column;
    transition: transform .25s ease;
    z-index: 1040;
    box-shadow: 4px 0 24px rgba(0,0,0,.08);
}
.rb-brand {
    padding: 20px 22px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.rb-brand-logo {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2));
    color: #fff; font-size: 22px; box-shadow: 0 6px 16px rgba(99,102,241,.45);
}
.rb-brand-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.rb-brand-text b { color: #a5b4fc; font-weight: 800; }

.rb-nav { padding: 10px 12px 20px; overflow-y: auto; flex: 1; }
.rb-nav .nav-title {
    color: #6b7280; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; padding: 16px 12px 6px;
}
.rb-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 2px 0; color: #cbd5e1;
    font-weight: 500; border-radius: 10px; transition: all .15s;
}
.rb-nav a i { width: 22px; text-align: center; font-size: 17px; color: #9ca3af; }
.rb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rb-nav a:hover i { color: #c7d2fe; }
.rb-nav a.active {
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2));
    color: #fff; box-shadow: 0 8px 18px rgba(99,102,241,.4);
}
.rb-nav a.active i { color: #fff; }
.rb-side-foot { padding: 14px 22px; color: #6b7280; font-size: 12px; border-top: 1px solid rgba(255,255,255,.06); }

.rb-main { flex: 1; margin-left: var(--rb-sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.rb-topbar {
    background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
    height: 64px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px; border-bottom: 1px solid var(--rb-border);
    position: sticky; top: 0; z-index: 1030;
}
.rb-topbar .page-title { font-size: 18px; font-weight: 700; }
.rb-content { padding: 24px; }

.rb-user-btn { display: flex; align-items: center; gap: 10px; color: var(--rb-text); padding: 6px; border-radius: 12px; }
.rb-user-btn:hover { background: #f3f4f6; }
.rb-user-btn.dropdown-toggle::after { display: none; }
.rb-avatar {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.rb-user-meta { flex-direction: column; line-height: 1.15; }
.rb-user-meta b { font-size: 13px; }
.rb-user-meta small { color: var(--rb-soft); font-size: 11px; }
.rb-burger { display: none; font-size: 22px; background: none; border: none; color: var(--rb-text); }

.rb-lang { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.rb-lang a { color: var(--rb-soft); padding: 3px 7px; border-radius: 8px; }
.rb-lang a.on { color: #fff; background: var(--rb-primary-dark); }
.rb-lang span { color: #d1d5db; }

/* ---------- Cards ---------- */
.rb-card {
    background: var(--rb-card); border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius); padding: 20px; box-shadow: var(--rb-shadow);
}
.rb-card + .rb-card { margin-top: 18px; }
.rb-card h5, .rb-card h6 { font-weight: 700; }

.stat-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius); padding: 18px 20px; box-shadow: var(--rb-shadow);
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,24,40,.1); }
.stat-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; flex-shrink: 0;
}
.stat-card .value { font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.stat-card .label { color: var(--rb-soft); font-size: 13px; }
.bg-indigo { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.bg-green  { background: linear-gradient(135deg,#10b981,#059669); }
.bg-amber  { background: linear-gradient(135deg,#f59e0b,#d97706); }
.bg-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.bg-rose   { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.bg-cyan   { background: linear-gradient(135deg,#06b6d4,#0891b2); }

/* Thẻ thống kê nền màu nhạt (giống mockup) */
.stat-card.tint { border: none; }
.stat-card.t-indigo { background: #eef2ff; }
.stat-card.t-green  { background: #ecfdf5; }
.stat-card.t-blue   { background: #eff6ff; }
.stat-card.t-amber  { background: #fffbeb; }
.stat-card.t-rose   { background: #fef2f2; }
.stat-card .trend { font-size: 12px; font-weight: 600; margin-top: 2px; }
.trend.up { color: #16a34a; } .trend.down { color: #dc2626; } .trend.flat { color: #9ca3af; }

/* Topbar: ô tìm kiếm + chuông */
.rb-search { position: relative; flex: 1; max-width: 440px; }
.rb-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.rb-search input {
    width: 100%; height: 42px; border: 1px solid var(--rb-border); border-radius: 12px;
    padding: 0 14px 0 40px; background: #f9fafb; font-size: 14px; outline: none;
}
.rb-search input:focus { border-color: var(--rb-primary); background: #fff; }
.rb-bell {
    position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rb-border);
    background: #fff; display: flex; align-items: center; justify-content: center; color: #4b5563; font-size: 18px;
}
.rb-bell .dot {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.date-pill {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rb-border);
    border-radius: 12px; padding: 8px 14px; font-weight: 600; color: #374151; box-shadow: var(--rb-shadow);
}
.date-pill i { color: var(--rb-primary-dark); }

/* Panel giao dịch gần đây */
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rb-border); }
.tx-row:last-child { border-bottom: none; }
.tx-ic { width: 42px; height: 42px; border-radius: 12px; background: #eef2ff; color: var(--rb-primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.tx-main { flex: 1; min-width: 0; }
.tx-main .code { font-weight: 700; }
.tx-main .name { color: var(--rb-soft); font-size: 12.5px; }
.tx-right { text-align: right; white-space: nowrap; }
.tx-right .amt { font-weight: 700; }
.tx-right .date { color: var(--rb-soft); font-size: 12px; }
.subtitle { color: var(--rb-soft); font-size: 13.5px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--rb-primary-dark); border-color: var(--rb-primary-dark); }
.btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.btn-sm { border-radius: 8px; }
.form-control, .form-select { border-radius: 10px; border-color: #d1d5db; }
.form-control:focus, .form-select:focus { border-color: var(--rb-primary); box-shadow: 0 0 0 .2rem rgba(99,102,241,.15); }
.form-label { font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 4px; }

/* ---------- Tables ---------- */
.rb-table { width: 100%; border-collapse: collapse; }
.rb-table th, .rb-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rb-border); }
.rb-table th { background: #f9fafb; font-weight: 700; color: #4b5563; font-size: 12.5px; white-space: nowrap; }
.rb-table tbody tr { transition: background .12s; }
.rb-table tbody tr:hover, .rb-table tr:hover { background: #f9fafb; }
.rb-table .text-end { text-align: right; }
.table-responsive { border-radius: var(--rb-radius); }

/* ---------- Badge ---------- */
.rb-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#eef2ff; color:#4338ca; }

/* ============================================================
   SƠ ĐỒ LỊCH THUÊ (room plan)
   ============================================================ */
.plan-scroll { overflow-x: auto; border: 1px solid var(--rb-border); border-radius: var(--rb-radius); background: #fff; box-shadow: var(--rb-shadow); }
.plan-grid { border-collapse: collapse; table-layout: fixed; }
.plan-grid th, .plan-grid td { border: 1px solid #eef2f7; }
.plan-grid thead th {
    background: #f9fafb; font-size: 12px; font-weight: 700; color: #4b5563;
    padding: 6px 4px; text-align: center; position: sticky; top: 0; z-index: 2;
    width: 46px; min-width: 46px;
}
.plan-grid tbody td { width: 46px; }
.plan-grid thead th.weekend { background: #fef2f2; color: #b91c1c; }
.plan-veh {
    position: sticky; left: 0; z-index: 3; background: #fff;
    min-width: 190px; max-width: 190px; padding: 8px 12px; text-align: left;
}
.plan-veh .code { font-weight: 700; }
.plan-veh .name { color: var(--rb-soft); font-size: 12px; }
.plan-grid tbody td { height: 46px; position: relative; padding: 0; }
.plan-grid tbody td.weekend { background: #fff7f7; }
.plan-bar {
    position: absolute; top: 6px; bottom: 6px; left: 3px; right: 3px;
    border-radius: 8px; color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    display: flex; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); text-decoration: none;
}
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 13px; }
.legend span.dot { display: inline-block; width: 14px; height: 14px; border-radius: 5px; margin-right: 6px; vertical-align: -2px; }

/* ---------- Phân quyền (checkbox grid) ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 12px; }
.perm-item {
    border: 1.5px solid var(--rb-border); border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .15s; background:#fff;
}
.perm-item:hover { border-color: #c7d2fe; }
.perm-item input { width: 18px; height: 18px; }
.perm-item .ic { width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; color: var(--rb-primary-dark);
    display:flex; align-items:center; justify-content:center; font-size:18px; }
.perm-item .tt { font-weight: 600; font-size: 13.5px; }
.perm-item.checked { border-color: var(--rb-primary); background: #f5f3ff; }
.perm-selectall { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.perm-selectall input { width: 17px; height: 17px; }

/* ---------- Login: một cảnh gradient liền mạch ---------- */
.login-scene {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; align-items: center;
    background:
        radial-gradient(1100px 700px at 8% 0%, #4f46e5 0%, transparent 45%),
        radial-gradient(1000px 800px at 100% 100%, #7c3aed 0%, transparent 45%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
}
.ls-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ls-glow.a { width: 460px; height: 460px; background: rgba(124,58,237,.55); top: -160px; right: 12%; }
.ls-glow.b { width: 420px; height: 420px; background: rgba(37,99,235,.45); bottom: -180px; left: -60px; }
.ls-glow.c { width: 320px; height: 320px; background: rgba(16,185,129,.28); top: 40%; left: 34%; }
.ls-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 40% 50%, #000 0%, transparent 75%);
            mask-image: radial-gradient(circle at 40% 50%, #000 0%, transparent 75%);
}

.ls-lang { position: absolute; top: 26px; right: 30px; z-index: 5; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.ls-lang a { color: rgba(255,255,255,.65); padding: 4px 10px; border-radius: 9px; }
.ls-lang a.on { color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.ls-lang span { color: rgba(255,255,255,.35); }

.ls-content {
    position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto;
    padding: 40px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 2vw;
}
.ls-left { color: #fff; flex: 0 1 450px; }
.ls-mid { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.ls-mid img { width: 100%; max-width: 480px; filter: drop-shadow(0 30px 55px rgba(0,0,0,.55)); }
.ls-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.ls-logo {
    width: 54px; height: 54px; border-radius: 16px; font-size: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 12px 26px rgba(99,102,241,.5);
}
.ls-name { font-size: 27px; font-weight: 800; line-height: 1; }
.ls-name b { color: #a5b4fc; }
.ls-tag { font-size: 12.5px; color: #c7d2fe; margin-top: 3px; }
.ls-h1 { font-size: 44px; font-weight: 800; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.5px; }
.ls-h1 .hl { background: linear-gradient(90deg,#34d399,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-sub { font-size: 15.5px; color: #dbeafe; max-width: 430px; margin-bottom: 32px; line-height: 1.6; }
.ls-feats { display: flex; flex-direction: column; gap: 16px; }
.ls-feat { display: flex; align-items: center; gap: 14px; }
.ls-feat .fic {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
}
.ls-feat b { display: block; font-size: 15px; }
.ls-feat span { color: #c7d2fe; font-size: 13px; }

.ls-card {
    position: relative; z-index: 3; flex: 0 0 auto;
    background: rgba(255,255,255,.98); border-radius: 24px; padding: 40px 38px;
    width: 100%; max-width: 400px;
    box-shadow: 0 40px 80px rgba(10,6,40,.5), 0 0 0 1px rgba(255,255,255,.5) inset;
}
.ls-card .logo {
    width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
    box-shadow: 0 14px 28px rgba(99,102,241,.5);
}
.ls-card h1 { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.ls-card p.sub { text-align: center; color: var(--rb-soft); margin: 0 0 26px; font-size: 13.5px; }
.ls-card .form-label { font-size: 13px; }
.ls-card .input-group-text { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }
.ls-card .form-control { border-color: #e5e7eb; padding-top: .6rem; padding-bottom: .6rem; }
.ls-card .btn-primary { padding-top: .7rem; padding-bottom: .7rem; font-size: 15px; }

@media (max-width: 1150px) { .ls-mid { display: none; } }
@media (max-width: 860px) {
    .ls-left { display: none; }
    .ls-content { justify-content: center; }
    .ls-card { max-width: 420px; }
}

/* ---------- Utilities ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.money { font-variant-numeric: tabular-nums; }

/* ============================================================
   POLISH v3 — tinh chỉnh cho đẹp & mượt hơn
   ============================================================ */
::selection { background: rgba(99,102,241,.22); }

/* Nền nội dung dịu, có chiều sâu */
.rb-main { background:
    radial-gradient(900px 500px at 100% -5%, rgba(99,102,241,.06), transparent 60%),
    radial-gradient(700px 500px at -5% 105%, rgba(139,92,246,.06), transparent 55%),
    var(--rb-bg);
}

/* Thanh cuộn mảnh, hiện đại */
*::-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; }
.rb-sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); background-clip: content-box; }

/* Nội dung xuất hiện mềm mại */
.rb-content { animation: rbFadeUp .35s ease both; }
@keyframes rbFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tiêu đề trang có gạch nhấn gradient */
.page-head > div > h4, .page-head > div > h5 { position: relative; }
.page-title { position: relative; }

/* Card mượt hơn + viền sáng nhẹ */
.rb-card { transition: box-shadow .18s ease, transform .18s ease; }
.rb-card:hover { box-shadow: 0 6px 22px rgba(16,24,40,.09); }

/* Nút bấm: gradient + nhấc nhẹ khi hover */
.btn { transition: transform .12s ease, box-shadow .15s ease, filter .15s ease; }
.btn-primary {
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-dark));
    border: none; box-shadow: 0 6px 16px rgba(79,70,229,.28);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79,70,229,.36); }
.btn-success { background: linear-gradient(135deg,#10b981,#059669); border: none; }
.btn-outline-primary { border-color: #c7d2fe; color: var(--rb-primary-dark); }
.btn-outline-primary:hover { background: var(--rb-primary-dark); border-color: var(--rb-primary-dark); }
.btn:active { transform: translateY(0); }

/* Ô nhập: bo tròn & focus rõ */
.form-control, .form-select { transition: border-color .15s, box-shadow .15s; }

/* Badge & chip mềm hơn */
.rb-badge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }

/* Alert bo tròn + viền trái màu */
.alert { border-radius: 12px; border: none; box-shadow: var(--rb-shadow); border-left: 4px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-left-color: #10b981; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left-color: #ef4444; }

/* Tiêu đề mục trong card có chấm nhấn */
.rb-card > h5, .rb-card > h6 { display: flex; align-items: center; gap: 8px; }

/* Thanh tiến trình bo tròn */
.progress { border-radius: 999px; background: #eef2f7; }
.progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--rb-primary), var(--rb-primary-2)); }

/* Hàng bảng bấm được cảm giác rõ hơn */
.rb-table tbody tr:hover { background: #f5f7ff; }

/* Sidebar: mục hover trượt nhẹ */
.rb-nav a { transition: background .15s, color .15s, transform .12s, box-shadow .15s; }
.rb-nav a:hover { transform: translateX(2px); }

/* Avatar & bell nhấn nhẹ khi hover */
.rb-bell { transition: transform .12s, box-shadow .15s; cursor: pointer; }
.rb-bell:hover { transform: translateY(-1px); box-shadow: var(--rb-shadow); }

/* Stat card: value gradient chữ tinh tế */
.stat-card .value { color: #0f172a; }

/* ============================================================
   NÂNG CẤP GIAO DIỆN v4 — tinh tế & cao cấp hơn
   (đặt TRƯỚC phần responsive để không phá vỡ tinh chỉnh mobile)
   ============================================================ */
:root {
    --rb-shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --rb-shadow-md: 0 6px 18px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
    --rb-shadow-lg: 0 16px 40px rgba(16,24,40,.12), 0 3px 10px rgba(16,24,40,.06);
    --rb-ring: 0 0 0 4px rgba(99,102,241,.14);
}

body { font-size: 14.5px; color: #0f172a; }

/* Nền nội dung sâu & mịn hơn một chút */
.rb-main { background:
    radial-gradient(1000px 560px at 100% -8%, rgba(99,102,241,.08), transparent 60%),
    radial-gradient(760px 520px at -8% 108%, rgba(139,92,246,.07), transparent 55%),
    var(--rb-bg);
}

/* ---------- Sidebar cao cấp ---------- */
.rb-sidebar { border-right: 1px solid rgba(255,255,255,.05); }
.rb-brand-logo { box-shadow: 0 8px 20px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.28); }
.rb-nav a { position: relative; margin: 3px 0; }
.rb-nav a i {
    width: 30px; height: 30px; border-radius: 9px; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); transition: background .18s, color .18s, transform .12s;
}
.rb-nav a:hover i { background: rgba(255,255,255,.12); transform: scale(1.05); }
.rb-nav a.active {
    background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(139,92,246,.95));
    box-shadow: 0 10px 24px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.16);
}
.rb-nav a.active i { background: rgba(255,255,255,.22); }
.rb-nav a.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: #a5b4fc;
    box-shadow: 0 0 12px rgba(165,180,252,.9);
}

/* ---------- Topbar ---------- */
.rb-topbar { box-shadow: 0 1px 0 rgba(16,24,40,.05); }
.rb-search input:focus { box-shadow: var(--rb-ring); }
.rb-avatar { box-shadow: 0 6px 16px rgba(99,102,241,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.rb-bell:hover { color: var(--rb-primary-dark); border-color: #c7d2fe; }

/* ---------- Thẻ (card) mềm & sang hơn ---------- */
.rb-card, .stat-card { border-radius: 18px; border-color: #eef0f4; box-shadow: var(--rb-shadow-md); }
.rb-card:hover { box-shadow: var(--rb-shadow-lg); }

/* ---------- Stat card: điểm nhấn gradient + số sắc nét ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; opacity: 0;
    background: linear-gradient(90deg, var(--rb-primary), var(--rb-primary-2));
    transition: opacity .2s;
}
.stat-card:hover::after { opacity: .9; }
.stat-icon { box-shadow: 0 8px 18px rgba(99,102,241,.26), inset 0 1px 0 rgba(255,255,255,.3); }
.stat-card .value { font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.stat-card .label { font-weight: 500; color: #64748b; }

/* ---------- Tiêu đề trang ---------- */
.page-head h4, .page-head h5 { letter-spacing: -.3px; font-weight: 800; }

/* ---------- Bảng đẹp hơn ---------- */
.rb-card.p-0 > .table-responsive { border-radius: 18px; overflow: hidden; }
.rb-table thead th {
    background: #f8fafc; border-bottom: 1.5px solid #eef0f4;
    text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px; color: #64748b;
}
.rb-table tbody td { border-bottom: 1px solid #f1f3f7; }
.rb-table tbody tr:last-child td { border-bottom: none; }
.rb-table tbody tr:hover { background: linear-gradient(90deg, #f5f7ff, #faf9ff) !important; }

/* ---------- Badge, chip, date-pill ---------- */
.rb-badge { padding: 5px 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.chip { box-shadow: inset 0 0 0 1px rgba(99,102,241,.12); }
.date-pill { box-shadow: var(--rb-shadow-md); }

/* ---------- Nút ---------- */
.btn { letter-spacing: .2px; }
.btn-primary { box-shadow: 0 8px 18px rgba(79,70,229,.3), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-outline-primary { border-width: 1.5px; }
.btn-light { background: #fff; border: 1px solid var(--rb-border); box-shadow: var(--rb-shadow-sm); }
.btn-light:hover { background: #f8fafc; }

/* ---------- Ô nhập: focus ring dịu ---------- */
.form-control:focus, .form-select:focus { box-shadow: var(--rb-ring); }

/* ---------- Đăng nhập: thẻ nổi khối & rõ nét hơn ---------- */
.ls-card { box-shadow: 0 44px 90px rgba(10,6,40,.55), 0 0 0 1px rgba(255,255,255,.55) inset; }
.ls-card .logo { box-shadow: 0 16px 32px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.3); }

/* ============================================================
   GIAO DIỆN v5 — SÁNG · SẠCH · HIỆN ĐẠI (clean SaaS)
   Sidebar nền trắng, bảng thoáng, thẻ dịu, nhiều khoảng thở.
   ============================================================ */
:root {
    --rb-bg: #f6f7f9;
    --rb-card: #ffffff;
    --rb-border: #ecedf1;
    --rb-text: #191b23;
    --rb-soft: #6b7280;
    --rb-sidebar-w: 252px;
    --rb-shadow: 0 1px 2px rgba(17,24,39,.04), 0 1px 3px rgba(17,24,39,.03);
    --rb-shadow-md: 0 1px 2px rgba(17,24,39,.04), 0 2px 6px rgba(17,24,39,.04);
    --rb-shadow-lg: 0 10px 30px rgba(17,24,39,.09);
}
body { background: var(--rb-bg); color: var(--rb-text); }

/* Nền nội dung phẳng, sạch (bỏ các vệt gradient) */
.rb-main { background: var(--rb-bg); }
.rb-content { padding: 28px 30px; }

/* ---------- SIDEBAR tím indigo / navy đậm (đồng bộ thương hiệu) ---------- */
.rb-sidebar {
    background: linear-gradient(195deg, #1e1b4b 0%, #312e81 55%, #3730a3 100%);
    color: #dbe0ff;
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 4px 0 24px rgba(23,20,70,.2);
}
.rb-brand { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.rb-brand-text { color: #ffffff; }
.rb-brand-text b { color: #a5b4fc; }
.rb-brand-logo {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 8px 20px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.rb-nav { padding: 12px 12px 20px; }
.rb-nav .nav-title { color: #a5b4fc; opacity: .8; padding: 18px 12px 6px; }
.rb-nav a { color: #c7cdf3; font-weight: 500; margin: 2px 0; }
.rb-nav a i { background: transparent; color: #9098d6; width: 22px; height: auto; font-size: 17px; }
.rb-nav a:hover { background: rgba(255,255,255,.08); color: #ffffff; transform: none; box-shadow: none; }
.rb-nav a:hover i { background: transparent; color: #c7d2fe; transform: none; }
.rb-nav a.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff; box-shadow: 0 8px 18px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.rb-nav a.active i { background: transparent; color: #ffffff; }
.rb-nav a.active::before { display: none; }
.rb-side-foot { color: #8b93c8; border-top: 1px solid rgba(255,255,255,.08); }
.rb-sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); background-clip: content-box; }

/* ---------- TOPBAR sạch ---------- */
.rb-topbar {
    background: #ffffff; backdrop-filter: none;
    border-bottom: 1px solid var(--rb-border); box-shadow: none; height: 66px;
}
.rb-search input { background: #f3f4f7; border-color: transparent; height: 40px; }
.rb-search input:focus { background: #fff; border-color: var(--rb-primary); box-shadow: var(--rb-ring); }
.rb-bell { border-color: var(--rb-border); background: #fff; }
.rb-bell:hover { border-color: #c7d2fe; }
.rb-user-btn:hover { background: #f3f4f7; }

/* ---------- THẺ dịu, nhiều khoảng thở ---------- */
.rb-card { border-radius: 16px; border-color: var(--rb-border); box-shadow: var(--rb-shadow-md); padding: 22px; }
.rb-card:hover { box-shadow: var(--rb-shadow-md); transform: none; }
.rb-card + .rb-card { margin-top: 20px; }
.stat-card { border-radius: 16px; border-color: var(--rb-border); box-shadow: var(--rb-shadow-md); padding: 18px 20px; }
.stat-card:hover { transform: none; box-shadow: var(--rb-shadow-lg); }
.stat-card::after { display: none; }
.stat-icon { box-shadow: none; border-radius: 13px; }
.grid-stats { gap: 18px; }
.two-col { gap: 22px; }
.page-head { margin-bottom: 24px; }

/* ---------- BẢNG thoáng & dễ đọc ---------- */
.rb-card.p-0 > .table-responsive { border-radius: 16px; }
.rb-table th, .rb-table td { padding: 14px 18px; }
.rb-table thead th {
    background: #fafbfc; border-bottom: 1px solid var(--rb-border);
    text-transform: none; letter-spacing: .01em; font-size: 12.5px; font-weight: 600; color: #8a90a0;
}
.rb-table tbody td { border-bottom: 1px solid #f2f3f6; font-size: 13.5px; color: #2b2f3a; }
.rb-table tbody tr:last-child td { border-bottom: none; }
.rb-table tbody tr:hover { background: #f8f9ff !important; }

/* ---------- NÚT phẳng, gọn ---------- */
.btn { border-radius: 10px; letter-spacing: 0; }
.btn-primary {
    background: var(--rb-primary-dark); border: none;
    box-shadow: 0 1px 2px rgba(79,70,229,.2);
}
.btn-primary:hover { background: #4338ca; filter: none; transform: none; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.btn-light { background: #fff; border: 1px solid var(--rb-border); box-shadow: none; }
.btn-light:hover { background: #f6f7f9; border-color: #dfe1e7; }
.btn-outline-secondary { border-color: var(--rb-border); color: #4b5563; }
.btn-outline-secondary:hover { background: #f3f4f7; color: #111827; border-color: #dfe1e7; }

/* ---------- CHIP / BADGE mềm ---------- */
.chip { background: #eef2ff; color: #4338ca; box-shadow: none; }
.date-pill { border-color: var(--rb-border); box-shadow: var(--rb-shadow); }

/* ---------- Alert menu (chuông) khớp tông sáng ---------- */
.rb-alert-menu { border-color: var(--rb-border); }

/* ============================================================
   RESPONSIVE / MOBILE — mượt & vừa vặn với điện thoại
   ============================================================ */

/* Cuộn mượt hơn; ảnh/bảng không vượt khung */
html { scroll-behavior: smooth; }
img, canvas { max-width: 100%; height: auto; }
.table-responsive { max-width: 100%; }
a, button, .rb-nav a, .rb-burger, .rb-bell { -webkit-tap-highlight-color: transparent; }

/* Cuộn ngang có quán tính trên iOS + gợi ý cuộn */
.table-responsive, .plan-scroll { -webkit-overflow-scrolling: touch; }

@media (max-width: 992px) {
    .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Sidebar trượt ra/vào */
    .rb-sidebar { transform: translateX(-100%); width: min(84vw, 300px); }
    .rb-sidebar.open { transform: translateX(0); }
    .rb-main { margin-left: 0; }
    .rb-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
    .rb-burger:active { background: #eef2ff; }
    .rb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; display: none; }
    .rb-backdrop.show { display: block; }
    .rb-content { padding: 16px; overflow-x: hidden; }

    /* Topbar gọn lại */
    .rb-topbar { padding: 0 14px; gap: 10px; }
    .rb-topbar .gap-3 { gap: .6rem !important; }

    /* Chống iOS tự phóng to khi focus (font < 16px sẽ bị zoom) */
    .form-control, .form-select, .rb-search input,
    input, select, textarea { font-size: 16px; }
    .form-control-sm, .form-select-sm { font-size: 15px; }

    /* Đầu trang: xếp dọc, form & nút chiếm trọn bề ngang */
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head > form { width: 100%; flex-wrap: wrap; }
    /* Bộ lọc ngày (Lịch, Báo cáo, Công suất) tự co giãn khi hẹp */
    .page-head form > div { flex: 1 1 140px; min-width: 0; }
    .page-head form > div .form-control,
    .page-head form > div .form-select { width: 100%; }
    .page-head form .form-control,
    .page-head form input[name="keyword"] { flex: 1 1 auto; min-width: 0 !important; }
    .page-head form .form-select,
    .page-head form select { width: auto; min-width: 120px; }
    .page-head > .btn,
    .page-head > a.btn { width: 100%; justify-content: center; }
    /* Hàng nút thao tác (trang chi tiết) tự xuống dòng & giãn đều */
    .page-head > .d-flex { flex-wrap: wrap; width: 100%; }
    .page-head > .d-flex > .btn,
    .page-head > .d-flex form { flex: 1 1 auto; }
    .page-head > .d-flex form .btn { width: 100%; }

    /* Bảng: giảm đệm cho gọn, chữ dễ đọc */
    .rb-table th, .rb-table td { padding: 10px 12px; }

    /* Giao dịch gần đây: cho phép xuống dòng đẹp */
    .tx-row { flex-wrap: wrap; }
    .tx-right { margin-left: auto; }
    .tx-row .rb-badge { flex-basis: 100%; margin-top: 2px; }

    /* Đăng nhập: header thương hiệu gọn ở trên + thẻ form, căn giữa */
    .login-scene { align-items: center; min-height: 100dvh; padding: 54px 0 30px; }
    .ls-content { flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 18px; }
    .ls-left { display: block; flex: 0 0 auto; margin: 0; color: #fff; text-align: center; }
    .ls-left .ls-h1, .ls-left .ls-sub, .ls-left .ls-feats { display: none; }
    .ls-brand { justify-content: center; margin: 0; }
    .ls-card { padding: 26px 22px; border-radius: 20px; max-width: 400px; width: 100%; margin: 0; }
    .ls-card .logo, .ls-card > h1, .ls-card > p.sub { display: none; }
    .ls-lang { top: 16px; right: 16px; }
}

/* Điện thoại nhỏ (≤ 576px) */
@media (max-width: 576px) {
    /* Ẩn ô tìm kiếm trên topbar để nhường chỗ, dùng burger + nút thao tác */
    .rb-topbar .rb-search { display: none; }
    .rb-content { padding: 14px 12px; }

    /* Thẻ thống kê chỉ 1 cột, gọn gàng */
    .grid-stats { grid-template-columns: 1fr !important; gap: 12px; }
    .stat-card { padding: 14px 16px; }
    .stat-icon { width: 46px; height: 46px; font-size: 20px; }
    .stat-card .value { font-size: 22px; }

    .rb-card { padding: 16px; border-radius: 14px; }
    .rb-table th, .rb-table td { padding: 9px 10px; font-size: 13px; }
    .page-head h4 { font-size: 20px; }
    .page-head h5 { font-size: 17px; }
    .date-pill { align-self: flex-start; }

    /* Nút bấm đủ lớn để chạm thoải mái */
    .btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
    .btn-sm { min-height: 34px; }

    /* Đăng nhập trên điện thoại nhỏ */
    .ls-card { padding: 26px 18px; }
    .ls-card h1 { font-size: 22px; }
    .ls-card p.sub { font-size: 12.5px; margin-bottom: 20px; }
    .ls-card .logo { width: 54px; height: 54px; font-size: 26px; border-radius: 16px; }
}

/* ---------- Chuông thông báo (dropdown) ---------- */
.rb-alert-menu { width: 330px; max-width: 92vw; padding: 6px; border: 1px solid var(--rb-border); border-radius: 14px; }
.rb-alert-menu .dropdown-header { font-weight: 700; color: var(--rb-text); font-size: 13px; }
.rb-alert-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 8px 10px; white-space: normal; }
.rb-alert-item:hover { background: #f5f7ff; }
.rb-alert-item .rb-alert-main { font-size: 13px; line-height: 1.3; }
.rb-bell .dot { font-size: 10.5px; }

/* ============================================================
   BẢNG -> THẺ DỌC TRÊN ĐIỆN THOẠI (không cuộn ngang)
   Mỗi dòng thành 1 thẻ: "Nhãn cột : Giá trị".
   ============================================================ */
@media (max-width: 640px) {
    /* Không cần khung cuộn ngang nữa cho bảng thường */
    .rb-card.p-0 > .table-responsive,
    .table-responsive { overflow-x: visible; }

    .rb-table { display: block; width: 100%; }
    .rb-table thead { display: none; }
    .rb-table tbody { display: block; width: 100%; }

    .rb-table tbody tr {
        display: block; background: #fff;
        border: 1px solid var(--rb-border); border-radius: 12px;
        margin: 0 0 12px; padding: 4px 14px; box-shadow: var(--rb-shadow);
    }
    .rb-table tbody tr:hover { background: #fff !important; }

    .rb-table tbody td {
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        text-align: right; padding: 9px 0; border: none; border-bottom: 1px solid #f2f3f6;
        white-space: normal; font-size: 13.5px;
    }
    .rb-table tbody tr td:last-child { border-bottom: none; }
    .rb-table tbody td::before {
        content: attr(data-label); font-weight: 600; color: #8a90a0;
        text-align: left; margin-right: auto; white-space: nowrap;
    }
    /* Ô không có nhãn (cột thao tác) hoặc gộp cột */
    .rb-table tbody td[data-label=""] { justify-content: flex-end; }
    .rb-table tbody td[data-label=""]::before,
    .rb-table tbody td[colspan]::before { content: none; }
    .rb-table tbody td[colspan] { justify-content: center; text-align: center; }

    /* Chân bảng (tổng tiền...) mỗi dòng: nhãn — giá trị */
    .rb-table tfoot { display: block; }
    .rb-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 2px; border-top: 1px solid var(--rb-border); }
    .rb-table tfoot th { border: none; padding: 0; }

    /* Sơ đồ lịch thuê là dạng lịch nhiều ngày -> vẫn cuộn ngang trong khung riêng */
    .plan-scroll { overflow-x: auto; }
}

