@media (min-width: 981px) {
  .mobile-home,
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 980px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
  }

  body.sidebar-open {
    overflow: auto;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  .main {
    min-width: 0;
    min-height: 100dvh;
  }

  .content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px calc(90px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: none !important;
  }

  .mobile-logo-button {
    display: none !important;
  }

  .mobile-logo-button img {
    border-radius: 999px;
    filter: drop-shadow(0 10px 18px rgba(216, 180, 106, 0.18));
  }

  .topbar-title {
    max-width: calc(100vw - 84px);
    overflow: hidden;
    color: var(--gold-2);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff7d7, #f2d58b 58%, #c9912c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .sidebar {
    display: none !important;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
  }

  .sidebar-collapse {
    display: none;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .sidebar-backdrop.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    gap: 10px;
    padding: 3px 3px 14px;
    margin-bottom: 10px;
  }

  .brand-logo-button {
    width: 46px;
    height: 46px;
  }

  .brand-logo-button img {
    border-radius: 999px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .nav-section {
    margin: 12px 0;
  }

  .nav-label {
    padding-left: 10px;
    color: rgba(216, 180, 106, 0.68);
  }

  .nav-link {
    min-height: 46px;
    border-radius: 15px;
  }

  .nav-link.active {
    background: rgba(242, 213, 139, 0.13);
    border-color: rgba(242, 213, 139, 0.30);
    box-shadow: 0 14px 28px rgba(216, 180, 106, 0.10);
  }

  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .page-header > .btn,
  .page-header > button,
  .page-header > a {
    width: auto;
    max-width: 48%;
    flex: 0 0 auto;
    padding-inline: 12px;
    white-space: normal;
    text-align: center;
  }

  .page-header > div:first-child {
    min-width: 0;
  }

  .page-title {
    margin-bottom: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .page-subtitle {
    display: none;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .form-row,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .card,
  .dash-card,
  .card.pad,
  .report-card,
  .settings-panel,
  .profile-card,
  .transfer-history-card,
  .report-filter-card {
    border-color: rgba(216, 180, 106, 0.13);
    border-radius: 17px;
    background:
      linear-gradient(180deg, rgba(17, 22, 36, 0.96), rgba(10, 13, 23, 0.98)),
      var(--card);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  .card.pad,
  .dash-card,
  .report-card,
  .settings-panel,
  .profile-card {
    padding: 13px;
  }

  .card > h3,
  .dash-card > h3,
  .report-card > h3,
  .settings-panel > h3,
  .profile-card > h3 {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.25;
  }

  .input,
  .select,
  .textarea {
    min-height: 47px;
    border-radius: 15px;
    font-size: 16px;
  }

  .btn {
    min-height: 42px;
    border-radius: 14px;
  }

  .btn svg,
  .nav-link svg,
  .modal-close svg,
  .action-menu-item svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
  }

  .btn.small {
    min-height: 38px;
    border-radius: 13px;
  }

  .filter-trigger,
  .dashboard-notification-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-color: rgba(216, 180, 106, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .filter-trigger svg,
  .dashboard-notification-btn svg {
    width: 23px;
    height: 23px;
  }

  .filter-trigger:active,
  .filter-trigger:focus-visible,
  .filter-popover[open] .filter-trigger {
    border-color: rgba(216, 180, 106, 0.38);
    border-radius: 14px;
    background: rgba(216, 180, 106, 0.12);
    color: var(--gold-2);
  }

  .filter-popover-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
    max-height: min(70dvh, 520px);
    overflow: auto;
    padding: 14px;
    border-color: rgba(216, 180, 106, 0.26);
    border-radius: 24px;
    background: rgba(13, 17, 29, 0.98);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
  }

  @keyframes mobile-filter-update-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(216, 180, 106, 0.38);
      transform: scale(1);
    }

    45% {
      box-shadow: 0 0 0 10px rgba(216, 180, 106, 0);
      color: var(--gold-2);
      transform: scale(1.06);
    }

    100% {
      box-shadow: none;
      transform: scale(1);
    }
  }

  .filter-trigger.filter-update-pulse,
  .report-mobile-filter-toggle.filter-update-pulse {
    animation: mobile-filter-update-pulse 0.62s ease both;
    border-color: rgba(216, 180, 106, 0.36);
    background: rgba(216, 180, 106, 0.11);
    color: var(--gold-2);
  }

  .action-menu-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 15px;
  }

  .action-menu-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .action-menu-trigger svg {
    width: 22px;
    height: 22px;
  }

  .actions,
  .user-actions {
    justify-content: flex-end;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal.wide {
    width: 100%;
    max-height: 92dvh;
    overflow: auto;
    padding: 18px;
    border-radius: 28px 28px 0 0;
  }

  .modal-head {
    gap: 12px;
  }

  .modal-actions {
    position: sticky;
    bottom: -18px;
    z-index: 2;
    margin: 10px -18px -18px;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 24, 39, 0.94), var(--panel-2) 28%);
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap table {
    min-width: 0;
    border-spacing: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    margin-bottom: 8px;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(216, 180, 106, 0.15);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(17, 22, 36, 0.98), rgba(10, 13, 23, 0.98)),
      var(--card);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .table-wrap td {
    min-height: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border: 0;
    border-top: 1px solid rgba(216, 180, 106, 0.10);
    color: var(--soft);
    text-align: right;
    overflow-wrap: anywhere;
  }

  .table-wrap td:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .table-wrap td::before {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    content: 'Detail';
  }

  .table-wrap td.money,
  .table-wrap .money {
    color: var(--gold-2);
    font-weight: 950;
  }

  .table-wrap td.empty {
    display: block;
    min-height: 0;
    padding: 18px 10px;
    color: var(--muted);
    text-align: center;
  }

  .table-wrap td.empty::before {
    content: none;
  }

  .account-table td:nth-child(1)::before { content: 'Rekening'; }
  .account-table td:nth-child(2)::before { content: 'No Rekening'; }
  .account-table td:nth-child(3)::before { content: 'Mata Uang'; }
  .account-table td:nth-child(4)::before { content: 'Saldo'; }
  .account-table td:nth-child(5)::before { content: 'Status'; }
  .account-table td:nth-child(6)::before { content: 'Aksi'; }

  .budget-table td:nth-child(1)::before { content: 'Kategori'; }
  .budget-table td:nth-child(2)::before { content: 'Mata Uang'; }
  .budget-table td:nth-child(3)::before { content: 'Budget'; }
  .budget-table td:nth-child(4)::before { content: 'Progress'; }
  .budget-table td:nth-child(5)::before { content: 'Aksi'; }

  .debt-table td:nth-child(1)::before { content: 'Hutang'; }
  .debt-table td:nth-child(2)::before { content: 'Mata Uang'; }
  .debt-table td:nth-child(3)::before { content: 'Pokok'; }
  .debt-table td:nth-child(4)::before { content: 'Cicilan'; }
  .debt-table td:nth-child(5)::before { content: 'Terbayar'; }
  .debt-table td:nth-child(6)::before { content: 'Sisa'; }
  .debt-table td:nth-child(7)::before { content: 'Progress'; }
  .debt-table td:nth-child(8)::before { content: 'Jatuh Tempo'; }
  .debt-table td:nth-child(9)::before { content: 'Status'; }
  .debt-table td:nth-child(10)::before { content: 'Aksi'; }

  .category-table td:nth-child(1)::before { content: 'Nama'; }
  .category-table td:nth-child(2)::before { content: 'Jenis'; }
  .category-table td:nth-child(3)::before { content: 'Status'; }
  .category-table td:nth-child(4)::before { content: 'Aksi'; }

  .user-table td:nth-child(1)::before { content: 'Pengguna'; }
  .user-table td:nth-child(2)::before { content: 'Hak Akses'; }
  .user-table td:nth-child(3)::before { content: 'Status'; }
  .user-table td:nth-child(4)::before { content: 'Dibuat'; }
  .user-table td:nth-child(5)::before { content: 'Aksi'; }

  .stock-ledger-table td:nth-child(1)::before { content: 'Tanggal'; }
  .stock-ledger-table td:nth-child(2)::before { content: 'Rekening'; }
  .stock-ledger-table td:nth-child(3)::before { content: 'Lot'; }
  .stock-ledger-table td:nth-child(4)::before { content: 'Harga'; }
  .stock-ledger-table td:nth-child(5)::before { content: 'Nilai'; }
  .stock-ledger-table td:nth-child(6)::before { content: 'Fee'; }
  .stock-ledger-table td:nth-child(7)::before { content: 'Total'; }
  .stock-sales-table td:nth-child(7)::before { content: 'Hasil Bersih'; }
  .stock-sales-table td:nth-child(8)::before { content: 'Modal'; }
  .stock-sales-table td:nth-child(9)::before { content: 'P/L'; }

  body.page-transfer .table-wrap td:nth-child(1)::before { content: 'Tanggal'; }
  body.page-transfer .table-wrap td:nth-child(2)::before { content: 'Dari'; }
  body.page-transfer .table-wrap td:nth-child(3)::before { content: 'Ke'; }
  body.page-transfer .table-wrap td:nth-child(4)::before { content: 'Nominal'; }
  body.page-transfer .table-wrap td:nth-child(5)::before { content: 'Biaya'; }
  body.page-transfer .table-wrap td:nth-child(6)::before { content: 'Aksi'; }

  #budgetReport td:nth-child(1)::before { content: 'Kategori'; }
  #budgetReport td:nth-child(2)::before { content: 'Budget'; }
  #budgetReport td:nth-child(3)::before { content: 'Aktual'; }
  #budgetReport td:nth-child(4)::before { content: 'Selisih'; }
  #budgetReport td:nth-child(5)::before { content: 'Terpakai'; }

  #categoryReport td:nth-child(1)::before { content: 'Kategori'; }
  #categoryReport td:nth-child(2)::before { content: 'Jenis'; }
  #categoryReport td:nth-child(3)::before { content: 'Mata Uang'; }
  #categoryReport td:nth-child(4)::before { content: 'Total'; }

  #debtReport td:nth-child(1)::before { content: 'Mata Uang'; }
  #debtReport td:nth-child(2)::before { content: 'Jumlah'; }
  #debtReport td:nth-child(3)::before { content: 'Pokok'; }
  #debtReport td:nth-child(4)::before { content: 'Sisa'; }
  #debtReport td:nth-child(5)::before { content: 'Dibayar'; }

  .mobile-bottom-nav {
    position: fixed;
    right: 9px;
    bottom: 8px;
    left: 9px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border: 1px solid rgba(242, 213, 139, 0.28);
    border-radius: 24px;
    background:
      radial-gradient(circle at 50% -22%, rgba(242, 213, 139, 0.16), transparent 45%),
      rgba(8, 10, 18, 0.95);
    box-shadow:
      0 20px 54px rgba(0, 0, 0, 0.58),
      0 0 34px rgba(216, 180, 106, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
  }

  .mobile-bottom-link {
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 17px;
    color: rgba(216, 222, 233, 0.70);
    font-size: 9px;
    font-weight: 900;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .mobile-bottom-link svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 8px rgba(216, 180, 106, 0.10));
  }

  .mobile-bottom-link.active,
  .mobile-bottom-link:hover {
    border-color: rgba(242, 213, 139, 0.34);
    background: rgba(242, 213, 139, 0.14);
    color: var(--gold-2);
    box-shadow: 0 0 20px rgba(216, 180, 106, 0.12);
  }

  .mobile-bottom-link:nth-child(3) {
    min-height: 66px;
    margin-top: -24px;
    border-color: rgba(242, 213, 139, 0.46);
    border-radius: 25px;
    background:
      radial-gradient(circle at 50% 10%, rgba(255, 246, 203, 0.18), transparent 56%),
      linear-gradient(180deg, rgba(242, 213, 139, 0.28), rgba(216, 180, 106, 0.13)),
      rgba(17, 22, 36, 0.98);
    color: var(--gold-2);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.38),
      0 0 34px rgba(216, 180, 106, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-bottom-link:nth-child(3) svg {
    width: 33px;
    height: 33px;
    filter: drop-shadow(0 0 12px rgba(242, 213, 139, 0.32));
  }
}

@media (max-width: 980px) {
  body.page-dashboard {
    background:
      radial-gradient(circle at 18% -8%, rgba(242, 213, 139, 0.24), transparent 34%),
      radial-gradient(circle at 92% 18%, rgba(216, 180, 106, 0.11), transparent 28%),
      linear-gradient(180deg, #090b13 0 255px, #05060b 255px 100%),
      var(--bg);
    color: var(--text);
  }

  body.page-dashboard .content {
    position: relative;
    padding-top: 12px;
  }

  .mobile-home {
    display: grid;
    gap: 18px;
  }

  body:not(.page-dashboard) .mobile-home {
    display: none;
  }

  .metric-grid,
  .dashboard-main-grid,
  .activity-card {
    display: none;
  }

  .dashboard-head {
    position: absolute;
    top: 13px;
    right: 12px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    margin: 0;
  }

  .dashboard-head > div:first-child {
    display: none;
  }

  .dashboard-head-actions {
    width: auto;
    margin-left: auto;
    gap: 6px;
    justify-content: flex-end;
  }

  .dashboard-head-actions .dashboard-filter,
  .dashboard-head-actions .dashboard-notification-btn,
  .dashboard-head-actions .dashboard-mobile-logout {
    display: inline-grid;
  }

  .dashboard-head-actions .filter-trigger,
  .dashboard-head-actions .dashboard-notification-btn,
  .dashboard-head-actions .dashboard-mobile-logout {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-color: rgba(216, 180, 106, 0.10);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    color: var(--soft);
  }

  .dashboard-head-actions .filter-trigger svg,
  .dashboard-head-actions .dashboard-notification-btn svg,
  .dashboard-head-actions .dashboard-mobile-logout svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-head-actions .filter-trigger:active,
  .dashboard-head-actions .filter-trigger:focus-visible,
  .dashboard-head-actions .dashboard-notification-btn:active,
  .dashboard-head-actions .dashboard-notification-btn:focus-visible,
  .dashboard-head-actions .dashboard-mobile-logout:active,
  .dashboard-head-actions .dashboard-mobile-logout:focus-visible,
  .dashboard-head-actions .filter-popover[open] .filter-trigger {
    border-color: rgba(242, 213, 139, 0.42);
    background: rgba(242, 213, 139, 0.12);
    color: var(--gold-2);
    box-shadow: 0 0 22px rgba(216, 180, 106, 0.14);
    outline: none;
  }

  .dashboard-head-actions .dashboard-filter {
    display: none !important;
  }

  .dashboard-actions {
    display: grid;
    gap: 12px;
  }

  .period-box {
    min-width: 0;
  }

  .mobile-app-brand {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 96px;
    color: var(--text);
  }

  .mobile-app-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(216, 180, 106, 0.34));
  }

  .mobile-app-brand strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0;
    background: linear-gradient(135deg, #fff7d7, #f2d58b 58%, #c9912c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    filter: drop-shadow(0 0 14px rgba(216, 180, 106, 0.18));
  }

  .mobile-app-brand span {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    color: rgba(216, 180, 106, 0.76);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-balance-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(242, 213, 139, 0.22);
    border-radius: 26px;
    background:
      radial-gradient(circle at 88% -20%, rgba(242, 213, 139, 0.12), transparent 36%),
      linear-gradient(180deg, rgba(17, 22, 36, 0.98), rgba(8, 11, 20, 0.99)),
      var(--card);
    color: var(--text);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.44), 0 0 34px rgba(216, 180, 106, 0.08);
  }

  .mobile-balance-band {
    position: relative;
    min-height: 118px;
    padding: 18px 18px 16px;
    background:
      radial-gradient(circle at 85% 0%, rgba(255, 248, 220, 0.24), transparent 36%),
      linear-gradient(135deg, rgba(255, 226, 142, 0.95), rgba(201, 145, 44, 0.9));
    color: #151007;
  }

  .mobile-account-chip {
    position: relative;
    z-index: 4;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(21, 16, 7, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.34);
    color: #151007;
    font-weight: 950;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 24px rgba(88, 61, 10, 0.08);
  }

  .mobile-account-chip::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(21, 16, 7, 0.62);
    border-bottom: 2px solid rgba(21, 16, 7, 0.62);
    content: '';
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.16s ease;
  }

  .mobile-balance-card.is-choosing-account .mobile-account-chip::after {
    transform: translateY(-25%) rotate(225deg);
  }

  .mobile-account-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-chip svg,
  .mobile-balance-actions svg,
  .mobile-section-head svg {
    width: 20px;
    height: 20px;
  }

  .mobile-account-number {
    margin-top: 14px;
    color: rgba(21, 16, 7, 0.76);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .mobile-account-choices {
    position: absolute;
    z-index: 6;
    top: 68px;
    right: 18px;
    left: 18px;
    display: grid;
    max-height: min(238px, 48dvh);
    gap: 7px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(21, 16, 7, 0.17);
    border-radius: 18px;
    background: rgba(255, 249, 232, 0.94);
    box-shadow: 0 18px 44px rgba(21, 16, 7, 0.22);
    backdrop-filter: blur(14px);
  }

  .mobile-account-choice {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(21, 16, 7, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    color: #151007;
    text-align: left;
  }

  .mobile-account-choice.active {
    border-color: rgba(21, 16, 7, 0.30);
    background: rgba(21, 16, 7, 0.09);
  }

  .mobile-account-choice span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-choice strong {
    flex: 0 0 auto;
    color: rgba(21, 16, 7, 0.78);
    font-size: 11px;
    font-weight: 950;
    text-align: right;
    white-space: nowrap;
  }

  .mobile-account-choice-empty {
    padding: 10px 11px;
    border: 1px dashed rgba(21, 16, 7, 0.16);
    border-radius: 14px;
    color: rgba(21, 16, 7, 0.68);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-balance-body {
    position: relative;
    min-height: 118px;
    padding: 18px 20px 17px;
  }

  .mobile-balance-body span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(216, 180, 106, 0.16);
    border-radius: 999px;
    background: rgba(216, 180, 106, 0.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-balance-body strong {
    display: block;
    margin-top: 13px;
    color: var(--gold-2);
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.12;
    font-weight: 950;
    overflow-wrap: anywhere;
  }

  .mobile-balance-card.is-empty .mobile-balance-body strong {
    color: rgba(216, 222, 233, 0.76);
    font-size: 22px;
  }

  .mobile-balance-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 20px;
    padding: 13px 0 16px;
    border-top: 1px solid rgba(216, 180, 106, 0.13);
  }

  .mobile-balance-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid rgba(242, 213, 139, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.038);
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .mobile-main-menu {
    padding: 4px 2px 16px;
  }

  .mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .mobile-section-head h2 {
    margin: 0;
    color: var(--gold-2);
    font-size: 22px;
    font-weight: 950;
    text-shadow: 0 0 18px rgba(216, 180, 106, 0.16);
  }

  .mobile-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(216, 222, 233, 0.78);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .mobile-menu-item {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 9px;
    color: rgba(216, 222, 233, 0.84);
    text-align: center;
  }

  .mobile-menu-item svg {
    width: 64px;
    height: 64px;
    padding: 15px;
    border: 1px solid rgba(242, 213, 139, 0.24);
    border-radius: 22px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 244, 201, 0.24), transparent 56%),
      linear-gradient(180deg, rgba(242, 213, 139, 0.18), rgba(216, 180, 106, 0.09)),
      rgba(17, 22, 36, 0.94);
    color: var(--gold-2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 16px 32px rgba(0, 0, 0, 0.30),
      0 0 28px rgba(216, 180, 106, 0.18);
    filter: drop-shadow(0 0 12px rgba(242, 213, 139, 0.20));
  }

  .mobile-menu-item strong {
    width: 100%;
    min-height: 28px;
    display: grid;
    place-items: start center;
    color: rgba(216, 222, 233, 0.90);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.28;
  }
}

@media (max-width: 980px) {
  body.page-rekening .page-header .btn.primary:not(.create-action),
  body.page-budget .page-header .btn.primary:not(.create-action),
  body.page-hutang .page-header .btn.primary:not(.create-action),
  body.page-aset .page-header .btn.primary:not(.create-action),
  body.page-pengguna .page-header .btn.primary:not(.create-action),
  body.page-transfer .page-header .btn.primary:not(.create-action),
  body.page-transaksi .page-header .btn.primary:not(.create-action) {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(216, 180, 106, 0.20);
  }

  body.page-aset-detail .page-header .btn.primary {
    min-height: 40px;
    padding-inline: 13px;
    border-radius: 14px;
    font-size: 12px;
  }

  body.page-transfer .transfer-history-card,
  body.page-transaksi > .app-shell .card.pad,
  body.page-transaksi section[data-page-root] > .card.pad,
  body.page-hutang section[data-page-root] > .card.pad {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-hutang section[data-page-root] > .card.pad > h3 {
    display: none;
  }

  body.page-transfer .transfer-history-card {
    min-height: 0;
    gap: 10px;
    margin-bottom: 10px;
  }

  body.page-transfer .transfer-history-card-head {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 0 2px;
  }

  body.page-transfer .transfer-period-copy h3,
  body.page-transfer .transfer-period-copy p,
  body.page-transfer .transfer-kicker {
    display: none;
  }

  body.page-transfer .transfer-period-copy {
    min-width: 0;
  }

  body.page-transfer .transfer-period-copy::before {
    content: 'Riwayat Transfer';
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
  }

  body.page-transaksi .page-header {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .transaction-card-head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 9px;
    padding: 0 2px;
  }

  .transaction-card-title h3 {
    margin: 0;
    font-size: 16px;
  }

  .transaction-card-title p,
  .transaction-kicker {
    display: none;
  }

  .transaction-period {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .transaction-account-filter,
  .transaction-load-btn {
    grid-column: 1 / -1;
  }

  .transaction-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    align-items: start;
    gap: 4px 9px;
    min-height: 0;
    margin-bottom: 7px;
    padding: 10px 11px 10px;
    border-radius: 16px;
  }

  .transaction-table td {
    padding: 0;
    border: 0;
    display: block;
    text-align: left;
  }

  .transaction-table td::before {
    content: none;
  }

  .transaction-table td:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    max-width: calc(100% - 126px);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .transaction-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    margin-top: 6px;
    padding-right: 46px;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
  }

  .transaction-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    margin-top: 3px;
    color: var(--soft);
    font-size: 11px;
  }

  .transaction-table td:nth-child(4) {
    position: static;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    width: auto;
  }

  .transaction-table td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 4 / 5;
    max-width: 100%;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
  }

  .transaction-table td:nth-child(6),
  .transaction-table td:nth-child(7) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(216, 180, 106, 0.10);
  }

  .transaction-table td:nth-child(6)::before {
    content: 'Nominal';
  }

  .transaction-table td:nth-child(7)::before {
    content: 'Biaya';
  }

  .transaction-table td:nth-child(6)::before,
  .transaction-table td:nth-child(7)::before {
    display: inline;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .transaction-table td:nth-child(6) {
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 950;
  }

  .transaction-table td:nth-child(7) {
    color: var(--soft);
    font-size: 12px;
  }

  .transaction-table tr.transaction-fee-empty td:nth-child(7) {
    display: none;
  }

  .transaction-table td:nth-child(8) {
    position: static;
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
    width: auto;
  }

  .transaction-table td:nth-child(8) .actions {
    justify-content: flex-end;
  }

  .transaction-table .pill {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 9px;
  }

  body.page-transfer .transfer-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0 10px;
    padding: 12px;
  }

  body.page-transfer .transfer-table td {
    min-width: 0;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  body.page-transfer .transfer-table td::before {
    display: none;
    content: none;
  }

  body.page-transfer .transfer-table td:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  body.page-transfer .transfer-table td:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    width: auto;
  }

  body.page-transfer .transfer-table td:nth-child(6) .actions {
    justify-content: flex-end;
  }

  body.page-transfer .transfer-table .action-menu {
    width: auto;
  }

  body.page-transfer .transfer-table .action-menu-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 15px;
  }

  body.page-transfer .transfer-table td:nth-child(2),
  body.page-transfer .transfer-table td:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-right: 46px;
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.35;
  }

  body.page-transfer .transfer-table td:nth-child(3) {
    margin-top: 6px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 850;
  }

  body.page-transfer .transfer-table td:nth-child(2)::before,
  body.page-transfer .transfer-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.page-transfer .transfer-table td:nth-child(2)::before {
    content: 'Dari';
  }

  body.page-transfer .transfer-table td:nth-child(3)::before {
    content: 'Ke';
  }

  body.page-transfer .transfer-table td:nth-child(4),
  body.page-transfer .transfer-table td:nth-child(5) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(216, 180, 106, 0.10);
    color: var(--soft);
    font-size: 12px;
  }

  body.page-transfer .transfer-table td:nth-child(4)::before,
  body.page-transfer .transfer-table td:nth-child(5)::before {
    display: inline;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.page-transfer .transfer-table td:nth-child(4)::before {
    content: 'Nominal';
  }

  body.page-transfer .transfer-table td:nth-child(5)::before {
    content: 'Biaya';
  }

  body.page-transfer .transfer-table td:nth-child(4) {
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 950;
    text-align: right;
  }

  body.page-hutang .debt-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 12px;
    border-radius: 18px;
  }

  body.page-hutang .debt-table td {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  body.page-hutang .debt-table td::before {
    content: none;
  }

  body.page-hutang .debt-table td:nth-child(1) {
    grid-column: 1 / 2;
    padding-right: 4px;
  }

  body.page-hutang .debt-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.24;
  }

  body.page-hutang .debt-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
  }

  body.page-hutang .debt-table td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
    justify-self: end;
    padding-right: 44px;
  }

  body.page-hutang .debt-table td:nth-child(9) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
    justify-self: end;
    margin-top: 28px;
    padding-right: 44px;
  }

  body.page-hutang .debt-table td:nth-child(10) {
    position: absolute;
    top: 9px;
    right: 9px;
    width: auto;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(8) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid rgba(216, 180, 106, 0.10);
    color: var(--soft);
    font-size: 12px;
  }

  body.page-hutang .debt-table td:nth-child(3)::before { content: 'Pokok'; }
  body.page-hutang .debt-table td:nth-child(4)::before { content: 'Cicilan'; }
  body.page-hutang .debt-table td:nth-child(5)::before { content: 'Terbayar'; }
  body.page-hutang .debt-table td:nth-child(6)::before { content: 'Sisa'; }
  body.page-hutang .debt-table td:nth-child(8)::before { content: 'Jatuh Tempo'; }

  body.page-hutang .debt-table td:nth-child(3)::before,
  body.page-hutang .debt-table td:nth-child(4)::before,
  body.page-hutang .debt-table td:nth-child(5)::before,
  body.page-hutang .debt-table td:nth-child(6)::before,
  body.page-hutang .debt-table td:nth-child(8)::before {
    display: inline;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.page-hutang .debt-table td:nth-child(6) {
    color: var(--gold-2);
    font-size: 14px;
    font-weight: 950;
  }

  body.page-hutang .debt-table td:nth-child(7) {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid rgba(216, 180, 106, 0.10);
  }

  body.page-hutang .debt-table .progress-track {
    height: 8px;
    border-radius: 999px;
  }

  body.page-hutang .debt-table .progress-text {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  table.has-actions.transaction-table td:last-child,
  table.has-actions.transaction-table th:last-child {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .transaction-detail-row,
  .transaction-detail-receipt-meta {
    flex-direction: column;
    gap: 6px;
  }

  .transaction-detail-row > strong,
  .transaction-detail-receipt-meta > strong {
    text-align: left;
  }

  .transaction-receipt-preview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .transaction-receipt-preview .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .mobile-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-stats,
  .user-stats,
  .stock-metric-grid,
  .asset-preview-grid,
  .asset-detail-grid,
  .settings-grid,
  .settings-form-grid,
  .settings-form-grid.compact,
  .profile-grid,
  .asset-trade-grid,
  .asset-form-grid,
  .asset-withdraw-grid {
    grid-template-columns: 1fr !important;
  }

  .asset-card-head,
  .asset-card-foot,
  .stock-detail-head,
  .stock-detail-actions,
  .profile-photo-section,
  .user-card-head,
  .budget-card-head,
  .transfer-history-card,
  .report-filter-card {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-detail-actions,
  .profile-photo-actions,
  .settings-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.page-transfer .transfer-history-card {
    align-items: center;
    flex-direction: row;
  }

  .asset-card-actions,
  .asset-actions {
    grid-template-columns: 1fr;
  }

  body.page-aset .asset-price-banner {
    padding: 13px;
    gap: 12px;
    border-radius: 18px;
  }

  body.page-aset .asset-price-banner-copy {
    align-items: flex-start;
    gap: 10px;
  }

  body.page-aset .asset-price-banner-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  body.page-aset .asset-price-banner p {
    font-size: 11px;
    line-height: 1.45;
  }

  body.page-aset .asset-price-banner .btn {
    width: 100%;
    min-height: 40px;
  }

  body.page-aset .asset-list-heading {
    gap: 8px;
    margin-bottom: 14px;
  }

  body.page-aset .asset-list-heading p {
    font-size: 12px;
    line-height: 1.45;
  }

  body.page-aset .asset-card {
    padding: 14px;
    border-radius: 18px;
  }

  body.page-aset .asset-card-head {
    gap: 12px;
  }

  body.page-aset .asset-card-identity {
    align-items: flex-start;
    gap: 10px;
  }

  body.page-aset .asset-kind-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  body.page-aset .asset-card-title-row {
    gap: 6px;
  }

  body.page-aset .asset-card-title-row h4 {
    width: 100%;
    font-size: 16px;
    line-height: 1.15;
  }

  body.page-aset .asset-card-identity p {
    margin-top: 5px;
    font-size: 11px;
  }

  body.page-aset .asset-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  body.page-aset .asset-detail-link {
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }

  body.page-aset .asset-card-actions .action-menu,
  body.page-aset .asset-card-actions .action-menu-trigger {
    width: 46px;
    min-width: 46px;
    height: 40px;
    min-height: 40px;
  }

  body.page-aset .asset-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
    border-radius: 14px;
  }

  body.page-aset .asset-summary-strip > div {
    padding: 12px 10px;
  }

  body.page-aset .asset-summary-strip > div:not(:last-child) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  body.page-aset .asset-summary-strip span {
    font-size: 10px;
    line-height: 1.25;
  }

  body.page-aset .asset-summary-strip strong {
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.page-aset .asset-card-foot {
    margin-top: 10px;
    padding-top: 10px;
    gap: 4px;
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .content {
    padding-inline: 11px;
  }

  .mobile-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .mobile-menu-item svg {
    width: 58px;
    height: 58px;
    padding: 14px;
    border-radius: 20px;
  }

  .mobile-menu-item strong {
    min-height: 27px;
    font-size: 11px;
  }

  body.page-aset .asset-summary-strip {
    grid-template-columns: 1fr;
  }

  body.page-aset .asset-summary-strip > div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.page-aset .asset-summary-strip > div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  body.page-aset .asset-summary-strip strong {
    text-align: right;
    font-size: 15px;
  }

  .table-wrap tr {
    padding: 13px;
    border-radius: 20px;
  }

  body.page-transaksi .transaction-table tr,
  body.page-transfer .table-wrap tr,
  body.page-hutang .debt-table tr {
    padding: 10px 11px;
    border-radius: 16px;
  }

  .table-wrap td {
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }

  .table-wrap td::before {
    width: auto;
  }

  body.page-transaksi .transaction-table td:nth-child(6),
  body.page-transaksi .transaction-table td:nth-child(7) {
    flex-direction: row;
    align-items: center;
    text-align: right;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(8) {
    flex-direction: row;
    align-items: center;
    text-align: right;
  }

  body.page-transfer .transfer-history-card {
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-bottom-link span {
    font-size: 9px;
  }

  .mobile-bottom-link {
    min-height: 50px;
  }

  .mobile-bottom-link:nth-child(3) {
    min-height: 64px;
  }

  .mobile-bottom-link:nth-child(3) svg {
    width: 31px;
    height: 31px;
  }

  body.login-body {
    align-items: stretch;
    padding: 0;
    overflow: auto;
    background:
      radial-gradient(circle at 16% -10%, rgba(242, 213, 139, 0.13), transparent 36%),
      var(--bg);
  }

  body.login-body::before,
  body.login-body::after {
    display: none;
  }

  .login-shell {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    align-items: start;
    padding: clamp(26px, 8dvh, 76px) 18px 18px;
  }

  .login-card {
    padding: 28px 22px 24px;
    border: 1px solid rgba(216, 180, 106, 0.18);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(18, 24, 39, 0.98), rgba(8, 11, 20, 0.98)),
      var(--card);
  }

  .login-brand {
    align-items: flex-start;
    flex-direction: row;
    text-align: left;
  }

  .login-mark {
    width: 66px;
    height: 66px;
  }

  .login-brand-copy {
    padding-top: 8px;
  }

  .login-brand strong,
  .login-title {
    letter-spacing: 0;
  }

  .login-heading {
    margin: 22px 0 18px;
    text-align: left;
  }

  .login-title {
    font-size: 28px;
    line-height: 1.1;
  }

  .login-subtitle {
    max-width: none;
    margin: 0;
    font-size: 13px;
  }

  .login-submit {
    min-height: 50px;
    border-radius: 17px;
  }
}

@media (max-width: 390px) {
  .mobile-bottom-nav {
    right: 7px;
    left: 7px;
    gap: 2px;
    padding-inline: 6px;
    border-radius: 22px;
  }

  .mobile-bottom-link {
    min-height: 52px;
  }

  .mobile-bottom-link svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 6px;
  }

  .mobile-menu-item svg {
    width: 54px;
    height: 54px;
    padding: 13px;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .main {
    overflow: clip;
  }

  .content {
    max-width: 560px;
    margin-inline: auto;
    padding: 14px 10px calc(98px + env(safe-area-inset-bottom));
  }

  .page-header {
    min-height: 52px;
    margin: 2px 0 12px;
    padding: 0 2px;
  }

  .page-header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .page-title {
    max-width: calc(100vw - 86px);
    overflow: hidden;
    color: #f8fafc;
    font-size: 22px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-header > .btn.primary,
  .page-header > button.btn.primary,
  .page-header > a.btn.primary {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: 17px;
  }

  .card,
  .card.pad,
  .dash-card,
  .report-card,
  .settings-panel,
  .profile-card {
    border-radius: 18px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .table-wrap tr {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(216, 180, 106, 0.15);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(16, 21, 34, 0.98), rgba(8, 11, 20, 0.99)),
      #0b0f1a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .table-wrap tr:hover {
    background:
      linear-gradient(180deg, rgba(18, 24, 39, 0.99), rgba(8, 11, 20, 0.99)),
      #0b0f1a;
  }

  .table-wrap td {
    min-width: 0;
    min-height: 0;
    padding: 7px 0;
    overflow-wrap: anywhere;
  }

  .table-wrap td::before {
    max-width: 48%;
    line-height: 1.35;
  }

  .table-wrap .pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.1;
  }

  .table-wrap .money {
    min-width: 0;
    max-width: 58%;
    text-align: right;
  }

  .table-wrap td.empty {
    display: block;
    padding: 22px 14px;
    border: 1px dashed rgba(216, 180, 106, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
  }

  .table-wrap td.empty::before {
    display: none !important;
    content: none !important;
  }

  table.has-actions td:last-child,
  table.has-actions th:last-child {
    width: auto;
    min-width: 0;
    padding-right: 0;
  }

  .actions {
    gap: 6px;
  }

  .action-menu-trigger {
    min-width: 38px;
  }

  .action-menu-trigger svg {
    display: block;
  }

  .action-menu-popover {
    position: fixed;
    width: max-content;
    min-width: 188px;
    max-width: min(280px, calc(100vw - 20px));
    padding: 8px;
    border-radius: 20px;
    background: rgba(12, 16, 27, 0.99);
  }

  .action-menu-item {
    min-height: 46px;
    border-radius: 14px;
    font-size: 13px;
  }

  .filter-popover {
    position: static;
  }

  .filter-popover-panel {
    right: 10px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 13px;
    border-radius: 22px;
  }

  .modal {
    border-radius: 26px 26px 0 0;
  }

  .modal-title,
  .modal h3 {
    font-size: 19px;
    line-height: 1.2;
  }

  .modal-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .toast-stack {
    right: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 10px;
  }

  .toast {
    width: 100%;
  }

  .page-header > .btn.primary.create-action,
  .page-header > button.btn.primary.create-action,
  .page-header > a.btn.primary.create-action {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border-radius: 17px;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .page-header > .btn.primary.create-action svg,
  .page-header > button.btn.primary.create-action svg,
  .page-header > a.btn.primary.create-action svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
    color: #141008;
  }

  .page-header > .btn.primary.create-action .desktop-label,
  .page-header > button.btn.primary.create-action .desktop-label,
  .page-header > a.btn.primary.create-action .desktop-label,
  .page-header > .btn.primary.create-action .mobile-label,
  .page-header > button.btn.primary.create-action .mobile-label,
  .page-header > a.btn.primary.create-action .mobile-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 980px) {
  body.page-rekening section[data-page-root] > .card.pad,
  body.page-budget section[data-page-root] > .card.pad,
  body.page-hutang section[data-page-root] > .card.pad,
  body.page-pengguna section[data-page-root] > .card.pad,
  body.page-transaksi section[data-page-root] > .card.pad,
  body.page-transfer section[data-page-root] > .card.pad {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-rekening section[data-page-root] > .card.pad > h3,
  body.page-pengguna section[data-page-root] > .card.pad > h3 {
    display: none;
  }

  body.page-hutang .debt-table tbody {
    gap: 10px;
  }

  body.page-hutang .debt-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0 10px;
    padding: 12px;
  }

  body.page-hutang .debt-table td:nth-child(1) {
    grid-column: 1 / 2;
    padding: 0 0 8px;
  }

  body.page-hutang .debt-title {
    padding-right: 0;
    font-size: 15px;
    line-height: 1.25;
  }

  body.page-hutang .debt-meta {
    max-width: 100%;
    font-size: 11px;
  }

  body.page-hutang .debt-mobile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  body.page-hutang .debt-table td:nth-child(2),
  body.page-hutang .debt-table td:nth-child(9) {
    display: none;
  }

  body.page-hutang .debt-table td:nth-child(10) {
    position: static;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
    justify-self: end;
    width: 38px;
    padding: 0;
  }

  body.page-hutang .debt-table td:nth-child(10) .actions {
    justify-content: flex-end;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(7),
  body.page-hutang .debt-table td:nth-child(8) {
    grid-column: 1 / -1;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(8) {
    min-height: 30px;
    padding-top: 8px;
  }

  body.page-hutang .debt-table td:nth-child(6) {
    font-size: 13px;
  }

  body.page-hutang .debt-table td:nth-child(7) {
    padding: 8px 0 2px;
  }

  body.page-hutang .debt-table .progress-track {
    height: 7px;
  }

  body.page-hutang .debt-table .progress-text {
    margin-top: 6px;
    font-size: 10px;
  }

  body.page-rekening .account-table tr,
  body.page-budget .budget-table tr,
  body.page-pengguna .user-table tr {
    display: grid;
    gap: 0;
  }

  body.page-rekening .account-table tr,
  body.page-budget .budget-table tr {
    position: relative;
    padding: 13px 14px;
  }

  body.page-rekening .account-table td:first-child,
  body.page-budget .budget-table td:first-child,
  body.page-pengguna .user-table td:first-child {
    padding-top: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
  }

  body.page-rekening .account-table td:first-child,
  body.page-budget .budget-table td:first-child {
    padding-right: 54px;
  }

  body.page-budget .budget-table td:nth-child(4) {
    display: grid;
    gap: 8px;
    text-align: left;
  }

  body.page-rekening .account-table td:last-child,
  body.page-budget .budget-table td:last-child {
    position: absolute;
    top: 11px;
    right: 11px;
    width: auto;
    padding: 0;
    border-top: 0;
  }

  body.page-rekening .account-table td:last-child::before,
  body.page-budget .budget-table td:last-child::before {
    display: none;
    content: none;
  }

  body.page-rekening .account-table td:last-child,
  body.page-budget .budget-table td:last-child,
  body.page-pengguna .user-table td:last-child {
    padding-bottom: 0;
  }

  body.page-rekening .account-table td:last-child .actions,
  body.page-budget .budget-table td:last-child .actions,
  body.page-pengguna .user-table td:last-child .actions {
    justify-content: stretch;
  }

  body.page-rekening .account-table td:last-child .actions,
  body.page-budget .budget-table td:last-child .actions {
    justify-content: flex-end;
  }

  body.page-rekening .account-table .action-menu,
  body.page-budget .budget-table .action-menu,
  body.page-pengguna .user-table .action-menu {
    width: 100%;
  }

  body.page-rekening .account-table .action-menu,
  body.page-budget .budget-table .action-menu {
    width: auto;
  }

  body.page-rekening .account-table .action-menu-trigger,
  body.page-budget .budget-table .action-menu-trigger,
  body.page-pengguna .user-table .action-menu-trigger {
    width: 100%;
    min-height: 40px;
  }

  body.page-rekening .account-table .action-menu-trigger,
  body.page-budget .budget-table .action-menu-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 15px;
  }

  body.page-transaksi .transaction-table tr {
    padding: 12px;
  }

  body.page-transaksi .transaction-table td:nth-child(1) {
    max-width: 100%;
  }

  body.page-transaksi .transaction-table td:nth-child(4) {
    position: static;
  }

  body.page-transaksi .transaction-table td:nth-child(8) {
    position: static;
  }
}

@media (max-width: 560px) {
  .content {
    max-width: none;
    padding-inline: 10px;
  }

  .page-title {
    font-size: 21px;
  }

  .table-wrap tr,
  body.page-transaksi .transaction-table tr,
  body.page-transfer .table-wrap tr,
  body.page-hutang .debt-table tr {
    padding: 12px;
    border-radius: 18px;
  }

  .table-wrap td {
    gap: 6px;
  }

  .table-wrap .money {
    max-width: 100%;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(8) {
    gap: 10px;
  }

  body.page-hutang .debt-table td:nth-child(3)::before,
  body.page-hutang .debt-table td:nth-child(4)::before,
  body.page-hutang .debt-table td:nth-child(5)::before,
  body.page-hutang .debt-table td:nth-child(6)::before,
  body.page-hutang .debt-table td:nth-child(8)::before {
    flex: 0 0 auto;
  }

  body.page-hutang .debt-table td:nth-child(3),
  body.page-hutang .debt-table td:nth-child(4),
  body.page-hutang .debt-table td:nth-child(5),
  body.page-hutang .debt-table td:nth-child(6),
  body.page-hutang .debt-table td:nth-child(8),
  body.page-transaksi .transaction-table td:nth-child(6),
  body.page-transaksi .transaction-table td:nth-child(7) {
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  body.page-transaksi .bank-history-table,
  body.page-transfer .bank-history-table,
  body.page-transaksi .bank-history-table tbody,
  body.page-transfer .bank-history-table tbody {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.page-transaksi .bank-history-table tr,
  body.page-transfer .bank-history-table tr,
  body.page-transaksi .transaction-table tr,
  body.page-transfer .transfer-table tr {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 38px !important;
    gap: 4px 10px !important;
    min-height: 0 !important;
    padding: 12px 10px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(216, 180, 106, 0.11) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.page-transaksi .bank-history-table td,
  body.page-transfer .bank-history-table td {
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  body.page-transaksi .bank-history-table td::before,
  body.page-transfer .bank-history-table td::before {
    display: none !important;
    content: none !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(1),
  body.page-transfer .bank-history-table td:nth-child(1) {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 4 !important;
    align-self: start !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(2),
  body.page-transfer .bank-history-table td:nth-child(2) {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    padding-right: 4px !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(3),
  body.page-transfer .bank-history-table td:nth-child(3) {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    text-align: left !important;
    white-space: normal !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(4),
  body.page-transaksi .bank-history-table td:nth-child(5),
  body.page-transaksi .bank-history-table td:nth-child(7),
  body.page-transfer .bank-history-table td:nth-child(5) {
    display: none !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(6),
  body.page-transfer .bank-history-table td:nth-child(4) {
    grid-column: 2 / 3 !important;
    grid-row: 3 / 4 !important;
    margin-top: 4px !important;
    color: var(--gold-2) !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-align: left !important;
  }

  body.page-transaksi .bank-history-table td:nth-child(8),
  body.page-transfer .bank-history-table td:nth-child(6) {
    grid-column: 3 / 4 !important;
    grid-row: 1 / 4 !important;
    align-self: start !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.page-transaksi .bank-history-table .actions,
  body.page-transfer .bank-history-table .actions {
    justify-content: flex-end !important;
  }

  body.page-transaksi .bank-history-table .action-menu-trigger,
  body.page-transfer .bank-history-table .action-menu-trigger {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 13px !important;
  }

  body.page-transaksi .bank-history-title,
  body.page-transfer .bank-history-title {
    font-size: 14px;
  }

  body.page-transaksi .bank-history-description,
  body.page-transfer .bank-history-description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.page-transaksi .bank-history-meta,
  body.page-transfer .bank-history-meta {
    display: none;
  }

  body.page-transaksi .bank-history-icon,
  body.page-transfer .bank-history-icon {
    width: 38px;
    height: 38px;
  }

  body.page-transaksi .bank-history-icon svg,
  body.page-transfer .bank-history-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 980px) {
  .actions,
  .user-actions {
    width: 100%;
    min-width: 0;
  }

  .action-menu-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
  }

  .action-menu-trigger svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .action-menu-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .settings-panel-head,
  .category-list-head {
    min-width: 0;
  }

  .settings-panel-head > *,
  .category-list-head > * {
    min-width: 0;
  }

  .settings-actions,
  .settings-save-bar {
    align-items: stretch;
  }

  .settings-actions .btn,
  .settings-save-bar .btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  body.page-transaksi .bank-history-table td:nth-child(8),
  body.page-transfer .bank-history-table td:nth-child(6) {
    min-width: 36px !important;
  }

  body.page-transaksi .bank-history-table .action-menu-trigger,
  body.page-transfer .bank-history-table .action-menu-trigger {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}

@media (max-width: 980px) {
  body,
  body.page-dashboard,
  body.login-body {
    background: var(--bg) !important;
  }

  body.login-body::before,
  body.login-body::after {
    display: none;
  }

  .table-wrap tr.empty-row,
  .table-wrap tr.empty-row:hover {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .table-wrap tr.empty-row td.empty {
    width: 100% !important;
    max-width: none !important;
    min-height: 58px;
    display: grid !important;
    place-items: center;
    padding: 18px 14px !important;
    border: 1px dashed rgba(216, 180, 106, 0.20) !important;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(16, 21, 34, 0.72), rgba(8, 11, 20, 0.84)),
      #0b0f1a;
    color: var(--muted) !important;
    font-size: 13px;
    font-weight: 850;
    text-align: center !important;
  }

  .table-wrap tr.empty-row td.empty::before {
    display: none !important;
    content: none !important;
  }

  body.page-budget .budget-table tr.empty-row td.empty,
  body.page-transaksi .transaction-table tr.empty-row td.empty,
  body.page-transfer .transfer-table tr.empty-row td.empty {
    min-height: 56px;
    border-style: solid !important;
  }

  body.page-pengaturan .category-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0 10px;
    padding: 13px 14px;
  }

  body.page-pengaturan .category-table td {
    min-width: 0;
  }

  body.page-pengaturan .category-table td:nth-child(1) {
    grid-column: 1 / 2;
    padding: 0 0 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
  }

  body.page-pengaturan .category-table td:nth-child(2),
  body.page-pengaturan .category-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.page-pengaturan .category-table td:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    width: 40px;
    padding: 0;
    border-top: 0;
  }

  body.page-pengaturan .category-table td:nth-child(4)::before {
    display: none;
    content: none;
  }

  body.page-pengaturan .category-table td:nth-child(4) .actions {
    justify-content: flex-end;
  }

  body.page-pengaturan .category-table .action-menu-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body.page-pengaturan .category-table tr.empty-row {
    display: block;
  }

  body.page-laporan .report-workspace {
    gap: 14px;
  }

  body.page-laporan .report-control-panel {
    position: static;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  body.page-laporan .report-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  body.page-laporan .report-control-head > div {
    min-width: 0;
  }

  body.page-laporan .report-mobile-filter-toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-color: rgba(216, 180, 106, 0.22);
    border-radius: 16px;
    background: rgba(216, 180, 106, 0.08);
    color: var(--gold-2);
  }

  body.page-laporan .report-mobile-filter-toggle svg {
    width: 22px;
    height: 22px;
  }

  body.page-laporan .report-filter-close-icon {
    display: none;
  }

  body.page-laporan .report-control-panel.is-filter-collapsed .report-filter-open-icon {
    display: inline-grid;
  }

  body.page-laporan .report-control-panel.is-filter-collapsed .report-filter-close-icon {
    display: none;
  }

  body.page-laporan .report-control-panel:not(.is-filter-collapsed) .report-filter-open-icon {
    display: none;
  }

  body.page-laporan .report-control-panel:not(.is-filter-collapsed) .report-filter-close-icon {
    display: inline-grid;
  }

  body.page-laporan .report-control-panel.is-filter-collapsed .report-quick-range,
  body.page-laporan .report-control-panel.is-filter-collapsed .report-filter-grid,
  body.page-laporan .report-control-panel.is-filter-collapsed .report-load-btn {
    display: none;
  }

  body.page-laporan .report-control-head p {
    display: none;
  }

  body.page-laporan .report-control-head h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  body.page-laporan .report-quick-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-laporan .report-range-chip {
    min-height: 34px;
    border-radius: 14px;
  }

  body.page-laporan .report-filter-grid {
    gap: 9px;
  }

  body.page-laporan .report-board-head {
    display: grid;
    gap: 5px;
    padding: 0 2px;
  }

  body.page-laporan .report-board-head h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  body.page-laporan .report-metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.page-laporan .report-metric {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    align-items: center;
    align-content: center;
    gap: 4px 12px;
    padding: 12px 13px;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  body.page-laporan .report-metric::before {
    top: 13px;
    right: 13px;
    width: 8px;
    height: 8px;
  }

  body.page-laporan .report-metric::after {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    opacity: 0.55;
  }

  body.page-laporan .report-metric > span {
    grid-column: 1 / 2;
    font-size: 10px;
    line-height: 1.25;
  }

  body.page-laporan .report-metric > div {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    justify-items: end;
    text-align: right;
  }

  body.page-laporan .report-metric small {
    grid-column: 1 / 2;
    max-width: 100%;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.page-laporan .report-money {
    font-size: 18px;
  }

  body.page-laporan .report-money.secondary,
  body.page-laporan .report-money-stack.is-compact .report-money.secondary,
  body.page-laporan .report-money-stack.is-tight .report-money.secondary {
    font-size: 14px;
  }

  body.page-laporan .report-section {
    padding: 12px;
    border-radius: 16px;
  }

  body.page-laporan .report-card-head {
    margin-bottom: 10px;
  }

  body.page-laporan .report-card-head h3 {
    font-size: 16px;
  }

  body.page-laporan .report-card-head p,
  body.page-laporan .report-board-head p {
    font-size: 11px;
  }

  body.page-laporan .report-expense-chart,
  body.page-laporan .report-internal-grid {
    gap: 9px;
  }

  body.page-laporan .report-expense-visual {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.page-laporan .report-donut-card {
    grid-template-columns: 108px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }

  body.page-laporan .report-donut {
    width: 108px;
  }

  body.page-laporan .report-donut::after {
    width: 60px;
  }

  body.page-laporan .report-category-row {
    padding: 11px 12px 14px;
  }

  body.page-laporan .report-internal-block {
    padding: 11px;
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  body.page-laporan .report-control-panel {
    padding: 12px;
  }

  body.page-laporan .report-control-head h1 {
    font-size: 22px;
  }

  body.page-laporan .report-load-btn {
    min-height: 46px;
    border-radius: 14px;
  }

  body.page-laporan .report-metric {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  body.page-laporan .report-metric > div {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-items: start;
    text-align: left;
  }

  body.page-laporan .report-metric small {
    grid-column: 1 / -1;
  }

  body.page-laporan .report-money {
    font-size: 20px;
  }

  body.page-laporan .report-money-stack.is-tight .report-money.primary,
  body.page-laporan .report-money-stack.is-compact .report-money.primary {
    font-size: 18px;
  }

  body.page-budget section[data-page-root] > .card.pad {
    padding-top: 2px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .content {
    padding: 18px 18px calc(86px + env(safe-area-inset-bottom));
  }

  .card.pad,
  .dash-card,
  .report-section,
  .settings-panel,
  .profile-card,
  .transfer-history-card {
    padding: 16px;
    border-radius: 18px;
  }

  .table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 20, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }

  .table-wrap table:not(.bank-history-table),
  .table-wrap table:not(.bank-history-table) thead,
  .table-wrap table:not(.bank-history-table) tbody,
  .table-wrap table:not(.bank-history-table) tr,
  .table-wrap table:not(.bank-history-table) th,
  .table-wrap table:not(.bank-history-table) td {
    display: revert;
  }

  .table-wrap table:not(.bank-history-table) {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
  }

  .table-wrap table:not(.bank-history-table) thead {
    display: table-header-group;
  }

  .table-wrap table:not(.bank-history-table) tbody {
    display: table-row-group;
  }

  .table-wrap table:not(.bank-history-table) tr {
    display: table-row;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap table:not(.bank-history-table) th,
  .table-wrap table:not(.bank-history-table) td {
    display: table-cell;
    width: auto;
    min-height: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(216, 180, 106, 0.09);
    text-align: left;
    vertical-align: middle;
  }

  .table-wrap table:not(.bank-history-table) th {
    color: #b7c0ce;
    font-size: 11px;
    white-space: nowrap;
  }

  .table-wrap table:not(.bank-history-table) td::before,
  .table-wrap table:not(.bank-history-table) th::before {
    display: none;
    content: none;
  }

  .table-wrap table:not(.bank-history-table) td.money,
  .table-wrap table:not(.bank-history-table) .money {
    white-space: nowrap;
  }

  .table-wrap table:not(.bank-history-table) tr.empty-row td.empty {
    display: table-cell;
    padding: 18px 14px;
    border: 0;
    background: transparent;
    text-align: center;
  }

  .bank-history-table {
    min-width: 760px;
  }

  .bank-history-table,
  .bank-history-table tbody {
    display: block;
  }

  .bank-history-table thead {
    display: none;
  }

  .bank-history-table tr {
    display: grid;
    grid-template-columns: 46px minmax(170px, 1fr) minmax(96px, auto) minmax(132px, auto) minmax(82px, auto);
    gap: 10px;
    min-height: 76px;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(216, 180, 106, 0.09);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bank-history-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .bank-history-table td::before {
    display: none;
    content: none;
  }

  .bank-history-table .bank-history-main-amount,
  .bank-history-table .money,
  .bank-history-amount {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  body.page-laporan .report-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-laporan .report-metric {
    min-height: 104px;
  }

  body.page-laporan .report-money {
    font-size: 20px;
  }

  body.page-laporan .report-money-stack.is-compact .report-money.primary,
  body.page-laporan .report-money-stack.is-tight .report-money.primary {
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  body.page-rekening .account-table tbody,
  body.page-budget .budget-table tbody {
    display: grid;
    gap: 10px;
  }

  body.page-rekening .account-table tr.account-row-item,
  body.page-budget .budget-table tr.budget-row-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 6px 10px !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding: 12px 13px !important;
    overflow: visible !important;
    border: 1px solid rgba(216, 180, 106, 0.16) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(17, 22, 36, 0.96), rgba(10, 13, 23, 0.97)),
      var(--card) !important;
    box-shadow: none !important;
  }

  body.page-rekening .account-table tr.account-row-item {
    grid-template-areas:
      "title action"
      "number action"
      "balance currency"
      "balance status" !important;
  }

  body.page-budget .budget-table tr.budget-row-item {
    grid-template-areas:
      "title action"
      "currency action"
      "amount amount"
      "progress progress" !important;
  }

  body.page-rekening .account-table tr.account-row-item td,
  body.page-budget .budget-table tr.budget-row-item td {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  body.page-rekening .account-table tr.account-row-item td::before,
  body.page-budget .budget-table tr.budget-row-item td::before {
    display: none !important;
    content: none !important;
  }

  body.page-rekening .account-name-cell,
  body.page-budget .budget-category-cell {
    padding-right: 0 !important;
    color: var(--text) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  body.page-rekening .account-name-cell {
    grid-area: title !important;
  }

  body.page-budget .budget-category-cell {
    grid-area: title !important;
  }

  body.page-rekening .account-action-cell,
  body.page-budget .budget-action-cell {
    position: static !important;
    grid-area: action !important;
    align-self: start !important;
    justify-self: end !important;
    width: 40px !important;
  }

  body.page-rekening .account-action-cell .actions,
  body.page-budget .budget-action-cell .actions {
    justify-content: flex-end !important;
  }

  body.page-rekening .account-currency-cell,
  body.page-rekening .account-status-cell,
  body.page-budget .budget-currency-cell {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    align-self: start !important;
    width: auto !important;
  }

  body.page-rekening .account-currency-cell .pill,
  body.page-rekening .account-status-cell .pill,
  body.page-budget .budget-currency-cell .pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 10px;
  }

  body.page-rekening .account-number-cell {
    grid-area: number !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body.page-rekening .account-number-cell::after {
    content: '';
  }

  body.page-rekening .account-currency-cell {
    grid-area: currency !important;
    justify-self: end !important;
  }

  body.page-rekening .account-balance-cell,
  body.page-budget .budget-plan-cell {
    color: var(--gold-2) !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  body.page-rekening .account-balance-cell {
    grid-area: balance !important;
    align-self: center !important;
    padding-top: 7px !important;
    border-top: 1px solid rgba(216, 180, 106, 0.10) !important;
  }

  body.page-rekening .account-status-cell {
    grid-area: status !important;
    justify-self: end !important;
    align-self: end !important;
    margin-top: 0 !important;
  }

  body.page-budget .budget-currency-cell {
    grid-area: currency !important;
  }

  body.page-budget .budget-plan-cell {
    grid-area: amount !important;
    padding-top: 7px !important;
    border-top: 1px solid rgba(216, 180, 106, 0.10) !important;
  }

  body.page-budget .budget-progress-cell {
    display: block !important;
    grid-area: progress !important;
    padding-top: 7px !important;
    border-top: 1px solid rgba(216, 180, 106, 0.10) !important;
  }

  body.page-budget .budget-progress {
    gap: 6px;
    min-width: 0;
  }

  body.page-budget .budget-progress-head {
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
  }

  body.page-budget .budget-progress-head span {
    flex: 0 1 auto;
    max-width: calc(100% - 44px);
  }

  body.page-budget .budget-progress-track {
    width: 100%;
    height: 7px;
  }
}

@media (max-width: 760px) {
  body.page-transfer .transfer-history-groups {
    gap: 18px;
  }

  body.page-transfer .transfer-history-group {
    gap: 8px;
  }

  body.page-transfer .transfer-date-group {
    gap: 8px;
    padding: 0 2px;
    border: 0;
    background: transparent;
  }

  body.page-transfer .transfer-date-group span {
    font-size: 12px;
    line-height: 1.15;
  }

  body.page-transfer .transfer-date-group small {
    font-size: 10px;
  }

  body.page-transfer .transfer-history-table-frame {
    overflow: hidden;
    border-radius: 16px;
  }

  body.page-transaksi .transaction-history-groups {
    gap: 18px;
  }

  body.page-transaksi .transaction-history-group {
    gap: 8px;
  }

  body.page-transaksi .transaction-date-group {
    gap: 8px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.page-transaksi .transaction-date-group span {
    font-size: 12px;
    line-height: 1.15;
  }

  body.page-transaksi .transaction-date-group small {
    font-size: 10px;
  }

  body.page-transaksi .transaction-history-table-frame {
    overflow: hidden;
    border-radius: 16px;
  }
}
