/* ja/calculators/ps-wave-distance/styles.css */

.es007-grid {
  display: grid;
  gap: 16px;
}

.es007-span-2 {
  grid-column: 1 / -1;
}

.es007-muted {
  color: #475569;
}

.es007-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.es007-field {
  display: grid;
  gap: 6px;
}

.es007-inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.es007-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  margin-bottom: 10px;
}

.es007-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}

.es007-tab.is-active {
  background: #0b57d0;
  color: #ffffff;
}

.es007-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.es007-error {
  color: #b91c1c;
  min-height: 1.2em;
}

.es007-form-error {
  margin-top: 2px;
}

.es007-warning {
  margin-bottom: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: pre-line;
}

.es007-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.es007-kpi {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.7);
}

.es007-kpi-label {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.es007-kpi-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.es007-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.es007-table th,
.es007-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.es007-table th {
  width: 44%;
  text-align: left;
  color: #475569;
  background: #f8fafc;
  font-weight: 700;
}

.es007-table tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.7);
}

.es007-table tr:last-child th,
.es007-table tr:last-child td {
  border-bottom: none;
}

.es007-chart {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.55);
}

.es007-chart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.es007-chart-bg {
  fill: rgba(255, 255, 255, 0.85);
  stroke: rgba(148, 163, 184, 0.25);
}

.es007-chart-svg .es007-grid {
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1;
}

.es007-axis {
  stroke: rgba(51, 65, 85, 0.7);
  stroke-width: 1.8;
}

.es007-line-p {
  stroke: rgba(30, 64, 175, 0.95);
  stroke-width: 2.5;
}

.es007-line-s {
  stroke: rgba(220, 38, 38, 0.92);
  stroke-width: 2.5;
  stroke-dasharray: 8 5;
}

.es007-line-d {
  stroke: rgba(15, 23, 42, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.es007-point-p {
  fill: rgba(30, 64, 175, 1);
}

.es007-point-s {
  fill: rgba(220, 38, 38, 1);
}

.es007-axis-label {
  fill: rgba(51, 65, 85, 0.85);
  font-size: 11px;
}

.es007-axis-title {
  fill: rgba(15, 23, 42, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.es007-legend-p {
  fill: rgba(30, 64, 175, 0.98);
  font-size: 12px;
  font-weight: 700;
}

.es007-legend-s {
  fill: rgba(220, 38, 38, 0.98);
  font-size: 12px;
  font-weight: 700;
}

.es007-legend-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(148, 163, 184, 0.45);
  stroke-width: 0.8;
}

.es007-status {
  min-height: 1.2em;
}

@media (min-width: 980px) {
  .es007-grid {
    grid-template-columns: minmax(340px, 460px) 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .es007-inline-2,
  .es007-kpi-grid {
    grid-template-columns: 1fr;
  }
}
