@charset "UTF-8";

.submit-to-ms-container {
  margin: 1px;
}

.allow-extensions {
  display: block;
}

.revisions-banner {
  display: block;
  background-color: lightskyblue;
  padding: 10px;
  margin-top: 15px;
}

.form-input {
  width: fit-content;
}

.comment-type {
  margin-left: 10px;
  font-size: 14px;
}

.comment-container {
  padding: 20px 20px 0px 20px;
  overflow: scroll;
}

.comment {
  padding: 10px 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
}

.comment-body {
  flex: 1;
}

.comment-action {
  width: 150px;
}

.comment-container .comment .comment-action .comment-delete-button,
.comment-container .comment .comment-action .comment-edit-button,
.comment-container .comment .comment-action .comment-attachment-button,
.comment-container .comment .comment-action .reply-to-comment-button {
  margin-left: 8px;
}

blockquote {
  margin-left: 10px;
}

.disabled-button {
  visibility: hidden;
  pointer-events: none;
}

.meta-form-comment-label {
  display: inline-block;
  margin: 0 12px 16px 0;
}

.meta-form-comment-container {
  display: inline-block;
}

.post-new-comment-button {
  display: inline-block;
}

.metadata-item-top {
  padding-bottom: 10px;
  padding-right: 10px;
}

.metadata-item {
  padding-top: 12px;
  padding-right: 10px;
}

.metadata-item > span {
  display: inline-block;
  width: 70%;
}

.metadata-item > span.label {
  vertical-align: top;
  display: inline-block;
  width: 23%;
}

.revision-explanation-value {
  white-space: pre-line;
}

.loan-number-metadata {
  display: inline-block;
}

.htag-custom-black {
  color: black;
  font-size: 16px;
}

.htag-custom-dark-green {
  color: #0f2f43;
  font-size: 18px;
}

.actions-data {
  padding-bottom: 50px;
}

.actions-button {
  border-width: medium !important;
  border-radius: 10em !important;
  border-color: #205b60 !important;
  font-weight: bold !important;
  background-color: #287278 !important;
  color: #ffffff !important;
}

.dx-state-disabled {
  background-color: #b1cccf !important;
}

.excel-export-button {
  border-width: medium !important;
  border-radius: 50% !important;
  border-color: #205b60 !important;
  font-weight: bold !important;
  background-color: #287278 !important;
  color: #ffffff !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important; /* Add this for tooltip positioning */
}

.excel-export-button .dx-icon {
  font-size: 16px !important;
}

.selection-text {
  padding-right: 5px;
}

.main-green {
  background-color: #c3d500;
}

.download-button {
  text-align: right;
  margin-bottom: 10px;
}

.text-main-green {
  color: #c3d500;
}

.simple-gray {
  background-color: #dce0e0;
  color: #000;
}

.negative-margin {
  margin-top: -5px;
  margin-bottom: -5px;
}

.total-cost-info-margin {
  margin-bottom: -20px;
}

.final-notices-margin {
  margin-top: -10px;
}

.appraisal-loan-doc-description-margin {
  margin-top: -5px;
}

.file-uploader {
  margin-top: -15px;
}

.clear-files-button {
  margin-left: 10px;
}

.uploaded-files-list li {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 14px;
}

.uploaded-file {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 14px;
}

.summary-table-title {
  border: 1px solid #ddd;
  color: #959595;
  background-color: #fff;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 15px;
}

/* Summary KPI Bar */
.loans-summary-bar {
  border: 1px solid #ddd;
  background-color: #fff;
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 20px 10px;
  border-radius: 4px;
  box-sizing: border-box;
}

.loans-summary-header {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.loans-summary-items {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.loans-summary-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px 8px;
  min-width: 100px;
  border-right: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.loans-summary-card:last-child {
  border-right: none;
}

.loans-summary-card-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
}

.loans-summary-single-value {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
}

.loans-summary-values-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.loans-summary-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loans-summary-number {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
}

.loans-summary-sub-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #bbb;
  text-transform: uppercase;
  margin-top: 2px;
}

.loans-summary-diff-improved {
  font-size: 13px;
  font-weight: 700;
  color: #0a8533;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.loans-summary-diff-worsened {
  font-size: 13px;
  font-weight: 700;
  color: #c03a0d;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.loans-summary-diff-neutral {
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

/* Responsive: medium screens — 3 cards per row */
@media (max-width: 900px) {
  .loans-summary-card {
    flex: 0 0 33.333%;
    min-width: 0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }
  .loans-summary-card:nth-child(3n) {
    border-right: none;
  }
  .loans-summary-card:nth-last-child(-n+3):nth-child(3n+1),
  .loans-summary-card:nth-last-child(-n+3):nth-child(3n+2),
  .loans-summary-card:nth-last-child(-n+2):nth-child(3n+1),
  .loans-summary-card:last-child {
    border-bottom: none;
  }
  .loans-summary-single-value {
    font-size: 24px;
  }
  .loans-summary-number {
    font-size: 17px;
  }
  .loans-summary-card-title {
    white-space: normal;
    line-height: 1.2;
  }
}

/* Responsive: small screens — 2 cards per row */
@media (max-width: 560px) {
  .loans-summary-bar {
    padding: 10px 12px 8px;
  }
  .loans-summary-card {
    flex: 0 0 50%;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }
  .loans-summary-card:nth-child(3n) {
    border-right: 1px solid #e0e0e0;
  }
  .loans-summary-card:nth-child(even) {
    border-right: none;
  }
  .loans-summary-card:nth-last-child(-n+2):nth-child(odd),
  .loans-summary-card:last-child {
    border-bottom: none;
  }
  .loans-summary-single-value {
    font-size: 22px;
  }
  .loans-summary-number {
    font-size: 16px;
  }
  .loans-summary-diff-improved,
  .loans-summary-diff-worsened,
  .loans-summary-diff-neutral {
    font-size: 11px;
    min-width: 22px;
  }
  .loans-summary-values-row {
    gap: 4px;
  }
}

.loan-findings-grid-wrapper {
  overflow-x: auto;
}

.loan-borrower-name-label {
  display: flex;
  flex-direction: row;
  vertical-align: baseline;
  width: 180px;
}

.label-defect {
  display: inline;
  padding: 0.1em 0.6em;
  font-size: 11px;
  font-weight: 700;
  line-height: 2;
  margin-left: 10px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
  background-color: #c03a0d;
  margin-bottom: 0.5rem;
}

.center-text {
  text-align: center;
}

.significant-finding-label {
  text-align: center;
  color: #dc3545;
}

.moderate-findings-label {
  text-align: center;
}

.loan-table-label {
  width: 170px;
  vertical-align: top;
  font-weight: bold;
}

.loan-table-finding-text {
  width: 100%;
  white-space: normal;
}

.revise-now-warning-button {
  margin-top: 10px;
  float: right;
}

.display-inline-flex {
  display: inline-flex;
}

.right-component-PDF-report {
  width: 100px;
}

.display-flex {
  display: flex;
}

.header-column-pdf-reports {
  flex: 50%;
  padding: 10px;
}

.header-column-right-pdf-reports {
  padding: 10px;
  margin-left: auto;
  margin-right: 0;
  float: right;
}

.header-right-button-pdf-reports {
  margin-left: 5px;
}

.download-popup-grid-container {
  display: flex;
  margin-top: -45px;
  margin-bottom: 20px;
  flex: 1;
  overflow: auto;
}

.titles {
  margin-bottom: 25px;
  text-align: left;
}

/* Create three equal columns that float next to each other.
   box-sizing keeps width + padding at exactly 100% so the right column can't
   overflow and paint on top of the middle column's checkboxes. */
.download-popup-column {
  float: left;
  width: 30%;
  padding: 10px;
  box-sizing: border-box;
}

.download-popup-column-right {
  float: right;
  width: 55%;
  padding: 10px;
  box-sizing: border-box;
}

.download-popup-middle-column {
  float: left;
  width: 15%;
  padding: 10px;
  box-sizing: border-box;
}

/* Narrower screens: give the checkbox column the room it needs so its labels
   can't spill under the documents grid. */
@media (max-width: 1500px) {
  .download-popup-column {
    width: 28%;
  }

  .download-popup-middle-column {
    width: 22%;
  }

  .download-popup-column-right {
    width: 50%;
  }
}

/* Too narrow for three columns: stack them. */
@media (max-width: 1100px) {
  .download-popup-column,
  .download-popup-middle-column,
  .download-popup-column-right {
    float: none;
    width: 100%;
  }
}

/* Clear floats after the columns */
.row:after {
  content: '';
  display: table;
  clear: both;
}

.download-popup-row {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.download-popup-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: right;
  overflow: hidden;
}

.text-blue-underline {
  color: blue;
  text-decoration: underline;
}

.text-blue-underline:hover {
  color: blue;
}

.download-button-container {
  flex-shrink: 0;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  margin-top: auto;
}

.download-popup-checkbox-container {
  text-align: left;
}

.revise-explanation {
  width: 100%;
}

.loans-grid-container {
  width: 100%;
}

.loans-grid-container td {
  padding: 5px;
}

.findings-grid-dotted-lines .dx-datagrid-rowsview .dx-data-row > td {
  border-bottom: 2px dotted #666 !important;
  padding-bottom: 15px !important;
  padding-top: 15px !important;
}

.findings-grid-dotted-lines .dx-datagrid-rowsview .dx-group-row > td {
  border-bottom: none !important;
}

@media (min-width: 1916px) {
  .icon-received::before {
    content: 'Received';
  }

  .icon-in-progress::before {
    content: 'In Progress';
  }

  .icon-completed::before {
    content: 'Completed';
  }
}

@media (max-width: 1915px) {
  .icon-received::before {
    content: 'Rec';
  }

  .icon-in-progress::before {
    content: 'Prog';
  }

  .icon-completed::before {
    content: 'Comp';
  }
}

.progress-bar-color {
  background-color: #287278;
}

.audit-text-blue {
  color: #287278;
}

.audit-text-white {
  color: white;
}

.rounded-blue-button {
  border-radius: 50px;
  background-color: #287278;
  display: inline-block;
}

.audit-pool-data-box {
  padding: 10px;
  border: 1px solid gray;
}

.findings-export-btn {
  text-align: right;
  margin-bottom: 20px;
}

.loans-filter-btn {
  margin-top: -5px;
}

.loan-details-export-btn {
  margin-top: -5px;
}

.buttongroups-container {
  margin-bottom: 5px;
}

.pdf-report-dropdown {
  background-color: #287278;
  border-radius: 4px;
}

.pdf-report-dropdown .dx-button-mode-outlined .dx-icon {
  color: #ffffff;
}

.delete-share-user-warning-button {
  float: right;
}

.save-edited-share-user-button {
  display: flex;
  width: 100%;
  justify-content: end;
}

.delete-button-share {
  display: flex;
  width: 100%;
  text-align: left !important;
}

.add-recipient-button {
  width: 100%;
  justify-content: end;
}

.edit-recipient-button {
  width: 100%;
}

.edit-delete-user {
  width: 205px;
}

.loans-revision-submitted-icon {
  margin-left: 14px;
}

.loans-revision-submitted-icon i:hover {
  color: green;
}

.loans-revision-submitted-icon i {
  font-size: 20px;
}

.comment-post-button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.label-finding-group-significant {
  color: #fff;
  background-color: #c03a0d;
  padding: 7px;
}
.label-finding-group-moderate {
  color: #fff;
  background-color: #f47c53;
  padding: 7px;
}
.label-finding-group-insignificant {
  color: #fff;
  background-color: #ffc107;
  padding: 7px;
}
.label-finding-group-informational {
  color: #fff;
  background-color: #77777a;
  padding: 7px;
}
.label-audit-score-significant {
  color: #c03a0d;
}
.label-audit-score-moderate {
  color: #e77205;
}
.label-audit-score-insignificant {
  color: #0a8533;
}
.comment-replies {
  padding-left: 20px;
}
.card-body-modified {
  padding: 1.5rem 1rem !important;
}
/* Dashboard layout styles - added to place MetaButton on the right */
.dashboard-main {
  padding: 1rem;
}
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.dashboard-left {
  display: flex;
  align-items: center;
}
.dashboard-meta-button {
  margin-left: auto;
}
/* Ensure button visually aligns to the right on small screens */
@media (max-width: 600px) {
  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-meta-button {
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
}

.aside-menu
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here) {
  background-color: #eaf2f2 !important;
}

.aside-menu
  .menu
  .menu-item.hover:not(.here)
  > .menu-link:not(.disabled):not(.active):not(.here) {
  background-color: #0f2f43 !important;
}

.aside-menu
  .menu
  .menu-item.hover:not(.here)
  > .menu-link:not(.disabled):not(.active):not(.here)
  .menu-title,
.aside-menu
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here)
  .menu-title {
  color: #fff;
}

.aside-menu
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here)
  .menu-title,
.aside-menu
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here)
  .menu-icon
  .svg-icon {
  color: #000 !important;
}

.aside-menu .menu .menu-item .menu-link.active {
  background-color: #0f2f43 !important;
}

.dx-datagrid .dx-row-alt > td {
  background-color: #eaf2f2;
}

.dx-datagrid-rowsview .dx-selection.dx-row > td {
  background-color: #bfd9d7 !important;
}

.dx-popup-title .dx-closebutton .dx-icon-close::before {
  color: #c03a0d !important;
}

.dx-datagrid a:visited {
  color: #551a8b !important;
}

.dx-datagrid-content a {
  color: #007bff !important;
}

.toolbar-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-filters-title {
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 8px;
  white-space: nowrap;
}

.quick-filter-group {
  display: flex;
  flex-direction: column;
}

.quick-filter-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.quick-filter-date-range {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-filter-date-separator {
  font-size: 13px;
}

/* Responsive Quick Filters */
@media (max-width: 992px) {
  .quick-filters {
    align-items: stretch;
  }
  .quick-filter-group {
    flex: 1 1 100%;
  }
  .quick-filters > .dx-button {
    width: 100%;
  }
  .quick-filter-group .dx-tagbox,
  .quick-filter-group .dx-datebox {
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .quick-filter-date-range {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-filter-date-separator {
    text-align: center;
    padding: 4px 0;
  }
}

/* Remove hyperlink behavior from notification titles in the bell dropdown */
#kt_menu_notifications .d-flex.flex-stack a.fs-6.text-gray-800.fw-bold {
  pointer-events: none;
  text-decoration: none;
  cursor: default;
  color: inherit;
}

/* Responsive Grid Toolbar for PDF Reports & other MetaGrids */
.pdf-reports-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1200px) {
  .dx-datagrid-toolbar-container,
  .dx-toolbar {
    height: auto !important;
  }
  .dx-toolbar .dx-toolbar-items-container {
    height: auto !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    padding: 8px 0;
  }
  .dx-toolbar-before, .dx-toolbar-after, .dx-toolbar-center {
    position: static !important;
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
    height: auto !important;
  }
  .dx-toolbar-after {
    margin-top: 8px;
    justify-content: flex-start !important;
  }
}

/* Active Template Badge Styles */
.active-template-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  width: fit-content;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.active-template-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: #1e4620;
}

.active-template-badge-name {
  font-weight: 700;
  color: #2e7d32;
}

.active-template-badge i {
  color: #2e7d32 !important;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

/* Notification progress bar layout */
.notification-progress-row {
  display: flex;
}

.notification-progress-bar-wrapper {
  width: 94%;
}

.notification-progress-cancel {
  flex-grow: 1;
}

/* Notification dropdown: zip names are a single unbroken word, so wrap them instead of scrolling sideways */
[id^="kt_topbar_notifications_"] .flex-stack > .d-flex,
[id^="kt_topbar_notifications_"] .flex-stack .mb-0 {
  min-width: 0;
}

[id^="kt_topbar_notifications_"] .flex-stack .mb-0 {
  overflow-wrap: anywhere;
}

[id^="kt_topbar_notifications_"] .flex-stack .symbol,
[id^="kt_topbar_notifications_"] .flex-stack > .badge {
  flex-shrink: 0;
}

/* Search & template toolbar layout */
.search-toolbar-row {
  display: flex;
}

.template-form-row {
  display: flex;
  flex-wrap: wrap;
}

.template-field-spacing {
  margin-right: 5px;
}

.template-account-scope {
  width: 100%;
  flex-basis: 100%;
  margin-top: 5px;
}

.template-action-button {
  margin-top: 10px;
}

/* Home tile view */
.home-tileview {
  overflow-y: scroll;
}

/* Internal admin tabs */
.admin-tab-container {
  width: 100%;
  padding: 20px;
}

.admin-note-box {
  width: 100%;
  padding: 20px;
  margin: 0 0 16px 0;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  font-size: 1.05rem;
}

/* Audit alert popup */
.audit-alert-body {
  padding: 16px;
  text-align: center;
}

.audit-alert-message {
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: left;
  font-size: 14px;
}

.audit-label-cell {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(60px, 15vw, 70px);
}

/* Loans filter spacer */
.loans-filter-spacer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Findings popup loan details accordion */
.loan-details-accordion {
  margin-top: 16px;
}

/* Target defect rate popup */
.editable-rate-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.target-defect-rate-content {
  padding: 10px;
}

.target-defect-rate-actions {
  text-align: right;
  margin-bottom: 15px;
}
