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;
}

.bank-options {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
    justify-content: center; /* center vertically */
}

.bank-option {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    width: 200px;
    height: 120px;
    align-items: center;
    display: flex;
    flex-direction: column; /* stack input above image */
    align-items: center; /* center horizontally */
    justify-content: center; /* center vertically */
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden; /* ensure image doesn't overflow */
}

    .bank-option img {
        max-width: 150px;
        height: auto;
        align-items: center;
        max-height: 100%;
    }

    /* Hide the radio button */
    .bank-option input {
        display: none;
    }

        /* Selected state */
        .bank-option input:checked + img {
            filter: none;
        }

        .bank-option input:checked ~ .label {
            font-weight: bold;
        }

    .bank-option:has(input:checked) {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    }

div.main-container {
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: center; /* center horizontally */
    text-align: center; /* optional: center text inside headings, etc */
    gap: 20px; /* optional spacing between elements */
}

.floating-download-btn {
    position: fixed; /* Fix the position relative to the browser window */
    bottom: 20px; /* Distance from the bottom of the page */
    right: 20px; /* Distance from the right of the page */
    z-index: 9999; /* Ensure the button stays on top of other content */
}

    .floating-download-btn .btn:hover {
        background-color: #0056b3; /* Darker blue color on hover */
        transform: translateY(-3px); /* Slight lift effect on hover */
        transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transition */
    }

.account-missing {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.unassigned-row {
    background-color: #ffe6e6 !important;
}

/* Minimum width for upload card */
.upload-card {
    min-width: 900px; /* Adjust to your preference */
    max-width: 900px; /* Optional: limit max width */
    margin-left: auto; /* Center horizontally */
    margin-right: auto;
}

/* Optional: ensure responsive smaller screens */
@media (max-width: 650px) {
    .upload-card {
        min-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.totals-row {
    font-weight: 600;
    font-size: 1.1em;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

    .totals-row span {
        color: #333;
    }

body {
    background: #f4f6f9;
}

/* ===== WORKSPACE HEADER ===== */
.workspace-header {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===== PANELS ===== */
.panel {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-panel {
    /*height: 60vh;*/
    overflow: auto;
}

.rules-panel {
    /*height: 60vh;*/
    overflow: auto;
}

.history-panel {
/*    height: 18vh;
*/    overflow: auto;
    margin-top: 12px;
}

.history-item {
    border-left: 3px solid #198754;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.small-muted {
    font-size: 12px;
    color: #6c757d;
}

/* ===== DRAWER ===== */
.sidebar-drawer {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    padding: 16px;
    z-index: 999;
}

    .sidebar-drawer.open {
        right: 0;
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 998;
}

    .overlay.show {
        display: block;
    }

.rule-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    background: #f1f3f4;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

/* LABEL = looks like a heading */
.rule-chip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f6368;
    opacity: 0.85;
}

/* VALUE = primary content */
.rule-chip-value {
    font-size: 12px;
    font-weight: 600;
    color: #202124;
}

.main-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.expand-row {
    transition: all 0.2s ease;
}

.badge {
    font-size: 0.75rem;
}
.trial-balance-item .edit-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.trial-balance-item.active .edit-btn {
    opacity: 0.6;
    pointer-events: auto;
}

    .trial-balance-item.active .edit-btn i {
        color: #fff;
    }

.trial-balance-item:hover .edit-btn {
    opacity: 1;
    pointer-events: auto;
}