/* Capital Markets Hub Specific Styles */

.ic-capmark-hub-saved-card {

  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid #e1e1ea;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;

}

.ic-capmark-hub-saved-pick {

  flex: 1;
  text-align: left;

}

.ic-capmark-hub-saved-actions {

  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 8px;
  flex-shrink: 0;
  min-width: 440px;
  align-content: start;

}

.ic-capmark-hub-saved-move {

  white-space: nowrap;

}

.ic-capmark-hub-saved-trade {

  white-space: nowrap;

}

.ic-capmark-hub-saved-trade--solo {

  grid-column: 1 / -1;

}

.ic-capmark-hub-saved-analysis {

  white-space: nowrap;

}

.ic-capmark-hub-saved-analysis.is-bullish {

  background: #127a3a;
  border-color: #127a3a;
  color: #fff;

}

.ic-capmark-hub-saved-analysis.is-bearish {

  background: #b42318;
  border-color: #b42318;
  color: #fff;

}

.ic-capmark-hub-saved-grid {

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;

}

.ic-capmark-hub-saved-block-title {

  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
  color: #444;

}

.ic-capmark-hub-profile-stack {

  display: flex;
  flex-direction: column;
  gap: 22px;

}

.ic-capmark-hub-error {

  color: #b00020;
  font-weight: 600;

}



/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 440px;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid #667085;
  transition: all 0.3s ease;
}

.toast.success {
  border-left-color: #127a3a;
}

.toast.error {
  border-left-color: #b42318;
}

.toast.info {
  border-left-color: #004eeb;
}

.toast.fade-out {
  opacity: 0;
  transform: translateX(40px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #344054;
}

.toast-close {
  background: none;
  border: none;
  color: #98a2b3;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.toast-close:hover {
  color: #667085;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.flash.success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.flash.error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fda29b;
}

/* Capital Markets Layout grid & card details */
.ic-capmark-hub-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.ic-capmark-hub-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}



.ic-capmark-hub-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.ic-capmark-hub-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ic-capmark-hub-labelrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ic-capmark-hub-inputrow {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

.ic-capmark-hub-input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #fff;
  color: #1a202c;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ic-capmark-hub-input:focus {
  outline: none;
  border-color: var(--rich-black);
  box-shadow: 0 0 0 3px rgba(41, 120, 240, 0.15);
}

.ic-capmark-hub-go {
  margin-top: 0 !important;
}

.ic-capmark-hub-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.ic-capmark-hub-status[data-tone="error"] {
  color: #dc2626;
}

.ic-capmark-hub-results {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

/* Search results items */
.ic-capmark-hub-result {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ic-capmark-hub-result:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
  transform: translateX(2px);
}

.ic-capmark-hub-result-symbol {
  font-weight: 700;
  color: var(--rich-black);
  font-size: 0.95rem;
}

.ic-capmark-hub-result-meta {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

/* Profile details */
.ic-capmark-hub-profile-shell {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.ic-capmark-hub-profile-shell.is-empty {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ic-capmark-hub-profile-empty {
  color: #a0aec0;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e0;
}

.ic-capmark-hub-profile {
  display: flex;
  gap: 20px;
  align-items: start;
  animation: fadeIn 0.3s ease;
}

.ic-capmark-hub-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}

.ic-capmark-hub-profile-main {
  flex-grow: 1;
}

.ic-capmark-hub-profile-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rich-black);
  margin-bottom: 4px;
}

.ic-capmark-hub-profile-meta {
  font-size: 0.85rem;
  color: #718096;
}

.ic-capmark-hub-quote {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rich-black);
  margin-top: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

.ic-capmark-hub-profile-analysis {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #4a5568;
  margin-top: 12px;
}

.ic-capmark-hub-profile-analysis strong {
  color: var(--rich-black);
}

.ic-capmark-hub-cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ic-capmark-hub-cta button {
  margin-top: 0 !important;
}

/* Saved lists */
.ic-capmark-hub-saved-shell {
  margin-top: 12px;
}

.ic-capmark-hub-saved-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rich-black);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--rich-black);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}