:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#687386;--line:#e5e9f0;--primary:#2357d8;--danger:#b42318;--ok:#067647;--warn:#b54708}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--primary);text-decoration:none}.container{max-width:1180px;margin:0 auto;padding:18px}.compact-page{padding-top:16px;padding-bottom:28px}.topbar{background:#101828;color:white;position:sticky;top:0;z-index:20}.topbar .container,.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;padding-bottom:10px}.brand{font-weight:800;font-size:18px;color:white}.top-month-picker{margin-left:auto}.top-month-picker input{height:36px;padding:4px 8px;border-radius:8px;border:1px solid #344054;background:#fff;color:#101828}.grid{display:grid;gap:10px}.kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.compact-card{padding:12px}.kpi{padding:12px}.kpi small,.muted{color:var(--muted)}.kpi strong{display:block;font-size:18px;margin-top:5px}.kpi.emphasis{border-color:#b2c5ff}.page-title-row,.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.page-title-row{margin:4px 0 12px}.section-head{margin:18px 0 8px}.compact-section{margin-top:16px}.small-copy,.tap-hint{font-size:12px;margin-top:3px}h1{font-size:23px}h2{font-size:17px}h3{font-size:15px;margin:0 0 10px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:8px 11px;font-weight:700;cursor:pointer;background:#e9eefc;color:#1947b7;font-size:13px}.btn.primary{background:var(--primary);color:white}.btn.danger{background:#fee4e2;color:var(--danger)}.btn.ghost{background:white;border:1px solid var(--line);color:var(--text)}.btn-xs{padding:5px 8px;font-size:12px}.compact-action{white-space:nowrap}table{width:100%;border-collapse:collapse;background:white}th,td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:#f8fafc;color:#475467;font-size:12px}td{font-size:13px}.table-card{padding:0;overflow:visible}.table-card table{border-radius:12px;overflow:hidden}.money{text-align:right;font-variant-numeric:tabular-nums}.pill{display:inline-block;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:700;background:#eef2ff;color:#3538cd}.pill.ok{background:#ecfdf3;color:var(--ok)}.pill.warn{background:#fff6ed;color:var(--warn)}form.inline{display:inline}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-form{gap:8px}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}.field input,.field select,.field textarea,.month-picker-form input{width:100%;padding:9px 10px;border:1px solid #d0d5dd;border-radius:8px;background:white;font-size:14px}.field.full{grid-column:1/-1}.actions{display:flex;gap:6px;align-items:center}.notice{padding:10px 12px;border-radius:9px;background:#eef4ff;color:#1849a9;margin-bottom:12px;font-size:13px}.negative{color:var(--danger)}.positive{color:var(--ok)}.progress{
height:8px;
background:#d0d5dd;
border:1px solid #c2c8d0;
border-radius:999px;
overflow:hidden;
margin-top:6px;
max-width:240px;
box-shadow:inset 0 1px 2px rgba(16,24,40,.10)
}
.progress>span{
display:block;
height:100%;
min-width:0;
border-radius:999px;
background:linear-gradient(90deg,#16a34a 0%,#84cc16 30%,#facc15 55%,#f97316 78%,#dc2626 100%);
box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;
transition:width .25s ease
}.row-actions{white-space:nowrap}.two-col{grid-template-columns:1.2fr .8fr}.empty{padding:24px;text-align:center;color:var(--muted)}.item-row{cursor:pointer}.item-row:hover td{background:#f9fbff}.edit-pop{min-width:235px;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;position:absolute;right:18px;z-index:10;box-shadow:0 8px 24px rgba(16,24,40,.12)}details{position:relative}details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}.compact-details{margin-top:12px}.compact-details>summary{font-size:13px;font-weight:700;color:var(--primary);padding:8px 2px}.compact-settings{margin-top:6px}.picker-shell{max-width:560px;margin:12vh auto 0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 6px 30px rgba(16,24,40,.06)}.picker-copy{margin-bottom:14px}.month-picker-form{display:flex;gap:8px}.month-picker-form input{min-width:0}.swal-form{text-align:left}.swal-form label{display:block;font-size:12px;font-weight:700;margin:8px 0 3px}.swal-form .swal2-input,.swal-form .swal2-textarea,.swal-form .swal2-select{width:100%;margin:0;height:auto;font-size:14px;padding:9px 10px}.swal-form .swal2-textarea{min-height:64px}.swal2-popup{border-radius:14px!important}.swal2-title{font-size:19px!important}.swal2-actions{margin-top:12px!important}
@media(max-width:900px){.container{padding:12px}.compact-page{padding-top:10px}.kpis{display:flex;overflow-x:auto;gap:8px;padding-bottom:3px;scroll-snap-type:x proximity}.kpi{min-width:145px;scroll-snap-align:start}.kpi strong{font-size:16px}.two-col,.form-grid{grid-template-columns:1fr}.topbar .container{padding-top:8px;padding-bottom:8px}.brand{font-size:16px}.top-month-picker input{width:138px}.page-title-row{align-items:flex-start}.page-title-row h1{font-size:20px}.page-title-row .btn{padding:7px 9px}.table-card{background:transparent;border:0;box-shadow:none}.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}.responsive-table thead{display:none}.responsive-table tr{background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:8px;padding:8px 9px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.responsive-table td{border:0;padding:3px 0;text-align:right;min-height:23px;font-size:12px}.responsive-table td:before{content:attr(data-label);float:left;color:var(--muted);font-size:11px;margin-right:10px}.responsive-table td:first-child{text-align:left;padding-bottom:6px;font-size:14px}.responsive-table td:first-child:before,.responsive-table td.row-actions:before{display:none}.responsive-table td.row-actions{position:absolute;right:20px;margin-top:-31px;width:auto}.item-table tr{position:relative;padding-right:55px}.transaction-table tr{position:relative;padding-right:55px}.transaction-table td:first-child{text-align:right;font-size:12px}.transaction-table td:first-child:before{display:block}.progress{max-width:none}.edit-pop{position:fixed;left:14px;right:14px;top:60px;min-width:0;max-height:80vh;overflow:auto}.tap-hint{display:none}.compact-details>summary{padding:9px 1px}.picker-shell{margin:8vh 4px 0;padding:18px}.month-picker-form{display:grid;grid-template-columns:1fr auto}.swal2-popup{width:calc(100% - 24px)!important;padding:14px!important}}
@media(max-width:420px){.container{padding-left:10px;padding-right:10px}.top-month-picker input{width:126px;font-size:13px}.compact-action{padding:7px 8px}.kpi{min-width:134px}.page-title-row .muted{max-width:220px}.page-title-row{gap:8px}.page-title-row .btn{font-size:12px}.responsive-table tr{padding-left:8px;padding-right:48px}}



.income-section{border-top:3px solid #16a34a}
.expense-section{border-top:3px solid #ef4444}
.income-section .progress>span{
    background:#16a34a;
}
.debt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
.debt-card{padding:14px 16px}
.debt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.debt-head small,.debt-metrics small{display:block;color:var(--muted);font-size:11px}
.debt-head strong{display:block;font-size:17px;margin-top:2px}
.debt-status{font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.debt-status.paid{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}
.debt-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}
.debt-metrics>div{padding:9px 10px;background:#f8fafc;border:1px solid var(--line);border-radius:9px;min-width:0}
.debt-metrics strong{display:block;font-size:14px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.debt-remaining strong{font-size:16px}
.debt-progress-head{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;margin-top:11px}
.debt-progress{height:9px;background:#d0d5dd;border:1px solid #c2c8d0;border-radius:999px;overflow:hidden;margin-top:5px}
.debt-progress>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#dc2626 0%,#f97316 40%,#84cc16 75%,#16a34a 100%);transition:width .25s ease}

@media(max-width:600px){
    .debt-grid{grid-template-columns:1fr}
    .debt-card{padding:11px 12px}
    .debt-metrics{gap:5px}
    .debt-metrics>div{padding:7px 8px}
    .debt-metrics strong{font-size:12px}
    .debt-remaining strong{font-size:14px}
    .income-section,.expense-section{border-top-width:2px}
}
@media(max-width:380px){
    .debt-metrics{grid-template-columns:1fr 1fr}
    .debt-remaining{grid-column:1 / -1}
}



.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.month-navigator{display:flex;align-items:center;gap:6px;margin-left:auto}
.month-nav-arrow{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;background:#1d2939;border:1px solid #344054;font-size:24px;line-height:1}
.pretty-month-picker{position:relative;display:flex;align-items:center;gap:8px;min-width:184px;height:40px;padding:5px 10px;border:1px solid #344054;border-radius:10px;background:#fff;color:#101828;cursor:pointer;overflow:hidden}
.pretty-month-icon{width:25px;height:25px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:#eef4ff;color:#2357d8;font-size:12px}
.pretty-month-copy{display:flex;flex-direction:column;line-height:1.05;min-width:0;flex:1}
.pretty-month-copy small{font-size:9px;color:#667085;text-transform:uppercase;letter-spacing:.05em}
.pretty-month-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.pretty-month-chevron{font-size:15px;color:#667085}
.pretty-month-picker input,.landing-month-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.quick-action-row{margin:10px 0 4px}
.quick-transaction-btn{width:100%;border:1px solid #b2c5ff;background:linear-gradient(135deg,#eef4ff,#f8faff);border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;text-align:left;color:#173b8f;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.quick-action-icon{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#2357d8;color:#fff;font-size:22px;flex:0 0 auto}
.quick-transaction-btn>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}
.quick-transaction-btn strong{font-size:13px}.quick-transaction-btn small{font-size:10px;color:#667085;margin-top:2px}
.quick-action-arrow{font-size:22px;color:#667085}
.debt-main-balance{margin-top:12px;padding:11px 12px;border-radius:10px;background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa}
.debt-main-balance small{display:block;font-size:11px;color:#9a3412}.debt-main-balance strong{display:block;font-size:22px;margin-top:3px;color:#7c2d12}
.independent-scroll{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.expense-scroll{max-height:560px}.transaction-scroll{max-height:460px}
.independent-scroll table{width:100%;min-width:0;table-layout:fixed}
.pretty-picker-form{display:grid;grid-template-columns:1fr auto;gap:8px}
.landing-month-picker{position:relative;display:flex;align-items:center;gap:10px;min-height:50px;padding:7px 11px;border:1px solid #d0d5dd;border-radius:11px;background:#fff;cursor:pointer;overflow:hidden}
.landing-calendar-icon{width:32px;height:32px;border-radius:9px;background:#eef4ff;color:#2357d8;display:flex;align-items:center;justify-content:center}
.landing-picker-copy{display:flex;flex-direction:column;flex:1;min-width:0}.landing-picker-copy small{font-size:10px;color:#667085;text-transform:uppercase;letter-spacing:.05em}.landing-picker-copy strong{font-size:14px;margin-top:2px}.open-month-btn{min-width:110px}

@media(max-width:900px){
  .dashboard-kpis{grid-template-columns:none}
  .mobile-topbar{gap:6px}
  .brand{display:none}
  .month-navigator{margin-left:0;flex:1;justify-content:center}
  .pretty-month-picker{min-width:0;width:min(220px,calc(100vw - 150px))}
  .month-create-action{flex:0 0 auto}
  .expense-scroll{max-height:470px}
  .transaction-scroll{max-height:430px}
  .independent-scroll{padding:0 3px 2px;background:transparent;border:0;box-shadow:none}
  .independent-scroll .responsive-table{display:block;width:100%;min-width:0;table-layout:auto}
  .independent-scroll .responsive-table tbody{display:block;width:100%}
  .independent-scroll .responsive-table tr{width:100%;max-width:100%;margin-left:0;margin-right:0;overflow:hidden}
  .independent-scroll .responsive-table td{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal}
  .independent-scroll .responsive-table td.money{white-space:nowrap}
}
@media(max-width:600px){
  body{overflow-x:hidden}
  .container{max-width:100%;overflow-x:hidden}
  .topbar .container{padding-left:8px;padding-right:8px}
  .month-nav-arrow{width:30px;height:36px;border-radius:8px}
  .pretty-month-picker{height:36px;width:min(210px,calc(100vw - 128px));padding:4px 8px}
  .pretty-month-icon{width:23px;height:23px}
  .pretty-month-copy strong{font-size:11px}
  .compact-action{font-size:0;width:34px;height:36px;padding:0;border-radius:8px}
  .compact-action:after{content:'+';font-size:20px;line-height:1}
  .page-title-row{margin-bottom:8px}
  .quick-action-row{margin-top:9px}
  .quick-transaction-btn{padding:9px 10px}
  .quick-action-icon{width:30px;height:30px}
  .debt-card{padding:12px}
  .debt-head strong{font-size:15px}
  .debt-main-balance{padding:9px 10px;margin-top:9px}
  .debt-main-balance strong{font-size:20px}
  .debt-metrics{grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}
  .debt-metrics>div{padding:7px 8px}
  .debt-metrics strong{font-size:12px;white-space:normal;overflow:visible}
  .debt-progress-head{margin-top:8px;font-size:10px}
  .expense-scroll{max-height:430px}
  .transaction-scroll{max-height:390px}
  .responsive-table.item-table tr{padding:8px 9px}
  .item-table td:first-child{padding-right:0}
  .transaction-table tr{padding:8px 9px 9px}
  .transaction-table td.row-actions{position:static!important;width:100%!important;margin:5px 0 0!important;text-align:right!important;padding-top:5px!important;border-top:1px dashed #e5e9f0!important}
  .transaction-table td.row-actions form{display:block}
  .transaction-table td.row-actions .btn{width:auto;min-width:64px}
  .pretty-picker-form{grid-template-columns:1fr}
  .open-month-btn{width:100%}
}
@media(max-width:380px){
  .pretty-month-picker{width:calc(100vw - 116px)}
  .pretty-month-icon{display:none}
  .debt-metrics{grid-template-columns:1fr 1fr}
}



@media (max-width: 600px){
    .summary-grid,
    .kpi-grid,
    .dashboard-grid,
    .stats-grid{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
        overflow:visible !important;
        overflow-x:visible !important;
        scroll-snap-type:none !important;
    }

    .summary-grid > *,
    .kpi-grid > *,
    .dashboard-grid > *,
    .stats-grid > *{
        min-width:0 !important;
        width:auto !important;
        flex:none !important;
        scroll-snap-align:none !important;
    }

    .summary-grid .card,
    .kpi-grid .card,
    .dashboard-grid .card,
    .stats-grid .card{
        padding:10px 11px !important;
    }

    .summary-grid strong,
    .kpi-grid strong,
    .dashboard-grid strong,
    .stats-grid strong{
        font-size:15px !important;
        overflow-wrap:anywhere;
    }
}


@media (max-width:600px){
    .debt-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:9px !important;
    }
    .debt-card{
        width:100% !important;
        min-width:0 !important;
        overflow:hidden;
    }
}



@media (max-width:600px){
    body{
        font-size:14px !important;
        line-height:1.45 !important;
    }

    h1{
        font-size:22px !important;
        line-height:1.2 !important;
    }

    h2,
    .section-head h2{
        font-size:18px !important;
        line-height:1.25 !important;
    }

    .muted,
    .tap-hint,
    small{
        font-size:12px !important;
    }

    .summary-grid .card small,
    .kpi-grid .card small,
    .dashboard-grid .card small,
    .stats-grid .card small{
        font-size:12px !important;
    }

    .summary-grid strong,
    .kpi-grid strong,
    .dashboard-grid strong,
    .stats-grid strong{
        font-size:17px !important;
        line-height:1.25 !important;
    }

    .responsive-table,
    .item-table,
    .transaction-table{
        font-size:13px !important;
    }

    .responsive-table td,
    .responsive-table th,
    .item-table td,
    .item-table th,
    .transaction-table td,
    .transaction-table th{
        font-size:13px !important;
    }

    .item-row strong{
        font-size:14px !important;
    }

    .debt-head strong{
        font-size:17px !important;
    }

    .debt-head small,
    .debt-metrics small,
    .debt-progress-head{
        font-size:12px !important;
    }

    .debt-metrics strong{
        font-size:14px !important;
    }

    .debt-remaining strong{
        font-size:17px !important;
    }

    .btn,
    button,
    input,
    select,
    textarea{
        font-size:14px !important;
    }

    .swal2-title{
        font-size:20px !important;
    }

    .swal-form-label,
    .swal-mini-title{
        font-size:13px !important;
    }
}



@media (max-width:600px){
    .grid.kpis.compact-kpis.dashboard-kpis{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        grid-auto-flow:row !important;
        gap:8px !important;

        width:100% !important;
        max-width:100% !important;

        overflow:visible !important;
        overflow-x:hidden !important;
        padding-bottom:0 !important;

        scroll-snap-type:none !important;
        -webkit-overflow-scrolling:auto !important;
    }

    .grid.kpis.compact-kpis.dashboard-kpis > .card,
    .grid.kpis.compact-kpis.dashboard-kpis > .kpi{
        min-width:0 !important;
        width:100% !important;
        max-width:100% !important;
        flex:initial !important;
        flex-basis:auto !important;
        scroll-snap-align:none !important;
        box-sizing:border-box !important;
    }

    .grid.kpis.compact-kpis.dashboard-kpis .kpi strong{
        display:block !important;
        font-size:17px !important;
        line-height:1.25 !important;
        white-space:normal !important;
        overflow-wrap:anywhere !important;
    }

    .grid.kpis.compact-kpis.dashboard-kpis .kpi small{
        display:block !important;
        font-size:12px !important;
        line-height:1.25 !important;
        margin-bottom:4px !important;
    }
}



.month-picker-only{
    flex:1 1 auto;
    justify-content:flex-end;
}
.month-picker-only .top-month-picker{
    width:auto;
}
.month-picker-only .pretty-month-picker{
    min-width:170px;
}

.js-txn-detail{
    cursor:pointer;
}
.js-txn-detail:active{
    background:#f8fafc;
}

.txn-detail-popup{
    text-align:left;
}
.txn-detail-amount{
    text-align:center;
    font-size:22px;
    font-weight:800;
    margin:2px 0 14px;
}
.txn-detail-amount.negative{
    color:#b42318;
}
.txn-detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}
.txn-detail-grid > div{
    border:1px solid #e4e7ec;
    background:#f8fafc;
    border-radius:9px;
    padding:9px 10px;
}
.txn-detail-grid span{
    display:block;
    color:#667085;
    font-size:12px;
    margin-bottom:3px;
}
.txn-detail-grid strong{
    display:block;
    font-size:14px;
    line-height:1.4;
    overflow-wrap:anywhere;
}
.txn-detail-wide{
    grid-column:1 / -1;
}
.txn-note-box > div{
    font-size:14px;
    line-height:1.5;
    color:#101828;
    overflow-wrap:anywhere;
}
.txn-note-empty{
    color:#98a2b3;
    font-style:italic;
}

@media(max-width:600px){
    
    .compact-section h2,
    .section-head h2{
        font-size:19px !important;
        line-height:1.25 !important;
    }

    .income-section .responsive-table,
    .expense-section .responsive-table,
    .transaction-table{
        font-size:15px !important;
    }

    .income-section .responsive-table td,
    .expense-section .responsive-table td,
    .transaction-table td{
        font-size:15px !important;
        line-height:1.4 !important;
    }

    .income-section .item-row strong,
    .expense-section .item-row strong{
        font-size:16px !important;
        line-height:1.35 !important;
    }

    .income-section .responsive-table td::before,
    .expense-section .responsive-table td::before,
    .transaction-table td::before{
        font-size:12px !important;
    }

    .transaction-table .money{
        font-size:15px !important;
        font-weight:700 !important;
    }

    .transaction-table .btn-xs{
        font-size:13px !important;
        min-height:34px;
        padding:6px 10px;
    }

    .tap-hint,
    .muted.small-copy{
        font-size:13px !important;
    }

    
    .mobile-topbar{
        gap:8px !important;
    }
    .month-picker-only{
        min-width:0;
        justify-content:flex-end;
    }
    .month-picker-only .pretty-month-picker{
        min-width:0;
        width:168px;
        padding:7px 9px;
    }
    .month-picker-only .pretty-month-copy small{
        font-size:10px !important;
    }
    .month-picker-only .pretty-month-copy strong{
        font-size:14px !important;
        white-space:nowrap;
    }

    .txn-detail-grid{
        grid-template-columns:1fr 1fr;
        gap:7px;
    }
    .txn-detail-grid > div{
        padding:8px 9px;
    }
    .txn-detail-grid span{
        font-size:12px !important;
    }
    .txn-detail-grid strong,
    .txn-note-box > div{
        font-size:15px !important;
    }
    .txn-detail-amount{
        font-size:23px;
    }
}



.txn-detail-popup{
    text-align:left !important;
    width:100%;
}

.txn-detail-amount{
    text-align:center !important;
    font-size:26px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    margin:0 0 16px !important;
}

.txn-detail-list{
    display:flex;
    flex-direction:column;
    gap:0;
    border:1px solid #e4e7ec;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.txn-detail-row{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:12px;
    align-items:start;
    padding:11px 12px;
    border-bottom:1px solid #eaecf0;
}

.txn-detail-row span,
.txn-detail-note > span{
    color:#667085;
    font-size:13px !important;
    font-weight:600;
    line-height:1.35;
}

.txn-detail-row strong{
    color:#101828;
    font-size:16px !important;
    font-weight:700;
    line-height:1.4;
    text-align:right;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.txn-detail-note{
    padding:12px;
    background:#f8fafc;
}

.txn-detail-note > span{
    display:block;
    margin-bottom:7px;
}

.txn-detail-note > div{
    color:#101828;
    font-size:16px !important;
    line-height:1.5;
    font-weight:500;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.txn-note-empty{
    color:#98a2b3 !important;
    font-style:italic;
    font-weight:400 !important;
}

@media(max-width:600px){
    
    .income-section .item-row strong,
    .expense-section .item-row strong,
    .income-section .responsive-table td[data-label="Item"],
    .expense-section .responsive-table td[data-label="Item"]{
        font-size:18px !important;
        line-height:1.3 !important;
        font-weight:800 !important;
    }

    
    .income-section .responsive-table td,
    .expense-section .responsive-table td,
    .transaction-table td{
        font-size:16px !important;
        line-height:1.45 !important;
    }

    .income-section .responsive-table td::before,
    .expense-section .responsive-table td::before,
    .transaction-table td::before{
        font-size:13px !important;
        font-weight:600 !important;
    }

    .transaction-table td[data-label="Deskripsi"],
    .transaction-table td[data-label="Item"]{
        font-size:16px !important;
        font-weight:650 !important;
    }

    .transaction-table .money{
        font-size:16px !important;
    }

    
    .swal2-popup{
        width:calc(100% - 24px) !important;
        max-width:430px !important;
        padding:18px 16px 16px !important;
        border-radius:16px !important;
    }

    .swal2-title{
        font-size:22px !important;
        line-height:1.25 !important;
        padding:0 0 12px !important;
    }

    .swal2-html-container{
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .txn-detail-amount{
        font-size:27px !important;
        margin-bottom:14px !important;
    }

    .txn-detail-row{
        grid-template-columns:82px minmax(0,1fr);
        gap:10px;
        padding:10px 11px;
    }

    .txn-detail-row span,
    .txn-detail-note > span{
        font-size:13px !important;
    }

    .txn-detail-row strong,
    .txn-detail-note > div{
        font-size:16px !important;
    }

    .swal2-actions{
        width:100% !important;
        margin:14px 0 0 !important;
    }

    .swal2-confirm{
        width:100% !important;
        min-height:46px !important;
        font-size:16px !important;
        border-radius:10px !important;
    }
}



@media (max-width:600px){
    .topbar .mobile-topbar{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:8px !important;
    }

    .topbar .mobile-topbar .month-picker-only{
        flex:0 1 auto !important;
        width:auto !important;
        min-width:0 !important;
        margin-left:0 !important;
        margin-right:auto !important;
        justify-content:flex-start !important;
    }

    .topbar .mobile-topbar .top-month-picker{
        margin-left:0 !important;
        margin-right:0 !important;
        width:auto !important;
    }

    .topbar .mobile-topbar .month-picker-only .pretty-month-picker{
        width:168px !important;
        max-width:calc(100vw - 105px) !important;
    }

    .topbar .mobile-topbar .month-create-action{
        flex:0 0 auto !important;
        margin-left:0 !important;
    }
}



@media (max-width:600px){
    .topbar .mobile-topbar .month-create-action,
    .topbar .mobile-topbar .btn.month-create-action{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:auto !important;
        min-width:88px !important;
        max-width:none !important;
        height:54px !important;

        padding:0 14px !important;
        margin:0 !important;

        white-space:nowrap !important;
        overflow:visible !important;

        border-radius:12px !important;
        box-sizing:border-box !important;

        font-size:15px !important;
        font-weight:700 !important;
        line-height:1 !important;
        text-align:center !important;
        text-decoration:none !important;

        flex:0 0 auto !important;
    }

    .topbar .mobile-topbar{
        padding-left:12px !important;
        padding-right:12px !important;
    }

    .topbar .mobile-topbar .month-picker-only{
        min-width:0 !important;
        flex:1 1 auto !important;
        margin-right:8px !important;
    }

    .topbar .mobile-topbar .month-picker-only .pretty-month-picker{
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        height:54px !important;
        box-sizing:border-box !important;
    }
}



@media (max-width:600px){
    .topbar .mobile-topbar .month-create-action{
        display:block !important;
        width:auto !important;
        min-width:0 !important;
        height:auto !important;
        padding:0 !important;
        background:transparent !important;
        border:0 !important;
        overflow:visible !important;
        flex:0 0 auto !important;
        margin:0 !important;
    }

    .topbar .mobile-topbar .month-create-action form{
        display:block !important;
        width:auto !important;
        margin:0 !important;
        padding:0 !important;
    }

    .topbar .mobile-topbar .month-create-action .compact-action{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:92px !important;
        min-width:92px !important;
        max-width:92px !important;
        height:54px !important;

        padding:0 10px !important;
        margin:0 !important;

        font-size:15px !important;
        font-weight:700 !important;
        line-height:1 !important;
        white-space:nowrap !important;
        text-align:center !important;

        border-radius:12px !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
    }

    
    .topbar .mobile-topbar .month-create-action .compact-action::after{
        content:none !important;
        display:none !important;
    }

    .topbar .mobile-topbar .month-picker-only{
        flex:1 1 auto !important;
        min-width:0 !important;
        margin-right:8px !important;
    }

    .topbar .mobile-topbar .month-picker-only .pretty-month-picker{
        width:100% !important;
        min-width:0 !important;
        height:54px !important;
    }
}

@media (min-width:901px){
.table-card{border:1px solid #c5ccd6;box-shadow:0 1px 3px rgba(16,24,40,.08);border-radius:12px}
.independent-scroll{border:1px solid #c5ccd6;border-radius:12px;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.table-card .independent-scroll{border:0;box-shadow:none;border-radius:inherit}
}

@media (max-width:900px){
.table-card{border:1px solid #c5ccd6;border-radius:12px;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.independent-scroll{border:1px solid #c5ccd6;border-radius:12px;box-shadow:0 1px 3px rgba(16,24,40,.08)}
}
