﻿/* 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;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.table td, .table th {
    vertical-align: baseline;
}

.isDisabled {
    color: currentColor;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
}

.wrappedColumnClass {
    white-space: normal;
    word-wrap: break-word;
}

.dx-data-row.dx-state-hover:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row) > td:not(.dx-focused) {
    background-color: darkgrey !important;
}

.dx-datagrid-headers {
    border-bottom: 1px solid #c6cbd4;
    color: #333333;
}

.dx-datagrid-headers .dx-datagrid-table .dx-row > td {
    border-bottom: 1px solid #fff;
    font-weight: 700;
    font-size:16px;
    align-content:center;
}

.dx-field-value:not(.dx-widget) > .dx-checkbox,
.dx-field-value:not(.dx-widget) > .dx-switch {
    float: left;
}

/* Bootstrap 5 compatibility: Restore Bootstrap 4 form-group and form-row spacing */
.form-group {
    margin-bottom: 1rem;
}

/* Bootstrap 5 checkbox: Make unchecked state more visible */
.form-check-input:not(:checked) {
    border-color: #6c757d;
    border-width: 2px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

/* Bootstrap 5 compatibility: Restore greyed-out styling for readonly and disabled inputs */
.form-control[readonly],
.form-control:disabled,
input[readonly].form-control,
textarea[readonly].form-control {
    background-color: #e9ecef;
    opacity: 1;
}

/* DevExtreme: Ensure disabled/readonly editors are greyed out */
.dx-state-disabled,
.dx-state-readonly {
    background-color: #e9ecef !important;
    opacity: 1 !important;
}

.dx-texteditor.dx-state-disabled .dx-texteditor-input,
.dx-texteditor.dx-state-readonly .dx-texteditor-input {
    background-color: #e9ecef;
    color: #6c757d;
}
