.fca-nsm-filings-box {
  width: 100%;
  box-sizing: border-box;
  margin: 15px 0;
  padding: 20px;
  border: 1px solid #2f3a4a;
  border-radius: 8px;
  background: #050505;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

.fca-nsm-filings-label {
  display: block;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.fca-nsm-filings-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.fca-nsm-filings-query {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #111827;
  color: #ffffff;
  caret-color: #60a5fa;
  font-size: 15px;
  line-height: 1.4;
}

.fca-nsm-filings-query::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.fca-nsm-filings-query:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.fca-nsm-filings-search-btn {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: #0d6efd;
  color: #ffffff;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.fca-nsm-filings-search-btn:hover,
.fca-nsm-filings-search-btn:focus {
  background: #0b5ed7;
  outline: none;
}

.fca-nsm-filings-search-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fca-nsm-filings-results {
  margin-top: 16px;
}

.fca-nsm-filings-message {
  padding: 10px 12px;
  border-radius: 4px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.fca-nsm-filings-message-error {
  border: 1px solid #7f1d1d;
  background: #2a0f12;
  color: #fecaca;
}

.fca-nsm-filings-message-empty {
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
}

.fca-nsm-filings-message-loading {
  border: 1px solid #1d4ed8;
  background: #0f172a;
  color: #bfdbfe;
}

.fca-nsm-filings-table-wrap {
  overflow-x: auto;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #000000;
}

.fca-nsm-filings-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #000000;
  color: #ffffff;
}

.fca-nsm-filings-table th,
.fca-nsm-filings-table td {
  border-bottom: 1px solid #262626;
  padding: 11px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.fca-nsm-filings-table th {
  background: #111111;
  color: #ffffff;
  font-weight: 800;
}

.fca-nsm-filings-table tbody tr:hover td {
  background: #2b2b2b;
}

.fca-nsm-filings-table tbody tr:last-child td {
  border-bottom: 0;
}

.fca-nsm-filings-table a {
  color: #3b82f6;
  font-weight: 800;
  text-decoration: none;
}

.fca-nsm-filings-table a:hover,
.fca-nsm-filings-table a:focus {
  color: #60a5fa;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .fca-nsm-filings-box {
    padding: 16px;
  }

  .fca-nsm-filings-label {
    font-size: 19px;
  }

  .fca-nsm-filings-search-row {
    flex-direction: column;
  }

  .fca-nsm-filings-query,
  .fca-nsm-filings-search-btn {
    width: 100%;
  }

  .fca-nsm-filings-table {
    min-width: 0;
  }

  .fca-nsm-filings-table thead {
    display: none;
  }

  .fca-nsm-filings-table,
  .fca-nsm-filings-table tbody,
  .fca-nsm-filings-table tr,
  .fca-nsm-filings-table td {
    display: block;
    width: 100%;
  }

  .fca-nsm-filings-table tr {
    border-bottom: 1px solid #374151;
  }

  .fca-nsm-filings-table tr:last-child {
    border-bottom: 0;
  }

  .fca-nsm-filings-table td {
    display: grid;
    grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
    gap: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #1f2937;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }

  .fca-nsm-filings-table td::before {
    content: attr(data-label);
    color: #9ca3af;
    font-weight: 800;
  }

  .fca-nsm-filings-table td:last-child {
    border-bottom: 0;
  }
}
