/* Sprint140: OpenDART company search and financial summary UI.
   Scope: official API panel only. No calculator formula or theme toggle changes. */
.s131-official-panel .s140-company-list,
.s131-official-panel .s140-candidate-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.s131-official-panel .s140-company-option,
.s131-official-panel .s140-company-card,
.s131-official-panel .s140-corp-candidate {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.s131-official-panel .s140-company-option strong,
.s131-official-panel .s140-company-card strong,
.s131-official-panel .s140-corp-candidate strong {
  display: block;
  color: #07111f !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.s131-official-panel .s140-company-option span,
.s131-official-panel .s140-company-card span,
.s131-official-panel .s140-corp-candidate span {
  display: block;
  color: #42526a !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.s131-official-panel .s140-company-card b,
.s131-official-panel .s140-corp-candidate b {
  color: #1e5bff;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.s131-official-panel .s140-company-empty,
.s131-official-panel .s140-empty,
.s131-official-panel .s140-company-loading {
  color: #263348 !important;
  background: #f8fbff;
  border: 1px dashed #b8c5d8;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.s131-official-panel .s140-dart-summary,
.s131-official-panel .s140-financial-summary {
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 16px;
  background: #ffffff;
  color: #0b1220;
  padding: 14px;
}

.s131-official-panel .s140-dart-head,
.s131-official-panel .s140-financial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.s131-official-panel .s140-dart-head strong,
.s131-official-panel .s140-financial-head strong {
  color: #07111f !important;
  font-size: 15px;
  font-weight: 950;
}

.s131-official-panel .s140-dart-head span,
.s131-official-panel .s140-financial-head span,
.s131-official-panel .s140-dart-note,
.s131-official-panel .s140-financial-summary p {
  color: #42526a !important;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.s131-official-panel .s140-dart-grid,
.s131-official-panel .s140-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s131-official-panel .s140-dart-grid > div,
.s131-official-panel .s140-financial-grid > div {
  background: #f5f8fd;
  border: 1px solid #d5deeb;
  border-radius: 12px;
  padding: 10px;
}

.s131-official-panel .s140-dart-grid b,
.s131-official-panel .s140-financial-grid span {
  display: block;
  color: #64748b !important;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.s131-official-panel .s140-dart-grid span,
.s131-official-panel .s140-financial-grid b {
  display: block;
  color: #07111f !important;
  font-size: 13px;
  font-weight: 950;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.s131-official-panel .s140-company-bits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.s131-official-panel .s140-company-bits span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4ff;
  color: #1744c8 !important;
  font-weight: 900;
  font-size: 11px;
}

.s131-official-panel .s140-financial-diagnosis {
  margin-top: 10px;
  border: 1px solid #d5deeb;
  background: #f8fbff;
  border-radius: 12px;
  padding: 10px 12px;
}

.s131-official-panel .s140-financial-diagnosis strong {
  color: #07111f !important;
}

.s131-official-panel .s140-financial-diagnosis ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.s131-official-panel .s140-financial-diagnosis li {
  color: #263348 !important;
  font-size: 12px;
  font-weight: 760;
  margin: 4px 0;
}

html[data-theme="dark"] .s131-official-panel .s140-company-option,
html[data-theme="dark"] .s131-official-panel .s140-company-card,
html[data-theme="dark"] .s131-official-panel .s140-corp-candidate,
html.dark .s131-official-panel .s140-company-option,
html.dark .s131-official-panel .s140-company-card,
html.dark .s131-official-panel .s140-corp-candidate,
body.dark .s131-official-panel .s140-company-option,
body.dark .s131-official-panel .s140-company-card,
body.dark .s131-official-panel .s140-corp-candidate {
  background: #14243a !important;
  border-color: #3d516c !important;
  color: #f8fafc !important;
  box-shadow: none;
}

html[data-theme="dark"] .s131-official-panel .s140-company-option strong,
html[data-theme="dark"] .s131-official-panel .s140-company-card strong,
html[data-theme="dark"] .s131-official-panel .s140-corp-candidate strong,
html.dark .s131-official-panel .s140-company-option strong,
html.dark .s131-official-panel .s140-company-card strong,
html.dark .s131-official-panel .s140-corp-candidate strong,
body.dark .s131-official-panel .s140-company-option strong,
body.dark .s131-official-panel .s140-company-card strong,
body.dark .s131-official-panel .s140-corp-candidate strong {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html[data-theme="dark"] .s131-official-panel .s140-company-option span,
html[data-theme="dark"] .s131-official-panel .s140-company-card span,
html[data-theme="dark"] .s131-official-panel .s140-corp-candidate span,
html.dark .s131-official-panel .s140-company-option span,
html.dark .s131-official-panel .s140-company-card span,
html.dark .s131-official-panel .s140-corp-candidate span,
body.dark .s131-official-panel .s140-company-option span,
body.dark .s131-official-panel .s140-company-card span,
body.dark .s131-official-panel .s140-corp-candidate span {
  color: #d5dee9 !important;
  -webkit-text-fill-color: #d5dee9 !important;
}

html[data-theme="dark"] .s131-official-panel .s140-dart-summary,
html[data-theme="dark"] .s131-official-panel .s140-financial-summary,
html.dark .s131-official-panel .s140-dart-summary,
html.dark .s131-official-panel .s140-financial-summary,
body.dark .s131-official-panel .s140-dart-summary,
body.dark .s131-official-panel .s140-financial-summary {
  background: #0f1b2d !important;
  border-color: #3d516c !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .s131-official-panel .s140-dart-grid > div,
html[data-theme="dark"] .s131-official-panel .s140-financial-grid > div,
html[data-theme="dark"] .s131-official-panel .s140-financial-diagnosis,
html.dark .s131-official-panel .s140-dart-grid > div,
html.dark .s131-official-panel .s140-financial-grid > div,
html.dark .s131-official-panel .s140-financial-diagnosis,
body.dark .s131-official-panel .s140-dart-grid > div,
body.dark .s131-official-panel .s140-financial-grid > div,
body.dark .s131-official-panel .s140-financial-diagnosis {
  background: #14243a !important;
  border-color: #3d516c !important;
}

html[data-theme="dark"] .s131-official-panel .s140-dart-grid b,
html[data-theme="dark"] .s131-official-panel .s140-financial-grid span,
html[data-theme="dark"] .s131-official-panel .s140-dart-head span,
html[data-theme="dark"] .s131-official-panel .s140-financial-head span,
html[data-theme="dark"] .s131-official-panel .s140-dart-note,
html[data-theme="dark"] .s131-official-panel .s140-financial-summary p,
html[data-theme="dark"] .s131-official-panel .s140-financial-diagnosis li,
html.dark .s131-official-panel .s140-dart-grid b,
html.dark .s131-official-panel .s140-financial-grid span,
html.dark .s131-official-panel .s140-dart-head span,
html.dark .s131-official-panel .s140-financial-head span,
html.dark .s131-official-panel .s140-dart-note,
html.dark .s131-official-panel .s140-financial-summary p,
html.dark .s131-official-panel .s140-financial-diagnosis li,
body.dark .s131-official-panel .s140-dart-grid b,
body.dark .s131-official-panel .s140-financial-grid span,
body.dark .s131-official-panel .s140-dart-head span,
body.dark .s131-official-panel .s140-financial-head span,
body.dark .s131-official-panel .s140-dart-note,
body.dark .s131-official-panel .s140-financial-summary p,
body.dark .s131-official-panel .s140-financial-diagnosis li {
  color: #d5dee9 !important;
  -webkit-text-fill-color: #d5dee9 !important;
}

html[data-theme="dark"] .s131-official-panel .s140-dart-grid span,
html[data-theme="dark"] .s131-official-panel .s140-financial-grid b,
html[data-theme="dark"] .s131-official-panel .s140-dart-head strong,
html[data-theme="dark"] .s131-official-panel .s140-financial-head strong,
html[data-theme="dark"] .s131-official-panel .s140-financial-diagnosis strong,
html.dark .s131-official-panel .s140-dart-grid span,
html.dark .s131-official-panel .s140-financial-grid b,
html.dark .s131-official-panel .s140-dart-head strong,
html.dark .s131-official-panel .s140-financial-head strong,
html.dark .s131-official-panel .s140-financial-diagnosis strong,
body.dark .s131-official-panel .s140-dart-grid span,
body.dark .s131-official-panel .s140-financial-grid b,
body.dark .s131-official-panel .s140-dart-head strong,
body.dark .s131-official-panel .s140-financial-head strong,
body.dark .s131-official-panel .s140-financial-diagnosis strong {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

@media (max-width: 720px) {
  .s131-official-panel .s140-dart-grid,
  .s131-official-panel .s140-financial-grid {
    grid-template-columns: 1fr;
  }
  .s131-official-panel .s140-dart-head,
  .s131-official-panel .s140-financial-head {
    display: block;
  }
}
