html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* 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;
}

a {
    color: #0077cc;
}

.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;
}

.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;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Hide DevExpress evaluation banner when using a licensed copy */
dx-license,
dx-license-trigger {
    display: none !important;
}

.dx-toolbar {
    background: linear-gradient(180deg, rgba(232, 238, 246, 0.95) 0%, rgba(224, 232, 243, 0.9) 100%);
    padding: 5px 10px;
    border-radius: 6px;
}

.dx-list-item-icon-container, .dx-toolbar-before {
    width: 36px;
    padding-right: 0px !important;
    text-align: center;
}

.dx-list-item-content {
    padding-left: 10px !important;
}

.dx-button {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 4px;
}

.panel-list {
    height: 400px;
}

.dx-drawer-expand.dx-drawer-right .panel-list {
    float: right;
}

.panel-list .dx-list-item {
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .panel-list .dx-list-item .dx-icon {
        color: #fff !important;
    }

/* TreeView styling to match List appearance */
.panel-list .dx-treeview {
    padding-left: 0 !important;
}

.panel-list .dx-treeview-item {
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.panel-list .dx-treeview-item .dx-icon {
    color: #fff !important;
    width: 36px;
    text-align: center;
    padding-right: 0px;
}

.panel-list .dx-treeview-item-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.panel-list .dx-treeview-toggle-item-visibility {
    color: #fff !important;
    width: 20px;
    height: 20px;
    margin-left: 0 !important;
    margin-right: 5px !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.panel-list .dx-treeview-node {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.panel-list .dx-treeview-node[aria-level="1"] {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.panel-list .dx-treeview-node[aria-level="2"] {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.panel-list .dx-treeview-node[aria-level="2"] .dx-treeview-item {
    padding-left: 20px !important;
}

.panel-list .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    padding-left: 0 !important;
}

.panel-list .dx-treeview-item.dx-state-hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.panel-list .dx-treeview-item.dx-state-focused {
    background-color: rgba(255, 255, 255, 0.18);
}

.options {
    padding: 20px;
    background: linear-gradient(180deg, rgba(232, 238, 246, 0.6) 0%, rgba(224, 232, 243, 0.5) 100%);
    border-radius: 8px;
}

.options-container {
    display: flex;
    align-items: center;
}

.caption {
    font-size: 18px;
    font-weight: 500;
}

.option {
    margin-top: 10px;
    display: inline-block;
    margin-right: 50px;
}

label {
    font-weight: bold;
}

/* Notes popup – force large size so content is visible */
#notePopup.modal .modal-dialog {
    max-width: 98vw !important;
    width: 98% !important;
    max-height: 90vh !important;
    margin: 5vh auto !important;
}
#notePopup.modal .modal-content {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}
#notePopup.modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 60vh !important;
    overflow: auto !important;
}
#notePopup.modal .modal-body .dx-datagrid {
    min-height: 50vh !important;
}

/* Rehab Detail: Figures, Detail, Project – form labels not bold (override global label rule) */
#accordionExample .dx-field-item-label,
#accordionExample .dx-field-item-label-text,
#accordionExample .dx-field-label {
    font-weight: normal !important;
}

/* ============================================================
   Rehab Detail popups: sizing only — never set display on .modal
   Centering is handled by modal-dialog-centered class in HTML
   ============================================================ */

/* Comparable Properties */
#comparisonPopup .modal-dialog {
    max-width: 760px;
    width: 92%;
}
#comparisonPopup .modal-content {
    max-height: 88vh;
}
#comparisonPopup .modal-body {
    overflow-y: auto;
}
#comparisonPopup label,
#comparisonPopup .dx-field-item-label,
#comparisonPopup .dx-field-item-label-text,
#comparisonPopup .dx-field-label,
#comparisonPopup p,
#comparisonPopup .dx-field-item-label-content,
#comparisonPopup .modal-title {
    font-weight: normal !important;
}
#comparisonPopup .comparison-popup-actions {
    float: right;
}

/* Rehab Dates */
#RehabDatesPopup .modal-dialog {
    max-width: 540px;
    width: 92%;
}
#RehabDatesPopup .modal-content {
    max-height: 80vh;
}
#RehabDatesPopup .modal-body {
    overflow-y: auto;
    min-height: 260px;
}
#RehabDatesPopup .modal-body .dx-datagrid {
    min-height: 200px;
}
#RehabDatesPopup .dx-edit-form .dx-field-item-content .dx-texteditor,
#RehabDatesPopup .dx-edit-form .dx-field-item-content .dx-texteditor input {
    width: 100% !important;
}
#RehabDatesPopup .dx-field-label,
#RehabDatesPopup p,
#RehabDatesPopup .dx-field-item-label-content,
#RehabDatesPopup .modal-title {
    font-weight: normal !important;
}

/* Rehab Appraisal Comparison */
#RehabAppraisalPopup .modal-dialog {
    max-width: 620px;
    width: 92%;
}
#RehabAppraisalPopup .modal-content {
    max-height: 80vh;
}
#RehabAppraisalPopup .modal-body {
    overflow-y: auto;
}
#RehabAppraisalPopup .comparison-popup-actions {
    float: right;
}

#RehabAppraisalPopup label,
#RehabAppraisalPopup .dx-field-item-label,
#RehabAppraisalPopup .dx-field-item-label-text,
#RehabAppraisalPopup .dx-field-label,
#RehabAppraisalPopup .dx-field-item-label-content {
    font-weight: normal !important;
}

/* Rehab Tax Record */
#RehabTaxPopup .modal-dialog {
    max-width: 480px;
    width: 92%;
}
#RehabTaxPopup .modal-content {
    max-height: 80vh;
}
#RehabTaxPopup .modal-body {
    overflow-y: auto;
}
#RehabTaxPopup .comparison-popup-actions {
    float: right;
    padding-bottom: 10px;
}
#RehabTaxPopup .dx-texteditor,
#RehabTaxPopup .dx-selectbox {
    width: 100% !important;
}

#RehabTaxPopup label,
#RehabTaxPopup .dx-field-item-label,
#RehabTaxPopup .dx-field-item-label-text,
#RehabTaxPopup .dx-field-label,
#RehabTaxPopup .dx-field-item-label-content {
    font-weight: normal !important;
}

/* Rehab Insurance */
#RehabInsurancePopup .modal-dialog {
    max-width: 560px;
    width: 92%;
}
#RehabInsurancePopup .modal-content {
    max-height: 80vh;
}
#RehabInsurancePopup .modal-body {
    overflow-y: auto;
}
#RehabInsurancePopup .comparison-popup-actions {
    float: right;
    padding-bottom: 10px;
}

#RehabInsurancePopup label,
#RehabInsurancePopup .dx-field-item-label,
#RehabInsurancePopup .dx-field-item-label-text,
#RehabInsurancePopup .dx-field-label,
#RehabInsurancePopup .dx-field-item-label-content {
    font-weight: normal !important;
}

/* Asset Details popup */
#assetDetailPopup .modal-dialog {
    max-width: 1000px;
    width: 95%;
}
#assetDetailPopup .modal-body {
    min-height: 460px;
    max-height: 72vh;
    overflow-y: auto;
}
#assetDetailPopup #gcAssetDetail {
    height: 400px;
}

/* Notes popup */
.note-popup-modal .modal-dialog {
    max-width: 640px;
    width: 92%;
}
.note-popup-modal .modal-content {
    max-height: 80vh;
}
.note-popup-modal .modal-body {
    overflow-y: auto;
}

#content {
    height: 100%;
    padding: 10px 20px;
}

    #content h2 {
        font-size: 26px;
    }


