html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    /* Pushes the entire menu list away from the brand on PC */
    .navbar-nav {
        margin-left: 2.5rem;
    }

        /* Navbar menu sizing, bolder weight, and item spacing */
        .navbar-nav .nav-item .nav-link {
            font-size: 1.15rem;
            font-weight: 600;
            margin-left: 1rem;
            margin-right: 1.1rem;
        }
}

/* Control focus borders */
.form-control,
.form-select,
.btn {
    -webkit-tap-highlight-color: transparent;
}

    .form-control:focus,
    .form-control:focus-visible,
    .form-select:focus,
    .form-select:focus-visible,
    .form-select:active,
    .btn:focus,
    .btn:focus-visible,
    .btn:active,
    .btn.active {
        border-color: #000 !important;
        border-width: 2px !important;
        box-shadow: none !important;
        outline: none !important;
        --bs-focus-ring-color: transparent !important;
        --bs-btn-focus-box-shadow: none !important;
    }

/* Aggressive mobile override to kill the washed-out blue */
@media (max-width: 992px) {
    .form-select,
    .form-select:focus,
    .form-select:focus-visible,
    .form-select:active {
        background-color: #fff !important;
        border-color: #000 !important;
        outline: none !important;
        box-shadow: none !important;
    }
}

/* Background style for custom header / menu */
.rtp-custom-header {
    background-color: #ffd700; /* Bright yellow theme */
    border-top: 8px solid #000000;
    border-bottom: 8px solid #000000;
    padding-top: 2px;
    padding-bottom: 2px;
}

.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, body {
    height: 100%;
    margin: 0;
    background-color: lightgrey;
}

/* ==========================================
   GLOBAL CARD & HEADER STYLES
   ========================================== */

.dept-card {
    background-color: #ffffff;
    border-color: black;
    border-width: 2px !important;
    color: #212529;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

/* Base Department Card Borders */
.truck-sales-card {
    border-color: #000 !important;
    border-width: 2px !important;
    border-style: solid !important;
}

.workshop-card {
    border-color: #000 !important;
    border-width: 2px !important;
    border-style: solid !important;
    background-color: #ffffff !important;
}

.wrecking-card {
    border-color: #000 !important;
    border-width: 2px !important;
    border-style: solid !important;
}

/* General Department Headers: Yellow background with black text & bold */
.truck-sales-card > .card-header,
.workshop-card > .card-header,
.wrecking-card > .card-header {
    background-color: #ffd700 !important;
    background: #ffd700 !important;
    --bs-card-cap-bg: #ffd700 !important;
    color: #000000 !important;
    font-weight: bold !important;
}

.truck-sales-card > .card-header h5,
.workshop-card > .card-header h5,
.wrecking-card > .card-header h5 {
    font-weight: bold !important;
}

/* Sold Card Base Overrides */
.truck-sales-card.sold-card {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    border-style: solid !important;
}

    /* Sold Card Headers: Red background with white text & bold */
    .truck-sales-card.sold-card > .card-header,
    .workshop-card.sold-card > .card-header,
    .wrecking-card.sold-card > .card-header {
        background-color: #dc3545 !important;
        background: #dc3545 !important;
        --bs-card-cap-bg: #dc3545 !important;
        color: #ffffff !important;
        font-weight: bold !important;
    }

        .truck-sales-card.sold-card > .card-header h5,
        .workshop-card.sold-card > .card-header h5,
        .wrecking-card.sold-card > .card-header h5 {
            font-weight: bold !important;
        }

/* ==========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 767.98px) {
    .container-fluid, .container {
        padding-left: 1% !important;
        padding-right: 1% !important;
    }

    .card {
        width: 98% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
}

/* Main content expands safely without breaking Bootstrap containers */
main {
    flex: 1;
}

.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.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;
}
