/* Make font slightly smaller overall */
html {
    font-size: 13px; /* reduced from 14px */
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px; /* reduced from 16px */
    }
}

body {
    margin-bottom: 60px;
}

/* Focus styling for interactive elements */
.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;
}

/* Placeholder alignment in floating forms */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Wider layout by overriding Bootstrap container max width */
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 80% !important;
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
}

    table th {
        background-color: #f8f9fa; /* light gray, matches Bootstrap aesthetic */
        border: 1px solid #dee2e6;
    }

    table td {
        border: 1px solid #dee2e6;
    }

/* ── Year-specific nav link indicator ── */
.nav-link-year {
    position: relative;
}

.nav-link-year::after {
    content: '';
    display: block;
    height: 2px;
    background: #0d6efd;
    border-radius: 2px;
    position: absolute;
    bottom: 4px;
    left: 0.5rem;
    right: 0.5rem;
    opacity: 0.35;
}

/* Nav divider between global and year-specific items */
.nav-divider {
    width: 1px;
    height: 1.4rem;
    background: #dee2e6;
    margin: 0 0.25rem;
    align-self: center;
}

/* ── Active year bar below the navbar ── */
.active-year-bar {
    background: #e7f1ff;
    border-bottom: 1px solid #b6d0f7;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.active-year-label {
    color: #0a58ca;
    padding-left: 0.5rem;
}

/* ── Year switcher buttons ── */
.btn-xs {
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.25rem;
}

.year-btn {
    border: 1px solid #adb5bd;
    background: transparent;
    color: #495057;
    font-variant-numeric: tabular-nums;
}

.year-btn:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #212529;
}

.year-btn-active {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
}

.year-badge-neutral {
    font-size: 0.78rem;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.15rem 0.5rem;
}

/* Button that looks like an inline anchor (used for POST actions in tables) */
.link-button {
    border: none;
    background: none;
    padding: 0;
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.link-button:hover {
    color: #0a58ca;
}
