/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.bg-custom-light {
  background-color: #F5F5F5; 
}

.inset-border {
  box-shadow: inset 0 0 0 5px #eeeeee;
}

#chat-widget .card {
  width: 500px; /* Adjust the width of the widget */
}

#chat-widget .card-body {
  max-height: 500px; /* Maximum height of the chat widget body */
}

#chat-widget .card-body #llm-history {
  max-height: 400px; /* Maximum height of the chat history section */
}

#chat-widget .card-header {
  width: 100%; /* Ensures header matches new width */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-widget.collapsed .card-body {
  display: none; /* Hide body when collapsed */
}

.input-group-text-adjust {
  display: inline-block;         
  white-space: nowrap;           
  text-align: left;              
  background-color: #EEEEEE;     
  padding: 0.375rem 0.75rem; 
}

.input-group-text-fixed {
  width: 100px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-wide {
  width: 150px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-wide-plus {
  width: 170px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-200 {
  width: 200px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-225 {
  width: 225px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-250 {
  width: 250px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-300 {
  width: 300px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-pre-mod {
  width: 390px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.input-group-text-fixed-extra-wide {
  width: 440px; /* Adjust as needed */
  text-align: left; /* Keeps the text centered */
  display: inline-block;
  background-color: #EEEEEE;
}

.select-reference-step {
  width: 200px;
}

.select-balance-type {
  width: 240px;
}

.select-balance-item {
  width: 420px;
}

.select-set-aside-item, 
.select-delinquency-item {
  width: 75%;
  max-width: 490px; /* keeps it from getting too wide on large screens */
}

.product-select {
  width: 75%;
  max-width: 490px;
}

.thick-hr {
  height: 2px;
  background-color: #000;
  border: none;
}

.light-hr{
  color: #c8c8c8;
  background-color: #c8c8c8;
}

.thick-light-hr{
  height: 2px;
  color: #c8c8c8;
  background-color: #c8c8c8;
}

.target-light-hr{
  height: 2px;
  color: #c8c8c8;
  background-color: #c8c8c8;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* Styles for active navigation items */
#sticky-nav a.active {
  font-weight: bold !important;
  color: #353737 !important;
  /*background-color: #ebecec; */
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  margin-left: -0.5rem;
  position: relative;
}

/* Add a left border indicator for active items */
/*
#sticky-nav a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #353737;
  border-radius: 2px;
}
*/

/* Adjust spacing for sub-step active items */
#sticky-nav .sub-step-item a.active {
  margin-left: -0.2rem;
}

/* Make the active state more obvious */
#sticky-nav .step-item:has(> a.active) {
  background-color: rgba(13, 110, 253, 0.05);
}


/* Styles for waterfall nav active items - matching sticky nav */
#waterfall-sticky-nav a.active {
  font-weight: bold !important;
  color: #353737 !important;
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  margin-left: -0.5rem;
  position: relative;
}

/* Adjust spacing for waterfall nav sub-step active items */
#waterfall-sticky-nav .sub-step-item a.active {
  margin-left: -0.2rem;
}

/* Make the active state more obvious for waterfall nav */
#waterfall-sticky-nav .step-item:has(> a.active) {
  background-color: rgba(13, 110, 253, 0.05);
}

.col-item-title {
  width: 20%;
}

.edit-product-container {
  max-width: 1550px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.select-balance-type,
.select-reference-step {
  flex: 0 0 240px;
}

.priority-number {
  font-family: monospace;
  display: inline-block;
  width: 1em; /* Optional: force same width for alignment */
  text-align: center;
}

.header-bg {
  background-color: #dfe2e8;
}

.nav-tabs {
  border-bottom: 2px solid rgba(111, 108, 109, 0.96);
}

/* Default tab */
.nav-tabs .nav-link {
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-bottom: 0;
  background-color: rgba(33, 37, 41, 0.03);
  color: #6c757d; /* muted gray */
  font-weight: 500;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: border-color .25s ease, color .25s ease;
}

/* Hover — subtle, controlled */
.nav-tabs .nav-link:not(.active):hover {
  color: #212529; /* near-black */
  border-color: rgba(33, 37, 41, 0.2);
  background-color: rgba(255, 255, 255, 1);
}

/* Active — bold but clean */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #212529; /* near-black */
  border-top: 2px solid rgba(111, 108, 109, 0.96);
  border-right: 2px solid rgba(111, 108, 109, 0.96);
  border-bottom: 0;
  border-left: 2px solid rgba(111, 108, 109, 0.96);
  background-color: rgba(255, 255, 255, 1);
  margin-bottom: -2px; /* overlap nav border so tab feels attached */
  font-weight: 600;
  position: relative;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: var(--bs-body-bg, #fff);
}

.nav-tabs .nav-link.active:hover {
  border-top-color: rgba(111, 108, 109, 0.96);
  border-right-color: rgba(111, 108, 109, 0.96);
  border-left-color: rgba(111, 108, 109, 0.96);
  border-bottom: 0;
}

.nav-tabs .nav-link {
  margin-right: 0.3rem;
}

 /* tabs */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
}

.text-dark-green {
  color: rgba(15, 81, 50, 1);
}

.light-green-badge {
  background-color: rgba(209, 231, 221, 1); /* solid light green */
  color: rgba(15, 81, 50, 1); /* solid dark text */
}


/* Winner – primary approved */
.status-winner,
.status-active {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Approved, not selected */
.status-approved {
  color: #6c757d;
  background-color: #f8f9fa; /* subtle gray background */
  border-color: #dee2e6;     /* light gray border */
}

/* Denied */
.status-denied,
.status-inactive {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Not evaluated */
.status-pending {
  color: #6c757d;
  background-color: #f1f3f5;
  border-color: #ced4da;
}

/* Styles for portfolio nav active items - matching sticky nav */
#portfolio-sticky-nav a.active {
  font-weight: bold !important;
  color: #353737 !important;
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  margin-left: -0.5rem;
  position: relative;
}

/* Make the active state more obvious for portfolio nav */
#portfolio-sticky-nav .portfolio-nav-item:has(> a.active) {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Styles for investor type nav active items - matching portfolio nav */
#investor-type-sticky-nav a.active {
  font-weight: bold !important;
  color: #353737 !important;
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  margin-left: -0.5rem;
  position: relative;
}

/* Make the active state more obvious for investor type nav */
#investor-type-sticky-nav .investor-type-nav-item:has(> a.active) {
  background-color: rgba(13, 110, 253, 0.05);
}

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

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 10px;
}

/* Review container with max-width constraint */
.review-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Toast notification */
.toast-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  animation: slideInRight 0.3s ease-out;
  min-width: 400px;
  max-width: 500px;
}

/* Support stacking multiple toasts vertically */
.toast-notice + .toast-notice {
  margin-top: 10px;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-notice.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

/* Toast container to manage stacking */
.toast-container,
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-container .toast-notice,
#toast-container .toast-notice {
  position: relative;
  top: auto;
  right: auto;
  pointer-events: auto;
}

/* Responsive navbar padding */
@media (min-width: 992px) {
  .navbar-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1700px) {
  .navbar-container {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

@media (min-width: 1900px) {
  .navbar-container {
    padding-left: 11rem;
    padding-right: 11rem;
  }
}

/* Card-Based Search Bar */
.search-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.search-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.search-card-body {
  padding: 1.25rem 1.5rem;
}

.search-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.search-card-input-group {
  border-radius: 6px;

}

.search-card-input {
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0.5rem 0.875rem;
  font-size: 0.95rem;
  background: #fafafa;
  transition: background-color 0.2s ease, border-color 0.3s ease;
}

.search-card-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
  background: white;
  border-color: #86b7fe;
}

.btn-search-card {
  background-color: #6c757d;
  color: white;
  border: 1px solid #6c757d;
  border-radius: 0 6px 6px 0;
  padding: 0.25rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-search-card:hover {
  background-color: #5a6268;
  color: white;
}

.btn-search-card:active {
  background-color: #545b62;
}

/* Sticky back button positioned to the left */
.sticky-back-button {
  position: absolute;
  right: 100%;
  margin-right: 3rem;
  white-space: nowrap;
  position: sticky !important;
  top: 10px;
  z-index: 10;
}

.table-md td,
.table-md th {
  padding-top: .35rem;
  padding-bottom: .35rem;
}

/* Compact Product List View */
.product-list-container {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-list-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.15s ease;
  position: relative;
}

.product-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.product-list-item:hover {
  background-color: #f8f9fa;
}

.product-list-item:hover::before {
  background-color: #6c757d;
}

.product-list-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.product-list-type {
  font-size: 0.8125rem;
  color: #6c757d;
  white-space: nowrap;
  padding: 0.25rem 0.65rem;
  background-color: #f8f9fa;
  border-radius: 3px;
  flex-shrink: 0;
}

.product-list-item:hover .product-list-type {
  background-color: #e9ecef;
}

.product-list-status {
  flex-shrink: 0;
}

.min-w-0 {
  min-width: 0;
}

/* Programs Index Hover Effects */
.program-item {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.program-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.2s ease;
  z-index: 1;
}

.program-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.program-item:hover::before {
  background-color: #15803d;
}

/* Connected list styling for active programs */
.connected-list .program-item {
  margin-bottom: -1px;
  border-radius: 0;
}

.connected-list .program-item:first-child {
  border-top-left-radius: var(--bs-card-border-radius);
  border-top-right-radius: var(--bs-card-border-radius);
}

.connected-list .program-item:last-child {
  border-bottom-left-radius: var(--bs-card-border-radius);
  border-bottom-right-radius: var(--bs-card-border-radius);
  margin-bottom: 0;
}

/* Inactive programs hover effect */
.list-group .list-group-item[onclick] {
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.list-group .list-group-item[onclick]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.list-group .list-group-item[onclick]:hover {
  background-color: #f8f9fa;
}

.list-group .list-group-item[onclick]:hover::before {
  background-color: #6c757d;
}

/* Review list - connected style like products */
.review-list-container {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-list-item {
  padding: .4rem 1.25rem;
  border-bottom: 1.75px solid #f0f0f0;
  transition: all 0.15s ease;
  position: relative;
}

.review-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.review-list-item:hover {
  background-color: #f8f9fa;
}

.review-list-item:hover::before {
  background-color: #6c757d;
}

/* Minimal pagination styling - no blue */
.pagination {
  gap: 0.25rem;
}

.pagination .page-link {
  color: #6c757d;
  background-color: white;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.pagination .page-link:hover {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.pagination .page-link:focus {
  box-shadow: none;
  outline: none;
}

.pagination .page-item.active .page-link {
  color: white;
  background-color: #6c757d;
  border-color: #6c757d;
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: white;
  border-color: #dee2e6;
}


