.font-courier {
  font-family: courier;
}

.pr-25px {
  padding-right: 25px;
}

.custom-min-width{
  min-width: 56px;
}

.risk-factors {
    padding-right: 45px;
    text-align: right;
}

.chart-container {
  height: 100%;
  display: flex;
  justify-content: center;
}

.portrait-chart-container> .col {
  height: 50%;
}

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

.tile-header {
  background-color: var(--GREY);
  color: var(--WHITE);
  text-align: center;
  padding: 6px 0;
  font-size: 19px;
  margin: 0;
}

.tile-section .tile-header {
  margin-bottom: 15px;
}

.tile-section {
  padding: 0 0px 10px;
}

.tile-header.collapsible {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.tile-header .collapse-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.tile-header.collapsed .collapse-icon {
  transform: translateY(-50%) rotate(-90deg);
}

.navigation-tile > .tile-header.collapsed ~ .explore,
.navigation-tile > .tile-header.collapsed ~ .librarian-upsell,
.tile-section > .tile-header.collapsed ~ * {
  display: none !important;
}

/* With the list folded, the sections below rise to meet its header instead of
   staying pinned to the bottom by their inline margin-top: auto. */
.navigation-tile > .tile-header.collapsed ~ .tile-section {
  margin-top: 0 !important;
}

.tile-section input:focus-visible {
  outline: none;
}

.tile-section input {
  margin-left: 7px;
}

.tile-section label {
  margin: 0;
}

.explore {
  min-height: 20%;
}

.tile button, .button {
  background-color: var(--WHITE);
  color: var(--BLACK);
  border: 1px solid var(--BLACK);
  border-radius: 5px;
  font-size: 16px;
  padding: 5px 7px;
  height: unset;
  box-shadow: 4px 4px 4px #808080;
}

.price-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tab-content .tab-pane{
  overflow: auto;
  height: 100%;
}

.tab-content {
  position: relative;
  height: 100%;
}

#search-input-field {
	width: 65%;
	margin-bottom: 0;
  margin-right: 12px;
}

.filter-btn-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 10px;
	margin-right: 10px;
	gap: 10px;
}

.filter-btn {
	height: 50px;
	text-align: center;
	padding-left: 5px;
	padding-right: 5px;
}

.filter-btn-container .filter-btn.active {
  border: 1px solid var(--MINT_GREEN) !important;
  font-weight: normal;
  font-size: 16px !important;
}

.strategist-btn {
  margin-bottom: 10px;
}

.view-toggle-btn-container {
	display: flex;
	width: 100%;
}

.view-toggle-btn {
	flex: 1;
  height: 4.1rem;
  font-size: 20px;
	padding: .4rem 1rem;
	background-color: var(--WHITE);
	color: var(--GREY);
	border: 1px solid var(--LIGHT_GREY);
	border-radius: 0;
	font-weight: bold;
}

.view-toggle-btn.active {
	background-color: var(--LIGHT_MINT_GREEN);
	border: 2px solid var(--MINT_GREEN);
}

.protected-content {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.protected-content-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--BLACK);
  font-size: 24px;
  display: None;
}

.mint-green-toggle {
  position: relative;
  display: inline-block;
  width: 45px;
  height:16px;
}

.mint-green-toggle input {
  display: none;
}

.mint-green-slider {
  position: absolute;
  cursor: pointer;
  top: 3px;
  left: 0;
  right: 0;
  bottom: -8px;
  background-color: var(--WHITE);
  border: 1px solid var(--BLACK);
  transition: 0.4s;
  border-radius: 32px;
  font-size: 1.25rem;
}

.mint-green-slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 4px;
  bottom: 5px;
  background-color: var(--BLACK);
  transition: 0.4s;
  border-radius: 50%;
}

.mint-green-slider:after {
  content: 'Off';
  position: absolute;
  color: var(--BLACK);
  top: 53%;
  left: auto;
  right: 8px;
  transform: translateY(-50%);
  transition: 0.4s;
  font-family: VAGRoundedRegular;
}

.mint-green-toggle input:checked + .mint-green-slider {
  background-color: var(--LIGHT_MINT_GREEN);
  border: 2px solid var(--MINT_GREEN);
}

.mint-green-toggle input:checked + .mint-green-slider:before {
  transform: translateX(24px);
}

.mint-green-toggle input:checked + .mint-green-slider:after {
  content: 'On';
  left: -5px;
  font-family: VAGRoundedRegular;
}

@supports((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .protected-content::after {
    content: "";
    z-index: 3;
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(5px);
  }

  .protected-content-blur-ltr::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 5%, rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255) 100%);
    backdrop-filter: blur(0px) blur(8px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.protected-content .login-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3
}

.protected-content .login-message span {
  color: rgba(0, 184, 148);
}

.machine-tile-header {
  display: flex;
}

.machine-tile-header-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 18px;
}

.machine-tile-header-image {
  width: 109px;
  height: max-content;
}
.machine-tile-header-image img{
  width: 100%;
}

.action-block {
  align-items: center;
  row-gap: 20px;
}

.action-block .api-block label {
  white-space: nowrap;
}

.action-block .api-block-content {
  border-radius: 10px;
  background-color: var(--LIGHT_GREY);
  padding: 7px;
  color: var(--BLACK);
  height: 78px;
  margin: 0 0 0 10px;
}

.action-block button {
  min-width: 100px;
  margin: 0 10px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

tr.active, button.active {
  border: 2px solid var(--MINT_GREEN) !important;
  background-color: var(--LIGHT_MINT_GREEN) !important;
  font-weight: 900;
  font-size: 17px !important;
  color: var(--BLACK);
} 

table.dataTable tbody th, table.dataTable tbody td {
  padding: 3px;
}

@media only screen and (max-width: 767px) {
  .api-block {
    flex-direction: column;
  }

  .pr-25px {
    padding-right: 15px;
  }
}

.chip {
  background-color: #dbdbdb;
  font-size: 1.15rem;
  border-radius: 16px;
  padding: 4px 8px;
  margin: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chip:hover {
  cursor: pointer;
}

.chip[class~="selected"] {
  border: 2px solid var(--MINT_GREEN);
  background-color: var(--LIGHT_MINT_GREEN);
  color: var(--BLACK);
}

.chips-container {
  padding: 0.25rem;
  padding-right: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 35px;
  position: relative;
  transition: max-height 0.3s ease-out;
  margin-left: 15px;
  margin-bottom: 0;
}

.chips-container.open {
  max-height: 1000px;
}

.expand-icon {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #7e7e7e;
  font-size: 18px;
  padding-left: 5px;
  padding-right: 5px;
}

.date-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow-x: auto;
  padding: 0.25rem;
}

.date-chips-container .chip {
  white-space: nowrap;
  padding: 4px 8px;
  margin: 1px;
  border-radius: 14px;
  background-color: #dbdbdb;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.date-chips-container .chip.selected {
  border: 2px solid var(--MINT_GREEN);
  background-color: var(--LIGHT_MINT_GREEN);
  color: var(--BLACK);
}

.date-chips-container .chip input[type="radio"] {
  display: none;
}

.date-chips-container::-webkit-scrollbar {
  height: 5px;
}

.date-chips-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.date-chips-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.plan-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.2;
    background-color: var(--LIGHT_MINT_GREEN, #e8f8f5);
    color: var(--MINT_GREEN, #06CCB3);
    border: 1px solid var(--MINT_GREEN, #20c997);
}

.tile-header .plan-chip {
    background-color: var(--LIGHT_MINT_GREEN, #e8f8f5) !important;
    color: var(--MINT_GREEN, #06CCB3) !important;
    border-color: var(--MINT_GREEN, #20c997) !important;
}

.post-card {
  border: 1px solid var(--LIGHT_GREY);
  border-radius: 5px;
  padding: 15px;
  background-color: var(--WHITE);
  margin-bottom: 20px;
}

.post-card .user-info {
  margin-bottom: 10px;
}

.post-card .user-info img {
  width: 40px;
  height: 40px;
}

.post-card .user-info .name {
  font-weight: bold;
  font-size: 16px;
}

.post-card .user-info .time {
  font-size: 14px;
  color: var(--GREY);
}

.post-card .post-content {
  margin-bottom: 15px;
}

.post-card .post-content p {
  font-size: 16px;
  line-height: 1.5;
}

.post-card .post-content a {
  color: var(--MINT_GREEN);
}

.post-card .post-content img {
  width: 600px;
  max-width: 100%;
  height: auto;
}

.document-link {
  text-decoration: none !important;
}

.document-link:hover {
  color: var(--MINT_GREEN) !important;
}

.progress {
  height: 100%;
}

.progress-bar {
  background-color: var(--MINT_GREEN);
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#pdfModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden;
}

#pdfModal > div {
  position: relative;
  width: 80%;
  height: 80%;
  margin: 5% auto;
  background: white;
  padding: 10px;
  overflow: auto;
}

#pdfViewer {
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 767px) {
  .twod-chart {
      width: 50%;
      padding-left: 0;
      padding-right: 0;
  }
  
  .threed-chart {
      width: 100%;
      padding-left: 0;
      padding-right: 0;
  }
  
  .chart.chart-height {
      height: auto;
  }
  
  .chart-container {
      height: auto;
  }
  
  .portrait-chart-container {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
  }

  .tile {
    height: auto;
  }

  .chips-container {
    max-height: 32px;
    margin-bottom: 2px;
  }

  .explore {
    max-height: 180px;
  }

  table.dataTable tbody th, table.dataTable tbody td {
    padding: 1px;
  }

  .tile-section .tile-header {
    margin-bottom: 8px;
  }

  .tile-section {
    padding: 0 0 2px;
  }

  #search-input-field {
    margin-bottom: 5px;
  }

  .tile button, .button {
    padding: 5px;
  }
}

@media only screen and (min-width: 768px) and (orientation: portrait) {
  .twod-chart {
      width: 50%;
  }
  
  .threed-chart {
      width: 100%;
  }
}

.dividend-form, .rate-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dividend-form .chart-container,
.rate-form .chart-container {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
}
.dividend-form .chart-height,
.rate-form .chart-height {
  height: 100% !important;
}

.conversations-two-pane-container {
  display: flex;
  height: calc(100vh - 200px);
  min-height: 600px;
  border: 1px solid var(--LIGHT_GREY);
  background-color: var(--WHITE);
}

.conversations-list-pane {
  width: 40%;
  border-right: 1px solid var(--LIGHT_GREY);
  background-color: var(--WHITE);
  overflow-y: auto;
  transition: width 0.3s ease;
}

.conversations-list-pane-full {
  width: 100%;
}

.conversations-list-content {
  padding: 0;
}

.conversation-item {
  padding: 16px;
  border-bottom: 1px solid var(--LIGHT_GREY);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.conversation-item:hover {
  background-color: #f5f5f5;
}

.conversation-item.active {
  background-color: #e8f8f5;
  border-left: 3px solid var(--MINT_GREEN);
}

.conversation-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.conversation-item-sender {
  font-weight: 600;
  color: var(--GREY);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item-time {
  font-size: 0.85em;
  color: #666;
  margin-left: 12px;
  white-space: nowrap;
}

.conversation-item-subject {
  font-weight: 500;
  color: var(--GREY);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item-preview {
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conversation-item-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85em;
  color: #666;
}

.conversation-item-attachment {
  font-size: 1.1em;
}

.conversation-item-count {
  color: var(--MINT_GREEN);
}

.conversation-detail-pane {
  width: 60%;
  display: flex;
  flex-direction: column;
  background-color: var(--WHITE);
  overflow: hidden;
}

.conversation-empty-pane {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--WHITE);
  border-left: 1px solid var(--LIGHT_GREY);
}

.conversation-empty-content {
  text-align: center;
  color: #666;
}

.conversation-detail-header {
  padding: 20px;
  border-bottom: 1px solid var(--LIGHT_GREY);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--WHITE);
}

.conversation-detail-header-info {
  flex: 1;
}

.conversation-client-name {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--GREY);
  margin: 0 0 8px 0;
}

.conversation-subject-text {
  font-size: 1em;
  color: #666;
  margin: 0;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message-card {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--WHITE);
  border: 1px solid var(--LIGHT_GREY);
}

.message-card-header {
  margin-bottom: 12px;
}

.message-sender-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-sender-name {
  font-weight: 600;
  color: var(--GREY);
}

.message-time {
  font-size: 0.85em;
  color: #666;
}

.message-card-subject {
  font-weight: 500;
  color: var(--GREY);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--LIGHT_GREY);
}

.message-card-body {
  color: var(--GREY);
  line-height: 1.6;
  word-wrap: break-word;
}

.conversation-empty-message {
  color: #666;
}

@media (max-width: 768px) {
  .conversations-two-pane-container {
    flex-direction: column;
    height: auto;
  }
  
  .conversations-list-pane,
  .conversations-list-pane-full,
  .conversation-detail-pane,
  .conversation-empty-pane {
    width: 100%;
  }
  
  .conversations-list-pane {
    border-right: none;
    border-bottom: 1px solid var(--LIGHT_GREY);
    max-height: 300px;
  }
  
  .conversation-detail-pane {
    min-height: 400px;
  }
}

.attachment-preview-container {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
  background-color: #fafafa;
}

.attachment-thumbnail {
  max-width: 200px;
  max-height: 200px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.attachment-thumbnail:hover {
  opacity: 0.8;
}

.attachment-pdf-thumbnail {
  width: 200px;
  height: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.attachment-pdf-thumbnail:hover {
  background-color: #e9ecef;
}

.attachment-pdf-icon {
  font-size: 48px;
  color: #dc3545;
}

.attachment-pdf-label {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

.attachment-file-icon {
  width: 100px;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.attachment-file-icon div {
  font-size: 36px;
}

.attachment-filename-link {
  display: block;
  margin-top: 5px;
  text-decoration: none;
  color: var(--MINT_GREEN)
}

.attachment-filename-link:hover {
  text-decoration: underline;
}

.attachment-text-content {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background: #f9f9f9;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.attachment-text-content::-webkit-scrollbar {
  width: 8px;
}

.attachment-text-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.attachment-text-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.attachment-text-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.attachment-preview-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}

.attachment-image-container {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.attachment-preview-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.attachment-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.attachment-modal-close-dark {
  color: #333;
  font-size: 30px;
  width: 30px;
  height: 30px;
  top: auto;
  right: auto;
  position: relative;
}

.attachment-pdf-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.attachment-pdf-container {
  width: 90%;
  height: 90%;
  background: #fff;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.attachment-pdf-header {
  padding: 10px 15px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attachment-pdf-title {
  font-weight: bold;
  color: #333;
}

.attachment-pdf-viewer {
  width: 100%;
  height: calc(100% - 50px);
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.message-body {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.follow-up-form-container {
  border-top: 2px solid var(--GREY);
  padding-top: 20px;
  margin-top: 20px;
}

.follow-up-form-container .form-group {
  margin-bottom: 15px;
}

.follow-up-form-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.follow-up-form-container input[type="text"],
.follow-up-form-container textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.badge-secondary {
  background-color: #6c757d;
  color: white;
}
