/* Site overrides + Bootstrap alignment (load after Bootstrap in head.php) */

html {
    overflow-x: clip;
    max-width: 100%;
}

/* Header flex: keep facility nav in bar without float */
.ist-brand-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.redNav,
.ist-redNav {
    max-width: none;
    float: none;
}

/* Login: Bootstrap focus ring on dark inputs */
.login-page .form-control:focus {
    border-color: #df1a1b;
    box-shadow: 0 0 0 0.2rem rgba(223, 26, 27, 0.25);
}

/* Forgot password: match login, slightly stronger card separation */
.forgot-password-page .forgot-password-card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.forgot-password-page .forgot-password-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.forgot-password-page .forgot-password-card .card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.forgot-password-page .alert-danger {
    border-radius: 0.5rem;
}

/* Main column uses full width */
.ist-main {
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* Reports: DataTables controls (light table) */
.reports-page .dataTables_wrapper .dataTables_length select,
.reports-page .dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #212529;
}
.reports-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #0d6efd !important;
}
.reports-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #df1a1b !important;
    border-color: #df1a1b !important;
    color: #fff !important;
}
.reports-page .rep-legend .rep_labels,
.reports-page .rep-legend .rep_labels .col {
    color: #495057 !important;
}
.reports-page .reports-table-card {
    background-color: #f8f9fa !important;
}
.reports-page .reports-table-card .card-body {
    background-color: #fff;
    border-radius: 0.375rem;
}
