body {
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 128, 128, 0.09), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(27, 87, 164, 0.10), transparent 28%),
        #f3f6fb;
    direction: rtl;
    text-align: right;
}

.navbar-brand, .nav-link {
    font-size: 1rem;
}

.task-done {
    border-right: 4px solid #198754 !important;
    background-color: #f2fbf6;
}

.service-page-bottom-space {
    padding-bottom: 1.25rem;
}

.notification-page {
    animation: dashboard-fade-in 0.4s ease-out;
}

.notification-hero {
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #155e75 0%, #0f766e 45%, #0b6e99 100%);
    color: #f8fbff;
    box-shadow: 0 14px 35px rgba(13, 46, 79, 0.2);
}

.notification-hero__title {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
}

.notification-hero__subtitle {
    color: rgba(248, 251, 255, 0.9);
    max-width: 52ch;
}

.notification-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce4f1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 40, 68, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 40, 68, 0.13);
}

.notification-card__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.notification-card__body {
    padding: 1rem;
}

.notification-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #17263f;
}

.notification-card__meta {
    color: #4e607a;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.notification-card__text {
    color: #2f3f59;
    font-size: 0.93rem;
    line-height: 1.7;
}

.notification-modal {
    border-radius: 1rem;
}

.dashboard-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dashboard-tabs-wrap {
    width: 100%;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.62rem;
    color: rgba(248, 251, 255, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dashboard-tab.is-active {
    background: #ffffff;
    color: #114970;
}

.year-switcher {
    padding: 0.35rem 0.5rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.year-switcher__label {
    color: rgba(248, 251, 255, 0.93);
    font-size: 0.84rem;
}

.year-switcher__select {
    min-width: 7rem;
    border-radius: 0.62rem;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(5, 35, 64, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.year-switcher__select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.18);
}

.year-switcher__select option {
    color: #102742;
}

.deposits-hero,
.expenses-hero {
    border-radius: 1.2rem;
    color: #f8fbff;
    box-shadow: 0 14px 35px rgba(13, 46, 79, 0.2);
}

.deposits-hero {
    background: linear-gradient(145deg, #0b6e99 0%, #0d9488 100%);
}

.expenses-hero {
    background: linear-gradient(145deg, #1d4ed8 0%, #0f766e 100%);
}

.deposits-hero__title,
.expenses-hero__title {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
}

.deposits-hero__subtitle,
.expenses-hero__subtitle {
    color: rgba(248, 251, 255, 0.9);
    max-width: 54ch;
}

.deposits-hero__sum,
.expenses-hero__sum {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.data-card {
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    background: #ffffff;
    border: 1px solid #dce4f1;
    box-shadow: 0 10px 24px rgba(17, 40, 68, 0.08);
    height: 100%;
}

.data-card--amount {
    background: linear-gradient(150deg, #ffffff 0%, #eef6ff 100%);
}

.data-card__label {
    color: #536177;
    font-size: 0.88rem;
}

.data-card__value {
    margin-top: 0.45rem;
    color: #182a45;
    font-size: 1.32rem;
    font-weight: 700;
}

.panel-card {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce4f1;
    box-shadow: 0 12px 28px rgba(17, 40, 68, 0.09);
}

.modern-table {
    --bs-table-bg: transparent;
}

.modern-table thead th {
    background: #eff4fb;
    color: #1e2d45;
    border-bottom-width: 0;
    font-weight: 700;
    white-space: nowrap;
}

.modern-table td,
.modern-table th {
    padding: 0.58rem 0.45rem;
    border-color: #e4ebf5;
    font-size: 0.9rem;
}

.modern-table--sm td,
.modern-table--sm th {
    font-size: 0.86rem;
}

.expense-month {
    border-radius: 1rem;
    border: 1px solid #dce4f1;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(17, 40, 68, 0.08);
    overflow: hidden;
}

.expense-month__header {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f8ff;
    border-bottom: 1px solid #e4ebf5;
}

.expense-month__badge {
    display: inline-flex;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 600;
}

.expense-month__badge.is-active {
    background: #dcfce7;
    color: #166534;
}

.expense-month__body {
    padding: 0.8rem;
}

.dashboard-home {
    animation: dashboard-fade-in 0.45s ease-out;
}

.dashboard-hero {
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #0f766e 0%, #0b6e99 65%, #2563eb 100%);
    color: #f8fbff;
    box-shadow: 0 18px 45px rgba(6, 36, 67, 0.24);
}

.dashboard-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.88rem;
}

.dashboard-hero__title {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 700;
}

.dashboard-hero__subtitle {
    color: rgba(248, 251, 255, 0.87);
    max-width: 40ch;
}

.dashboard-btn {
    border-radius: 0.8rem;
    padding: 0.55rem 0.95rem;
    font-weight: 500;
    border-width: 1px;
}

.dashboard-btn--light {
    background: #ffffff;
    color: #0f4b75;
    border-color: #ffffff;
}

.dashboard-btn--light:hover {
    background: #eef7ff;
    border-color: #eef7ff;
    color: #0f4b75;
}

.dashboard-btn--ghost {
    background: transparent;
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.45);
}

.dashboard-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.dashboard-wallet {
    border-radius: 1rem;
    padding: 1.2rem;
    background: rgba(2, 18, 37, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(1px);
}

.dashboard-wallet__label {
    color: rgba(248, 251, 255, 0.9);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.dashboard-wallet__amount {
    margin-top: 0.7rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-wallet__amount span {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.dashboard-wallet__meta {
    margin-top: 0.55rem;
    color: rgba(248, 251, 255, 0.78);
    font-size: 0.85rem;
}

.kpi-card {
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: #ffffff;
    border: 1px solid #e6ecf5;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.08);
    min-height: 100%;
}

.kpi-card__label {
    color: #526075;
    font-size: 0.9rem;
}

.kpi-card__value {
    margin-top: 0.45rem;
    font-size: 1.45rem;
    font-weight: 700;
}

.kpi-card--teal .kpi-card__value { color: #0f766e; }
.kpi-card--green .kpi-card__value { color: #15803d; }
.kpi-card--amber .kpi-card__value { color: #a16207; }
.kpi-card--red .kpi-card__value { color: #b91c1c; }

.dashboard-table-wrap {
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dce4f1;
    box-shadow: 0 14px 35px rgba(20, 40, 66, 0.09);
}

.dashboard-table {
    --bs-table-bg: transparent;
    font-size: 0.93rem;
    table-layout: fixed;
    width: 100%;
}

.dashboard-table thead th {
    background: #f0f5fd;
    color: #1e2d45;
    font-weight: 700;
    border-bottom-width: 0;
    white-space: normal;
    padding: 0.55rem 0.35rem;
}

.dashboard-table td,
.dashboard-table th {
    border-color: #e4ebf5;
    padding: 0.55rem 0.35rem;
}

.dashboard-table__unit-col {
    min-width: 96px;
    font-weight: 700;
    background: #f8fbff;
}

.dashboard-table__unit-col .unit-name {
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-table__unit-col .unit-owner {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: #526075;
    line-height: 1.25;
}

.dashboard-table .state {
    min-width: 0;
}

.dashboard-table thead th:first-child,
.dashboard-table tbody td:first-child {
    position: sticky;
    inset-inline-end: 0;
    z-index: 3;
    background: #f8fbff;
    box-shadow: -6px 0 8px -8px rgba(16, 24, 40, 0.35);
}

.dashboard-table thead th:first-child {
    z-index: 4;
    background: #edf3fc;
}

.dashboard-table .badge {
    font-size: 0.74rem;
}

.dashboard-table .state--paid .badge {
    background-color: #e9f7ee !important;
    color: #1f6b3a !important;
}

.dashboard-table .state--partial .badge {
    background-color: #fbf3e3 !important;
    color: #8b6420 !important;
}

.dashboard-table .state--pending .badge {
    background-color: #fdf1df !important;
    color: #8f6120 !important;
}

.dashboard-table .state--unpaid .badge {
    background-color: #f9e9eb !important;
    color: #8e3141 !important;
}

.dashboard-table .state--ignored .badge {
    background-color: #eef1f5 !important;
    color: #4c596d !important;
}

.dashboard-table .small {
    font-size: 0.72rem;
    line-height: 1.35;
}

.state--paid { background: #f2fbf6; }
.state--partial { background: #fff9ea; }
.state--pending { background: #fff4df; }
.state--unpaid { background: #fff1f2; }
.state--ignored { background: #f5f7fa; }

@keyframes dashboard-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .dashboard-hero__subtitle {
        max-width: none;
    }

    .dashboard-actions .dashboard-btn {
        flex: 1 1 180px;
        justify-content: center;
    }

    .dashboard-tabs {
        width: 100%;
    }

    .dashboard-tab {
        flex: 1 1 130px;
        justify-content: center;
    }

    .year-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .year-switcher__select {
        min-width: 9rem;
    }

    .dashboard-table-wrap {
        padding: 0.9rem !important;
    }

    .dashboard-table {
        min-width: 860px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-tab {
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.44rem 0.55rem;
    }

    .notification-hero {
        border-radius: 0.95rem;
        padding: 1rem !important;
    }

    .notification-hero__subtitle {
        font-size: 0.9rem;
    }

    .notification-card__image {
        height: 165px;
    }

    .notification-card__body {
        padding: 0.85rem;
    }

    .notification-card__title {
        font-size: 0.97rem;
    }

    .notification-card__text {
        font-size: 0.87rem;
        line-height: 1.6;
    }

    .deposits-hero,
    .expenses-hero {
        border-radius: 0.95rem;
        padding: 1rem !important;
    }

    .deposits-hero__subtitle,
    .expenses-hero__subtitle {
        font-size: 0.9rem;
    }

    .deposits-hero__sum,
    .expenses-hero__sum {
        font-size: 0.84rem;
        padding: 0.4rem 0.7rem;
    }

    .data-card {
        padding: 0.85rem 0.9rem;
    }

    .data-card__label {
        font-size: 0.8rem;
    }

    .data-card__value {
        font-size: 1.12rem;
    }

    .modern-table td,
    .modern-table th {
        padding: 0.45rem 0.3rem;
        font-size: 0.8rem;
    }

    .expense-month__header {
        padding: 0.65rem 0.75rem;
    }

    .expense-month__body {
        padding: 0.6rem;
    }

    .dashboard-home {
        margin-bottom: 0.75rem !important;
    }

    .dashboard-hero {
        padding: 1rem !important;
        border-radius: 0.95rem;
    }

    .dashboard-hero__title {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .dashboard-hero__subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem !important;
    }

    .dashboard-wallet {
        padding: 0.9rem;
    }

    .dashboard-wallet__amount {
        font-size: 1.25rem;
    }

    .dashboard-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.5rem !important;
    }

    .dashboard-actions .dashboard-btn {
        width: 100%;
    }

    .kpi-card {
        padding: 0.85rem 0.9rem;
    }

    .kpi-card__label {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .kpi-card__value {
        font-size: 1.2rem;
    }

    .dashboard-table-wrap {
        padding: 0.65rem !important;
    }

    .dashboard-table-wrap h4 {
        font-size: 1rem;
    }

    .dashboard-table {
        min-width: 760px;
        table-layout: auto;
        font-size: 0.84rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.45rem 0.28rem;
    }

    .dashboard-table .badge {
        font-size: 0.68rem;
        padding: 0.28rem 0.4rem !important;
    }

    .dashboard-table .small {
        font-size: 0.66rem;
    }

    .dashboard-table__unit-col .unit-owner {
        font-size: 0.68rem;
    }

    .dashboard-table thead th:first-child,
    .dashboard-table tbody td:first-child {
        position: static;
        box-shadow: none;
    }
}
