@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");
@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,500,700");

/* Apply border-box globally for better width control */
*, *::before, *::after {
    box-sizing: border-box;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-link {
    color: inherit !important;
    text-decoration: none;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
    padding-bottom: 60px;
    margin: 0;
    background-color: white;
}

.title-action {
    text-align: right;
    padding-top: 30px;
}

.ibox-content h1, .ibox-content h2, .ibox-content h3, .ibox-content h4, .ibox-content h5,
.ibox-title h1, .ibox-title h2, .ibox-title h3, .ibox-title h4, .ibox-title h5 {
    margin-top: 5px;
}

.ibox-title {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #ffffff;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid solid none;
    border-width: 3px 0 0;
    color: inherit;
    margin-bottom: 0;
    padding: 14px 15px 7px;
    min-height: 48px;
    font-weight: 700;
}

.ibox {
    clear: both;
    margin-bottom: 25px;
    margin-top: 0;
    padding: 0;
}

.float-e-margins {
    margin: 0 0 25px 0;
}

.ibox-content {
    background-color: #ffffff;
    color: inherit;
    padding: 15px 20px 20px 20px;
    line-height: 1.42857143;
    border-color: #e7eaec;
    border-style: solid solid none;
    border-width: 1px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ibox-title h5 {
    display: inline-block;
    font-size: 14px;
    margin: 0 0 7px;
    padding: 0;
    text-overflow: ellipsis;
    float: left;
}

.ibox-title .label {
    float: left;
    margin-left: 4px;
}

/* BACKGROUNDS */
.gray-bg {
    background-color: #f3f3f4;
}

.white-bg {
    background-color: #ffffff;
}

.navy-bg {
    background-color: #1ab394;
    color: #1a1a1a;
}

.blue-bg {
    background-color: #1578BB;
    color: #ffffff;
}

.lazur-bg {
    background-color: #23c6c8;
    color: #1a1a1a;
}

.yellow-bg {
    background-color: #f8ac59;
    color: #1a1a1a;
}

.red-bg {
    background-color: #C94050;
    color: #ffffff;
}

.black-bg {
    background-color: #262626;
}

.btn:focus {
    outline: none !important;
}

.button-search {
    width: 80px !important;
}

.btn-success.btn-outline {
    color: #1578BB;
}

.btn-success {
    background-color: #1578BB;
    border-color: #1578BB;
    color: #FFFFFF;
}

    .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success, .btn-success:active:focus, .btn-success:active:hover, .btn-success.active:hover, .btn-success.active:focus {
        background-color: #126ba8;
        border-color: #126ba8;
        color: #FFFFFF;
    }

    .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success {
        background-image: none;
    }

        .btn-success.disabled, .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled:active, .btn-success.disabled.active, .btn-success[disabled], .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled]:active, .btn-success.active[disabled], fieldset[disabled] .btn-success, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success.active {
            background-color: #0e6aa8;
            border-color: #0e6aa8;
            color: #FFFFFF;
            opacity: 1;
        }

/* used for required fields text */
span.required {
    font-size: small;
    font-style: italic;
    color: #C00000;
    float: left;
}

/* Ensure disabled buttons maintain sufficient contrast (WCAG AA) */
.btn:disabled, .btn.disabled {
    opacity: 1;
}

.form-group {
    margin-bottom: 15px;
}

/* FOOTER */
footer.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e7eaec;
    padding: 10px 20px;
    min-height: 40px;
}

@media (max-width: 767px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 0;
    }

    body > main {
        flex: 1 0 auto;
        width: 100%;
    }

    footer.footer {
        flex: 0 0 auto;
        position: static;
        padding-bottom: 16px;
        align-items: flex-start !important;
        flex-direction: column;
        gap: 4px;
        justify-content: flex-start !important;
        box-sizing: border-box;
    }

    footer.footer > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    footer.footer #footerText,
    footer.footer #footerText a {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    #page-wrapper {
        padding-bottom: 80px;
    }
}

.navbar-static-side, .nav-header, li.active, #page-wrapper, .footer {
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.top-navigation #page-wrapper {
    margin-left: 0;
}

.navbar {
    border: 0;
    min-height: 50px;
}

/* Prevent navbar H1/H2 title from wrapping in desktop view */
.navbar h1, .navbar h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 400px);
    padding-bottom: 2px;
}

@media (max-width: 767px) {
    .navbar h1, .navbar h2 {
        white-space: normal;
        max-width: 100%;
        font-size: 1.5rem;
    }
}

.navbar-static-top {
    display: block;
}

body.fixed-nav #wrapper .navbar-static-side,
body.fixed-nav #wrapper #page-wrapper {
    margin-top: 60px;
}

body.top-navigation.fixed-nav #wrapper #page-wrapper {
    margin-top: 0;
}

body.mini-navbar #page-wrapper {
    margin: 0 0 0 0;
}

body.canvas-menu.mini-navbar #page-wrapper,
body.canvas-menu.mini-navbar .footer {
    margin: 0 0 0 0;
}

body.fixed-sidebar.mini-navbar #page-wrapper {
    margin: 0 0 0 0;
}

body.body-small.fixed-sidebar.mini-navbar #page-wrapper {
    margin: 0 0 0 220px;
}

.top-navigation.mini-navbar #page-wrapper,
.top-navigation.body-small.fixed-sidebar.mini-navbar #page-wrapper,
.mini-navbar .top-navigation #page-wrapper,
.body-small.fixed-sidebar.mini-navbar .top-navigation #page-wrapper,
.canvas-menu #page-wrapper {
    margin: 0;
}

.top-navigation .navbar {
    margin-bottom: 0;
}

.top-navigation .navbar-right {
    margin-right: 10px;
}

.navbar-nav .dropdown-menu {
    box-shadow: none;
    border: 1px solid #e7eaec;
    right: 0;
    left: auto;
}

.navbar-nav .open .dropdown-menu > li > a {
    padding: 10px 15px 10px 20px;
}

.navbar-header:before {
    display: table;
    content: " ";
}

.navbar-header:after {
    clear: both;
    display: table;
}

#page-wrapper {
    padding: 0 15px;
    min-height: 568px;
    position: relative !important;
}

@media (min-width: 768px) {
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 240px;
        min-height: 100vh;
    }

    .navbar-nav {
        float: left;
        margin: 0;
    }
}

/* WRAPPERS */
main {
    flex: 1 0 auto;
    padding-bottom: 0;
}

#wrapper {
    width: 100%;
    overflow-x: hidden;
    min-height: 100%;
}

.wrapper {
    padding: 0 20px;
}

.font-bold {
    font-weight: 600;
}

.wrapper-content {
    padding: 20px 40px 0;
}

#headerMenu .k-menu-link-text {
    font-size: 13px;
    font-weight: 600;
}

#headerMenu .k-menu-item {
    font-size: 12px;
    padding: 10px 15px 10px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

.sk-spinner-wave.sk-spinner {
    margin: 0 auto;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
    user-select: none
}

.sk-spinner-wave div {
    background-color: #1c84c6;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
    animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
}

.sk-spinner-wave .sk-rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-spinner-wave .sk-rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-spinner-wave .sk-rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-spinner-wave .sk-rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.k-picker-solid {
    background-color: var(--bs-body-bg) !important;
}

@-webkit-keyframes sk-waveStretchDelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
        transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@keyframes sk-waveStretchDelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
        transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@media (max-width: 767px) {
    /* Prevent horizontal scrollbar on mobile */
    body {
        overflow-x: hidden !important;
        width: 100%;
    }

    .wrapper-content {
        padding: 20px 10px 0;
    }

    /* Override inline styles that cause overflow; Bootstrap 5 navbar collapse for mobile */
    .navbar-collapse {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        clear: both;
        background-color: #ffffff;
        border-top: 1px solid #e7eaec;
    }

    /* Fix navbar overflow */
    .border-bottom {
        overflow-x: hidden;
        white-space: normal !important;
    }

    /* Prevent navbar elements from causing overflow */
    .navbar-static-top {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        white-space: normal !important;
    }

    .navbar {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .navbar-header {
        overflow-x: hidden;
        max-width: 100%;
    }

    .col-xs-6 {
        width: 50%
    }

    .visible-xs-block {
        display: block !important;
        font-size: 13px !important;
    }

    #applicationAnchor {
        display: none !important;
    }

    .ibox-content-xs {
        padding: 10px !important;
    }

    .top-navigation .navbar-header {
        display: block;
        float: none;
    }

    /* Bootstrap 5 navbar collapse for mobile - smooth sliding transition */

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease-in-out;
        display: block;
    }

    .navbar-collapse.collapse.show {
        display: block;
        height: auto;
    }

    .navbar-collapse .nav {
        float: none !important;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-collapse .nav > li {
        float: none;
        display: block;
    }
}

@media (max-width: 575px) {
    .col-xs-12 {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .col-sm-8 {
        width: 100%;
    }
    .col-sm-4 {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-sm-offset-2 {
        margin-left: 16.66667%;
    }

    .col-sm-offset-4 {
        margin-left: 33.3333333%;
    }

    .col-sm-4 {
        width: 33.33333333%;
    }

    .col-sm-5 {
        width: 41.66666667%
    }

    .col-sm-7 {
        width: 58.33333333%
    }

    .col-sm-8 {
        width: 66.66666667%
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-collapse {
        padding-right: 0px;
        padding-left: 0px;
        overflow-x: visible;
        border-top: 1px solid transparent;
    }

        .navbar-collapse.collapse {
            display: block !important;
            height: auto !important;
            padding-bottom: 0;
            overflow: visible !important;
        }

        .navbar-collapse.in {
            overflow-y: auto;
        }

    .collaps.in {
        display: block;
    }

    .navbar-right {
        float: right !important;
    }

    .navbar-header {
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-offset-3 {
        margin-left: 25%;
    }

    col-md-4 {
        width: 33.3333333%;
    }

    .col-md-6 {
        width: 50%;
    }

    col-md-8 {
        width: 66.66666667%;
    }
}

.k-expander-content {
    font-size: 13px !important;
    padding-block: 0px !important;
    padding-inline: 0px !important;
}

/* Committee Search Window styles moved to wwwroot/css/CFTxnLkup/CommitteeSearchWindow.css
   (loaded only by pages that host the CommitteeSearch View Component). */

.k-expander-header {
    padding: 14px 15px 14px 15px !important;
    font-size: 24px !important;
    background-color: #1c84c6 !important;
}

.k-expander-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.k-svg-i-chevron-up {
    color: white !important;
    stroke: white;
    stroke-width: 50;
}

.k-svg-i-chevron-down {
    color: white !important;
    stroke: white;
    stroke-width: 50;
}

.k-grid-header {
    background-color: #c4e2f7 !important;
    color: #1a1a1a !important;
    font-size: 1em;
    font-weight: 700 !important;
    text-align: center !important;
}

.k-grid-md .k-table-th {
    padding: 2px !important;
    text-align: center !important;
}

.k-grid .k-column-title {
    text-align: center;
    width: 100%;
}

.k-grid-md .k-table-td {
    padding: 2px !important;
}

.k-grid .k-table-tbody .k-table-alt-row {
    background-color: #f3fafe;
}

.k-grid .k-table-td a {
    color: #0056b8;
}

.navbar-toggle {
    background-color: #1468A8;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    position: relative;
    float: right;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 6px;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.nav {
    padding-left: 0;
    list-style: none;
}

    .nav > li > a {
        padding: 15px 20px;
        color: #333;
        position: relative;
        display: block;
        font-weight: 600;
        text-decoration: none;
    }

.navbar-nav > li > .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.navbar-right {
    margin-right: 10px;
}

.navbar-header {
    min-height: 50px;
}

#headerMenu {
    justify-content: end;
}

#menu_desktop {
    position: absolute;
    right: 0;
    left: auto;
}

    #menu_desktop > li > a {
        color: inherit;
        padding: 10px 15px 10px 20px;
        display: block;
    }

.visible-xs-block {
    display: none;
    font-size: 13px !important;
}

.col-sm-4 {
    padding-left: 35px;
    padding-right: 35px;
}

#menu_index {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#menu_index li,
#menu_index a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.menu-index {
    white-space: normal;
}

/* ── CFTxnLkup Export progress overlay ──────────────────────────────────
   These styles MUST live in site.css (global), not in the scoped
   Results.cshtml.css, because the <output id="divExportProgress"> element
   is rendered at the top level of the Results page body (a direct sibling
   of .ibox, outside any CSS-isolation-scoped ancestor).  CSS isolation
   selectors would require an ancestor to carry the scope attribute, which
   the layout wrapper does not provide.
   Visibility is toggled by Results.cshtml.js via jQuery .show()/.hide(). */
.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    text-align: center;
    padding-top: 200px;
}

.export-modal-card {
    background: #fff;
    display: inline-block;
    padding: 40px 50px;
    border-radius: 8px;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.export-modal-title {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 12px;
}

.export-modal-subtitle {
    display: block;
    color: #8898aa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.export-modal-bars {
    display: inline-block;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
    margin: 0 auto;
}

.export-modal-bars span {
    background-color: #1c84c6;
    height: 100%;
    width: 6px;
    display: inline-block;
    animation: exportBarWave 1.2s infinite ease-in-out;
}

.export-modal-bars span:nth-child(2) { animation-delay: -1.1s; }
.export-modal-bars span:nth-child(3) { animation-delay: -1.0s; }
.export-modal-bars span:nth-child(4) { animation-delay: -0.9s; }
.export-modal-bars span:nth-child(5) { animation-delay: -0.8s; }

@keyframes exportBarWave {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20%           { transform: scaleY(1.0); }
}
