:root {
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    color: #17243a;
    background: #f5f7fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f5f7fb
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    background: #111d32;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 0 8px 52px
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #23b887;
    color: #092b27;
    display: grid;
    place-items: center;
    font-size: 19px
}

.brand-light {
    font-weight: 400;
    color: #aebbd0
}

.sidebar-caption, .eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.45px;
    color: #8391a8
}

.sidebar-caption {
    padding: 0 12px 13px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border-radius: 10px;
    color: #c1cada;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650
}

    .nav-link.active {
        background: #22334e;
        color: #fff
    }

.nav-icon {
    font-size: 20px
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #2a3850;
    padding: 19px 7px 0;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px
}

.profile-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #29425b;
    color: #9de5ca;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800
}

.sidebar-footer strong, .sidebar-footer small {
    display: block
}

.sidebar-footer small {
    color: #93a1b7;
    margin-top: 3px
}

.main-area {
    margin-left: 248px;
    min-height: 100vh
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e8edf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px
}

.topbar-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8591a4
}

.local-badge {
    font-size: 11px;
    color: #53647a;
    background: #f3f7f8;
    border: 1px solid #e3ece9;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 7px
}

    .local-badge span {
        width: 7px;
        height: 7px;
        background: #20b486;
        border-radius: 50%
    }

.page-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 48px 64px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px
}

    .page-heading h1 {
        font-size: 32px;
        letter-spacing: -1.2px;
        margin: 8px 0 5px
    }

.muted {
    color: #7c899b
}

.page-heading p {
    font-size: 13px;
    margin: 0
}

.month-chip {
    border: 1px solid #e0e6ef;
    background: #fff;
    border-radius: 9px;
    padding: 10px 14px;
    color: #637189;
    font-size: 11px;
    font-weight: 650
}

.welcome-card {
    min-height: 218px;
    border-radius: 18px;
    background: linear-gradient(112deg,#152640,#203a5a 65%,#1d6d66);
    color: #fff;
    padding: 31px 38px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between
}

.light-eyebrow {
    color: #8edfc4
}

.welcome-copy {
    position: relative;
    z-index: 2
}

    .welcome-copy h2 {
        font-size: 29px;
        line-height: 1.16;
        letter-spacing: -.9px;
        margin: 12px 0 9px
    }

    .welcome-copy p {
        font-size: 12px;
        color: #c2d0df;
        margin: 0
    }

.welcome-art {
    width: 300px;
    position: relative
}

.art-circle {
    position: absolute;
    border: 1px solid #ffffff26;
    border-radius: 50%
}

.circle-one {
    width: 220px;
    height: 220px;
    right: 5px;
    top: -35px
}

.circle-two {
    width: 165px;
    height: 165px;
    right: 32px;
    top: -8px
}

.art-card {
    position: absolute;
    right: 30px;
    top: 26px;
    width: 190px;
    height: 120px;
    border-radius: 12px;
    background: #ffffffed;
    color: #23334b;
    padding: 15px;
    box-shadow: 0 15px 30px #0a1c2b55;
    transform: rotate(5deg)
}

    .art-card span {
        display: block;
        font-size: 8px;
        letter-spacing: 1px;
        color: #8391a4;
        font-weight: 800
    }

    .art-card strong {
        display: block;
        font-size: 20px;
        margin: 10px 0
    }

    .art-card i {
        display: inline-block;
        width: 29%;
        height: 5px;
        border-radius: 4px;
        background: #dce7e9;
        margin-right: 3px
    }

        .art-card i:first-of-type {
            background: #25b78a
        }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 34px 0 15px
}

    .section-heading h2 {
        font-size: 17px;
        margin: 6px 0 0;
        letter-spacing: -.3px
    }

.small-text {
    font-size: 11px
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px
}

.metric-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 20px 21px;
    min-height: 125px
}

.metric-label {
    font-size: 9px;
    letter-spacing: 1.15px;
    color: #8793a5;
    font-weight: 800
}

.metric-value {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1px;
    margin: 11px 0 4px;
    color: #172b45
}

.metric-note {
    font-size: 10px;
    color: #8a96a7
}

.setup-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 20px;
    margin-top: 17px
}

.setup-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #e7f7f1;
    color: #15966d;
    display: grid;
    place-items: center;
    font-size: 19px
}

.setup-copy {
    flex: 1
}

    .setup-copy h3 {
        font-size: 13px;
        margin: 0 0 5px
    }

    .setup-copy p {
        font-size: 11px;
        color: #7d899b;
        margin: 0;
        line-height: 1.5
    }

.coming-soon {
    font-size: 10px;
    font-weight: 700;
    color: #15966d;
    background: #eaf8f3;
    border-radius: 20px;
    padding: 8px 11px
}

.empty-state {
    padding: 80px 30px;
    text-align: center
}

    .empty-state h1 {
        font-size: 28px
    }

.button-primary {
    display: inline-block;
    background: #15966d;
    color: #fff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700
}

@media(max-width:900px) {
    .sidebar {
        width: 205px
    }

    .main-area {
        margin-left: 205px
    }

    .page-content {
        padding: 32px 25px
    }

    .topbar {
        padding: 0 25px
    }

    .welcome-art {
        width: 210px
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:640px) {
    .sidebar {
        position: static;
        width: auto;
        height: auto;
        padding: 14px 18px;
        display: block
    }

    .brand {
        padding: 0
    }

    .sidebar-caption, .sidebar > .nav-link, .sidebar-footer {
        display: none
    }

    .main-area {
        margin: 0
    }

    .topbar {
        height: 52px;
        padding: 0 18px
    }

    .page-content {
        padding: 25px 17px 40px
    }

    .page-heading {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column
    }

        .page-heading h1 {
            font-size: 27px
        }

    .welcome-card {
        padding: 25px 22px;
        min-height: 190px
    }

    .welcome-art {
        display: none
    }

    .welcome-copy h2 {
        font-size: 25px
    }

    .metric-grid {
        grid-template-columns: 1fr
    }

    .metric-card {
        min-height: 108px
    }

    .setup-panel {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .coming-soon {
        margin-left: 54px
    }
}

/* Functional dashboard */
.dashboard-heading {
    align-items: center
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 11px;
    padding: 5px 9px;
    color: #33445c;
    font-size: 12px
}

.icon-button, .close-button {
    border: 0;
    background: transparent;
    color: #617087;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 8px
}

    .icon-button:hover, .close-button:hover {
        color: #15966d
    }

.setup-welcome {
    margin-bottom: 20px
}

.action-panel, .content-panel {
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 14px;
    padding: 22px;
    margin-top: 17px
}

    .action-panel h2, .content-panel h2 {
        font-size: 16px;
        letter-spacing: -.3px;
        margin: 5px 0 0
    }

    .action-panel p {
        font-size: 12px;
        color: #7d899b;
        margin: 6px 0 0
    }

.first-budget-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap
}

    .inline-form label, .entry-form label {
        display: flex;
        flex-direction: column;
        gap: 7px;
        color: #596a80;
        font-size: 11px;
        font-weight: 700
    }

.money-input {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    color: #8290a2
}

    .money-input input {
        border: 0 !important;
        padding-left: 0 !important;
        min-width: 100px
    }

.inline-form input, .entry-form input, .entry-form select, .entry-form textarea {
    font: inherit;
    color: #24354c;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 10px 11px;
    min-height: 39px;
    background: #fff;
    outline: none
}

    .inline-form input:focus, .entry-form input:focus, .entry-form select:focus, .entry-form textarea:focus {
        border-color: #20ad82;
        box-shadow: 0 0 0 3px #20ad8218
    }

.button-primary, .button-outline, .button-text {
    border: 0;
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.button-primary {
    background: #15966d;
    color: #fff
}

    .button-primary:hover {
        background: #0e805c
    }

    .button-primary:disabled {
        opacity: .55;
        cursor: wait
    }

.button-outline {
    background: #fff;
    border: 1px solid #dce4ed;
    color: #52637a
}

    .button-outline:hover {
        border-color: #15966d;
        color: #15966d
    }

.button-text {
    background: transparent;
    color: #6c7a8e
}

.budget-summary-strip {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 14px;
    padding: 19px 22px
}

    .budget-summary-strip > div:first-child {
        min-width: 150px
    }

        .budget-summary-strip > div:first-child strong, .budget-summary-strip > div:first-child small {
            display: block
        }

        .budget-summary-strip > div:first-child strong {
            font-size: 23px;
            letter-spacing: -.7px;
            margin: 5px 0
        }

        .budget-summary-strip > div:first-child small, .summary-progress small {
            font-size: 10px;
            color: #8a96a7
        }

.summary-progress {
    flex: 1;
    min-width: 120px
}

.summary-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #68778c;
    margin-bottom: 9px
}

.progress-track, .category-progress, .stacked-track {
    height: 8px;
    border-radius: 10px;
    background: #edf1f5;
    overflow: hidden
}

    .progress-track span, .category-progress span {
        height: 100%;
        display: block;
        border-radius: 10px;
        background: #20b486
    }

.summary-progress small {
    display: block;
    margin-top: 8px
}

.compact-panel {
    padding: 15px 20px
}

    .compact-panel .inline-form {
        align-items: flex-end
    }

.section-heading {
    margin-top: 28px
}

.dashboard-metrics {
    grid-template-columns: repeat(5,minmax(0,1fr))
}

.metric-primary {
    border-color: #b9e7d8;
    background: #fafffd
}

    .metric-primary .metric-value {
        color: #087b58
    }

.dashboard-actions {
    display: flex;
    gap: 12px;
    margin-top: 17px
}

.action-tile {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    cursor: pointer
}

    .action-tile:hover {
        border-color: #a9ddcb;
        background: #fbfffd
    }

.action-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e7f7f1;
    color: #138a65;
    font-size: 22px
}

.expense-symbol {
    background: #edf3fb;
    color: #4b6f9f
}

.action-tile strong, .action-tile small {
    display: block
}

.action-tile strong {
    font-size: 12px;
    color: #293b53
}

.action-tile small {
    font-size: 10px;
    color: #8995a6;
    margin-top: 4px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

    .panel-heading .eyebrow {
        display: block
    }

.entry-form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px
}

    .entry-form .full-field, .form-hint, .form-actions {
        grid-column: 1/-1
    }

.form-hint {
    font-size: 10px;
    color: #758398;
    background: #f5f8fb;
    border-radius: 8px;
    padding: 10px 12px
}

.form-actions {
    display: flex;
    gap: 9px;
    align-items: center
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr);
    gap: 16px;
    margin-top: 17px
}

    .dashboard-columns .content-panel {
        margin-top: 0
    }

.count-pill {
    font-size: 10px;
    color: #718096;
    background: #f2f5f8;
    border-radius: 20px;
    padding: 6px 9px
}

.category-row {
    padding: 15px 0;
    border-top: 1px solid #edf0f4
}

.category-top, .category-meta, .reserve-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px
}

.category-name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #2d3e55
}

.category-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #20b486
}

.category-top > strong {
    font-size: 12px;
    color: #34465e
}

.category-top small {
    font-size: 10px;
    font-weight: 500;
    color: #8b97a8
}

.category-progress {
    height: 6px;
    margin: 10px 0 7px
}

    .category-progress span.over-budget {
        background: #df765f
    }

.category-meta, .reserve-line {
    font-size: 9px;
    color: #8793a4
}

.reserve-line {
    margin-top: 7px;
    color: #6b7d91
}

.weekly-breakdown {
    margin-top: 11px;
    background: #f7f9fb;
    border-radius: 8px;
    padding: 10px
}

    .weekly-breakdown > strong {
        display: block;
        font-size: 9px;
        color: #68788d;
        margin-bottom: 7px
    }

    .weekly-breakdown > div {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 8px;
        padding: 5px 0;
        border-top: 1px solid #e9eef3;
        font-size: 9px;
        color: #69798e
    }

.negative-text {
    color: #c45a4a !important
}

.positive-text {
    color: #168b67 !important
}

.overage-note, .warning-note {
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff5ef;
    color: #ad6047;
    font-size: 9px
}

.allocation-total strong, .allocation-total span {
    display: block
}

.allocation-total strong {
    font-size: 25px;
    color: #273b55;
    letter-spacing: -.7px
}

.allocation-total span {
    font-size: 10px;
    color: #8793a4;
    margin-top: 3px
}

.stacked-track {
    display: flex;
    height: 12px;
    margin: 17px 0 20px
}

.allocated-segment {
    background: #20b486
}

.reserve-segment {
    background: #f1bf62
}

.legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eff2f5;
    font-size: 10px;
    color: #68788d
}

    .legend-row strong {
        font-size: 11px;
        color: #34465e
    }

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px
}

.allocated-dot {
    background: #20b486
}

.reserve-dot {
    background: #f1bf62
}

.general-dot {
    background: #7c91ae
}

.recent-panel {
    margin-top: 17px
}

.transaction-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #edf0f4
}

.transaction-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff0ed;
    color: #c66b58;
    font-size: 18px
}

.transfer-icon {
    background: #e8f7f1;
    color: #168b67
}

.transaction-description {
    flex: 1;
    min-width: 0
}

    .transaction-description strong, .transaction-description small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .transaction-description strong {
        font-size: 11px;
        color: #33445b
    }

    .transaction-description small {
        font-size: 9px;
        color: #8b97a7;
        margin-top: 4px
    }

.transaction-amount {
    font-size: 11px;
    color: #c36a57
}

.delete-transaction {
    border: 0;
    background: transparent;
    color: #a2adbb;
    font-size: 18px;
    cursor: pointer;
    padding: 3px 7px
}

    .delete-transaction:hover {
        color: #c45a4a
    }

.empty-inline {
    text-align: center;
    padding: 24px 15px;
    color: #68788d
}

    .empty-inline strong {
        font-size: 12px;
        color: #34465e
    }

    .empty-inline p {
        font-size: 10px;
        line-height: 1.5;
        margin: 6px 0 13px
    }

.loading-panel {
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    color: #758398;
    font-size: 12px
}

.alert-error, .alert-success {
    border-radius: 9px;
    padding: 11px 14px;
    margin: 0 0 13px;
    font-size: 11px
}

.alert-error {
    background: #fff0ee;
    color: #a94c40;
    border: 1px solid #f3d2cd
}

.alert-success {
    background: #eaf8f2;
    color: #137b5c;
    border: 1px solid #c8eadc
}

.first-budget-panel {
    margin-top: 18px
}

@media(max-width:1100px) {
    .dashboard-metrics {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .budget-summary-strip {
        gap: 16px
    }
}

@media(max-width:640px) {
    .dashboard-heading {
        align-items: flex-start
    }

    .month-selector {
        align-self: stretch;
        justify-content: space-between
    }

    .first-budget-panel {
        display: block
    }

        .first-budget-panel .inline-form {
            margin-top: 17px
        }

    .budget-summary-strip {
        align-items: stretch;
        flex-direction: column;
        gap: 15px
    }

        .budget-summary-strip .button-outline {
            align-self: flex-start
        }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr
    }

    .dashboard-actions {
        flex-direction: column
    }

    .entry-form {
        grid-template-columns: 1fr
    }

        .entry-form .full-field, .form-hint, .form-actions {
            grid-column: auto
        }

    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .panel-heading {
        align-items: flex-start
    }

    .metric-card {
        padding: 15px
    }

    .metric-value {
        font-size: 22px
    }
}

.chart-columns {
    margin-top: 17px
}

.chart-bar-row {
    margin: 15px 0
}

    .chart-bar-row > div:first-child {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-size: 10px;
        color: #69798e;
        margin-bottom: 7px
    }

    .chart-bar-row strong {
        color: #34465e;
        font-size: 10px
    }

.chart-track {
    height: 7px;
    background: #eef2f5;
    border-radius: 8px;
    overflow: hidden
}

    .chart-track span {
        height: 100%;
        display: block;
        background: #20b486;
        border-radius: 8px
    }

.monthly-chart {
    height: 185px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 2px 0
}

.monthly-chart-column {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0
}

    .monthly-chart-column > strong {
        font-size: 9px;
        color: #63738a;
        white-space: nowrap
    }

.monthly-chart-track {
    height: 115px;
    width: min(34px,75%);
    display: flex;
    align-items: flex-end;
    background: #f0f4f6;
    border-radius: 7px 7px 3px 3px;
    overflow: hidden
}

    .monthly-chart-track span {
        display: block;
        width: 100%;
        min-height: 2px;
        background: linear-gradient(180deg,#35c397,#15966d);
        border-radius: 7px 7px 2px 2px
    }

.monthly-chart-column small {
    font-size: 9px;
    color: #8793a4
}

.confirmation-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-size: 10px !important;
    color: #9b634c !important
}

    .confirmation-check input {
        width: 14px;
        height: 14px;
        min-height: 0;
        accent-color: #15966d
    }

.edit-category {
    border: 1px solid #dce4ed;
    background: #fff;
    color: #617087;
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 8px;
    margin-left: 6px;
    cursor: pointer
}

    .edit-category:hover {
        border-color: #15966d;
        color: #15966d
    }

.category-row .action-panel {
    margin-top: 14px;
    background: #fbfcfd
}

.button-danger {
    color: #b5483a !important;
    border-color: #efc9c3 !important
}

    .button-danger:hover {
        background: #fff4f2 !important;
        border-color: #d9776a !important
    }

.button-danger-solid {
    background: #c9503f !important
}

    .button-danger-solid:hover {
        background: #ad3f30 !important
    }

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(20,30,45,.45);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 2000
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15,25,40,.28)
}

    .modal-card h2 {
        font-size: 19px;
        letter-spacing: -.4px;
        margin: 6px 0 12px;
        color: #27384f
    }

    .modal-card p {
        font-size: 12px;
        color: #5d6e84;
        line-height: 1.5;
        margin: 0 0 10px
    }

.danger-eyebrow {
    color: #c45a4a !important
}

.reset-list {
    list-style: none;
    padding: 12px 14px;
    margin: 0 0 12px;
    background: #fff5f3;
    border-radius: 10px;
    font-size: 12px;
    color: #6b4a45
}

    .reset-list li {
        padding: 4px 0
    }

    .reset-list strong {
        color: #a94c40
    }

.modal-actions {
    justify-content: flex-end;
    margin-top: 18px
}

/* ---- Recurring payments, templates and scope selectors ---- */
.recurring-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: 15px
}

.warning-value {
    color: #b9770e
}

.recurring-symbol {
    background: #eef3fb;
    color: #4d6fa5
}

.recurring-panel {
    margin-top: 18px
}

.recurring-row {
    display: grid;
    grid-template-columns: 26px minmax(0,1fr) auto auto 40px auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #edf1f6
}

    .recurring-row.is-paid .recurring-info strong {
        color: #7b8ba0;
        text-decoration: line-through
    }

.recurring-check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #15966d;
    cursor: pointer
}

    .recurring-check:disabled {
        cursor: not-allowed;
        opacity: .5
    }

.recurring-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

    .recurring-info strong {
        font-size: 13px;
        color: #2b3c52;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .recurring-info small {
        font-size: 10px;
        color: #7b8ba0
    }

.recurring-amount {
    font-size: 13px;
    color: #2b3c52;
    white-space: nowrap
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap
}

.status-paid {
    background: #e7f7f1;
    color: #138a65
}

.status-pending {
    background: #fdf3e1;
    color: #a8700c
}

.status-overdue {
    background: #fdeceb;
    color: #b5483a
}

.lock-switch {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    border: 1px solid #cfd8e3;
    background: #eef2f7;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background .15s
}

    .lock-switch::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #8a99ad;
        transition: left .15s
    }

    .lock-switch[aria-checked=true] {
        background: #d9f2e8;
        border-color: #7fcfae
    }

        .lock-switch[aria-checked=true]::after {
            left: 18px;
            background: #15966d
        }

    .lock-switch:disabled {
        cursor: not-allowed;
        opacity: .6
    }

.recurring-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end
}

.edit-category:disabled {
    opacity: .45;
    cursor: not-allowed
}

.lock-legend {
    font-size: 10px;
    color: #8a99ad;
    margin-top: 10px
}

.recurring-tag {
    font-size: 9px;
    font-weight: 700;
    color: #4d6fa5;
    background: #eef3fb;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 6px;
    white-space: nowrap
}

.inline-subform {
    margin: 6px 0 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e6ecf3;
    border-radius: 12px
}

.scope-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    color: #596a80;
    font-size: 11px
}

    .scope-choice > strong {
        font-size: 11px;
        color: #3a4b62
    }

.entry-form label.radio-line, .entry-form label.recurring-option {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 600
}

.radio-line input, .recurring-option input {
    min-height: 0 !important;
    width: auto;
    padding: 0 !important;
    accent-color: #15966d
}

.danger-text {
    color: #b5483a !important
}

.push-right {
    margin-left: auto
}

.templates-panel .tpl-title {
    font-size: 12px;
    letter-spacing: .4px;
    color: #5d6e84;
    margin: 16px 0 6px
}

.tpl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #edf1f6
}

    .tpl-row.is-paused .tpl-info strong {
        color: #8a99ad
    }

.tpl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

    .tpl-info strong {
        font-size: 13px;
        color: #2b3c52
    }

    .tpl-info small {
        font-size: 10px;
        color: #7b8ba0
    }

.tpl-actions {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.tpl-footnote {
    margin-top: 14px
}

@media (max-width:700px) {
    .recurring-metrics {
        grid-template-columns: 1fr
    }

    .recurring-row {
        grid-template-columns: 26px minmax(0,1fr) auto 40px;
        row-gap: 8px
    }

        .recurring-row .status-badge {
            grid-column: 2
        }

        .recurring-row .recurring-actions {
            grid-column: 3/-1
        }
}

/* ---- periods: split editor, per-period spending and expense lists ---- */
.period-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e6ecf3;
    border-radius: 12px
}

.period-editor-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px
}

.period-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 650;
    color: #596a80
}

    .period-input-row .money-input {
        flex: 0 0 150px
    }

.period-summary {
    font-size: 11px;
    font-weight: 750;
    color: #168b67;
    background: #eaf8f2;
    border-radius: 8px;
    padding: 9px 12px
}

    .period-summary.is-over {
        color: #c45a4a;
        background: #fff0ee
    }

.weekly-breakdown > .period-block {
    display: block;
    padding: 6px 0
}

.period-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto auto;
    gap: 8px;
    align-items: center;
    font-size: 9px;
    color: #69798e
}

.period-actions, .category-spend-actions, .pe-actions {
    display: inline-flex;
    gap: 4px;
    align-items: center
}

.category-spend {
    margin-top: 10px
}

.period-expenses {
    margin: 6px 0 4px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 8px
}

.period-expense {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid #f0f3f6;
    font-size: 10px;
    color: #4f6076
}

    .period-expense:first-child {
        border-top: 0
    }

.pe-date {
    flex: 0 0 46px;
    color: #8793a4
}

.pe-desc {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.pe-amount {
    color: #c36a57
}

.period-expense-empty {
    font-size: 10px;
    color: #8793a4;
    padding: 6px 0
}

.expense-inline {
    margin: 8px 0
}

.delete-transaction.is-confirming {
    color: #c45a4a;
    font-size: 10px;
    font-weight: 700
}

.transaction-row .edit-category {
    margin-left: 0
}

@media(max-width:640px) {
    .period-row {
        grid-template-columns: 1fr auto
    }

    .period-editor-head {
        flex-direction: column;
        align-items: stretch
    }

    .period-input-row .money-input {
        flex-basis: 130px
    }
}

/* ---- budget types and money added ---- */
.heading-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.type-selector {
    display: flex;
    align-items: center;
    gap: 8px
}

    .type-selector select {
        min-width: 150px;
        max-width: 220px;
        border: 1px solid #e1e7ef;
        border-radius: 11px;
        background: #fff;
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 650;
        color: #33445c
    }

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr))
}

.money-symbol {
    color: #168b67
}

.transaction-icon.money-icon {
    background: #eaf8f2;
    color: #168b67
}

.pe-amount.positive-text {
    color: #168b67
}

.money-negative-check {
    margin: 2px 0 8px
}

.danger-text {
    color: #b5483a !important
}

.types-panel .type-add-form {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f6;
    align-items: flex-end
}

.types-panel .type-rename-form {
    flex: 1;
    align-items: center
}

    .types-panel .type-rename-form input {
        flex: 1;
        min-width: 0
    }

@media(max-width:640px) {
    .heading-controls {
        align-items: stretch;
        width: 100%
    }

    .type-selector {
        width: 100%
    }

        .type-selector select {
            flex: 1;
            max-width: none
        }
}

/* ---- savings ---- */
.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
    gap: 14px;
    margin-top: 17px
}

.savings-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font: inherit;
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    color: #17243a
}

    .savings-card:hover {
        border-color: #a9ddcb
    }

    .savings-card.is-selected {
        border-color: #20b486;
        box-shadow: 0 0 0 3px #20ad8218;
        background: #fbfffd
    }

    .savings-card.is-archived {
        opacity: .7
    }

    .savings-card .savings-name {
        font-size: 14px;
        color: #2b3c52;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .savings-card .savings-balance {
        font-size: 24px;
        font-weight: 750;
        letter-spacing: -.8px;
        color: #087b58
    }

    .savings-card small {
        font-size: 10px;
        color: #8793a4
    }

.savings-detail {
    margin-top: 17px
}

.savings-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 14px
}

    .savings-stats > div {
        background: #f8fafc;
        border: 1px solid #e6ecf3;
        border-radius: 10px;
        padding: 12px 14px
    }

    .savings-stats strong {
        display: block;
        font-size: 17px;
        letter-spacing: -.4px;
        margin-top: 6px;
        color: #273b55
    }

.savings-history .pe-date {
    flex-basis: 62px
}

.savings-detail .tpl-title {
    margin-top: 20px
}

@media(max-width:640px) {
    .savings-stats {
        grid-template-columns: 1fr 1fr
    }

    .savings-grid {
        grid-template-columns: 1fr
    }
}

.savings-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.savings-archived-toggle {
    margin-top: 12px
}

@media(max-width:640px) {
    .savings-metrics {
        grid-template-columns: 1fr
    }
}

.reserve-line strong {
    font-size: 11px;
    color: #8a5a0c
}

.reserve-line {
    flex-wrap: wrap
}

/* ---- mobile menu ---- */
.sidebar-head {
    display: contents
}

.menu-toggle {
    display: none
}

@media(max-width:640px) {
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 100
    }

    .sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid #2a3850;
        border-radius: 10px;
        background: #1a2a44;
        color: #fff;
        font-size: 20px;
        line-height: 1;
        cursor: pointer
    }

    .sidebar.is-open .sidebar-caption {
        display: block;
        padding-top: 18px
    }

    .sidebar.is-open > .nav-link {
        display: flex
    }

    .sidebar.is-open .sidebar-footer {
        display: flex;
        margin-top: 18px
    }
}

/* ---- sign in ---- */
.boot-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8793a4;
    font-size: 14px
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f3f6fa
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 18px;
    padding: 28px 28px 30px;
    box-shadow: 0 12px 40px #1b2b4514
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
    color: #17243a
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #eef2f7;
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 18px
}

    .auth-tabs button {
        border: 0;
        background: transparent;
        border-radius: 8px;
        padding: 9px 6px;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        color: #65748a;
        cursor: pointer
    }

        .auth-tabs button.is-active {
            background: #fff;
            color: #17243a;
            box-shadow: 0 1px 3px #1b2b4518
        }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px
}

    .auth-form label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #44546a
    }

    .auth-form input {
        border: 1px solid #d9e1ec;
        border-radius: 9px;
        padding: 10px 12px;
        font: inherit;
        font-size: 14px
    }

    .auth-form .button-primary {
        margin-top: 4px
    }

/* ---- sidebar user ---- */
.profile-info {
    min-width: 0;
    flex: 1
}

    .profile-info strong, .profile-info small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.signout-button {
    border: 1px solid #2a3850;
    background: transparent;
    color: #cfd8e6;
    border-radius: 8px;
    padding: 6px 9px;
    font: inherit;
    font-size: 11px;
    cursor: pointer
}

    .signout-button:hover {
        background: #1a2a44
    }

/* ---- sharing ---- */
.share-panel .share-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7
}

.share-who {
    flex: 1;
    min-width: 0
}

    .share-who strong, .share-who small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .share-who small {
        color: #8793a4;
        font-size: 11px
    }

.role-badge {
    font-size: 11px;
    font-weight: 650;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eef2f7;
    color: #44546a;
    white-space: nowrap
}

    .role-badge.role-owner {
        background: #e3f6ee;
        color: #087b58
    }

.share-form {
    align-items: flex-end
}

.shared-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 650;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f7;
    color: #44546a;
    margin-left: 6px;
    vertical-align: middle
}

/* ---- view-only: hide the controls that change data (the API refuses the changes too) ---- */
.is-readonly .dashboard-actions, .is-readonly .edit-category, .is-readonly .lock-switch, .is-readonly .recurring-check,
.is-readonly .first-budget-panel, .is-readonly .budget-summary-strip > button, .is-readonly .recurring-panel .panel-heading > button,
.is-readonly .pe-actions, .is-readonly .tpl-actions button:not(.keep-readonly),
.is-readonly .delete-transaction, .is-readonly .empty-inline button {
    display: none !important
}

.readonly-banner {
    background: #fff8e6;
    border: 1px solid #f1dc9e;
    color: #7a5a06;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px
}

/* ---- language and theme controls, connection notice ---- */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.prefs-bar {
    display: flex;
    align-items: center;
    gap: 8px
}

.lang-switch {
    display: inline-flex;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff
}

    .lang-switch button {
        border: 0;
        background: transparent;
        color: #617087;
        font-size: 11px;
        font-weight: 750;
        padding: 7px 10px;
        cursor: pointer
    }

        .lang-switch button.is-active {
            background: #15966d;
            color: #fff
        }

        .lang-switch button:not(.is-active):hover {
            color: #15966d
        }

.theme-toggle {
    border: 1px solid #dce4ed;
    background: #fff;
    color: #52637a;
    border-radius: 8px;
    width: 34px;
    height: 31px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0
}

    .theme-toggle:hover {
        border-color: #15966d;
        color: #15966d
    }

.auth-prefs {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px
}

.connection-banner {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(680px,calc(100vw - 24px));
    width: max-content;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15,25,40,.22);
    font-size: 12px
}

    .connection-banner.is-problem {
        background: #fff4f2;
        border: 1px solid #efc9c3;
        color: #8f3a2e
    }

    .connection-banner.is-recovered {
        background: #eaf8f2;
        border: 1px solid #c8eadc;
        color: #137b5c
    }

.connection-icon {
    font-size: 18px
}

.connection-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

    .connection-text span {
        font-size: 11px;
        opacity: .9
    }

@media(max-width:640px) {
    .topbar-right {
        gap: 8px
    }

    .local-badge {
        display: none
    }

    .connection-banner {
        flex-wrap: wrap;
        width: auto
    }
}

.auth-form textarea {
    border: 1px solid #d9e1ec;
    border-radius: 9px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 110px
}

.auth-title {
    font-size: 19px;
    letter-spacing: -.4px;
    margin: 0 0 6px;
    color: #17243a
}

.auth-link {
    margin-top: 12px;
    width: 100%
}

.nav-button {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer
}

    .nav-button:hover {
        background: #1a2a44
    }

.admin-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 16px
}

    .admin-tabs button {
        border: 1px solid #d9e1ec;
        background: #fff;
        border-radius: 9px;
        padding: 8px 14px;
        font: inherit;
        font-size: 12px;
        font-weight: 650;
        color: #65748a;
        cursor: pointer
    }

        .admin-tabs button.is-active {
            background: #17243a;
            color: #fff;
            border-color: #17243a
        }

.admin-panel {
    background: #fff;
    border: 1px solid #e7ecf2;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px
}

.admin-table-wrap {
    overflow-x: auto
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

    .admin-table th {
        text-align: left;
        font-size: 10px;
        letter-spacing: .6px;
        color: #8593a8;
        padding: 8px 10px;
        border-bottom: 1px solid #e7ecf2
    }

    .admin-table td {
        padding: 10px;
        border-bottom: 1px solid #eef2f7;
        color: #27384f;
        vertical-align: middle
    }

.admin-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    background: #eef2f7;
    color: #5d6e84;
    margin-right: 4px
}

    .admin-badge.warn {
        background: #fff1e0;
        color: #a15c0a
    }

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 12px;
    align-items: end;
    margin-top: 14px
}

    .admin-form label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #44546a
    }

    .admin-form input, .admin-inline input {
        border: 1px solid #d9e1ec;
        border-radius: 9px;
        padding: 10px 12px;
        font: inherit;
        font-size: 14px
    }

.admin-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

    .admin-inline input {
        min-width: 150px;
        padding: 7px 9px;
        font-size: 12px
    }

.message-card {
    border: 1px solid #e7ecf2;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fff
}

    .message-card.is-unread {
        border-left: 4px solid #2f8f83
    }

.message-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6c7a8e;
    margin-bottom: 8px
}

.message-body {
    white-space: pre-wrap;
    font-size: 13px;
    color: #27384f;
    margin: 0 0 10px;
    word-break: break-word
}

.message-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: 400;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    user-select: none
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.menu-toggle .material-symbols-outlined {
    font-size: 22px
}

.modal-form-backdrop {
    align-items: center
}

.modal-form-card {
    max-width: 560px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    outline: none
}

.modal-form-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 22px 12px
}

    .modal-form-head h2 {
        margin: 4px 0 0
    }

.modal-form-body {
    overflow-y: auto;
    padding: 0 22px 22px;
    -webkit-overflow-scrolling: touch
}

    .modal-form-body .inline-subform, .modal-form-body .action-panel {
        margin: 0;
        border: 0;
        padding: 0;
        background: transparent;
        box-shadow: none
    }

    .modal-form-body .form-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 0 2px;
        margin-top: 8px;
        z-index: 1
    }

@media(max-width:640px) {
    .modal-form-backdrop {
        padding: 0;
        align-items: stretch
    }

    .modal-form-card {
        max-width: none;
        max-height: 100vh;
        height: 100%;
        border-radius: 0
    }
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap
}

    .pager:empty {
        display: none
    }

.pager-button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dce4ed;
    background: #fff;
    color: #4a5b72;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer
}

    .pager-button:hover:not(:disabled) {
        background: #f1f5f9
    }

    .pager-button:disabled {
        opacity: .4;
        cursor: default
    }

    .pager-button.is-current {
        background: #27384f;
        border-color: #27384f;
        color: #fff
    }

.pager-gap {
    color: #8a97a8;
    padding: 0 2px
}

.category-table {
    border: 1px solid #e3e9f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px
}

.category-table-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px
}

    .category-table-head > strong:first-child {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.category-table-total {
    color: #27384f
}

.busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    background: rgba(20,30,45,.38);
    cursor: progress;
    opacity: 0;
    animation: busy-appear .15s ease-out .2s forwards
}

.busy-logo {
    position: relative;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15,25,40,.3)
}

.busy-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #23b887;
    color: #092b27;
    font-size: 24px;
    font-weight: 800
}

.busy-ring {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #23b887;
    border-right-color: #23b887;
    animation: busy-spin .9s linear infinite
}

@keyframes busy-appear {
    to {
        opacity: 1
    }
}

@keyframes busy-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(prefers-reduced-motion:reduce) {
    .busy-ring {
        animation-duration: 2.4s
    }
}

button:disabled {
    cursor: not-allowed
}

.transaction-description.is-expandable {
    cursor: pointer
}

.transaction-description .transaction-notes {
    font-style: italic
}

.transaction-description.is-expanded strong, .transaction-description.is-expanded small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere
}

#blazor-error-ui {
    display: none
}

.progress-track span.over-budget {
    background: #df765f
}

.legend-group {
    margin-top: 16px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8793a4
}

.legend-row.legend-stack {
    flex-wrap: wrap
}

    .legend-row.legend-stack small {
        flex-basis: 100%;
        margin: 4px 0 0 16px;
        font-size: 9px;
        color: #8793a4
    }

.salmon-row, .salmon-row span, .salmon-row strong {
    color: #df765f !important
}

.legend-dot.salmon-dot {
    background: #df765f
}

.progress-track span.spent-fill {
    background: #df765f
}

.unassigned-segment {
    background: #7c91ae
}
