/* plugins/美股供應鏈掃描面板/frontend/supplyChainScan.css */
.scan-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.scan-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.scan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.scan-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scan-count {
  font-size: 13px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.scan-filter {
  width: 140px;
}
.scan-line-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-tw-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.scan-tw-label {
  font-size: 13px;
  color: var(--foreground);
  white-space: nowrap;
}
.scan-content {
  padding: 16px;
}
.scan-section {
  margin-bottom: 24px;
}
.scan-section:last-child {
  margin-bottom: 0;
}
.scan-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scan-section-gain {
  color: var(--chart-oceanBlue);
}
.scan-section-loss {
  color: var(--chart-cherryRed);
}
.scan-section-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}
.gain-arrow {
  border-bottom: 8px solid var(--chart-oceanBlue);
}
.loss-arrow {
  border-top: 8px solid var(--chart-cherryRed);
}
.scan-chart {
  margin-bottom: 12px;
  padding: 8px 0;
}
.scan-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  height: 24px;
}
.scan-bar-label {
  width: 56px;
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  text-align: right;
  flex-shrink: 0;
}
.scan-bar-track {
  flex: 1;
  height: 14px;
  background: var(--muted);
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
.scan-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
  min-width: 2px;
}
.scan-bar-value {
  width: 64px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  flex-shrink: 0;
}
.scan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.scan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scan-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.scan-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.scan-table tr:last-child td {
  border-bottom: none;
}
.scan-symbol {
  font-weight: 700;
  font-family: monospace;
  font-size: 13px;
}
.scan-price {
  font-family: monospace;
  font-size: 13px;
  color: var(--foreground);
  white-space: nowrap;
}
.scan-change {
  font-weight: 700;
  font-family: monospace;
}
.scan-change.gain {
  color: var(--chart-oceanBlue);
}
.scan-change.loss {
  color: var(--chart-cherryRed);
}
.scan-supplier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.scan-supplier-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  background: var(--tagBackground);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
}
.scan-supplier-rel {
  color: var(--muted-foreground);
  font-size: 11px;
}
.scan-no-supplier {
  color: var(--muted-foreground);
}
.scan-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.scan-empty-icon {
  margin-bottom: 16px;
}
.scan-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 8px 0;
}
.scan-empty-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}
.scan-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.scan-delete-btn:hover {
  background: var(--muted);
  color: var(--destructive);
}
.scan-add-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.scan-news-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scan-news-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.scan-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.scan-news-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}
.scan-news-body {
  padding: 10px 12px;
}
.scan-news-line {
  font-size: 13px;
  color: var(--foreground);
  line-height: 1.6;
  padding: 2px 0;
}
.scan-news-line + .scan-news-line {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 4px;
}
.scan-news-muted {
  color: var(--muted-foreground);
  font-size: 12px;
}
