/* Visual system (simple) */
:root {
    --primary-start: #ed1c24;
    --primary-end: #ed1c24;
    --budget-progress-safe: #22c55e;
    --budget-progress-warning: #facc15;
    --budget-progress-danger: #ef4444;
    --surface: #F7F7F8;
    --muted: #666;
    --success: #20C997;
    --danger: #FF4D4F;
    --card-radius: 14px;
    --highlight-color-rgb: 237, 28, 35;
    --toolbar-text-color: #F7F7F8;
    --toolbar-text-color: var(--toolbar-text-color);
    --list-header-background-color: #fff;
    --list-header-font-size: 18px;
    --material-text-input-active-color: #ed1c24;
    /* --background-color: #efeff4; */
    /* --background-color: #fff; */
}

/* a {
    text-decoration: none;
} */


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #fff;
}

.toolbar-gradient {
    background: linear-gradient(132.41deg, var(--primary-start) 18.03%, var(--primary-end) 81.29%);
    color: white;
}

ons-fab {
    right: 18px;
    bottom: 18px;
}



.stic-icon-1 img {
    width: 26px;
}

.filter-btn {
    height: 43px;
}

.search_wrapper input {
    padding: 0 40px;
    height: 46px;
    line-height: 40px;
    background-color: #f9f9f9;
    caret-color: #ed1c24;
    border: 0.75px solid #e8ebeb;
    border-radius: 4px;
    opacity: 1;
    transition-property: box-shadow;
    transition-duration: .15s;
    transition-timing-function: ease-out;
}

.search_wrapper ons-search-input {
    width: 100%;
}

.expenses-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expenses-search {
    flex: 1;
}

.expenses-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.clear-filter-btn {
    color: #ed1c24;
}

.action-icons {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.icon-btn {
    font-size: 20px;
    padding: 6px;
    /* border-radius: 50%; */
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.2s ease;
    width: 20px;
    text-align: center;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

.edit-btn {
    color: #3b82f6;
    /* blue */
}

.delete-btn {
    color: #ef4444;
    /* red */
}

#fm-update-expense ons-input,
#fm-update-expense ons-select {
    width: 100%;
}

#fm-update-expense .tiny-label {
    margin-top: 10px;
    display: block;
}

.tiny-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}



.prime-loader {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

#prime-loader-4 span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: #AAB2BD;
    margin: 35px 2.5px;
    opacity: 0;
}

#prime-loader-4 span:nth-child(1) {
    animation: opacitychange 1s ease-in-out infinite;
}

#prime-loader-4 span:nth-child(2) {
    animation: opacitychange 1s ease-in-out 0.33s infinite;
}

#prime-loader-4 span:nth-child(3) {
    animation: opacitychange 1s ease-in-out 0.66s infinite;
}

@keyframes opacitychange {

    0%,
    100% {
        opacity: 0;
    }

    60% {
        opacity: 1;
    }
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* .concat-text { */
/* width: 100%; */
/* white-space: nowrap; */
/* text-overflow: ellipsis; */
/* display: block; */
/* } */

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 5px;
}


.center-both {
    display: flex !important;
    justify-content: center !important;
    /* horizontal */
    align-items: center !important;
    /* vertical */
    flex-direction: column;
}

.href {
    font-size: 14px;
    font-weight: 400;
}

.header {
    padding: 0 0 0 15px !important;
}

.d-block {
    display: block !important;
}

.alert-dialog-title {
    margin-bottom: 10px;
}

.cat.progress {
    width: 100%;
    background: #f1f1f1;
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
}

.cat.progress .bar {
    height: 6px;
    width: 0%;
    transition: width 0.3s linear;
    border-radius: 6px;
}

.cat-budget-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
}

.cat-budget-meta .label {
    flex: 1;
}

.cat-budget-meta .value {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.cat-budget-meta.is-over .value {
    color: var(--budget-progress-danger);
}

.cat-budget-item.is-tappable {
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cat-budget-item.is-tappable:active {
    background: rgba(0, 0, 0, 0.04);
}

.dashboard-card {
    border-radius: var(--card-radius);
    padding: 18px;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)); */
    background: white;
    box-shadow: 0 6px 18px rgba(11, 11, 11, 0.06);
    margin: 16px;
    color: #111;
    position: relative;
}



.small-label {
    color: var(--muted);
    font-size: 12px;
}

.stats-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.stat {
    flex: 1;
    background: var(--surface);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.stat .val {
    font-weight: 700;
    display: block;
    font-size: 15px;
    margin-top: 4px;
}

.progress {
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress>.bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
    width: 0%;
    transition: width .4s ease;
}

.recent-list {
    margin: 12px 0;
    padding: 0 12px;
}



/* modal bottom-sheet style */
.bottom-sheet-dialog .modal-content {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    padding: 16px;
}

#top-expense-summary,#top-expense-chart{
    height: 220px;
}

    /* position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--card-radius); */
