/* ── Urgent reminder rows (≤ 3 days) highlight ── */
.ag-row.reminder-urgent-row {
    background-color: #ffe5e5 !important;
}

/* ── Desktop: sidebar visible, page offset ── */
.app-page-content {
    margin-left: 260px;
}

.hamburger-btn {
    display: none !important;
}

/* ── Overlay (always in DOM, hidden by default) ── */
#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

#sidebar-overlay.active {
    display: block;
}

.bank-statement-dropzone {
    align-items: center;
    background: #f8fbff;
    border: 2px dashed #8db6e5;
    border-radius: 8px;
    color: #1c5d99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 124px;
    padding: 20px;
    transition: background-color 150ms ease, border-color 150ms ease;
    width: 100%;
}

.bank-statement-upload-trigger {
    cursor: pointer;
    display: block;
    width: 100%;
}

.bank-statement-dropzone:has(.bank-statement-upload-trigger:hover) {
    background: #eef6ff;
    border-color: #1c5d99;
}

.bank-statement-file-list {
    align-self: stretch;
    margin-top: 16px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    #app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #app-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .hamburger-btn {
        display: flex !important;
    }

    .app-page-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 8px !important;
    }

    /* Stack and table inside page fill available width */
    .app-page-content .mantine-Stack-root {
        width: 100% !important;
    }

    /* Alert banner full width on mobile */
    #alert-dismiss-wrapper {
        min-width: unset !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        padding: 0 12px;
    }

    .average-balance-page {
        min-width: 0;
    }

    .average-balance-actions,
    .average-balance-job-actions,
    .average-balance-summary-cards {
        width: 100%;
    }

    .average-balance-actions > *,
    .average-balance-job-actions > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    .average-balance-actions button,
    .average-balance-job-actions button,
    .average-balance-job-id-input {
        width: 100%;
    }

    .bank-statement-dropzone {
        min-height: 112px;
        padding: 16px;
    }

    .average-balance-account-overview {
        width: 100%;
    }

    .average-balance-account-overview > * {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .average-balance-account-overview .dash-ag-grid {
        overflow-x: auto;
    }

    #bank-statement-result-tabs [role="tab"] {
        flex: 1 1 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

/* ── Tablet (768px–1024px): narrower sidebar margin ── */
@media (max-width: 1024px) and (min-width: 769px) {
    .app-page-content {
        margin-left: 260px;
    }
}


