html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: var(--bg);
    color: var(--text);
}

:root {
    --primary: #0d6efd;
    --bg: #E0F7FA;
    --text: #212529;
    --sidebar-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #dee2e6;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #f5f5f5;
    --sidebar-bg: #1e1e1e;
    --card-bg: #1a1a1a;
    --border: #2a2a2a;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-brand img {
    height: 50px;
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

    .nav-link:hover {
        color: white !important;
        background-color: var(--primary) !important;
    }

.pay-btn {
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
    padding: 6px 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .pay-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

.main-wrapper {
    display: flex;
    flex: 1;
    gap: 0;
}

.sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    order: 1;
}

    .sidebar h5 {
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-body {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    order: 2;
}

footer {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--border);
        order: 3;
    }

    .content-area {
        order: 2;
    }
}

@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 10px;
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 14px;
    }

        .responsive-table td::before {
            content: attr(data-label);
            font-weight: 600;
            color: var(--text);
            opacity: 0.6;
        }

        .responsive-table td[data-label="Action"] {
            order: 1;
        }

        .responsive-table td[data-label="Amount"] {
            order: 2;
            font-weight: 700;
        }

        .responsive-table td[data-label="Date"] {
            order: 3;
        }

        .responsive-table td[data-label="Ref"] {
            order: 4;
        }

        .responsive-table td[data-label="Status"] {
            order: 5;
        }
}
.reason-badge {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

@media (max-width: 768px) {
    .reason-badge {
        max-width: 100px;
    }

    .responsive-table td[data-label="Ref"] {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}