:root {
    --blue: #0b6cff;
    --blue2: #38a3ff;
    --navy: #073a86;
    --bg: #f3f8ff;
    --text: #10233f;
    --muted: #65758b;
    --line: #dbe8f7;
    --white: #ffffff;
    --green: #0f9d6a;
    --green-dark: #087a52;
    --green-light: #e8f8f1;
    --red: #e33737;
    --red-dark: #b91c1c;
    --red-light: #fff0f0;
    --orange: #f59e0b;
    --purple: #7c3aed;
    --shadow: 0 12px 34px rgba(15, 85, 170, 0.11);
    --shadow-small: 0 7px 20px rgba(15, 85, 170, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

/* ================================================================
   SIDEBAR
================================================================ */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 250px;
    padding: 22px 16px;
    overflow-y: auto;
    color: #ffffff;
    background: linear-gradient(180deg, #0767e8 0%, #04469f 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--blue);
    background: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    line-height: 1.3;
}

.brand span {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.82;
}

.nav-menu {
    display: grid;
    gap: 7px;
}

.nav-menu a {
    padding: 13px 15px;
    border-radius: 11px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.18);
}

.nav-menu a:hover {
    transform: translateX(2px);
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(4, 70, 159, 0.96);
}

.sidebar-footer span,
.sidebar-footer small,
.sidebar-footer a {
    display: block;
}

.sidebar-footer span {
    font-weight: 700;
}

.sidebar-footer small {
    margin: 4px 0 10px;
    opacity: 0.75;
}

.sidebar-footer a {
    color: #d9ecff;
}

.sidebar-footer .sidebar-logout {
    display: block;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    color: #ffffff;
    background: #dc2626;
    font-weight: 800;
    text-align: center;
}

.sidebar-footer .sidebar-logout:hover {
    background: #b91c1c;
}

.sidebar-overlay {
    display: none;
}

/* ================================================================
   MAIN CONTENT AND TOPBAR
================================================================ */

.main-content {
    min-height: 100vh;
    margin-left: 250px;
    padding: 24px 28px 18px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.menu-toggle {
    display: none;
    padding: 10px 13px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
    font-size: 20px;
    cursor: pointer;
}

/* ================================================================
   BUTTONS
================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
}

.btn-secondary {
    color: #0756bd;
    background: #ddecff;
}

.btn-light {
    color: #29415f;
    background: #eef4fb;
}

.btn-logout {
    color: #ffffff;
    background: #dc2626;
}

.btn-logout:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.link-danger {
    padding: 0;
    border: 0;
    color: var(--red);
    background: none;
    cursor: pointer;
}

/* ================================================================
   GENERAL PANELS
================================================================ */

.panel,
.scope-panel,
.personal-banner {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.panel {
    padding: 20px;
}

.scope-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 18px;
}

.scope-panel strong,
.scope-panel span {
    display: block;
}

.scope-panel span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.scope-panel form {
    display: flex;
    gap: 10px;
}

.personal-banner {
    margin-bottom: 20px;
    padding: 14px 18px;
    color: #0754b3;
    background: #e8f3ff;
    font-weight: 600;
}

.section-heading,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2,
.panel-head h3 {
    margin: 0;
}

.section-heading h2 {
    font-size: 21px;
}

.section-heading p,
.panel-head p {
    margin: 5px 0 0;
    color: var(--muted);
}

.period-section {
    margin: 18px 0 25px;
}

/* ================================================================
   SPECIFIC DAILY TRANSACTION DASHBOARD
================================================================ */

.daily-specific-section {
    padding: 0;
}

.specific-breakdown-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    align-items: stretch;
    gap: 18px;
    margin-top: 14px;
}

.specific-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.income-specific-panel {
    border-top: 5px solid var(--green);
    background: linear-gradient(145deg, #ffffff 0%, #f3fff9 100%);
}

.expense-specific-panel {
    border-top: 5px solid var(--red);
    background: linear-gradient(145deg, #ffffff 0%, #fff5f5 100%);
}

.specific-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.specific-panel-heading h3 {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.3;
}

.specific-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.specific-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 20px;
    font-weight: 900;
}

.income-icon {
    color: var(--green-dark);
    background: #dff8ec;
}

.expense-icon {
    color: var(--red-dark);
    background: #ffe2e2;
}

.specific-items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.expense-specific-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specific-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 76px;
    padding: 10px 11px;
    border: 1px solid #e0ebf7;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
}

.specific-item span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.specific-item strong {
    display: block;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.income-specific-item {
    border-left: 4px solid var(--green);
}

.income-specific-item strong {
    color: var(--green-dark);
}

.expense-specific-item {
    border-left: 4px solid var(--red);
}

.expense-specific-item strong {
    color: var(--red-dark);
}

/* ================================================================
   DAILY ACCUMULATED LARGE CARDS
================================================================ */

.daily-accumulated-section {
    margin-top: 28px;
}

.daily-total-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.daily-total-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 185px;
    padding: 22px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(15, 85, 170, 0.17);
}

.daily-total-card::before {
    position: absolute;
    top: -45px;
    right: -35px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, 0.12);
}

.daily-total-card::after {
    position: absolute;
    right: 34px;
    bottom: -58px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, 0.08);
}

.total-income-card {
    color: #ffffff;
    background: linear-gradient(135deg, #087a52 0%, #14b978 100%);
}

.total-expense-card {
    color: #ffffff;
    background: linear-gradient(135deg, #c82d2d 0%, #ef5b5b 100%);
}

.total-balance-card {
    color: #ffffff;
    background: linear-gradient(135deg, #0753b5 0%, #168ee8 100%);
}

.daily-total-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.daily-total-top span {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.daily-total-top small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.daily-total-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 25px;
    font-weight: 900;
}

.daily-total-card > strong {
    position: relative;
    z-index: 2;
    display: block;
    margin: 22px 0 17px;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 900;
    line-height: 1;
    overflow-wrap: anywhere;
}

.daily-total-footer {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.balance-result {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 10px;
    font-weight: 800;
}

/* ================================================================
   WEEKLY AND MONTHLY CARDS
================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 85, 170, 0.15);
}

.stat-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    content: "";
}

.stat-card.income::before {
    background: var(--green);
}

.stat-card.expense {
    border-color: #ffd1d1;
    background: linear-gradient(135deg, #ffffff, #fff3f3);
}

.stat-card.expense::before {
    background: var(--red);
}

.stat-card.balance::before {
    background: var(--blue);
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--muted);
}

.stat-card > span {
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin: 10px 0;
    font-size: 25px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stat-card.expense strong,
.expense-text {
    color: var(--red) !important;
}

/* ================================================================
   CHART AND TOP CATEGORIES
================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.chart-panel {
    min-width: 0;
}

.chart-panel canvas {
    width: 100% !important;
    max-width: 100%;
}

.top-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.top-columns h4 {
    margin: 16px 0 4px;
}

.rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.rank-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rank-row strong {
    flex-shrink: 0;
}

.income-row strong {
    color: var(--green-dark);
}

.expense-row,
.expense-row strong {
    color: var(--red);
}

/* ================================================================
   TABLES
================================================================ */

.table-panel {
    margin-top: 18px;
}

.table-responsive {
    margin-top: 14px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 11px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    text-align: left;
}

th {
    color: #53657c;
    background: #f5f9ff;
}

tbody tr:hover {
    background: #f9fbff;
}

.amount {
    font-weight: 800;
}

.badge,
.status-pill,
.role-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.income {
    color: var(--green);
    background: #e8f8f1;
}

.badge.expense {
    color: var(--red);
    background: var(--red-light);
}

.cell-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

/* ================================================================
   FORMS
================================================================ */

.entry-layout,
.admin-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    color: #445873;
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfdced;
    border-radius: 9px;
    color: var(--text);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(11, 108, 255, 0.15);
    border-color: var(--blue);
}

.form-actions,
.filter-actions,
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-bar {
    margin: 15px 0;
}

.filter-bar > * {
    width: auto;
    min-width: 130px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    align-items: end;
    gap: 13px;
    margin-top: 15px;
}

.filter-actions {
    grid-column: 1 / -1;
}

.report-stats {
    margin: 18px 0;
}

/* ================================================================
   ALERTS AND ACTIONS
================================================================ */

.alert {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: 11px;
}

.alert-success {
    color: #08784e;
    background: #e7f8f0;
}

.alert-error {
    color: #b42323;
    background: #fff0f0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.actions form {
    margin: 0;
}

.empty {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.footer {
    padding: 25px 0;
    color: var(--muted);
    text-align: center;
}

/* ================================================================
   ADMIN
================================================================ */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.admin-stat span,
.admin-stat small {
    display: block;
    color: var(--muted);
}

.admin-stat strong {
    display: block;
    margin: 7px 0;
    font-size: 27px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.activity-item strong,
.activity-item span {
    display: block;
}

.activity-item span,
.activity-item small {
    color: var(--muted);
    font-size: 12px;
}

/* ================================================================
   LOGIN PAGE
================================================================ */

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #eaf5ff, #ffffff);
}

.login-card {
    width: min(440px, 92vw);
    padding: 30px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(11, 108, 255, 0.18);
    text-align: center;
}

.login-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    font-size: 22px;
    font-weight: 900;
}

.login-card h1 {
    margin-bottom: 6px;
}

.login-card > p,
.login-card > small {
    color: var(--muted);
}

.password-wrap {
    position: relative;
}

.show-password {
    position: absolute;
    top: 7px;
    right: 8px;
    padding: 6px 9px;
    border: 0;
    border-radius: 7px;
    color: var(--blue);
    background: #e9f2ff;
    cursor: pointer;
}

/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1200px) {
    .expense-specific-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .specific-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .daily-total-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-balance-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .entry-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: block;
        background: rgba(0, 25, 70, 0.45);
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        overflow-x: hidden;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .topbar {
        align-items: flex-start;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .topbar-actions {
        gap: 7px;
    }

    .topbar-actions .btn {
        padding: 9px 10px;
        font-size: 13px;
    }

    .stats-grid,
    .admin-stats,
    .daily-total-grid {
        grid-template-columns: 1fr;
    }

    .total-balance-card {
        grid-column: auto;
    }

    .specific-items-grid,
    .expense-specific-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .scope-panel form {
        flex-direction: column;
    }

    .scope-panel form .btn {
        width: 100%;
    }

    .top-columns,
    .form-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        display: block;
    }

    .dashboard-grid .panel {
        margin-bottom: 16px;
    }

    .panel {
        padding: 15px;
    }

    .entry-layout {
        display: block;
    }

    .entry-layout > .panel {
        margin-bottom: 16px;
    }

    .activity-item {
        flex-direction: column;
    }

    .filter-bar > * {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar > div:nth-child(2) {
        flex: 1;
        min-width: 150px;
    }

    .topbar-actions {
        width: 100%;
        margin-left: 0;
    }

    .topbar-actions .btn {
        flex: 1;
    }

    .section-heading,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .specific-items-grid,
    .expense-specific-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .main-content {
        padding: 12px;
    }

    .specific-panel {
        padding: 13px;
    }

    .specific-item {
        min-height: 68px;
        padding: 9px;
    }

    .daily-total-card {
        min-height: 170px;
        padding: 19px;
    }

    .daily-total-card > strong {
        font-size: 30px;
    }

    .stat-card {
        padding: 16px;
    }

    .topbar-actions {
        flex-direction: column;
    }

    .topbar-actions .btn {
        width: 100%;
    }
}

/* ================================================================
   PRINT
================================================================ */

@media print {
    .sidebar,
    .topbar,
    .filter-panel,
    .footer,
    .personal-banner,
    .scope-panel,
    .menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .main-content {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .panel,
    .stat-card,
    .specific-panel,
    .daily-total-card {
        box-shadow: none;
    }

    .daily-total-card {
        color: #000000;
        border: 1px solid #cccccc;
        background: #ffffff;
    }

    .daily-total-card > strong,
    .daily-total-top span,
    .daily-total-top small,
    .daily-total-footer {
        color: #000000;
    }

    .table-responsive {
        overflow: visible;
    }

    table {
        min-width: 100%;
    }
}
/* ================================================================
   FORCE DASHBOARD SPECIFIC CARDS DESIGN
================================================================ */

.daily-specific-section {
    display: block !important;
    width: 100% !important;
    margin: 22px 0 28px !important;
}

.specific-breakdown-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) !important;
    gap: 18px !important;
    width: 100% !important;
    margin-top: 16px !important;
}

.specific-panel {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 18px !important;
    border: 1px solid #dbe8f7 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 85, 170, 0.12) !important;
    overflow: hidden !important;
}

.income-specific-panel {
    border-top: 6px solid #0f9d6a !important;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #effcf6 100%
    ) !important;
}

.expense-specific-panel {
    border-top: 6px solid #e33737 !important;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #fff2f2 100%
    ) !important;
}

.specific-panel-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

.specific-panel-heading > div {
    display: block !important;
}

.specific-label {
    display: block !important;
    margin: 0 0 5px !important;
    color: #65758b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.specific-panel-heading h3 {
    display: block !important;
    margin: 0 !important;
    color: #10233f !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.specific-icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.income-icon {
    color: #087a52 !important;
    background: #dff8ec !important;
}

.expense-icon {
    color: #b91c1c !important;
    background: #ffe0e0 !important;
}

.specific-items-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.expense-specific-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.specific-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    min-height: 88px !important;
    padding: 12px !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 5px 14px rgba(15, 85, 170, 0.07) !important;
}

.specific-item span {
    display: block !important;
    margin: 0 0 9px !important;
    color: #65758b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.specific-item strong {
    display: block !important;
    margin: 0 !important;
    color: #10233f !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

.income-specific-item {
    border-left: 5px solid #0f9d6a !important;
}

.income-specific-item strong {
    color: #087a52 !important;
}

.expense-specific-item {
    border-left: 5px solid #e33737 !important;
}

.expense-specific-item strong {
    color: #c62828 !important;
}

/* ================================================================
   FORCE LARGE ACCUMULATED DAILY CARDS
================================================================ */

.daily-accumulated-section {
    display: block !important;
    width: 100% !important;
    margin: 28px 0 !important;
}

.daily-total-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    margin-top: 16px !important;
}

.daily-total-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    min-height: 190px !important;
    padding: 24px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 38px rgba(15, 85, 170, 0.18) !important;
}

.total-income-card {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #087a52 0%,
        #16b978 100%
    ) !important;
}

.total-expense-card {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #c92e2e 0%,
        #f05c5c 100%
    ) !important;
}

.total-balance-card {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #0753b5 0%,
        #168ee8 100%
    ) !important;
}

.daily-total-top {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.daily-total-top span {
    display: block !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.daily-total-top small {
    display: block !important;
    margin-top: 6px !important;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 11px !important;
}

.daily-total-symbol {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
}

.daily-total-card > strong {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    margin: 25px 0 18px !important;
    color: #ffffff !important;
    font-size: 39px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    overflow-wrap: anywhere !important;
}

.daily-total-footer {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.balance-result {
    display: inline-flex !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.17) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

/* ================================================================
   RESPONSIVE DASHBOARD
================================================================ */

@media (max-width: 1200px) {
    .specific-breakdown-grid {
        grid-template-columns: 1fr !important;
    }

    .daily-total-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .total-balance-card {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 760px) {
    .specific-breakdown-grid,
    .daily-total-grid {
        grid-template-columns: 1fr !important;
    }

    .specific-items-grid,
    .expense-specific-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .total-balance-card {
        grid-column: auto !important;
    }
}

@media (max-width: 480px) {
    .specific-items-grid,
    .expense-specific-grid {
        grid-template-columns: 1fr !important;
    }

    .specific-panel {
        padding: 14px !important;
    }

    .specific-item {
        min-height: 76px !important;
    }

    .daily-total-card {
        min-height: 175px !important;
        padding: 20px !important;
    }

    .daily-total-card > strong {
        font-size: 31px !important;
    }
}