/* ja/calculators/noise-db/styles.css */

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

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

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

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

.es009-bulk {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.72);
}

.es009-bulk summary {
  cursor: pointer;
  font-weight: 700;
}

.es009-bulk[open] summary {
  margin-bottom: 8px;
}

.es009-status {
  color: #334155;
}

.es009-status.is-ok {
  color: #14532d;
}

.es009-status.is-warn {
  color: #92400e;
}

.es009-status.is-error {
  color: #b91c1c;
}

.es009-muted {
  color: #475569;
}

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

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

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

.es009-panel {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.es009-levels {
  display: grid;
  gap: 10px;
}

.es009-level-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.es009-remove {
  white-space: nowrap;
}

.es009-geom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.es009-geom label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.es009-grid-2 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.es009-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

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

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

.es009-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

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

.es009-kpi-value {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 900;
}

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

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

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

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

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

.es009-chart-wrap {
  display: grid;
  gap: 10px;
}

.es009-chart-svg {
  max-width: 100%;
  height: auto;
}

.es009-chart-host {
  position: relative;
}

.es009-chart-bg {
  fill: rgba(148, 163, 184, 0.06);
}

.es009-grid {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1;
}

.es009-axis {
  stroke: rgba(51, 65, 85, 0.85);
  stroke-width: 1.4;
}

.es009-line {
  fill: none;
  stroke: #0b57d0;
  stroke-width: 2.2;
}

.es009-line-compare {
  fill: none;
  stroke: #d97706;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.es009-marker-ref {
  fill: #0f172a;
  stroke: #ffffff;
  stroke-width: 1.4;
}

.es009-marker-target {
  fill: #b91c1c;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.es009-marker-label {
  font-size: 12px;
  fill: rgba(15, 23, 42, 0.95);
  font-weight: 700;
}

.es009-hit {
  cursor: crosshair;
}

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

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

.es009-tooltip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  min-width: 150px;
}

.es009-tooltip-line {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .es009-kpi-grid {
    grid-template-columns: 1fr;
  }

  .es009-level-row {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-color-scheme: dark) {
  .es009-status {
    color: rgba(226, 232, 240, 0.85);
  }

  .es009-status.is-ok {
    color: #86efac;
  }

  .es009-status.is-warn {
    color: #fde68a;
  }

  .es009-status.is-error {
    color: #fecaca;
  }

  .es009-muted {
    color: rgba(226, 232, 240, 0.8);
  }

  .es009-tabs {
    background: rgba(148, 163, 184, 0.14);
  }

  .es009-tab {
    color: rgba(226, 232, 240, 0.9);
  }

  .es009-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
  }

  .es009-error {
    color: #fecaca;
  }

  .es009-kpi-item {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
  }

  .es009-bulk {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.45);
  }

  .es009-kpi-label {
    color: rgba(226, 232, 240, 0.8);
  }

  .es009-table {
    border-color: rgba(148, 163, 184, 0.25);
  }

  .es009-table th,
  .es009-table td {
    border-bottom-color: rgba(148, 163, 184, 0.25);
  }

  .es009-table th {
    color: rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.65);
  }

  .es009-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.4);
  }

  .es009-chart-bg {
    fill: rgba(148, 163, 184, 0.1);
  }

  .es009-grid {
    stroke: rgba(148, 163, 184, 0.28);
  }

  .es009-axis {
    stroke: rgba(226, 232, 240, 0.85);
  }

  .es009-line {
    stroke: #60a5fa;
  }

  .es009-line-compare {
    stroke: #f59e0b;
  }

  .es009-marker-ref {
    fill: #e2e8f0;
    stroke: rgba(15, 23, 42, 0.9);
  }

  .es009-marker-target {
    fill: #fca5a5;
    stroke: rgba(15, 23, 42, 0.9);
  }

  .es009-marker-label,
  .es009-axis-label,
  .es009-axis-title {
    fill: rgba(226, 232, 240, 0.92);
  }

  .es009-tooltip {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.95);
    color: rgba(226, 232, 240, 0.95);
  }
}
