/* ====================================
   Global section
   ==================================== */
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:wght@0,400";
html {
    /** IE 10 / 11 - Do not let the scroll bar overlay on top of the content **/
    -ms-overflow-style: scrollbar;
}
body {
    overflow-y: scroll; /* Show scrollbar vertically */
}
main {
    min-height: 70vh;
}

@media print {
    @page {
        margin: 15pt 5pt 15pt 5pt;
    }

    a[href]:after {
        content: none !important;
    }

    header.grid-container, section.breadcrumbs, ul.nav-tabs, ol.breadcrumb, footer.grid-container {
        display: none;
        visibility: hidden;
    }

    section.content > .grid-100, section.content .tab-content {
        padding: 0;
        margin: 0;
        border: none;
    }

    .container-fixed {
        width: 100% !important;
    }

    .loan-summary-commentary {
        height: auto !important;
        overflow-x: auto !important;
    }

    .loan-group-banner {
        background-color: white !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .affix{
        position: relative!important;
    }
}

.tab-content {
    padding: 20px 10px 0 10px;
}

.tab-content .pull-left > .btn-group,
.tab-content .pull-left > .btn,
.tab-content .pull-right > .btn-group,
.tab-content .pull-right > .btn {
    margin-top: -10px;
}

.panel-title > .pull-right {
    padding-right: 0;
}

/* These are intended to remove the gutter padding on page edges or when multiple grids are next to each other */
/* TODO: add these to the KBRA theme */
.grid-gutterless-left {
    padding-left: 0;
}

.grid-gutterless-right {
    padding-right: 0;
}

.smaller {
    font-size: 11px;
}

.italic {
    font-style: italic;
}

.note-small {
    font-size: 11px;
    font-style: italic;
    margin: 0;
    color: #666;
}

.text-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.progress-bar-striped:hover, a.progress-bar-striped:visited, a.progress-bar-striped:active {
    color: white;
}

.breadcrumb>li.currency-notice:before {
    content: "" !important;
}

.justify {
    text-align: justify;
    text-justify: inter-word;
}

.text-indent {
    text-indent: 8px;
}

#loadingBar {
    position: fixed;
    z-index: 2147483647;
    top: 0;
    left: 0;
    width: 100%;
    height: 22px;
}

.flash-messages .alert-danger a {
    color: #a94442;
    font-weight: bold;
}

/* ====================================
   Miscellaneous one-offs section
   ==================================== */

.contact-information-panel .well {
    margin: 10px 0 0 0;
}

.contact-information-panel small {
    font-size: 10px;
}

.data-table-tools {
    margin: 5px 5px 10px 5px;
}

.payment-history-loan-piece-list {
    margin-left: 50px;
}

.occupancy-history {
    width: 150px;
}

.contact-us-well {
    font-size: 11px;
}

.bulk-download-ready {
    float: right;
    height: 35px;
    padding: 0 20px;
    margin-right: 6px;
    overflow: hidden;
    font-weight: 700;
    line-height: 35px;
    color: rgba(255,255,255,.9);
    text-align: center;
    text-shadow: 0 0 5px #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #090;
    border: 1px solid rgba(0,0,0,.2);
}

td.single-action {
    width: 50px;
    text-align: center;
}

.loan-summary-commentary {
    height: 753px;  /* initial default, will be overridden by js calculation */
    overflow-x: hidden;
    overflow-y: scroll;
}

.loan-details-commentary {
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.valuation-history-row {
    margin-bottom: 10px;
}

/* These are to ensure both panels align vertically */
.servicer-panel-alignment {
    height: 118px;
}

.map-panel-alignment {
    height: 338px;
}

.map-hide-footnote{
   display: none;
}

.loan-property-assumptions-container .text-ellipsis {
    max-width: 200px;
}

.capital-structure-container .border-top {
    border-top: 2px solid #fff;
}

.alert-criteria-check {
    width: 50px;
}

.publication-event-name {
    width: 250px;
}

.alert-criteria-label {
    width:100px;
}

.publication-event-value {
    width: 200px;
}

.alert-criteria-filter {
    width: 200px;
}

.alert-criteria-filter-value {
    width: 200px;
}

#clear-alerts-form {
    display:inline;
}

.alert-criteria-filter-label {
    width: 50px;
}

.value-input {
    width: 120px;
    display: inline;
}

.condition-label {
    font-size: 13px;
}

.parsley-errors-list.filled {
    list-style: none;
    padding-left: 0;
    color: #F00;
}

.disabled-more-filters {
    background: #eee;
}

.form-group.compact {
    margin-bottom: 1px;
}

#parsley-id-multiple-portfolioIds {
    padding-left: 170px;
}

.portfolio-validation {
    padding-left:166px;
}
/* ====================================
   Portfolio section
   ==================================== */

.portfolio-information-container .tab-content {
    position: relative;
}

.portfolio-information-container .tab-content .pull-left {
    position: absolute;
    top: 30px;
}

.portfolio-information-container .tab-content .btn-bulk-downloads {
    z-index: 99;
}

.table.portfolio-details thead tr td.kloc-section {
    background-color: #555;
}

/* ====================================
   Search Section
   ==================================== */

.search-results-header .deal-column {
    width: 154px;
}

.search-results-header .loan-group-column,
.search-results-header .property-column {
    width: 214px;
}

.deal-column {
    width: 160px;
}

.loan-group-column,
.property-column {
    width: 220px;
}

/* ====================================
   Map Section
   ==================================== */

.map-block {
    position: relative;
    z-index: 10;
}

/* we need to override the kbra theme at the map block level specific to select arrow for navigationbar */
.MicrosoftMap .NavBar_Container .NavBar_MapTypeButtonDropDownIcon {
    -webkit-box-sizing: initial;
    box-sizing: content-box;
}

label.labelStyleSwitch,
label.labelStyleSwitchDescription {
    max-width: none;
}

.map-container {
    height: 100%;
    width: 100%;
}

.map-container .map-block {
    float: none;
    height: 100%;
    padding: 0;
    width: 100%;
}

.map-popup {
    margin: 0;
}

/* ====================================
   Table Modifications Section
   ==================================== */

.table-fixed {
    table-layout: fixed;
}

.table-divided td{
    width: 50%;
}

.table-divided td:nth-child(2) {
    text-align: right;
}

.table-container-padding.panel-body {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Loan specific certificates table coloring in deal capital structure */
.table.table-alternating>thead>tr>td {
    border-bottom-width: 1px;
}

.table-striped.table-alternating>tbody>tr:nth-child(odd),
.table-striped.table-alternating>tbody>tr:nth-child(even) {
    background: none;
}

.table-alternating {
    border: 1px solid #ddd !important;
}

.table-alternating thead td {
    font-weight: normal;
    background: #333;
    color: #eee;
    border-top: none;
}

.table-alternating .white-bg {
    background: #fff !important;
}

.table-alternating .grey-bg {
    background: #f9f9f9 !important;
}

/* Loan group valuations table coloring */
.table-container .table th.optimistic {
    background-color: #dfd;
    color: #180;
}

.table-container .table td.optimistic {
    background-color: #efe;
    color: #180;
}

.table-container .table th.conservative {
    background-color: #fcc;
    color: #f56;
}

.table-container .table td.conservative {
    background-color: #fee;
    color: #f56;
}

.table-container .table th.concluded {
    background-color: #fb0;
    color: #000;
}

.table-container .table td.concluded {
    background-color: #ffe;
}

/* ====================================
   Loan group banner section
   ==================================== */

.loan-group-banner-container {
    /* Without this, the banner will hide info upon initial scroll from the sticky header affix
       The value comes from loan-group-banner-container height when sticky*/
    min-height: 173px;
}

.loan-group-banner {
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
}

.loan-group-banner h2 {
    margin-top: 6px;
}

.loan-group-banner .table {
    background-color: #eee;
    border-radius: 4px;
}

.loan-group-banner .table td {
    border-top: 0;
    font-size: 14px;
}

.loan-group-banner .table .border-bottom {
    border-bottom: 2px solid #d1d1d1;
}

.loan-group-banner .table .border-right {
    border-right: 2px solid #d1d1d1;
}

.loan-group-banner.affix  {
    -webkit-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;
    left: 0;
    padding-left: 20px;
    padding-right: 20px;
    min-width: 1200px;
    top: 35px;
    width: 100%;
    z-index: 98; /* This puts us below the sidebar nav if they happen to open it */
}

.loan-group-banner.affix .breadcrumb {
    margin-bottom: 0;
    padding: 4px 6px;
}

.loan-group-banner.affix .table {
    margin-bottom: 10px;
}

.loan-group-navbar {
    padding-right: 0;
}

.loan-group-navbar .navbar-btn {
    margin: 0 5px;
}

.loan-group-navbar .navbar-btn:last-child {
    margin-right: 0;
}

/* Borrowed from our btn-primary style from the theme,
   unfortunately Scrollspy doesn't provide hooks for the change event to use the proper class */
.loan-group-navbar .active .navbar-btn{
    background-color: #f0ab00;
    border-color: #bd8700;
    color: #fff;
    color: rgba(255,255,255,.9);
    text-shadow: 0 0 2px #bd8700;
}

.loan-group-navbar .navbar-btn:hover,
.loan-group-navbar .navbar-btn:focus{
    background-color: #d1d1d1;
}

.loan-group-navbar .active .navbar-btn:focus{
    background-color: #f0ab00;
}

.loan-group-navbar .active .navbar-btn:hover {
    background-color: #bd8700;
}

/* ====================================
   Deprecated after L&P3 is live, TODO
   ==================================== */

.loan-group td {
    width: 50%;
}

.loan-group td:nth-child(2) {
    text-align: right;
}

.loan-group table {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.table-margin-top {
    margin-top: 23px;
}

#alert-count-badge {
    position:relative;
    top: -8px;
    left: -10px;
}

.unread-alert {
    font-weight: bold;
}

.alert-loan-name {
    width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    text-align: left;
}

.filter-criteria-align {
    text-align: left;
    display:block;
}

.alert-notification-header {
    padding-bottom: 15px;
    text-align: right;
}

.alert-enable-disable {
    margin-right: 5px;
}

.alert-configuration-buttons {
    float: right;
    margin-left: 10px;
    margin-top: 20px;
}

.not-allowed {
    cursor: not-allowed;
}

.alert-group-buttons {
    width: 30%;
}

.alert-group-name {
    width: 25%;
}

.alert-group-description {
    width: 45%;
}

.alert-group-header {
    margin-bottom: 10px;
}

.alert-name-truncate {
    width: 205px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.no-resize {
    resize: none;
}

.alert-name-error > ul {
    margin-left: 165px;
}

#alert-name {
    width: 318px;
}

.loan-group-link-holder {
    color: #f0ab00;
    text-overflow: ellipsis;
    overflow: hidden;

    /* #https://stackoverflow.com/a/39881515 */
    width: 0;
    min-width: 100%;
}

.loan-group-link-holder-td {
    min-width: 120px;
}

#s2id_exposureGroupId {
    z-index: 10;
}

/* ================
    Slide out menu
   ================ */
.dropdown-submenu {
    position: relative;
    z-index:999;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.dropup .dropdown-submenu>.dropdown-menu{
    top:auto;
    bottom:0;
    margin-top:0;
    margin-bottom:-2px;
    -webkit-border-radius:5px 5px 5px 0;
    -moz-border-radius:5px 5px 5px 0;
    border-radius:5px 5px 5px 0
}

/** Hamburger Menu Scroll fix for all resolutions. Business is fine with this fix for now. We should be working on
 permanent fix though */
.nano { width: 220px; height: 525px !important; }

.toggle.btn {
    min-height:30px;
}

.toggle-off.btn {
    padding-left: 20px;
}
.toggle-on.btn {
    padding-right: 20px;
}

.rank {
    width:30px;
    height:40px;
}

.advanced-search-ui-tab {
    float: right;
}

html body>header>section.header-middle section.header-search {
    width: 100%;
}
.advanced-search-btn {
    position: absolute;
    right: 20px;
    width: 180px;
    height: 34px;
    background: #F0AB00;
    color: #000;
    line-height: 24px;
}

.advanced-search-btn:hover,
.advanced-search-btn:focus,
.advanced-search-btn.focus,
.open > .dropdown-toggle.advanced-search-btn {
    color: #000;
    background-color: #ca9000;
}


html body>header>section.header-middle {
    background-color: #000000;
    padding: 19px 16px;
    border: none;
}

.header-search form.searchbar {
    position: absolute;
    width: 400px;
    right: 224px;
    padding-right: 24px;
    border-right: 1px solid #7b7b7b;

}

html body > header > section.header-middle section.header-search {
    margin: 0;
}

html body > header > section.header-middle section.header-search i.search-icon {
    position: absolute;
    top: 8px;
    right: 32px;
}

html body>header>section.header-middle section.header-login>section.header-login-form {
    margin-top: 0;
}

html body>header>section.header-middle section.header-login>section.header-login-help a:hover {
    color: #FFF;
    text-decoration: underline;
}

.advanced-search-divider {
    width: 1px;
    height: 42px;
    background: rgba(0, 0, 0, 0.4);
}

.maintenance-image {
    width: 226px;
    height: 226px;
    background: url(/images/maintenance.png) no-repeat;
    position: fixed;
    margin-top: -50px;
    margin-left: -100px;
}

.maintenance-text {
    position: fixed;
    top: 40%;
    left: 45%;
    margin-top: -50px;
    margin-left: -100px;
    font-size: 22px;
    text-align: center;
    line-height: 26px;
    width: 440px;
    font-weight: bold;
}

.maintenance-message {
    margin-top: 194px;
    margin-left: 24px;
}

.exposure-groups-maintenance {
    width: 439px;
    height: 272px;
    text-align: center;
    padding: 68px;
    margin-top: 30px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.navbar-default {
    background-color: #DDDDDD;
}

.navbar-default .navbar-nav>li>a
{
    color: #000;
    background-color: transparent;
}

.navbar-nav>li {
    min-width: 45px;
}

.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>li>a:hover {
    color: #666;
}

.esg-span {
    font-weight: normal;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

.check {
    margin-left: 5px;
    background-image: url('images/check.png');
    background-size: 13px 10px;
    background-repeat: no-repeat;
    width: 13px;
    height: 10px;
}

.new {
    height: 18px;
    background: #DA9200;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    margin-left: 5px;
}

html body {
    margin-bottom: 0;
}

.site-footer p {
    font-size: 14px;

}
.site-footer {

    font-size: 14px;
    font-family: "Source Sans Pro", "Source Sans 3", Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", sans-serif;
    font-weight: 400;
    position: relative;
    background-color: black;
    padding: 28px 0;
}
.site-footer__container {
    max-width: 1536px;
    margin: 0 auto;
}

.site-footer__footer {
    justify-content: space-between;
}

.site-footer p {
    color: #FFFFFF;
}

.site-footer a {
    color: #FFFFFF;
    text-decoration: underline;
}

.site-footer__header {
    font-family: bio-sans, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #FFFFFF;
    margin-top: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
}

.link-list {
    margin-bottom: 0;
}

.site-footer .link-list li:before {
    display: inline-block;
    color: #FFFFFF;
    content: "•";
    padding: 0 16px 0 0;
}

.site-footer .link-list li:first-child:before {
    content: none;
    padding: 0;
}

.sub-footer {
    background-color: #DA9200;
    font-size: 12px;
    line-height: 12px;
    padding: 4px 0;
    color: #000000;
}

.site-footer__address {
    color: #FFFFFF;
    margin-bottom: .5rem;
}
