body { background:#f5f7fb; }
.card { border:0; box-shadow:0 8px 25px rgba(15,23,42,.06); border-radius:16px; }
.table thead th { background:#f8fafc; color:#475569; font-size:13px; }
.badge-money-in { background:#dcfce7; color:#166534; }
.badge-money-out { background:#fee2e2; color:#991b1b; }
.kpi-card { min-height:120px; }
.kpi-label { color:#64748b; font-size:14px; }
.kpi-value { font-size:28px; font-weight:800; }
.code-box { background:#0f172a; color:#e2e8f0; border-radius:12px; padding:14px; overflow:auto; }
.sidebar-note { background:#fff7ed; border-left:4px solid #f97316; padding:12px; border-radius:8px; }
.form-control, .form-select, .btn { border-radius:10px; }
.table-responsive { border-radius:14px; }
.small-muted { color:#64748b; font-size:13px; }

/* v7 - Transaction page UI */
.tx-page .btn { font-weight: 600; }
.tx-filter-chip { display:inline-flex; align-items:center; gap:4px; padding:5px 10px; border-radius:999px; background:#e0f2fe; color:#075985; font-size:12px; font-weight:700; }
.tx-stat-card { display:block; height:100%; background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:16px; box-shadow:0 12px 28px rgba(15,23,42,.06); text-decoration:none; color:#0f172a; transition:.18s ease; }
.tx-stat-card:hover { transform:translateY(-2px); box-shadow:0 16px 34px rgba(15,23,42,.10); }
.tx-stat-label { color:#64748b; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.tx-stat-value { font-size:24px; font-weight:900; line-height:1.15; margin-top:8px; word-break:break-word; }
.tx-stat-sub { color:#94a3b8; font-size:12px; margin-top:6px; }
.tx-stat-in { background:linear-gradient(135deg,#ffffff,#ecfdf5); border-color:#bbf7d0; }
.tx-stat-out { background:linear-gradient(135deg,#ffffff,#fff1f2); border-color:#fecdd3; }
.tx-stat-net-good { background:linear-gradient(135deg,#ffffff,#eff6ff); border-color:#bfdbfe; }
.tx-stat-net-bad { background:linear-gradient(135deg,#ffffff,#fff7ed); border-color:#fed7aa; }
.tx-stat-link { cursor:pointer; }
.tx-filter-card .form-label { font-size:12px; color:#64748b; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.tx-table-card { overflow:hidden; }
.tx-table thead th { position:sticky; top:0; z-index:2; background:#f8fafc; border-bottom:1px solid #e2e8f0; white-space:nowrap; }
.tx-table tbody td { padding:14px 12px; border-color:#edf2f7; }
.tx-row { border-left:5px solid transparent; }
.tx-row-in { border-left-color:#22c55e; }
.tx-row-out { border-left-color:#ef4444; }
.tx-row-muted { opacity:.72; background:#f8fafc; }
.tx-row-suspicious { background:#fff7ed; }
.tx-amount { font-weight:900; font-size:16px; white-space:nowrap; }
.tx-content-cell { min-width:280px; max-width:520px; }
.tx-content-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tx-mini-chip { display:inline-flex; padding:3px 8px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:12px; font-weight:700; }
.tx-mini-chip-note { background:#dbeafe; color:#1d4ed8; }
.tx-badge-soft { border-radius:999px; font-weight:800; }
.tx-badge-real { background:#e0f2fe; color:#0369a1; }
.tx-badge-test { background:#f1f5f9; color:#475569; }
.tx-badge-ignored { background:#fee2e2; color:#991b1b; }
.tx-badge-suspicious { background:#ffedd5; color:#9a3412; }
.tx-badge-ipn { background:#ede9fe; color:#5b21b6; }
.tx-modal .modal-content, .tx-modal { border:0; border-radius:18px; overflow:hidden; }
.tx-modal-header { color:#fff; border:0; }
.tx-modal-in { background:linear-gradient(135deg,#059669,#16a34a); }
.tx-modal-out { background:linear-gradient(135deg,#dc2626,#f97316); }
.tx-modal-amount { font-size:28px; font-weight:900; line-height:1.2; }
.tx-detail-card { border:1px solid #e2e8f0; border-radius:16px; padding:16px; background:#fff; }
.tx-section-title { font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; font-weight:900; margin-bottom:12px; }
.tx-dl dt { color:#64748b; font-weight:800; }
.tx-dl dd { margin-bottom:10px; }
.tx-accordion .accordion-item { border-color:#e2e8f0; border-radius:14px; overflow:hidden; margin-bottom:10px; }
.tx-accordion .accordion-button { font-weight:800; }
.tx-history-list { display:grid; gap:10px; }
.tx-history-item { border:1px solid #e2e8f0; background:#f8fafc; border-radius:14px; padding:12px; }
@media (max-width: 768px) {
  .tx-stat-value { font-size:18px; }
  .tx-table { min-width:980px; }
  .tx-content-cell { min-width:320px; }
}

/* v8 - Daily expenses */
.expense-page .btn { font-weight:600; }
.expense-stat-card { height:100%; background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:16px; box-shadow:0 12px 28px rgba(15,23,42,.06); }
.expense-stat-total { background:linear-gradient(135deg,#ffffff,#fff7ed); border-color:#fed7aa; }
.expense-stat-over { background:linear-gradient(135deg,#ffffff,#fee2e2); border-color:#fecaca; }
.expense-stat-label { color:#64748b; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.expense-stat-value { font-size:24px; font-weight:900; line-height:1.15; margin-top:8px; word-break:break-word; }
.expense-stat-sub { color:#94a3b8; font-size:12px; margin-top:6px; }
.expense-table-card { overflow:hidden; }
.expense-table thead th { position:sticky; top:0; z-index:2; background:#f8fafc; white-space:nowrap; }
.expense-row-muted { opacity:.65; background:#f8fafc; }
.expense-category-pill { --cat-color:#64748b; display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:999px; background:color-mix(in srgb, var(--cat-color) 14%, white); color:#334155; font-weight:800; font-size:12px; }
.expense-category-pill::before { content:''; width:8px; height:8px; border-radius:99px; background:var(--cat-color); display:inline-block; }
.expense-color-dot { width:10px; height:10px; border-radius:99px; display:inline-block; margin-right:7px; vertical-align:middle; }
@media (max-width: 768px) { .expense-table { min-width:920px; } .expense-stat-value { font-size:18px; } }


/* v9 - Quick daily expense input */
.quick-expense-card { background:linear-gradient(135deg,#ffffff,#f0fdf4); border:1px solid #bbf7d0; }
.quick-expense-card .form-label { color:#334155; font-size:13px; font-weight:800; }
.quick-expense-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.quick-expense-chip { --cat-color:#64748b; border:1px solid color-mix(in srgb, var(--cat-color) 40%, #e2e8f0); background:#fff; color:#334155; border-radius:999px; padding:7px 12px; font-weight:800; font-size:13px; box-shadow:0 4px 12px rgba(15,23,42,.05); }
.quick-expense-chip::before { content:''; display:inline-block; width:8px; height:8px; border-radius:99px; background:var(--cat-color); margin-right:6px; vertical-align:1px; }
.quick-expense-chip:hover, .quick-expense-chip.active { background:color-mix(in srgb, var(--cat-color) 14%, white); border-color:var(--cat-color); transform:translateY(-1px); }
@media (max-width:768px) { .quick-expense-card .form-control-lg, .quick-expense-card .form-select-lg, .quick-expense-card .btn-lg { font-size:1rem; padding:.65rem .85rem; } }


/* v10 - Third-party icons + cleaner expense and log UI */
:root { --app-radius: 18px; --app-shadow: 0 16px 42px rgba(15,23,42,.08); }
body { font-family:'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background:linear-gradient(180deg,#f8fafc 0%,#eef4ff 100%); color:#0f172a; }
.navbar.bg-primary { background:linear-gradient(135deg,#0f172a,#1d4ed8) !important; box-shadow:0 10px 30px rgba(15,23,42,.18); }
.brand-icon { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(255,255,255,.16); }
.navbar .nav-link { border-radius:12px; padding:.55rem .75rem; font-weight:700; }
.navbar .nav-link.active, .navbar .nav-link:hover { background:rgba(255,255,255,.14); color:#fff !important; }
.dropdown-menu .dropdown-item { border-radius:12px; font-weight:700; padding:.65rem .8rem; }
.dropdown-menu { padding:.5rem; }
.card { border:1px solid rgba(226,232,240,.9); }

.quick-expense-panel { position:relative; overflow:hidden; border-radius:26px; background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 44%,#16a34a 100%); padding:1px; box-shadow:var(--app-shadow); }
.quick-expense-form { background:linear-gradient(135deg,#ffffff 0%,#f8fafc 60%,#ecfdf5 100%); border-radius:25px; padding:20px; }
.quick-expense-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.quick-expense-eyebrow { display:inline-flex; align-items:center; gap:6px; color:#16a34a; background:#dcfce7; border:1px solid #bbf7d0; padding:5px 10px; border-radius:999px; font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
.quick-expense-title { margin:10px 0 4px; font-size:24px; font-weight:950; letter-spacing:-.03em; }
.quick-expense-sub { color:#64748b; font-size:14px; }
.quick-detail-btn { border-radius:14px; font-weight:900; white-space:nowrap; }
.quick-label { display:block; color:#334155; font-size:13px; font-weight:900; text-transform:uppercase; letter-spacing:.025em; margin-bottom:8px; }
.quick-amount-box { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #e2e8f0; border-radius:22px; padding:10px 14px; min-height:72px; box-shadow:0 12px 30px rgba(15,23,42,.06); transition:.18s ease; }
.quick-amount-box:focus-within { border-color:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.12), 0 12px 30px rgba(15,23,42,.06); }
.quick-amount-icon { width:42px; height:42px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#dcfce7; color:#15803d; font-size:22px; flex:0 0 auto; }
.quick-amount-input { width:100%; border:0; outline:0; background:transparent; font-size:34px; font-weight:950; letter-spacing:-.03em; color:#0f172a; min-width:0; }
.quick-amount-input::placeholder { color:#cbd5e1; }
.quick-currency { color:#64748b; font-weight:900; font-size:20px; }
.quick-money-hints { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.quick-money-hints button { border:1px solid #e2e8f0; background:#fff; color:#475569; border-radius:999px; padding:6px 10px; font-weight:900; font-size:12px; }
.quick-money-hints button:hover { border-color:#22c55e; color:#15803d; background:#f0fdf4; }
.quick-mini-note { color:#64748b; font-size:12px; font-weight:800; }
.quick-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.quick-category-card { --cat-color:#64748b; display:flex; align-items:center; gap:10px; text-align:left; border:1px solid #e2e8f0; background:#fff; border-radius:18px; padding:12px; color:#334155; font-weight:900; min-height:62px; box-shadow:0 10px 26px rgba(15,23,42,.05); transition:.16s ease; }
.quick-category-card:hover, .quick-category-card.active { transform:translateY(-2px); border-color:var(--cat-color); background:color-mix(in srgb, var(--cat-color) 10%, white); box-shadow:0 16px 30px rgba(15,23,42,.09); }
.quick-category-card.active { outline:4px solid color-mix(in srgb, var(--cat-color) 16%, transparent); }
.quick-category-icon { width:38px; height:38px; border-radius:15px; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--cat-color) 18%, white); color:var(--cat-color); font-size:20px; flex:0 0 auto; }
.quick-category-name { line-height:1.15; }
.quick-bottom-bar { display:flex; justify-content:space-between; align-items:end; gap:16px; padding-top:16px; border-top:1px dashed #cbd5e1; }
.quick-payment-group { display:flex; flex-wrap:wrap; gap:8px; }
.quick-payment-chip { border:1px solid #e2e8f0; background:#fff; color:#475569; border-radius:999px; padding:8px 12px; font-weight:900; display:inline-flex; gap:7px; align-items:center; }
.quick-payment-chip.active, .quick-payment-chip:hover { background:#eff6ff; border-color:#2563eb; color:#1d4ed8; }
.quick-save-btn { min-width:190px; min-height:48px; border-radius:16px; font-weight:950; box-shadow:0 12px 28px rgba(22,163,74,.24); }
.expense-modal-header { background:linear-gradient(135deg,#0f172a,#2563eb); }
.expense-table tbody tr:hover { background:#f8fafc; }
.expense-table .btn { font-weight:800; }

.log-page .kpi-value { font-size:26px; }
.log-stat-card { height:100%; display:flex; align-items:center; gap:14px; background:#fff; border:1px solid #e2e8f0; border-radius:20px; padding:16px; box-shadow:0 12px 28px rgba(15,23,42,.06); }
.log-stat-icon { width:46px; height:46px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:22px; flex:0 0 auto; }
.log-card .nav-tabs { background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.log-card .nav-link { border:0; border-radius:999px; color:#475569; font-weight:900; margin-right:6px; }
.log-card .nav-link.active { background:#0f172a; color:#fff; }
.log-card table thead th { text-transform:uppercase; letter-spacing:.03em; font-size:12px; }

@media (max-width: 992px) {
  .quick-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quick-bottom-bar, .quick-expense-head { align-items:stretch; flex-direction:column; }
  .quick-save-btn, .quick-detail-btn { width:100%; }
}
@media (max-width: 576px) {
  .quick-expense-form { padding:14px; }
  .quick-expense-title { font-size:20px; }
  .quick-amount-input { font-size:28px; }
  .quick-category-grid { grid-template-columns:1fr; }
  .quick-payment-chip { flex:1 1 calc(50% - 8px); justify-content:center; }
}


/* v11 - Mobile UI + user menu restriction polish */
:root { --mobile-nav-height: 72px; }
.navbar { box-shadow:0 10px 28px rgba(15,23,42,.12); }
.navbar .brand-icon { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(255,255,255,.18); }
.mobile-bottom-nav { position:fixed; left:12px; right:12px; bottom:10px; z-index:1030; display:flex; justify-content:space-around; gap:6px; padding:8px; background:rgba(255,255,255,.94); border:1px solid rgba(226,232,240,.92); border-radius:24px; box-shadow:0 18px 45px rgba(15,23,42,.18); backdrop-filter:blur(14px); }
.mobile-bottom-link { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:7px 4px; border-radius:18px; color:#64748b; text-decoration:none; font-weight:850; font-size:11px; line-height:1.05; }
.mobile-bottom-link i { font-size:19px; line-height:1; }
.mobile-bottom-link.active, .mobile-bottom-link:hover { background:#0d6efd; color:#fff; }
.dashboard-actions .btn { font-weight:850; }
.user-quick-icon { width:54px; height:54px; border-radius:20px; display:flex; align-items:center; justify-content:center; background:#dcfce7; color:#15803d; font-size:26px; }
.user-expense-list { display:grid; gap:10px; }
.user-expense-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid #e2e8f0; border-radius:16px; background:#f8fafc; }
.expense-mobile-list { display:grid; gap:12px; }
.expense-mobile-card { background:#fff; border:1px solid #e2e8f0; border-radius:20px; padding:14px; box-shadow:0 10px 25px rgba(15,23,42,.06); }
.expense-mobile-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.expense-mobile-title { display:flex; gap:10px; align-items:flex-start; min-width:0; }
.expense-mobile-icon { width:40px; height:40px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--cat-color) 16%, white); color:var(--cat-color); flex:0 0 auto; font-size:20px; }
.expense-mobile-amount { color:#dc2626; font-weight:950; white-space:nowrap; }
.expense-mobile-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.expense-mobile-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:12px; }

@media (max-width: 991.98px) {
  body { background:#f7f9fd; }
  main.container-fluid { padding-left:12px !important; padding-right:12px !important; padding-bottom:calc(var(--mobile-nav-height) + 26px) !important; }
  .navbar .container-fluid { padding-left:12px; padding-right:12px; }
  .navbar-brand span:last-child { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .navbar-collapse { margin-top:10px; padding:10px; background:rgba(15,23,42,.10); border-radius:18px; }
  .navbar-nav .nav-link { padding:10px 12px; border-radius:14px; }
  .navbar-nav .nav-link.active { background:rgba(255,255,255,.18); }
  .kpi-card { min-height:102px; padding:14px !important; }
  .kpi-label { font-size:12px; }
  .kpi-value { font-size:18px; line-height:1.2; word-break:break-word; }
  .card { border-radius:18px; }
  h1.h3 { font-size:22px; }
  .dashboard-actions { width:100%; display:grid !important; grid-template-columns:1fr; }
  .dashboard-actions .btn { width:100%; }
  .expense-page-actions { display:grid !important; grid-template-columns:1fr 1fr; width:100%; }
  .expense-page-actions .btn { width:100%; }
  .expense-page-actions .btn-primary, .expense-page-actions .btn-success { grid-column:span 2; }
  .expense-stat-card { padding:13px; border-radius:18px; }
  .expense-stat-label { font-size:11px; }
  .expense-stat-value { font-size:18px; line-height:1.15; }
  .expense-stat-sub { font-size:11px; }
  .quick-expense-panel { border-radius:24px; }
  .quick-expense-form { padding:14px; }
  .quick-expense-head { gap:10px; }
  .quick-expense-title { font-size:18px; }
  .quick-expense-sub { display:none; }
  .quick-detail-btn { min-height:44px; }
  .quick-amount-box { min-height:62px; border-radius:18px; }
  .quick-amount-input { font-size:30px; }
  .quick-money-hints { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .quick-money-hints button { padding:9px 6px; }
  .quick-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .quick-category-card { min-height:56px; padding:9px; border-radius:17px; gap:8px; }
  .quick-category-icon { width:34px; height:34px; border-radius:14px; font-size:17px; }
  .quick-category-name { font-size:12px; }
  .quick-payment-group { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .quick-payment-chip { width:100%; justify-content:center; padding:9px 8px; font-size:12px; }
  .quick-bottom-bar { gap:12px; }
  .quick-save-btn { width:100%; min-height:50px; border-radius:18px; }
  .form-control, .form-select, .btn { min-height:42px; }
  .modal-dialog { margin:10px; }
  .modal-content { border-radius:20px !important; }
}

@media (max-width: 575.98px) {
  .mobile-bottom-nav { left:8px; right:8px; bottom:8px; border-radius:22px; }
  .mobile-bottom-link { font-size:10.5px; padding:7px 2px; }
  .mobile-bottom-link i { font-size:18px; }
  main.container-fluid { padding-top:14px !important; }
  .row.g-3 { --bs-gutter-x:.65rem; --bs-gutter-y:.65rem; }
  .expense-page .h3, h1.h3 { font-size:20px; }
  .quick-expense-eyebrow { font-size:11px; }
  .quick-label { font-size:11px; }
  .quick-category-card:nth-child(n+7) { display:none; }
  .expense-mobile-card { padding:12px; border-radius:18px; }
  .expense-mobile-amount { font-size:15px; }
  .user-expense-item { padding:10px; border-radius:14px; }
}

/* v12 - Focused mobile expense entry + cleaner admin menu */
.expense-entry-page { min-height:calc(100vh - 150px); display:flex; align-items:flex-start; justify-content:center; }
.expense-entry-shell { width:100%; max-width:720px; margin:0 auto; }
.expense-entry-title .expense-entry-icon { width:58px; height:58px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; border-radius:22px; background:linear-gradient(135deg,#dcfce7,#dbeafe); color:#15803d; font-size:28px; box-shadow:0 12px 26px rgba(15,23,42,.08); }
.expense-entry-title h1 { margin:0; font-size:28px; font-weight:950; letter-spacing:-.035em; }
.expense-entry-title p { margin:6px auto 0; max-width:520px; color:#64748b; font-size:14px; }
.expense-entry-only { border-radius:30px; }
.expense-entry-form { padding:22px; }
.expense-entry-amount { min-height:82px; }
.expense-entry-section { margin-top:18px; }
.expense-entry-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
.expense-entry-payments { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.expense-entry-payments .quick-payment-chip { justify-content:center; }
.expense-entry-submit { width:100%; min-height:58px; margin-top:20px; font-size:17px; border-radius:20px; }
.expense-entry-hints { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.expense-entry-hints button { min-height:38px; }
.nav-user-actions .btn { white-space:nowrap; }

@media (max-width: 991.98px) {
  .mobile-bottom-user { max-width:420px; left:50%; right:auto; width:calc(100% - 16px); transform:translateX(-50%); }
  .mobile-bottom-user .mobile-bottom-link { font-size:12px; padding:9px 4px; }
  .expense-entry-page { min-height:auto; align-items:flex-start; }
  .expense-entry-shell { max-width:560px; }
  .expense-entry-title { margin-top:2px; }
  .expense-entry-title .expense-entry-icon { width:50px; height:50px; border-radius:19px; font-size:24px; margin-bottom:8px; }
  .expense-entry-title h1 { font-size:23px; }
  .expense-entry-title p { display:none; }
  .expense-entry-only { border-radius:24px; }
  .expense-entry-form { padding:14px; }
  .expense-entry-amount { min-height:66px; }
  .expense-entry-hints { gap:7px; }
  .expense-entry-hints button { min-height:38px; }
  .expense-entry-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .expense-entry-categories .quick-category-card { min-height:54px; padding:9px; }
  .expense-entry-payments { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .expense-entry-payments .quick-payment-chip { min-height:42px; font-size:12px; padding:8px 6px; }
  .expense-entry-submit { min-height:54px; margin-top:16px; font-size:16px; }
}

@media (max-width: 575.98px) {
  main.container-fluid { padding-left:10px !important; padding-right:10px !important; }
  .expense-entry-title { margin-bottom:10px !important; }
  .expense-entry-title .expense-entry-icon { width:44px; height:44px; border-radius:17px; font-size:22px; }
  .expense-entry-title h1 { font-size:21px; }
  .expense-entry-form { padding:12px; border-radius:22px; }
  .expense-entry-section { margin-top:14px; }
  .expense-entry-amount { min-height:60px; padding:8px 11px; border-radius:18px; }
  .expense-entry-amount .quick-amount-icon { width:36px; height:36px; border-radius:14px; font-size:19px; }
  .expense-entry-amount .quick-amount-input { font-size:28px; }
  .expense-entry-categories .quick-category-name { font-size:11.5px; }
  .expense-entry-categories .quick-category-icon { width:32px; height:32px; border-radius:13px; font-size:16px; }
  .expense-entry-submit { position:sticky; bottom:calc(var(--mobile-nav-height) + 14px); z-index:10; box-shadow:0 16px 32px rgba(22,163,74,.28); }
}

/* v13 - Mobile clean expense form + Reports menu */
.expense-mobile-clean-page { display:flex; justify-content:center; align-items:flex-start; min-height:calc(100vh - 150px); }
.expense-mobile-card-clean { width:100%; max-width:560px; background:#fff; border:1px solid #e2e8f0; border-radius:28px; padding:22px; box-shadow:0 18px 45px rgba(15,23,42,.08); }
.expense-mobile-head-clean { display:flex; gap:14px; align-items:center; margin-bottom:18px; }
.expense-mobile-logo-clean { width:54px; height:54px; border-radius:20px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#dcfce7,#dbeafe); color:#15803d; font-size:26px; flex:0 0 auto; }
.expense-mobile-head-clean h1 { margin:0; font-size:26px; font-weight:950; letter-spacing:-.035em; }
.expense-mobile-head-clean p { margin:3px 0 0; color:#64748b; font-size:14px; }
.expense-simple-form { display:grid; gap:14px; }
.expense-simple-label { display:block; margin-bottom:7px; font-size:12px; font-weight:900; color:#475569; text-transform:uppercase; letter-spacing:.04em; }
.expense-simple-amount { display:flex; align-items:center; gap:10px; border:2px solid #dbeafe; background:linear-gradient(180deg,#ffffff,#f8fbff); border-radius:22px; padding:10px 14px; min-height:72px; }
.expense-simple-amount:focus-within { border-color:#2563eb; box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.expense-simple-input { border:0; outline:0; background:transparent; flex:1; width:100%; min-width:0; font-size:38px; font-weight:950; color:#0f172a; line-height:1; }
.expense-simple-amount span { font-weight:950; color:#64748b; font-size:19px; }
.expense-simple-hints { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.expense-simple-hints button { border:1px solid #dbeafe; background:#eff6ff; color:#1d4ed8; border-radius:14px; min-height:40px; font-weight:950; }
.expense-simple-hints button:active { transform:scale(.97); }
.expense-simple-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.expense-simple-select { min-height:52px; border-radius:16px; border-color:#e2e8f0; font-weight:800; background-color:#fff; }
.expense-simple-save { min-height:56px; border-radius:18px; font-size:17px; font-weight:950; box-shadow:0 14px 30px rgba(22,163,74,.22); }
.mobile-bottom-nav { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; align-items:center; }
.mobile-bottom-user { max-width:360px; left:50%; right:auto; width:calc(100% - 18px); transform:translateX(-50%); }
.mobile-bottom-admin { max-width:560px; left:50%; right:auto; width:calc(100% - 14px); transform:translateX(-50%); }
.report-date-form .form-control { max-width:170px; }

@media (max-width: 991.98px) {
  .expense-mobile-clean-page { min-height:auto; padding-top:0; }
  .expense-mobile-card-clean { max-width:520px; border-radius:24px; padding:16px; box-shadow:0 12px 30px rgba(15,23,42,.07); }
  .expense-mobile-head-clean { margin-bottom:14px; }
  .expense-mobile-logo-clean { width:48px; height:48px; border-radius:18px; font-size:23px; }
  .expense-mobile-head-clean h1 { font-size:23px; }
  .expense-mobile-head-clean p { display:none; }
  .expense-simple-amount { min-height:64px; border-radius:20px; padding:8px 12px; }
  .expense-simple-input { font-size:32px; }
  .expense-simple-hints { gap:7px; }
  .expense-simple-hints button { min-height:38px; border-radius:13px; font-size:13px; }
  .expense-simple-grid { grid-template-columns:1fr; gap:10px; }
  .expense-simple-select { min-height:48px; border-radius:15px; }
  .expense-simple-save { min-height:54px; border-radius:18px; position:static !important; bottom:auto !important; }
  .report-mobile-head { align-items:flex-start !important; }
  .report-date-form { width:100%; display:grid !important; grid-template-columns:1fr 1fr; }
  .report-date-form .form-control { max-width:none; grid-column:span 2; }
  .report-date-form .btn { width:100%; }
}
@media (max-width: 575.98px) {
  body { overflow-x:hidden; }
  main.container-fluid { padding-left:10px !important; padding-right:10px !important; padding-bottom:calc(var(--mobile-nav-height) + 22px) !important; }
  .expense-mobile-card-clean { border-radius:22px; padding:14px; border-color:#edf2f7; }
  .expense-mobile-head-clean { gap:10px; }
  .expense-mobile-logo-clean { width:42px; height:42px; border-radius:16px; font-size:21px; }
  .expense-mobile-head-clean h1 { font-size:21px; }
  .expense-simple-form { gap:12px; }
  .expense-simple-label { font-size:11px; margin-bottom:6px; }
  .expense-simple-amount { min-height:60px; }
  .expense-simple-input { font-size:30px; }
  .expense-simple-hints { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .expense-simple-hints button { min-height:36px; padding:6px 3px; font-size:12.5px; }
  .expense-simple-save { min-height:52px; font-size:16px; }
  .mobile-bottom-nav { padding:7px; gap:4px; }
  .mobile-bottom-link { padding:7px 2px; border-radius:16px; font-size:10.2px; }
  .mobile-bottom-link i { font-size:17px; }
  .mobile-bottom-admin .mobile-bottom-link span { font-size:9.6px; }
  .report-date-form { grid-template-columns:1fr; }
  .report-date-form .form-control { grid-column:span 1; }
  .table-responsive { border-radius:14px; }
}


/* v14 - Mobile category icons for quick expense entry */
.expense-mobile-category-block { margin-top:2px; }
.expense-category-selected { display:inline-flex; align-items:center; max-width:46%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:4px 8px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:11px; font-weight:950; text-transform:none; letter-spacing:0; }
.expense-category-icon-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.expense-category-icon-btn { --cat-color:#64748b; border:1px solid #e2e8f0; background:linear-gradient(180deg,#fff,#f8fafc); border-radius:18px; min-height:74px; padding:10px 7px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#334155; font-weight:950; line-height:1.05; box-shadow:0 8px 20px rgba(15,23,42,.045); transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease; }
.expense-category-icon-btn:active { transform:scale(.98); }
.expense-category-icon-btn.active { border-color:var(--cat-color); background:color-mix(in srgb, var(--cat-color) 12%, white); box-shadow:0 12px 24px color-mix(in srgb, var(--cat-color) 18%, transparent); }
.expense-category-icon-circle { width:36px; height:36px; border-radius:15px; display:flex; align-items:center; justify-content:center; color:var(--cat-color); background:color-mix(in srgb, var(--cat-color) 16%, white); font-size:18px; flex:0 0 auto; }
.expense-category-icon-btn.active .expense-category-icon-circle { background:var(--cat-color); color:#fff; }
.expense-category-icon-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:24px; max-width:100%; font-size:12px; }

@media (max-width: 991.98px) {
  .expense-category-icon-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .expense-category-icon-btn { min-height:68px; border-radius:16px; padding:8px 5px; }
  .expense-category-icon-circle { width:32px; height:32px; border-radius:13px; font-size:16px; }
  .expense-category-icon-name { font-size:11.5px; min-height:22px; }
}
@media (max-width: 575.98px) {
  .expense-category-icon-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .expense-category-icon-btn { min-height:64px; border-radius:15px; padding:7px 4px; }
  .expense-category-icon-circle { width:30px; height:30px; border-radius:12px; font-size:15px; }
  .expense-category-icon-name { font-size:10.8px; }
  .expense-category-selected { max-width:42%; }
}

/* v15 - Compact mobile expense UI inspired by slim form layout */
.expense-compact-card-v15 {
  max-width: 500px;
  border-radius: 20px;
  padding: 16px;
  border-color: #dbeafe;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}
.expense-compact-head-v15 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.expense-compact-head-v15 .expense-mobile-logo-clean {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 20px;
}
.expense-compact-head-v15 h1 {
  font-size: 22px;
  letter-spacing: -.02em;
}
.expense-compact-head-v15 p {
  font-size: 12px;
  margin-top: 1px;
}
.expense-compact-card-v15 .expense-simple-form {
  gap: 10px;
}
.expense-compact-card-v15 .expense-simple-label {
  font-size: 11px;
  margin-bottom: 5px;
  letter-spacing: .02em;
}
.expense-compact-amount-v15 {
  min-height: 50px;
  border-radius: 14px;
  padding: 6px 11px;
  border-width: 1.5px;
}
.expense-compact-amount-v15 .expense-simple-input,
.expense-compact-card-v15 .expense-simple-input {
  font-size: 24px;
  font-weight: 900;
}
.expense-compact-amount-v15 span {
  font-size: 15px;
}
.expense-compact-card-v15 .expense-simple-hints {
  gap: 6px;
}
.expense-compact-card-v15 .expense-simple-hints button {
  min-height: 31px;
  border-radius: 10px;
  font-size: 12px;
  padding: 4px 3px;
}
.expense-compact-card-v15 .expense-category-selected {
  padding: 3px 7px;
  font-size: 10px;
}
.expense-compact-card-v15 .expense-category-icon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.expense-compact-card-v15 .expense-category-icon-btn {
  min-height: 52px;
  border-radius: 13px;
  padding: 6px 4px;
  gap: 4px;
  box-shadow: none;
}
.expense-compact-card-v15 .expense-category-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  font-size: 13px;
}
.expense-compact-card-v15 .expense-category-icon-name {
  font-size: 10.5px;
  min-height: 20px;
  line-height: 1.05;
}
.expense-compact-card-v15 .expense-simple-select {
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}
.expense-compact-save-v15 {
  min-height: 46px;
  border-radius: 14px;
  font-size: 15px;
  margin-top: 2px;
}

@media (max-width: 575.98px) {
  .expense-mobile-clean-page {
    padding-top: 0;
  }
  .expense-compact-card-v15 {
    max-width: 100%;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15,23,42,.055);
  }
  .expense-compact-head-v15 {
    gap: 9px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .expense-compact-head-v15 .expense-mobile-logo-clean {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 18px;
  }
  .expense-compact-head-v15 h1 {
    font-size: 19px;
  }
  .expense-compact-head-v15 p {
    display: block;
    font-size: 11px;
    color: #64748b;
  }
  .expense-compact-card-v15 .expense-simple-form {
    gap: 9px;
  }
  .expense-compact-amount-v15 {
    min-height: 46px;
    border-radius: 13px;
    padding: 5px 10px;
  }
  .expense-compact-card-v15 .expense-simple-input {
    font-size: 22px;
  }
  .expense-compact-card-v15 .expense-simple-hints button {
    min-height: 30px;
    border-radius: 9px;
    font-size: 11.5px;
  }
  .expense-compact-card-v15 .expense-category-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .expense-compact-card-v15 .expense-category-icon-btn {
    min-height: 47px;
    border-radius: 12px;
    padding: 5px 3px;
  }
  .expense-compact-card-v15 .expense-category-icon-circle {
    width: 23px;
    height: 23px;
    border-radius: 9px;
    font-size: 12px;
  }
  .expense-compact-card-v15 .expense-category-icon-name {
    font-size: 9.7px;
    min-height: 18px;
  }
  .expense-compact-card-v15 .expense-category-selected {
    max-width: 50%;
    font-size: 9.5px;
  }
  .expense-compact-card-v15 .expense-simple-select {
    min-height: 40px;
    border-radius: 11px;
    font-size: 13px;
  }
  .expense-compact-save-v15 {
    min-height: 44px;
    border-radius: 13px;
    font-size: 14.5px;
  }
}

@media (max-width: 380px) {
  .expense-compact-card-v15 .expense-category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expense-compact-card-v15 .expense-category-icon-btn {
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 8px;
    text-align: left;
  }
  .expense-compact-card-v15 .expense-category-icon-name {
    -webkit-line-clamp: 1;
    min-height: auto;
  }
}

/* v17: compact monthly overview on dashboard */
.monthly-kpi-card {
  border: 0;
  overflow: hidden;
}
.monthly-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.monthly-kpi-in {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
}
.monthly-kpi-out {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}
@media (max-width: 575.98px) {
  .dashboard-month-summary .kpi-card {
    min-height: 96px;
    padding: 12px !important;
    border-radius: 18px;
  }
  .dashboard-month-summary .kpi-value {
    font-size: 1.2rem;
    line-height: 1.15;
    word-break: break-word;
  }
  .dashboard-month-summary .kpi-label {
    font-size: .78rem;
  }
  .dashboard-month-summary .small {
    font-size: .68rem;
  }
  .monthly-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
}

/* v18 - Rename app + cleaner compact mobile UI */
.app-topbar { min-height: 52px; }
.navbar-brand { letter-spacing: -.02em; }
.navbar-brand span:last-child { font-weight: 950; }

.dashboard-clean-v18 {
  max-width: 720px;
  margin: 0 auto;
}
.dashboard-clean-head-v18 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-clean-head-v18 h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.035em;
}
.dashboard-clean-head-v18 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.dashboard-two-grid-v18 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-money-card-v18 {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,.055);
}
.dashboard-money-in-v18 { background: linear-gradient(135deg,#fff,#f0fdf4); border-color:#bbf7d0; }
.dashboard-money-out-v18 { background: linear-gradient(135deg,#fff,#fff1f2); border-color:#fecdd3; }
.dashboard-money-icon-v18 {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.dashboard-money-in-v18 .dashboard-money-icon-v18 { background: #dcfce7; color:#16a34a; }
.dashboard-money-out-v18 .dashboard-money-icon-v18 { background: #fee2e2; color:#dc2626; }
.dashboard-money-label-v18 {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  line-height: 1.15;
}
.dashboard-money-value-v18 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.035em;
  word-break: break-word;
}

.expense-compact-card-v15.expense-compact-card-v15 {
  max-width: 440px;
  padding: 12px;
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(15,23,42,.055);
}
.expense-compact-head-v15.expense-compact-head-v15 {
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.expense-compact-head-v15 .expense-mobile-logo-clean {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 17px;
}
.expense-compact-head-v15 h1 {
  font-size: 18px;
}
.expense-compact-head-v15 p { display:none !important; }
.expense-compact-card-v15 .expense-simple-form { gap: 8px; }
.expense-compact-card-v15 .expense-simple-label {
  font-size: 10px;
  margin-bottom: 4px;
}
.expense-compact-amount-v15.expense-compact-amount-v15 {
  min-height: 42px;
  border-radius: 12px;
  padding: 5px 9px;
}
.expense-compact-card-v15 .expense-simple-input {
  font-size: 20px;
}
.expense-compact-card-v15 .expense-simple-hints {
  gap: 5px;
}
.expense-compact-card-v15 .expense-simple-hints button {
  min-height: 28px;
  border-radius: 9px;
  font-size: 11px;
}
.expense-compact-card-v15 .expense-category-icon-grid {
  gap: 5px;
}
.expense-compact-card-v15 .expense-category-icon-btn {
  min-height: 43px;
  border-radius: 11px;
  padding: 5px 3px;
  gap: 3px;
}
.expense-compact-card-v15 .expense-category-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 11px;
}
.expense-compact-card-v15 .expense-category-icon-name {
  font-size: 9.4px;
  min-height: 16px;
}
.expense-compact-card-v15 .expense-simple-select {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12.5px;
}
.expense-compact-save-v15.expense-compact-save-v15 {
  min-height: 40px;
  border-radius: 12px;
  font-size: 13.5px;
}

@media (max-width: 991.98px) {
  .navbar .container-fluid { min-height: 48px; }
  .brand-icon { width: 28px; height: 28px; border-radius: 10px; }
  .navbar-brand { font-size: 15px; }
  .navbar-toggler { padding: 3px 7px; border-radius: 10px; }
  main.container-fluid { padding-top: 10px !important; padding-left: 8px !important; padding-right: 8px !important; }
  .card { border-radius: 14px; box-shadow: 0 6px 16px rgba(15,23,42,.045); }
  .form-control, .form-select, .btn { min-height: 36px; border-radius: 9px; }
  .mobile-bottom-nav { padding: 5px; border-radius: 18px; bottom: 6px; }
  .mobile-bottom-link { padding: 6px 2px; border-radius: 13px; font-size: 9.8px; gap: 2px; }
  .mobile-bottom-link i { font-size: 15px; }
}

@media (max-width: 575.98px) {
  .dashboard-clean-v18 { max-width: 100%; }
  .dashboard-clean-head-v18 { margin-bottom: 9px; }
  .dashboard-clean-head-v18 h1 { font-size: 18px; }
  .dashboard-clean-head-v18 span { font-size: 11px; padding: 4px 8px; }
  .dashboard-two-grid-v18 { gap: 7px; }
  .dashboard-money-card-v18 {
    min-height: 98px;
    border-radius: 14px;
    padding: 10px;
  }
  .dashboard-money-icon-v18 {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 7px;
  }
  .dashboard-money-label-v18 { font-size: 10.5px; }
  .dashboard-money-value-v18 { font-size: 16px; margin-top: 5px; }

  .expense-mobile-clean-page { min-height: auto; }
  .expense-compact-card-v15.expense-compact-card-v15 {
    padding: 10px;
    border-radius: 15px;
  }
  .expense-compact-head-v15.expense-compact-head-v15 {
    gap: 7px;
    margin-bottom: 7px;
    padding-bottom: 7px;
  }
  .expense-compact-head-v15 .expense-mobile-logo-clean {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 15px;
  }
  .expense-compact-head-v15 h1 { font-size: 17px; }
  .expense-compact-card-v15 .expense-simple-label { font-size: 9.5px; }
  .expense-compact-amount-v15.expense-compact-amount-v15 { min-height: 39px; }
  .expense-compact-card-v15 .expense-simple-input { font-size: 19px; }
  .expense-compact-card-v15 .expense-simple-hints button { min-height: 26px; font-size: 10.5px; }
  .expense-compact-card-v15 .expense-category-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .expense-compact-card-v15 .expense-category-icon-btn { min-height: 39px; border-radius: 10px; }
  .expense-compact-card-v15 .expense-category-icon-circle { width: 20px; height: 20px; border-radius: 7px; font-size: 10px; }
  .expense-compact-card-v15 .expense-category-icon-name { font-size: 8.8px; min-height: 14px; }
  .expense-compact-card-v15 .expense-category-selected { display: none; }
  .expense-compact-card-v15 .expense-simple-select { min-height: 36px; font-size: 12px; }
  .expense-compact-save-v15.expense-compact-save-v15 { min-height: 38px; font-size: 13px; }
}

/* v19 - Home expense button, compact spending chart, VND input format */
.dashboard-v19 { padding-bottom: 6px; }
.dashboard-action-row-v19 { margin-top: 10px; display: grid; grid-template-columns: 1fr; }
.dashboard-expense-btn-v19 {
  min-height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg,#16a34a,#0d6efd);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(13,110,253,.18);
}
.dashboard-expense-btn-v19:hover { color:#fff; filter:brightness(.98); transform:translateY(-1px); }
.dashboard-expense-btn-v19 span { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); }
.dashboard-chart-card-v19 {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}
.dashboard-chart-head-v19 { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.dashboard-chart-head-v19 h2 { margin:0; font-size:14px; font-weight:950; letter-spacing:-.02em; }
.dashboard-chart-head-v19 span { display:block; margin-top:2px; color:#dc2626; font-size:17px; font-weight:950; line-height:1.05; }
.dashboard-chart-head-v19 > i { width:32px; height:32px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#fff7ed; color:#ea580c; }
.expense-chart-list-v19 { display:grid; gap:8px; }
.expense-chart-row-v19 { display:grid; gap:5px; }
.expense-chart-label-v19 { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; line-height:1.15; }
.expense-chart-label-v19 span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#334155; font-weight:850; }
.expense-chart-label-v19 b { color:#0f172a; font-weight:950; white-space:nowrap; }
.expense-chart-track-v19 { height:8px; border-radius:999px; background:#f1f5f9; overflow:hidden; }
.expense-chart-track-v19 div { height:100%; width:var(--bar-width); border-radius:999px; background:linear-gradient(90deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 65%, white)); }
.expense-chart-empty-v19 { border:1px dashed #cbd5e1; border-radius:14px; padding:16px; color:#64748b; text-align:center; font-size:13px; font-weight:800; background:#f8fafc; }

@media (max-width: 575.98px) {
  .dashboard-action-row-v19 { margin-top: 7px; }
  .dashboard-expense-btn-v19 { min-height: 38px; border-radius: 12px; font-size: 13px; }
  .dashboard-expense-btn-v19 span { width: 21px; height: 21px; }
  .dashboard-chart-card-v19 { margin-top: 7px; padding: 10px; border-radius: 14px; }
  .dashboard-chart-head-v19 { margin-bottom: 8px; }
  .dashboard-chart-head-v19 h2 { font-size: 13px; }
  .dashboard-chart-head-v19 span { font-size: 15px; }
  .dashboard-chart-head-v19 > i { width: 28px; height: 28px; border-radius: 10px; }
  .expense-chart-list-v19 { gap: 7px; }
  .expense-chart-label-v19 { font-size: 11px; }
  .expense-chart-track-v19 { height: 7px; }
}

/* v21 Telegram check */
.compact-card { border-radius: 16px; }
.telegram-status-list { font-size: .92rem; }
.telegram-status-list b { font-weight: 700; }
@media (max-width: 576px) {
    .telegram-status-list { font-size: .84rem; }
    .telegram-status-list .badge { font-size: .68rem; }
    .code-box { font-size: .72rem; padding: .55rem; }
}
