/* SITE WIDE STANDARD CLASSES
 -------------------------------------------------*/

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a {
    color: #003953;
}

h1 {
    font-weight:bold;
    color: #003953;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

.footer {
    background-color: #E1F6FF;
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.border-top {
    border-top: 2px solid #003953;
}

.border-bottom {
    border-bottom: 2px solid #003953;
}

div.form-group span.text-danger {
    font-size: .8rem;
    height: 19px;
    display: block;
}

div.row {
    margin-right:0;
    margin-left:0;
}

.embolden {
    font-weight:bold;
}

.space-right {
    margin-right: 1em;
}

.display-block {
    display: block;
}

.display-none {
    display: none;
}

.card-data-warning {
    display: none;
    background-color: gold;
    padding: 10px;
}

.top-20\% {
    margin-top: 20px;
}

.order-status-body-margin {
    margin: 0 15%;
}

.no-padding {
    padding: 0;
}

@media screen and (max-width: 1200px) {
    .order-status-body-margin {
        margin: 0 2%;
    }
}

@media screen and (max-width: 2200px) {
    .order-status-body-margin {
        margin: 0 10%;
    }
}

.no-min-width {
    min-width: unset;
}

.width-0 {
    width: 0;
}

.width-8\% {
    width: 8%;
}

.width-10\% {
    width: 10%;
}

.width-11\% {
    width: 11%;
}

.width-14\% {
    width: 14%;
}

.width-15\% {
    width: 15%;
}

.width-16\% {
    width: 16%;
}

.width-20\% {
    width: 20%;
}

.width-30\% {
    width: 30%;
}

.width-35 {
    width: 35%;
}

.width-40\% {
    width: 40%;
}

.width-45\% {
    width: 45%;
}

.width-50\% {
    width: 50%;
}

.width-55\% {
    width: 55%;
}

.width-60\% {
    width: 60%;
}

.full-width {
    width: 100%;
}

.max-width-39\% {
    max-width: 29%;
}

.max-width-59\% {
    max-width: 69%;
}

.border-none {
    border: none;
}

.color-red {
    color: red;
}


/* LOADER/SPINNER STYLES
----------------------------------------------------*/
#loaderModal {
    top: 46.875%;
    left: 43.814%;
}

.basic-loader {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid blue;
    border-bottom: 16px solid blue;
}

.christmas {
    border: 16px solid red;
    border-top: 16px solid green;
    border-bottom: 16px solid green;
}

.halloween {
    border: 16px solid orange;
    border-top: 16px solid black;
    border-bottom: 16px solid black;
}

.valentines {
    border: 16px solid red;
    border-top: 16px solid pink;
    border-bottom: 16px solid pink;
}

.new-year {
    border: 16px solid red;
    border-top: 16px solid gold;
    border-bottom: 16px solid gold;
}

.st-patrick {
    border: 16px solid green;
    border-top: 16px solid orange;
    border-bottom: 16px solid orange;
}

.juneteenth {
    border: 16px solid red;
    border-top: 16px solid black;
    border-bottom: 16px solid green;
}

.independence {
    border: 16px solid red;
    border-top: 16px solid white;
    border-bottom: 16px solid blue;
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* NAVBAR STYLES
----------------------------------------------------*/

#LayoutNavbar {
    margin-bottom: 0px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #003953;
}

.expanded-nav {
    color: #fff;
    background-color: #1b6ec2;
}

.dropdown-toggle:hover{
    text-decoration: none;
}

.dropdown-menu{
    z-index: 1050;
}

/* Dark dropdown menus scoped to the navbar — flush extension of the navbar */
#LayoutNavbar .dropdown-menu {
    background-color: #002a3d;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
    margin-top: 0;
    /* Match the width of the toggle button */
    min-width: 100%;
}

#LayoutNavbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

    #LayoutNavbar .dropdown-item:hover,
    #LayoutNavbar .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.10);
        color: #ffffff;
    }

    #LayoutNavbar .dropdown-item.disabled {
        color: rgba(255, 255, 255, 0.35);
    }

.dropdown-icon {
    padding-right: 10px !important;
}


/* FORM STYLES
----------------------------------------------------*/
.input-group-text {
    background-color: #c5c5c5;
    border-color: #616161;
    color: #000000;
    font-size: 0.884rem !important;
}

.form-control {
    border-color: #616161;
}

/* Refined focus ring — uses the primary blue so it's on-brand */
.form-control:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.15);
    outline: none;
}

form {
    position: relative;
    overflow: hidden;
}

.form-step {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s ease;
}

    .form-step.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        position: relative;
    }

/* Button styles
----------------------------------------------------*/

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transition-delay: .1s;
    background-color: #003953;
    background-image: linear-gradient(180deg, #003953 50%, #094a8b 100%);
    color: #ffffff;
}

    .btn:hover:before {
        transition-delay: 0;
    }

    .btn:hover:after {
        transition-delay: .35s;
    }

.btn-info {
    background-color: #1861ac;
    border-color: #1861ac;
    color: white;
}

    .btn-info:before, .btn:after {
        content: '';
        position: absolute;
        transition: inherit;
        z-index: -1;
    }

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        transition-delay: .1s;
        color: #212529 !important;
        background-color: #f8f9fa !important;
        border-color: #f8f9fa !important;
        background-image: none;
    }

.btn-light {
    background-color: #E1F6FF;
    border-color: #E1F6FF;
}

    .btn-light:hover {
        transition-delay: .1s;
        color: #212529 !important;
        background-color: #f8f9fa !important;
        border-color: #f8f9fa !important;
        background-image: none;
    }

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.details-btn {
    background-color: #003953;
    /*background-image: linear-gradient(180deg, #094a8b 50%, #003953 100%);
    background-color: #094a8b;*/
    color: white;
    min-width: 7em !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    /* border-radius intentionally omitted — Bootstrap's .btn default (~6px) is used,
       which also allows .input-group to correctly manage radius on joined edges */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button-form {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    animation: fadeInUp 0.5s ease-in-out;
}


/* CUSTOM SITE WIDE CLASSES
-------------------------------------------------- */

.control-div {
    border: 1px solid #d0dce8;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 12px;
    margin: 5px;
}

#LayoutNavbar {
    background-color: #003953 !important;
    color: #ffffff;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    /* Remove Bootstrap's default vertical padding so items can fill the full bar height */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* Defined height now that padding is gone */
    min-height: 58px;
}

/* Let the collapsible section and nav list stretch to the full bar height */
#LayoutNavbar .navbar-collapse,
#LayoutNavbar .navbar-nav {
    align-self: stretch;
    align-items: stretch;
}

/* All nav links (non-dropdown) are vertically centered within their stretched li */
#LayoutNavbar .navbar-nav .nav-item > a:not(.dropdown-toggle) {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Search bar li — centers vertically without stretching to full height */
#LayoutNavbar .navbar-nav .nav-item.input-group {
    align-self: center;
    align-items: center;
}

/* Navbar links and dropdowns are white against the dark background */
#LayoutNavbar .nav-item a:not(.dropdown-item),
#LayoutNavbar .nav-item .dropdown-toggle {
    color: rgba(255, 255, 255, 0.90) !important;
}

#LayoutNavbar .nav-item a:not(.dropdown-item):hover,
#LayoutNavbar .nav-item .dropdown-toggle:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Stretch dropdown items to full navbar height so the menu connects flush */
#LayoutNavbar .nav-item.dropdown {
    display: flex;
    align-items: stretch;
    /* Size the li to its content so min-width: 100% on the menu matches the button width */
    min-width: max-content;
}

#LayoutNavbar .nav-item.dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 0;
    transition: background-color 0.15s ease;
}

/* Hover and open state both use the dropdown background — creates one continuous surface */
#LayoutNavbar .nav-item.dropdown > .dropdown-toggle:hover,
#LayoutNavbar .nav-item.dropdown.show > .dropdown-toggle {
    background-color: #002a3d;
    color: #ffffff !important;
    text-decoration: none;
}

/* Ghost outline search button — transparent so it never clashes with the navbar */
#LayoutNavbar #btn-search {
    background-color: rgba(255, 255, 255, 0.12);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.80);
    color: #ffffff;
}

#LayoutNavbar #btn-search:hover {
    background-color: rgba(255, 255, 255, 0.12);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.80);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.login-error {
    color: firebrick;
    margin-left: 1em;
}

#Login {
    margin-left: auto;
    margin-right: auto;
}
.login-buttons {
    width: 6.5em;
    padding: .35em .75em .35em 1em;
    text-align: center;
}

#HeaderContainer {
    margin-left: 0;
    margin-right: 0;
}

.layout-width {
    width: 250px;
}

.hide {
    display: none;
}

/* ORDER DASHBOARD STYLE
-------------------------------------------------- */
table#orders-table th span {
    width: inherit;
    overflow: hidden;
}

/* Order number — clean blue text link */
.order-link {
    color: #1b6ec2;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.order-link:hover {
    color: #094a8b;
    text-decoration: underline;
}

.logo-spacing {
    margin: 3em 0;
}

/* ORDER CREATION STYLE
-------------------------------------------------- */
.order-form {
    max-width: 98%;
}

/* Wider page container for the multi-step Title Order form. Bootstrap 4's .container
   hard-caps at 1140px, leaving big side margins on large monitors. Width is percentage-
   based so the side margins scale with the screen (~2.5% each side) instead of being
   whatever's left past a fixed cap; a high max-width just prevents absurd line lengths
   on ultra-wide displays. */
.container-wide {
    width: 95%;
    max-width: 2400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.contact-expand {
    float: left;
    position: relative;
    bottom: 2.1em;
    right: 1.5em;
}

.option-checkbox {
    margin-right: 1em;
    display: inline-block;
}

.options-label {
    height: fit-content;
    max-width: fit-content;
    margin-bottom: 0.5em;
}

.confirmProductSelection {
    float: right;
}

.div-contact-label {
    display: flex;
}

div.div-contact-label span.text-danger {
    font-size: inherit;
}

.lender-contact-label {
    margin-bottom: 0px !important;
}

h5 .loanContacts {
    margin: 0 1em 0 0;
    width: 200px
}

.toggle-div-container {
    cursor: pointer;
    margin-bottom: -12px;
    display: inline-block;
    width: 100%;
}

.toggle-div-container h2 {
    margin: 0px;
    font-size: 1.768rem
}

.toggle-div-clickable {
    /*
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    background-color: #E1F6FF;
        */
    width: fit-content;
    padding-right: 30px;
    padding-left: 10px;
    background-color: #f7f9fc;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.15s ease;
}

.toggle-div-container:hover .toggle-div-clickable {
    background-color: #e8edf2;
}

.toggle-div-bottom-border {
    border-bottom: 2px solid #003953 !important;
    width: inherit;
    height: fit-content;
}

#confirmAppraisalType {
    font-size: larger;
    text-decoration: underline;
}

.changeProductSelection {
    float: right;
}

.mortgage-checkbox-row {
    height: 21%;
}

.input-group-prepend {
    min-width: fit-content;
    padding: 0;
}

div.input-group {
    flex-wrap: nowrap;
    padding: .25em;
}

#PrimaryContactInput, #LoanOfficerInput, #ProcessorInput, #AdditionalContact1Input {
    width: 300px;
}

#map-canvas {
    width: 280px;
    height: 280px;
    float: left;
}

/* ORDER STATUS STYLE
-------------------------------------------------- */
.col-indent {
    padding-left: 1em;
    padding-bottom: 1em;
}

.inner-row {
    border: 1px solid #d0dce8;
    padding: 8px;
    margin-bottom: 1em;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.08);
}

#inner-section1 {
    max-width: fit-content;
}

.center {
    display: flex;
    justify-content: center;
}

.section {
    vertical-align: middle;
    padding: 0 5px 0 5px;
}

#section1 {
    max-width: 65%;
}

#section2 {
    max-width: 35%;
}

#section5 {
    box-sizing: border-box;
    clear: left;
    margin-bottom: 20px;
}

.bottom-margin {
    margin-bottom: 10px;
}

.page-header {
    margin: 2em 0 2em 0;
}

.section-title {
    border-radius: 0;
    padding: 0.2em 0;
    background-image: none;
    border-bottom: 2px solid #003953;
    width: fit-content;
    height: fit-content;
    font-weight: 600;
    color: #003953;
    letter-spacing: 0.01em;
}

#commTable td {
    padding: 5px;
    word-wrap: break-word;
    font-size: 1em;
}

@media screen and (max-width:1200px)
{
    #commTable td{
        font-size: .8em;
    }
}

#commTable tr:nth-child(even), #orders-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#commTable tr:hover, #orders-table tr:hover {
    background-color: #E1F6FF;
}

#table-wrapper, #table-wrapper2, .table-card, .form-card {
    position: relative;
    max-height: 100%;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.08);
    padding: 2px 0px;
}

#table-scroll {
    max-height: 400px;
    overflow-y: scroll;
    margin-top: 28px;
    overflow-x: hidden;
}

#table-scroll2 {
    max-height: 75vh; /* no-JS fallback; sizeOrdersCard() overrides this inline to fill the viewport */
    overflow-y: auto;
    overflow-x: auto; /* let the (now no-wrap) orders table scroll sideways instead of clipping */
    border-radius: 4px;
}

/* Orders card: edge-to-edge contents clipped to the rounded corners */
#table-wrapper2, .table-card, .form-card {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-color: #e2eaf2;
}

#table-wrapper table, #table-wrapper2 table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    #table-wrapper table thead th .text, #table-wrapper2 table thead th .text {
        position: absolute;
        top: -25px;
        z-index: 2;
        height: 25px;
        font-size: small;
    }

label.borrower {
    margin-right: 0.5em;
}

.stickyLink {
    margin: 0 0.5em;
}

.text-only-sticky-link {
    margin: 0 0.5em;
    text-align: left;
    color: #E1F6FF;
    font-weight: bold;
}

#button-nav-box {
    background-color: #ffffff;
    color: #003953;
    border-bottom: 2px solid #d0dce8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 10px;
    width: 100%;
    margin-bottom: 10px;
}

    #button-nav-box a {
        color: #003953;
    }

    #button-nav-box button {
        margin-left: 5px;
        margin-right: 5px;
    }

/* btn-light needs more contrast on the white action bar */
#button-nav-box .btn-light {
    background-color: #f0f4f8;
    border-color: #d0dce8;
    color: #003953;
    font-weight: 500;
}

    #button-nav-box .btn-light:hover {
        background-color: #003953;
        background-image: linear-gradient(180deg, #003953 50%, #094a8b 100%);
        border-color: #003953;
        color: #ffffff !important;
    }

#tab-nav-box {
    background-color: #ffffff;
    /*background-color: #e1f6ff;*/
    /*background-color: #ccf0ff;*/
    margin-top: 0;
    color: #003953;
    border-bottom: 2px solid #003953;
}

    #tab-nav-box .nav-link {
        color: #5a6a7a;
        border-right: none;
        background-color: transparent;
        /* Bottom indicator shifts up to sit on the border */
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
        font-weight: 500;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

        #tab-nav-box .nav-link:hover {
            color: #003953;
            background-color: transparent;
            background-image: none;
            border-bottom-color: rgba(0, 57, 83, 0.30);
        }

    #tab-nav-box .nav-link-active {
        color: #003953 !important;
        background-color: transparent !important;
        border-bottom: 3px solid #003953 !important;
    }

.tab-order-status {
    margin-bottom: 1em;
}

/* The order status page is now a single stacked view (tabs merged into one page).
   Give each former-tab section a clear top divider so the blocks read as distinct. */
.order-status-section {
    border-top: 2px solid #d0dce8;
    padding-top: 2em;
    margin-top: 0.5em;
}

/*Flex will make the columns the same height to match the tallest data, but cause width issues*/
.tab-order-status-column {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    height: auto;
    width: 100%;
}

.tab-order-status-box {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    height: auto;
    width: 100%;
}

/* Let the card's content wrapper fill the box so the centered <h4> header lines up
   with the visible box borders (not just centered over the text width). */
.tab-order-status-box > .display-block {
    width: 100%;
}

/* Divider between side-by-side columns inside a combined order-status box
   (Order Details/Lender/Subject Property, and Borrowers/Sellers).
   Vertical rule on md+ screens; falls back to a top rule once the columns stack. */
.status-col-divider {
    border-left: 1px solid #d0dce8;
}

@media (max-width: 767.98px) {
    .status-col-divider {
        border-left: none;
        border-top: 1px solid #d0dce8;
        margin-top: 0.75em;
        padding-top: 0.75em;
    }
}

/* Horizontal divider for stacked sections within a box (e.g. Borrowers above Sellers). */
.status-row-divider {
    border-top: 1px solid #d0dce8;
    margin-top: 0.75em;
    padding-top: 0.75em;
}


.table-tooltip {
    cursor: help;
}

.treat-like-button {
    color: #003953;
    cursor: pointer;
}

.treat-like-button:hover {
    color: #1861ac;
}

.modal-dialog {
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
}

.modal-content{
    border:none;
}

div.modal-header {
    background-color: #094a8b;
    background-image: linear-gradient(0, #094a8b, #003953, 46%);
    color: #ffffff
}

#instructionsElement {
    word-break: break-word;
}

.nav-logo {
    height: 4%;
    width: 4%;
    margin-right: 10px;
    /* White backing so the logo reads on the dark navy navbar */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    padding: 4px 6px;
}

.progress-fill {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    min-height: 1em;
    font-size: 1em;
    text-align: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 0px;
    background-color: #094a8b;
    color: #E1F6FF;
    border-radius: 16px;
    display: flex;
}

.progress-fill-section {
    padding-left: 10px;
    padding-right: 10px;
    /*border-right: 1px solid #5298de;*/
}

.progress-fill-section-last {
    padding-left: 10px;
    padding-right: 10px;
    background-color: #dc3545;
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
}

.progress-stripes {
    background-size: 30px 30px;
    background-image: linear-gradient( 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent );
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
    border-radius: 16px;
}

/* QUESTION/DISPUTE MODAL STYLE
-------------------------------------------------- */

#question, #dispute {
    height: 5em;
    overflow: hidden;
    word-wrap: normal;
    width: 90%;
}

/* ADD/EDIT ORDER CONTACT MODAL 
-------------------------------------------------- */

#mdlAddEditOrderContact .modal-dialog {
    max-width: fit-content !important;
}

#mdlAddEditOrderContact .modal-content {
    width: 58.8em;
}

#btnAddContact {
    width: fit-content;
    padding: 0 5px 0 5px;
    margin: 0 5px 5px 0;
}

/* ATTACHMENTS STYLE
-------------------------------------------------- */
#attachments-box {
    border: 1px solid #d0dce8;
    border-radius: 8px;
    overflow: scroll;
    overflow-x: hidden;
    max-height: 195px;
    height: fit-content;
    padding: 0;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.08);
}

    #attachments-box thead {
        background-color: #E1F6FF;
    }

#attach-table {
    width: 100%;
    font-size: .7em;
    table-layout: fixed;
}

    #attach-table td {
        padding: 5px;
        word-wrap: break-word;
    }

#subType {
    margin-left: 5px;
}

#comment {
    width: 100%;
}

/* LENDER CONTACTS STYLE
-------------------------------------------------- */
#update-btn {
    float: right;
    padding: .5em 2em .5em 2em;
    margin-top: 10px;
}


/* ACCESS CONTACTS STYLE
------------------------------------------------ */
h5.form-label {
    margin-left:3%;
}

/* MASKING STYLE
----------------------------------------------- */
li {
    line-height: 2;
}

.shell {
    position: relative;
    line-height: 1;
    -ms-flex: 0 0 66.79%;
    flex: 0 0 66.79%;
    max-width: 66.79%;
    padding: 0;
}

    .shell span {
        position: absolute;
        left: 6px;
        top: 3px;
        color: #ccc;
        pointer-events: none;
        z-index: -1;
        width: max-content;
    }

        .shell span i {
            font-style: normal;
        }

    input.masked,
    .shell span {
        font-size: 16px;
        font-family: monospace;
        padding-right: 10px;
        text-transform: uppercase;
    }

input.masked {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-bottom: 0;
}

mask-label {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* RECORDING ORDER STYLE
-------------------------------------------------- */
.recording-form-label {
    min-width: 9em;
    max-width: 0;
}

.no-validation-space {
    font-size: .8rem;
    height: 19px;
    display: block;
}

#recording-modal-header {
    background-color: #094a8b;
    background-image: linear-gradient( 180deg, #094a8b 50%, #003953 100%);
    color: white;
}

#document-box {
    max-width: 100%;
    vertical-align: middle;
    padding: 0;
}

#document-state {
    border: 1px solid black;
}

#doc-title {
    border-bottom: 2px solid #094a8b;
}

.title-margin {
    margin-bottom: 6px;
}

.documentCode {
    width: 0;
    display: none;
}

.rec-table-scroll {
    max-height: 200px;
    overflow-y: scroll;
    margin-top: 28px;
    overflow-x: hidden;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.08);
    font-size: .8em;
}

#rec-com-header {
    width: 100%;
    margin: 0 5px 0 5px;
    border-bottom: 2px solid #094a8b;
}

.recCheckBoxes {
    transform: scale(1.5);
    margin: 0 1em 1em;
}

#docsInHandModal {
    transform: scale(1.5);
    margin: .5em 1em 1em;
    float: left;
}

#add-doc {
    font-size: 1.25rem;
    padding-left: 1em;
}

#add-att {
    font-size: 1.25rem;
    padding-left: 1.75em;
}

#doc-btn {
    height: 1em;
    font-size: .5em;
    padding: 1em;
    line-height: 0;
    margin-right: 1em;
}

#upload-modal-btn {
    float: right;
    margin-right: 1em;
}

#add-btn {
    float: right;
}

#add-doc-modal {
    padding: 1em;
    margin: 1em;
}

#rec-attach-table-header {
    background-color: white !important;
    border-bottom: 2px solid #094a8b;
    position: sticky;
    top: 0px;
}

#rec-attach-table {
    width: 100%;
    font-size: .8em;
    table-layout: fixed;
}

    #rec-attach-table td {
        padding: 5px;
        word-wrap: break-word;
    }

#special-instructions-scroll {
    border: 2px groove rgba(225, 246, 255, 0.5);
    border-radius: 5px;
    overflow: scroll;
    overflow-x: hidden;
    max-height: 200px;
    height: auto;
    padding: 5px;
    margin: 1em 0 0;
    background-color: white;
    background-image: linear-gradient(0deg, rgba(225, 246, 255, 0.5) 0%, rgba(172, 220, 226, 0.5) 15%, rgba(172, 220, 226, 0.5) 34%, rgba(225, 246, 255, 0.5) 95%);
}

#checkboxVerbiage {
    max-width: 75%;
    text-wrap: inherit;
}

#docsInHandCheckDiv {
    padding-bottom: 2em;
}

#docsInHand {
    float: left;
    margin-top: .5em;
}

#confirmedInfoDiv {
    padding-left: 1em;
}

.rec-client-num-btn{
    min-width: 8em !important;
}

#states-btn-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

#prev-info-btn {
    float: right;
    margin-right: 1em;
}

textarea#FileComment.form-control {
    width: 30em;
}

#file-label {
    max-width: 10em;
}

#lender-width {
    width: 60px;
}
/* TITLE QUOTING STYLE
-------------------------------------------------- */
.minimum-spacing {
    margin: 4px 0;
}

::-webkit-calendar-picker-indicator {
    margin-left: -15px;
}

.quote-label {
    word-break: break-word;
    width: 200px;
    white-space: normal;
}

.quote-section-label {
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: #000;
    padding: 3px 0 2px 15px !important;
    margin: 10px 0 -2px 0;
}

.left-align-text {
    text-align: left;
}

#quoteResultsForPdf {
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
}

#results-left-column {
    padding: 0 5px 0 0;
}

#results-right-column {
    padding: 0 0 0 5px;
}

form#formTitleQuote span.hidden-span {
    display: unset;
}

/* TITLE REALTOR STYLE
-------------------------------------------------- */
.file-input-element {
    border-right: none;
    border-top: none;
    border-bottom: none;
}

form#formTitleRealtor span.hidden-span {
    display: unset;
}

/* AVM STYLES*/
#avmPropertyDiv {
    height: 12em !important;
}

/* SIDEBAR LAYOUT
----------------------------------------------------*/

/* App shell: fixed sidebar on the left, main content filling the rest */
#app-shell {
    display: flex;
    min-height: 100vh;
}

/* Fixed left sidebar */
#sidebar {
    width: 220px;
    min-width: 220px;
    background-color: #003953;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

/* Logo / brand row at the top of the sidebar */
#sidebar-logo {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Override the global .nav-logo percentage sizes for the sidebar context */
#sidebar .nav-logo {
    height: 28px;
    width: auto;
    margin-right: 0;
}

#sidebar-brand {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
}

/* Scrollable nav list */
#sidebar-nav {
    padding: 12px 10px;
    flex: 1;
}

/* Muted section headings between nav groups */
.sidebar-section-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.40);
    font-weight: 500;
    margin: 16px 0 5px 10px;
}

/* Individual nav items */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 500;
}

.sidebar-link.disabled {
    color: rgba(255, 255, 255, 0.30);
    pointer-events: none;
}

/* Non-interactive sidebar items (company name display) */
.sidebar-link-static {
    pointer-events: none;
}

/* Icon column within sidebar links */
.sidebar-link .fa {
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* User identity panel pinned to the bottom of the sidebar */
#sidebar-user {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
}

/* Avatar circle showing the user's initials */
.sidebar-user-initials {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0; /* lets the name/entity ellipsize inside the flex row */
}

.sidebar-user-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Account metadata under the user's name (moved here from the old footer) */
.sidebar-user-entity {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sign-out icon button on the right edge of the user block */
.sidebar-signout {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

.sidebar-signout:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.10);
    text-decoration: none;
}

/* Copyright + privacy row at the very bottom of the sidebar (moved here from the old footer) */
.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 0;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.40);
}

.sidebar-meta a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.sidebar-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Main content area — offset to clear the fixed sidebar */
#main-wrapper {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #f8f9fa;
}

/* Breathing room at the bottom of the content area (footer removed from app shell) */
#main-wrapper > main {
    padding-bottom: 24px;
}

/* Sticky top bar housing the search field */
#page-topbar {
    background-color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #d0dce8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

#page-topbar-company {
    font-size: 13px;
    color: #5a6a7a;
    font-weight: 500;
    white-space: nowrap;
}

#topbar-search-group {
    max-width: 320px;
    width: 100%;
    flex-wrap: nowrap;
}

#topbar-search-group .form-control {
    font-size: 13px;
}

/* Search button — overrides .details-btn min-width so it doesn't balloon */
#topbar-search-group #btn-search {
    background-color: #003953;
    border-color: #003953;
    color: #ffffff;
    background-image: none;
    min-width: unset !important;
    /*padding: 0.375rem 0.75rem;*/
}

#topbar-search-group #btn-search:hover {
    background-color: #094a8b;
    border-color: #094a8b;
    background-image: none;
    box-shadow: none;
    color: #ffffff;
}

/* DASHBOARD FILTER TOOLBAR */
.dash-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 0 20px 0;
    flex-wrap: wrap;
}

.dash-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-filter-item label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a91a6;
    margin-bottom: 0;
}

.dash-filter-item .form-control,
.dash-filter-item .form-select {
    border-radius: 6px;
    height: 32px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    box-sizing: border-box;
}

/* Status filter reads as the primary/active filter — on-brand blue */
.dash-status-filter {
    border-color: #1b6ec2;
    color: #1b6ec2;
    font-weight: 600;
}

.dash-status-filter:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.15);
}

/* DASHBOARD METRIC CARDS */
.dash-metrics {
    display: flex;
    gap: 12px;
    padding: 4px 0 18px 0;
    flex-wrap: wrap;
}

.dash-metric-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2eaf2;
    border-radius: 8px;
    padding: 14px 22px;
    min-width: 110px;
    box-shadow: 0 1px 4px rgba(0, 57, 83, 0.06);
}

.dash-metric-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #7a91a6;
    margin-bottom: 8px;
}

.dash-metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    color: #003953;
}

.dash-metric-open     { color: #1b6ec2; }
.dash-metric-complete { color: #1a7f4b; }
.dash-metric-due      { color: #c97a1a; }

/* STATUS BADGES */
.status-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-badge-complete  { background: #1a7f4b; color: #fff; }
.status-badge-cancelled { background: #b91c1c; color: #fff; }
.status-badge-hold      { background: #b45309; color: #fff; }
.status-badge-received  { background: #1d4ed8; color: #fff; }
.status-badge-active    { background: #1b6ec2; color: #fff; }

/* ORDERS TABLE SECTION HEADER — sits inside the card, above the scrolling table */
.orders-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid #eef2f6;
}

.orders-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2e3d;
    letter-spacing: -0.01em;
}

/* Small muted count pill next to the title */
.orders-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5b7186;
    background: #eef2f6;
    padding: 1px 9px;
    border-radius: 999px;
}

/* Live summary stats folded into the orders card header (right side) */
.orders-header-stats {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.8rem;
    color: #7a91a6;
    font-weight: 500;
    white-space: nowrap;
}

.orders-stat-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: #003953;
    font-variant-numeric: tabular-nums;
    margin-right: 3px;
}

.orders-stat-num.dash-metric-open {
    color: #1b6ec2;
}

.orders-stat-sep {
    color: #d0dce8;
}

/* --- Orders table: modern card-table styling (scoped to #table-wrapper2 so the
       other dashboard table that shares #table-wrapper / .text rules is untouched) --- */
#table-wrapper2 #orders-table, .data-table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
}

/* Override the legacy floating-label hack (position:absolute; top:-25px) for this table */
#table-wrapper2 #orders-header th, .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 #e2eaf2; /* collapse-safe bottom border for sticky th */
    padding: 11px 16px;
    text-align: left;
    vertical-align: middle;
}

/* .data-table headers carry the label typography directly (no legacy .text span) */
.data-table thead th {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a91a6;
    white-space: nowrap;
}

#table-wrapper2 #orders-header th .text {
    position: static;
    top: auto;
    height: auto;
    width: auto;
    overflow: visible;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a91a6;
    white-space: nowrap;
}

/* Airy data cells with subtle row dividers (replaces the zebra stripes) */
#table-wrapper2 #orders-table td, .data-table td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #eef2f6;
    white-space: nowrap; /* no wrapping — columns size to content, table scrolls sideways if needed */
}

/* Give the borrower column room to breathe and keep the ordered-date column compact */
#table-wrapper2 #orders-table td strong { display: inline-block; min-width: 160px; }

#table-wrapper2 #orders-table tbody tr:last-child td, .data-table tbody tr:last-child td {
    border-bottom: none;
}

#table-wrapper2 #orders-table td strong, .data-table td strong {
    color: #1a2e3d;
    font-weight: 600;
}

#table-wrapper2 #orders-table tbody tr:nth-child(even) {
    background-color: transparent;
}

#table-wrapper2 #orders-table tbody tr:hover, .data-table tbody tr:hover {
    background-color: #f6f9fc;
}

#orders-table tbody tr {
    cursor: pointer;
}

/* Chevron affordance column — narrow, muted, vertically centered */
.row-chevron-th {
    width: 28px;
}

.row-chevron {
    width: 28px;
    text-align: center;
    vertical-align: middle;
    color: #9db3c8;
    font-size: 1.25rem;
    padding: 0 10px !important;
}

/* VIEW HEADER — page title + action buttons row for dashboard-style pages */
.view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0 18px 0;
}

.view-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a2e3d;
    letter-spacing: -0.01em;
    margin: 0;
}

.view-subtitle {
    font-size: 0.85rem;
    color: #7a91a6;
    margin: 2px 0 0 0;
}

.view-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Soft secondary button — white with border, pairs with the navy details-btn */
.btn-soft {
    background-color: #ffffff;
    border: 1px solid #d0dce8;
    color: #003953;
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-soft:hover {
    background-color: #f6f9fc;
    border-color: #b9c9d9;
    color: #003953;
}

/* Badge sitting next to a name in a data-table cell */
.data-table td strong + .status-badge {
    margin-left: 8px;
}

/* Action links inside data tables */
.data-table-actions a {
    color: #1b6ec2;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 14px;
    white-space: nowrap;
}

.data-table-actions a:hover {
    color: #094a8b;
    text-decoration: underline;
}

/* FORM CARD — single-purpose forms (Change Password, etc.) */
.form-card {
    max-width: 560px;
}

.form-card-body {
    padding: 18px;
}

/* Center single-purpose form pages (e.g. Change Password) horizontally.
   The header is capped to the card width so its left edge lines up with the card. */
.form-page-centered .view-header,
.form-page-centered .form-card {
    margin-left: auto;
    margin-right: auto;
}

.form-page-centered .view-header {
    max-width: 560px;
    width: 100%;
}

/* Reusable narrow, horizontally-centered column for standalone pages
   (Reset Password, Change Password Success) — matches the form-card width. */
.centered-narrow {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Soft info box for inline guidance (e.g. password complexity requirements) */
.form-hints {
    background: #f6f9fc;
    border: 1px solid #e2eaf2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: #5b7186;
}

.form-hints p {
    margin: 0 0 6px 0;
    font-weight: 500;
}

.form-hints ol {
    margin: 0;
    padding-left: 1.2em;
}

.form-hints li {
    margin-bottom: 2px;
}

/* Stacked label-above-input field */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a91a6;
    margin-bottom: 4px;
}

/* Read-only value displayed in place of an input (e.g. username) */
.form-static-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2e3d;
    padding: 2px 0;
}

.form-submit-row {
    margin-top: 20px;
}

/* MVC unobtrusive-validation messages inside form cards */
.form-card .field-validation-error {
    display: block;
    font-size: 0.78rem;
    color: #b91c1c;
    margin-top: 4px;
}

.form-card .form-validation-summary,
.form-card .validation-summary-errors {
    font-size: 0.85rem;
    color: #b91c1c;
    margin-bottom: 14px;
}

.form-card .validation-summary-errors ul {
    margin: 4px 0 0 0;
    padding-left: 1.2em;
}

/* Hide the summary container when MVC renders it in its "valid" state */
.form-card .validation-summary-valid {
    display: none;
}

/* TITLE QUOTE FORM */
/* Section cards on the quote form — full column width, stacked with a gap */
.quote-card {
    max-width: none;
    margin-bottom: 16px;
}

/* Validation message rendered below its input */
.form-field span.text-danger {
    display: block;
    font-size: 0.78rem;
    margin-top: 3px;
}

/* Single-character jurisdiction answers don't need a full-width box */
.answer-char {
    max-width: 90px;
}

/* Checkbox rows inside quote cards */
.quote-card .form-check {
    margin: 8px 0;
}

.quote-card .form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Count + pages paired inputs (Release / Assignment rows) */
.form-inline-pair {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inline-pair .form-control {
    max-width: 110px;
}

/* Inline sub-label ("Pages") — resets the stacked uppercase label style */
.form-field .form-inline-pair label {
    display: inline;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: #7a91a6;
}

/* Admin upload group in the page header (entity 144 only) */
.quote-upload-group {
    min-width: 280px;
}

.quote-upload-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a91a6;
    margin-bottom: 4px;
}

/* Right-aligned submit row at the bottom of a form page */
.form-submit-bar {
    display: flex;
    justify-content: flex-end;
    padding: 4px 0 0 0;
}