/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

hr {
    margin-top: 3px;
    margin-right: 1px;
    margin-left: 1px;
    border: none;
    height: 1px;
    color: silver;
    background-color: silver;
}

.input-validation-error {
    border: 1px solid red !important;
}

/* Subtitle below header */
h4.subtitle {
    background-color: transparent;
    padding: 12px 0 8px 0;
    margin: 0 !important;
    font-size: 1.1rem;
    font-weight: 500;
    color: #346CB0;
}

/* Remove top margin/padding from page to make subtitle touch header */
.app-main .wrapper .page {
    padding-top: 0 !important;
}

.app-main .wrapper {
    padding-top: 0 !important;
}

/* Ensure grid headers read consistently */
table.dataTable thead th,
.table thead th {
    text-align: center;
}

/* Match table header color to BOE navbar */
main thead.table-dark th {
    background-color: #2B84B1 !important;
    color: #ffffff !important;
    font-weight: normal;
}

/* Cards */
main .card {
    box-shadow: 3px 3px 5px #d9d9d9;
    margin-bottom: 15px;
}

main .card-header {
    background-color: #3279a8 !important;
    color: #FFF !important;
    font-weight: 500;
}

/* Primary button */
main .btn-primary,
main .btn-primary:visited {
    color: #fff;
    background-color: #3279a8 !important;
    border-color: #868e96;
}

main .btn-primary:hover,
main .btn-primary:focus,
main .btn-primary:active {
    color: #fff;
    background-color: #1571B3 !important;
    border-color: #868e96;
}

/* Secondary button */
main .btn-secondary,
main .btn-secondary:hover,
main .btn-secondary:focus {
    color: white !important;
}

/* Ensure dropdown caret shows in navbar (Bootstrap 5 standard) */
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* DataTables: Position sorting arrows on the right side of header text */
table.dataTable thead > tr > th,
table.dataTable thead > tr > td {
    position: relative;
    padding-right: 30px !important;
}

table.dataTable thead > tr > th.dt-orderable-asc,
table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > th.dt-ordering-asc,
table.dataTable thead > tr > th.dt-ordering-desc {
    padding-right: 30px !important;
}

table.dataTable thead > tr > th span.dt-column-order,
table.dataTable thead > tr > td span.dt-column-order {
    position: absolute !important;
    right: 8px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
}

/* Override any left-aligned text that affects sorting icon position */
table.dataTable thead > tr > th.text-left span.dt-column-order {
    position: absolute !important;
    right: 8px !important;
    left: auto !important;
}
