.table thead th {
  background: #f8f9fa;
  font-weight: 600;
}
.badge-holding {
  background: #f5ecd7;
  color: #a67c52;
  border-radius: 6px;
  padding: 0.35em 0.7em;
  font-size: 0.95em;
  margin-right: 0.2em;
}
.badge-risk-medium {
  background: #fff9d6;
  color: #bfa600;
}
.badge-risk-low {
  background: #eafbe7;
  color: #3bb273;
}
.badge-risk-high {
  background: #fde6e6;
  color: #d9534f;
}
.table-responsive {
  overflow-x: inherit;
}

.badge-esg-a {
  background: #eafbe7;
  color: #3bb273;
}
.badge-esg-b {
  background: #fff9d6;
  color: #bfa600;
}
.badge-esg-bplus {
  background: #fff9d6;
  color: #bfa600;
}
.badge-esg-aminus {
  background: #eafbe7;
  color: #3bb273;
}
.badge-esg-bminus {
  background: #fff9d6;
  color: #bfa600;
}
.search-bar {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.5em 1em;
  width: 300px;
}
.export-btn {
  border-radius: 8px;
  background: #222;
  color: #fff;
  border: none;
  padding: 0.5em 1.2em;
}
.table tbody tr {
  vertical-align: middle;
}

.dataTables_filter {
  float: right;
}
label {
    display: inline-flex;
}

.form-select-sm {
    margin-left: 5px;
    margin-right: 5px;
}

.pagination {
  float: right;
}

table#investments-table {
    width: 100% !important;
}

.table-success {
    background-color: #d4edda !important;
}
.text-success.fw-bold {
    color: #28a745 !important;
}
.text-danger.fw-bold {
    color: #dc3545 !important;
}


@media (max-width: 767px) {
  .table-responsive {
    overflow-x: auto;
  }
  .search-bar,
  .export-btn {
    width: 100%;
    margin-bottom: 0.5em;
  }
  .dataTables_filter {
    float: left;
    margin-bottom: 1rem;
}
}

@media (max-width: 575px) {
  .table thead {
    display: none;
  }
  .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5em;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    border: none;
    font-size: 1em;
  }
  .table td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #6c757d;
    flex-basis: 50%;
    text-align: left;
  }
 .dataTables_filter {
    float: left;
    margin-bottom: 1rem;
}
 
}
