﻿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;
}

/* Shared operational UI contrast */
:root {
    --mcs-control-border: #6f7d8b;
    --mcs-control-border-hover: #465668;
    --mcs-grid-border: #8795a3;
    --mcs-grid-row: #f7fafc;
    --mcs-grid-row-alt: #e8f0f7;
    --mcs-grid-row-hover: #dce9f3;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--mcs-control-border);
}

.form-control:hover,
.form-select:hover {
    border-color: var(--mcs-control-border-hover);
}

.form-control:focus,
.form-select:focus {
    border-color: #005a9f;
    box-shadow: 0 0 0 0.2rem rgba(0, 90, 159, 0.18);
}

.form-check-input {
    border-color: var(--mcs-control-border);
}

.card {
    border-color: #aab5c0;
}

.table {
    border: 1px solid var(--mcs-grid-border) !important;
    --tblr-table-striped-bg: var(--mcs-grid-row-alt);
    --tblr-table-hover-bg: var(--mcs-grid-row-hover);
}

.table > :not(caption) > * > *,
table.dataTable > :not(caption) > * > * {
    border-color: var(--mcs-grid-border);
}

.table > tbody > tr:nth-of-type(odd) > *,
.table.table-striped > tbody > tr:nth-of-type(odd) > *,
table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--mcs-grid-row) !important;
    box-shadow: none !important;
}

.table > tbody > tr:nth-of-type(even) > *,
.table.table-striped > tbody > tr:nth-of-type(even) > *,
table.dataTable.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: var(--mcs-grid-row-alt) !important;
    box-shadow: none !important;
}

.table.table-hover > tbody > tr:hover > *,
table.dataTable.table-hover > tbody > tr:hover > * {
    background-color: var(--mcs-grid-row-hover) !important;
    box-shadow: none !important;
}

.logo{
    max-width: 80%;
}

.card-header {
    background: #002f70 !important;
    gap: .75rem;
}

.card-title {
    color: #fff !important;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.btn-primary {
    background-color: #002f70 !important;
}

.login-margin{
    margin-top: 50px;
}

/*.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}*/

.form-actions {
    text-align: left;
}
.div-no-login-info {
    text-align: center;
    font-size: large;
    text-decoration: underline;
    color: #002f70;
}

.div-no-login-info > a {
    color: #002f70;
}
.login-footer {
    text-align: center;
    font-weight: normal;
    font-size: 10px;
    color: #666666;
    font-family: verdana;
    text-decoration: none;
    line-height: 20px;
    margin-top: 20px;
}

.login-footer-microsoft{
    text-align:center;
}

.microsoft-login{
    width:36%;
}
.mcs-records-form-logo{
    max-width: 150px;
}

.legacy-preview-header,
#printable-area > .row.align-items-center.mb-3:first-child {
    display: flex;
    align-items: flex-start !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.legacy-preview-logo {
    flex: 0 0 auto;
}

.legacy-preview-spacer,
#printable-area > .row.align-items-center.mb-3:first-child > .col-7 {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
}

.legacy-preview-title,
#printable-area > .row.align-items-center.mb-3:first-child > .col.text-center {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 220px;
    padding-right: 20px;
    text-align: right !important;
    width: auto;
    line-height: 1;
    box-sizing: border-box;
}

.legacy-preview-title p {
    margin: 0;
    line-height: 1;
}

.attachment-action {
    display: inline-flex;
    align-items: baseline;
    gap: 0.125rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.attachment-file-row {
    flex-wrap: nowrap;
    min-width: 0;
}

.attachment-file-row .text-truncate {
    flex: 1 1 auto;
    min-width: 0;
}

.record-submitted-date {
    width: 100%;
    text-align: right;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.preview-rush-row {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
    clear: both;
}

table.preview-rush-row {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

table.preview-rush-row td {
    border: none;
    text-align: center;
    padding: 10px 0;
}

.rush-order {
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 180px;
    padding: 10px;
    color: #c20d0d !important;
    border: 2px solid #000 !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.website-domain{
    font-size:10pt;
}
.save-for-later-svg{
    margin-right:.5rem;
}
.billto-percentage{
    width: 120px;
}
.deliveryof-record-text{
    font-size: .95rem;
}
.paper-count {
    width: 80px;
}
.attention-text{
    font-size:18px;
}
.pad-10{
    padding: 10px;
}
.thankyou-card{
    max-width: 900px
}
.billing-policy-notice {
    background: #f4f7fb;
    border: 1px solid #d5deeb;
    border-left: 4px solid #002f70;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
}
.billing-policy-notice p {
    color: #334155;
    line-height: 1.55;
}
.legacy-form-panel {
    background: #fff;
    border: 1px solid var(--tblr-border-color, #dadfe5);
    padding: 1rem;
}

.legacy-form-title {
    background: #002f70;
    color: #fff;
    font-weight: 700;
    padding: .25rem .5rem;
}

.request-upload-file-name {
    display: inline-block;
    max-width: 360px;
}

.legacy-order-form {
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.legacy-order-title {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    text-align: center;
}

.legacy-order-section-title {
    background: #002f70;
    color: #fff;
    font-weight: 700;
    min-height: 19px;
    padding: 2px 4px;
}

.legacy-order-field-label {
    font-weight: 700;
    width: 200px;
}

.legacy-order-field-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: .5rem;
    padding: 4px;
}

.legacy-order-value {
    min-height: 20px;
}

.legacy-order-submitted-date {
    min-height: 19px;
    padding-right: 20px;
    text-align: right;
}

.legacy-order-file-list {
    list-style: none;
    margin: 0;
    padding-left: 5px;
}

@media (max-width: 575.98px) {
    .legacy-order-field-row {
        grid-template-columns: 1fr;
    }
}
.layout-hr{
    margin: 4px;
}
.underline-link {
    text-decoration: underline; /* makes link clearly visible */
    color: #0056b3; /* ensure good contrast with surrounding text */
}

.underline-link:hover,
.underline-link:focus {
    text-decoration: underline;
    color: #003366; /* darker on hover/focus for clarity */
    outline: 2px solid #003366; /* visible focus indicator */
}

.step-loader-overlay {
    background: rgba(255,255,255,.6);
    z-index: 1050;
}

.gotoPageText{
    width:80px;
}

.error-alert {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    cursor: pointer;
}

.error-icon {
    height: 24px;
}

/* Apply this class to a checkbox input */
.disabled-checkbox {
    cursor: not-allowed;
    opacity: 0.6; /* faded look */
    pointer-events: none; /* prevent clicks */
}

    /* When it's checked */
    .disabled-checkbox:checked {
        accent-color: #999; /* muted gray check */
    }

/* For Bootstrap/Tabler styled checkboxes */
.form-check-input.disabled-checkbox {
    background-color: #f5f5f5;
    border-color: #ccc;
}

    .form-check-input.disabled-checkbox:checked {
        background-color: #bdbdbd;
        border-color: #aaa;
    }


.global-alert-container .alert-info {
    background-color: #2c7be5; /* darker blue */
    color: #fff;
}

.global-alert-container .alert-success {
    background-color: #198754; /* darker green */
    color: #fff;
}

.global-alert-container .alert-danger {
    background-color: #dc3545; /* darker red */
    color: #fff;
}

.global-alert-container .alert-warning {
    background-color: #ffc107; /* stronger yellow */
    color: #212529;
}
.popover {
    max-width: 400px; /* adjust width as needed */
    white-space: normal; /* allow line breaks and wrapping */
}

.popover-body {
    white-space: normal; /* allow multi-line content */
    overflow-wrap: break-word; /* wrap long words */
}
/* Container inside popover */
.popover .d-block {
    max-width: 600px; /* limit popover width */
    white-space: normal; /* allow wrapping */
}

/* Header row */
.popover .d-flex.fw-bold {
    font-weight: 600;
    border-bottom: 1px solid #dee2e6; /* light gray border like table header */
    padding-bottom: 4px;
}

/* Each data row */
.popover .d-flex.mb-1 {
    padding: 4px 0; /* vertical spacing between rows */
}

/* Columns inside each row */
.popover .d-flex > div {
    padding-right: 8px; /* horizontal spacing like table cell */
}

/* Optional: alternating row backgrounds */
.popover .d-flex:nth-child(odd) {
    background-color: #f8f9fa; /* light gray for odd rows */
}

.popover .d-flex:nth-child(even) {
    background-color: #ffffff; /* white for even rows */
}

/* Ensure long text wraps instead of overflowing */
.popover .d-flex > div {
    word-break: break-word;
}


.custom-popover {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-width: 300px;
    font-size: 0.875rem;
    white-space: normal;
}

.records-view-action-img{
    max-width: 30px;
}

.records-results-container {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.records-selection-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: .4rem;
    row-gap: .4rem;
    padding: .5rem .625rem;
    border: 0;
}

.records-toolbar-choice {
    flex: 0 1 auto;
    min-width: 0;
}

.records-toolbar-choice-all {
    flex-basis: 6.75rem;
}

.records-toolbar-choice-page {
    flex-basis: 9.75rem;
}

.records-toolbar-choice .form-check {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-height: 0;
    margin: 0;
    padding-left: 0;
}

.records-toolbar-choice .form-check-input {
    flex: 0 0 auto;
    float: none;
    margin: 0;
}

.records-toolbar-choice .form-check-label,
.records-toolbar-sort .form-label {
    font-size: .75rem;
    line-height: 1.15;
}

.records-toolbar-sort {
    flex: 0 1 11rem;
    min-width: 0;
}

.records-toolbar-sort-control {
    min-width: 0;
}

.records-toolbar-sort .form-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.records-toolbar-sort .form-select {
    width: 7.75rem !important;
    min-width: 0;
    padding: .25rem 1.5rem .25rem .4rem;
    font-size: .75rem;
}

.records-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: .125rem;
    margin-left: auto;
}

.records-toolbar-actions .btn {
    flex: 0 0 auto;
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin-right: 0 !important;
}

.records-toolbar-actions img {
    width: auto;
    max-width: 2.5rem;
    height: auto;
    max-height: 2.0625rem;
}

@media (max-width: 575.98px) {
    .records-selection-toolbar {
        flex-wrap: wrap;
    }

    .records-toolbar-choice-all,
    .records-toolbar-choice-page,
    .records-toolbar-sort {
        flex: 1 1 9rem;
    }

    .records-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }
}

.record-file-card {
    border-color: #758494;
    box-shadow: 0 1px 2px rgba(30, 41, 59, 0.08);
}

.record-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-top: .5rem;
}

.record-tag {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .2rem .45rem;
    border: 1px solid #9caab8;
    border-radius: 4px;
    background: #fff;
    color: #273444;
    font-size: .8125rem;
    line-height: 1.25;
}

.record-tag .tag-color-preview {
    flex: 0 0 auto;
    width: .75rem;
    height: .75rem;
}

.direct-status-card {
    border-color: #8795a3;
}

.direct-status-form .form-label {
    color: #273444;
    font-weight: 600;
}

.mr-4{
    margin-right: 4px;
}

.row-100{
    width:100%
}
.card-folder-tree {
    max-width: 300px;
}
.card-body-folder-tree {
    height: 300px;
    overflow-y: auto;
}
:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

    .visually-hidden-focusable:focus {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }

.selected-folder {
    border-radius: 0.25rem;
    padding-left: 0.25rem;
    transition: background-color 0.2s ease;
}

    .selected-folder:focus-within {
        outline: 2px solid var(--tblr-primary);
        outline-offset: 2px;
    }

    /* Tree container */
.folder-node {
  position: relative;
  padding-left: 1rem;
  margin-left: 0.5rem;
}

/* The list that holds children */
.folder-children {
  margin-left: 1.5rem;
  position: relative;
}

/* Vertical line for the tree branch */
.folder-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.4rem;
  bottom: 0;
  width: 1px;
  background: var(--tblr-border-color, #dee2e6);
}

/* Horizontal connector to this folder */
.folder-node::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: var(--tblr-border-color, #dee2e6);
}

/* 🚫 Stop the vertical line after the last child */
.folder-children > li:last-child::before {
  content: "";
  position: absolute;
  top: 1.2rem; /* aligns with connector line height */
  left: 0.4rem;
  bottom: auto;
  height: calc(1.2rem - 1px);
  width: 1px;
  background: var(--tblr-border-color, #dee2e6);
}

/* visually remove the overflow of main vertical line */
.folder-children > li:last-child ~ ::before {
  display: none;
}

/* highlight selected folder visually */
.folder-item-selected > .folder-item {
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 0.25rem;
}

/* make labels interactive */
.folder-label {
  cursor: pointer;
}
.folder-label:hover {
  text-decoration: underline;
}

/* hide radio but keep accessible */
.visually-hidden {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* --- Tree layout classes --- */
.tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-children {
    list-style: none;
    margin: 0 0 0 1.25rem;
    padding: 0;
    position: relative;
}

.tree-node {
    position: relative;
    margin: 2px 0;
}

.tree-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem 0 .25rem .8rem;
}

    /* Horizontal elbow from parent to this row */
    .tree-row::before {
        content: "";
        position: absolute;
        left: 0; /* start of elbow */
        top: 50%;
        width: .8rem; /* elbow length */
        height: 1px;
        background: var(--tblr-border-color, #dee2e6);
        transform: translateY(-50%);
    }

/* Vertical line: draw for every sibling EXCEPT the last one */
.tree-children > .tree-node:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .4rem; /* aligns with elbow midpoint */
    top: calc(.5rem); /* small offset above the row */
    bottom: calc(-.5rem); /* small offset below the row */
    width: 1px;
    background: var(--tblr-border-color, #dee2e6);
}

/* Optional: selected highlight */
.folder-item-selected > .tree-row {
    background-color: rgba(0, 123, 255, .1);
    border-radius: .25rem;
}

/* Individual color variants */
.tag-color-aqua {
    background-color: aqua !important;
}

.tag-color-black {
    background-color: black !important;
}

.tag-color-blue {
    background-color: blue !important;
}

.tag-color-fuchsia {
    background-color: fuchsia !important;
}

.tag-color-gray {
    background-color: gray !important;
}

.tag-color-green {
    background-color: green !important;
}

.tag-color-lime {
    background-color: lime !important;
}

.tag-color-maroon {
    background-color: maroon !important;
}

.tag-color-navy {
    background-color: navy !important;
}

.tag-color-olive {
    background-color: olive !important;
}

.tag-color-purple {
    background-color: purple !important;
}

.tag-color-red {
    background-color: red !important;
}

.tag-color-silver {
    background-color: silver !important;
}

.tag-color-teal {
    background-color: teal !important;
}

.tag-color-yellow {
    background-color: yellow !important;
}

.tag-color-white {
    background-color: white !important;
    border: 1px solid #999; /* visible border on white background */
}
.tag-color-preview {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.2);
    vertical-align: middle;
}
.expiration-wrapper {
    max-width: 220px;
}

.expiration-input {
    width: 100%;
}

/* Global focus styling lives in accessibility.css. */

#globalLoader {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.65);
    z-index: 9999;
}
.scroll-vertical-350 {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.scroll-vertical-468 {
    max-height: 468px;
    overflow-y: auto;
    overflow-x: hidden;
}
.div-search-text {
    max-width: 350px !important;
    /*width: 100%;*/
}

    .div-search-text label {
        white-space: nowrap; /* prevents wrapping */
        flex: 0 0 auto; /* label keeps natural width */
    }

    .div-search-text input {
        flex: 1 1 auto; /* textbox grows */
        min-width: 0; /* prevents overflow */
    }

    .div-search-text button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

/* Base container behavior */
.container-2xl,
.container-3xl {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tblr-gutter-x, 1rem);
    padding-right: var(--tblr-gutter-x, 1rem);
}

/* Standard Tabler/Bootstrap breakpoints */
@media (min-width: 576px) {
    .container-2xl {
        max-width: 540px;
    }

    .container-3xl {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-2xl {
        max-width: 720px;
    }

    .container-3xl {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-2xl {
        max-width: 960px;
    }

    .container-3xl {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-2xl {
        max-width: 1140px;
    }

    .container-3xl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container-2xl {
        max-width: 1320px;
    }

    .container-3xl {
        max-width: 1320px;
    }
}

/* ---- CUSTOM EXTRA BREAKPOINTS ---- */

/* 2XL breakpoint (1600px and above) */
@media (min-width: 1600px) {
    .container-2xl {
        max-width: 1500px; /* adjust based on design */
    }

    .container-3xl {
        max-width: 1600px;
    }
}

/* 3XL breakpoint (1800px and above) */
@media (min-width: 1800px) {
    .container-2xl {
        max-width: 1600px;
    }

    .container-3xl {
        max-width: 1750px; /* even wider */
    }
}

.navbar > .container, .navbar > .container-fluid, .navbar > .container-lg, .navbar > .container-md, .navbar > .container-sm, .navbar > .container-xl, .navbar > .container-xxl, .navbar > .container-2xl {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.max-width-350{
    max-width: 350px !important;
}
.max-width-500{
    max-width: 500px !important;
}

/* Hide success checkmark icon */
.dropzone .dz-success-mark {
    display: none !important;
}

/* Optionally hide error mark too */
.dropzone .dz-error-mark {
    display: none !important;
}
.label-white {
    color: #fff !important;
}

.display-none {
    display: none !important;
}

.radios-top {
    text-align: center;
}

.delete-split {
    max-width: 100px;
    margin-left: 10px;
    /* display: none;*/
}

.billing-repeater {
    padding-top: 10px;
    /*display: none;*/
}

/*.add-split{
    display:none;
}*/

thead th {
    background: #002f70 !important;
    color: #fff !important;
}


thead th a {
    
    color: #fff !important;
}

#obtain-records-legend {
    font-size: 14px;
}
.is-invalid {
    border-color: #dc3545 !important;
}

    .is-invalid:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
}

.is-invalid + .invalid-feedback,
.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ---- Page/Card polish (no new libs) ---- */
.uf-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.uf-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, #0b2f6f 0%, #0f4aa8 100%);
    color: #fff;
}

.uf-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uf-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    flex: 0 0 auto;
}

.uf-subtitle {
    margin: 6px 0 0 44px;
    font-size: 12px;
    opacity: .9;
}

.uf-body {
    padding: 18px;
    background: #fff;
}

.uf-section {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 14px;
    background: #fbfcff;
    margin-bottom: 12px;
}

.uf-section-title {
    font-weight: 700;
    font-size: 12px;
    margin: 0 0 10px 0;
    color: #0b2f6f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uf-hr {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 14px 0;
}

.uf-help {
    font-size: 12px;
    color: rgba(0,0,0,.6);
    margin-top: 6px;
}

/* ---- Dropzone styling ---- */
.uf-dropzone {
    border: 2px dashed rgba(15, 74, 168, .35);
    background: #f5f9ff;
    border-radius: 14px;
    padding: 26px 16px;
    text-align: center;
    transition: all .15s ease-in-out;
    cursor: pointer;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .uf-dropzone:hover {
        border-color: rgba(15, 74, 168, .55);
        background: #eef6ff;
    }

.uf-drop-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 74, 168, .10);
    border: 1px solid rgba(15, 74, 168, .18);
    color: #0f4aa8;
    font-weight: 800;
    font-size: 18px;
}

.uf-drop-main {
    font-weight: 700;
    font-size: 14px;
    color: #0b2f6f;
}

.uf-drop-sub {
    font-size: 12px;
    color: rgba(0,0,0,.6);
}

/* ---- Form controls polish ---- */
.uf-body .form-label {
    font-weight: 700;
    font-size: 12px;
    color: rgba(0,0,0,.75);
    margin-bottom: 6px;
}

.uf-body .form-control,
.uf-body .form-select {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 10px 12px;
}

    .uf-body .form-control:focus,
    .uf-body .form-select:focus {
        border-color: rgba(15, 74, 168, .55);
        box-shadow: 0 0 0 4px rgba(15, 74, 168, .12);
    }

.uf-inline-note {
    font-size: 12px;
    color: rgba(0,0,0,.55);
}

/* ---- Toggle area ---- */
.uf-checks .form-check {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 8px;
}

/* ---- Buttons ---- */
.uf-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
}

    .uf-actions .btn {
        border-radius: 10px;
        padding: 10px 14px;
        font-weight: 700;
    }

/* ---- Small responsive niceness ---- */
@media (max-width: 576px) {
    .uf-body {
        padding: 14px;
    }

    .uf-section {
        padding: 12px;
    }

    .uf-subtitle {
        margin-left: 0;
    }

    .uf-actions {
        flex-direction: column;
    }

        .uf-actions .btn {
            width: 100%;
        }
}


/* Sticky submit bar that matches the form width */
.sticky-submit {
    position: sticky;
    bottom: .75rem;
    z-index: 1020;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    background: var(--tblr-bg-surface, #fff);
}

/* Prevent long file names from wrecking layout */
.text-truncate {
    min-width: 0;
}

/* Slightly better spacing density */
.row.g-3 {
    --tblr-gutter-y: 1rem;
}
:root {
    --mcs-header-h: 158px;
    --mcs-right-pad: 24px; /* distance from screen right edge */
}

/* Full-width header wrapper */
.mcs-header {
    padding: 0;
    border-bottom: 0;
}

/* Background stage */
.mcs-header-bg {
    position: relative;
    height: var(--mcs-header-h);
    padding: 0;
    overflow: hidden;
}

    /* LEFT filler behind */
    .mcs-header-bg::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 50%;
        background: url("../images/mcs-header-filler-left.png") left top repeat-x;
        z-index: 0;
        pointer-events: none;
    }

    /* RIGHT filler behind */
    .mcs-header-bg::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 50%;
        background-image: url("../images/mcs-header-filler-right.png");
        background-position: right top;
        background-repeat: repeat-x;
        z-index: 0;
        pointer-events: none;
    }

    /* Center image layer on top of fillers */
    .mcs-header-bg .mcs-center-bg {
        position: absolute;
        inset: 0;
        background: url("../images/mcs-header1.png") center top no-repeat;
        /*background-size: 100% 100%;*/ /* sharp (no crop) */
        z-index: 1;
        pointer-events: none;
    }

/* Left content above bg */
.mcs-header-left {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* RIGHT overlay: this is the "in ::after section" effect */
.mcs-header-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 3; /* above center image */
   /* padding-right: var(--mcs-right-pad);*/
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: flex-start; /* align like legacy */
    justify-content: flex-end;
}

    /* Keep the block from stretching weirdly */
    .mcs-header-right .nav-item {
        max-width: 680px; /* tune if you need */
    }

/* Optional readability */
.mcs-header .text-muted,
.mcs-header a,
.mcs-header .navbar-nav {
    color: #fff !important;
}

.mcs-header .vr {
    opacity: .35;
}

/* Must be .btn.btn-gold so it beats Tabler/Bootstrap .btn / .btn-sm rules */
.btn.btn-gold {
    color: #1f2328;
    background-color: #f5c542;
    border-color: #e0b233;
}

    .btn.btn-gold:hover,
    .btn.btn-gold:focus {
        color: #1f2328;
        background-color: #e6b737;
        border-color: #d2a92f;
    }

    .btn.btn-gold:active,
    .btn.btn-gold.active {
        color: #1f2328;
        background-color: #d9aa2d;
        border-color: #c49b28;
    }

    .btn.btn-gold:disabled,
    .btn.btn-gold.disabled {
        color: #6c757d;
        background-color: #f5c542;
        border-color: #e0b233;
        opacity: 0.65;
    }
.btn-icon {
    --tblr-btn-icon-color: none !important;
    --tblr-btn-bg: none !important;
    --tblr-btn-color: none !important;
    --tblr-btn-border-color: none !important;
    --tblr-btn-hover-bg: none !important;
    --tblr-btn-hover-border-color: none !important;
}

.mcs-header-bg{
    background: #002f70;
}
.form-check-input:disabled ~ .form-check-label, .form-check-input[disabled] ~ .form-check-label {
    opacity: unset !important;
}
.btn-pill {
    color: #fff !important;
}
.container-xl{
    max-width: 100% !important;
}
.text-white-50 {
    color: #fff !important;
}

/* Primary navigation mirrors the legacy ClientPortal menu without its inline styles. */
.mcs-primary-navigation {
    --mcs-menu-bar: #002f70;
    --mcs-menu-panel: #002f70;
    --mcs-menu-hover: #c5dbf7;
    --mcs-menu-active: #c5dbf7;
    --mcs-menu-border: #002f70;
    --mcs-menu-row-border: #c5dbf7;
    --mcs-menu-text: #fff;
    position: relative;
    z-index: 1020;
    width: 100%;
    min-height: 29px;
    padding: 0;
    border: 1px solid var(--mcs-menu-border);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: var(--mcs-menu-bar);
    font-family: Verdana, Tahoma, Arial, sans-serif;
}

.mcs-primary-navigation .navbar-collapse,
.mcs-primary-navigation .container-fluid,
.mcs-primary-navigation .mcs-primary-menu {
    width: 100%;
}

.mcs-primary-navigation .container-fluid {
    padding: 0;
}

.mcs-primary-navigation .mcs-primary-menu {
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.mcs-primary-navigation .nav-item {
    position: relative;
   /* border-right: 1px solid #a8a8a8;*/
}

.mcs-primary-navigation .nav-item:last-child {
    border-right: 0;
}

.mcs-primary-navigation .nav-link {
    min-height: 26px;
    margin: 0;
    padding: 1px 12px;
    border: 0;
    border-radius: 0;
    background: var(--mcs-menu-bar);
    color: var(--mcs-menu-text);
    font: normal 12px/23px Verdana, Tahoma, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .mcs-primary-navigation {
        border-bottom: 4px solid #fff;
    }

    .mcs-primary-navigation .navbar-collapse,
    .mcs-primary-navigation .container-fluid {
        min-height: 0;
    }

    .mcs-primary-navigation .container-fluid {
        width: 75vw;
        max-width: 75vw;
        margin-right: auto;
        margin-left: 0;
    }

    .mcs-primary-navigation .navbar-nav.mcs-primary-menu {
        min-height: 27px;
    }

    .mcs-primary-navigation .navbar-nav .nav-link {
        min-height: 23px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.mcs-primary-navigation button.nav-link {
    width: 100%;
}

.mcs-primary-navigation .mcs-product-link {
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
}

.mcs-primary-navigation .dropdown-toggle::after {
    margin-left: 6px;
    border-top-color: currentColor;
}

.mcs-primary-navigation .nav-link:hover {
    background: var(--mcs-menu-active);
    color: #000;
}

.mcs-primary-navigation .nav-link.active,
.mcs-primary-navigation .nav-link.show,
.mcs-primary-navigation .nav-item.active > .nav-link,
.mcs-primary-navigation .nav-item.show > .nav-link,
.mcs-primary-navigation .nav-link[aria-expanded="true"] {
    background: var(--mcs-menu-bar);
    color: var(--mcs-menu-text);
}

.mcs-primary-navigation .dropdown-menu {
    min-width: 230px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mcs-menu-row-border);
    border-radius: 0;
    background: var(--mcs-menu-panel);
    box-shadow: none;
}

.mcs-primary-navigation .dropdown-item {
    position: relative;
    min-height: 32px;
    padding: 4px 12px 4px 25px;
    background: var(--mcs-menu-panel);
    color: var(--mcs-menu-text);
    font: normal 12px/23px Verdana, Tahoma, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.mcs-primary-navigation .dropdown-item::before {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 6px;
    height: 6px;
    border: 1px solid #6680cc;
    background: linear-gradient(135deg, #ccd5cc 0 42%, #335599 43% 70%, #005566 71%);
    content: "";
    transform: translateY(-50%);
}

.mcs-primary-navigation .dropdown-item:hover,
.mcs-primary-navigation .dropdown-item:focus,
.mcs-primary-navigation .dropdown-item:active {
    background: var(--mcs-menu-hover);
    color: #000;
}

.mcs-primary-navigation .dropdown-item.active {
    background: var(--mcs-menu-panel);
    color: var(--mcs-menu-text);
}

.mcs-primary-navigation .nav-link:focus-visible,
.mcs-primary-navigation .dropdown-item:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid #000;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 2px #fff;
}

@media (max-width: 767.98px) {
    .mcs-primary-navigation .mcs-primary-menu {
        display: block;
    }

    .mcs-primary-navigation .nav-item {
        border-right: 0;
    }

    .mcs-primary-navigation .nav-link {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 16px;
        text-align: left;
    }

    .mcs-primary-navigation .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        border-right: 0;
        border-left: 0;
    }

    .mcs-primary-navigation .dropdown-item {
        min-height: 44px;
        padding: 10px 16px 10px 32px;
        white-space: normal;
    }

    .mcs-primary-navigation .dropdown-item::before {
        left: 16px;
    }
}

.office-selector-section{
    padding-left: 10px;
}
.record-file-card{
    border-radius:0;
}

.ts-dropdown-content {
    background: #fff;
    border: 1px solid black;
}
dialog.portal-folder-picker {
    width: min(1000px, 95vw);
    height: min(800px, 90vh);
    border: 1px solid #ccd3da;
    border-radius: 8px;
    padding: 16px;
}

dialog.portal-folder-picker::backdrop { background: rgba(0, 0, 0, .45); }
dialog.portal-folder-picker iframe { width: 100%; height: calc(100% - 48px); border: 0; }
