/* ja/calculators/moment-magnitude-mw/styles.css */

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

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

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

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

.es015-status {
  color: #334155;
}

.es015-status.is-ok {
  color: #166534;
}

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

.es015-muted {
  color: #475569;
}

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

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

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

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

.es015-panel[hidden] {
  display: none;
}

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

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

.es015-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;
  margin-bottom: 10px;
}

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

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

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

.es015-kpi-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

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

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

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

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

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

.es015-step-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.es015-notes {
  margin: 0;
  padding-left: 18px;
}

.es015-disabled {
  opacity: 0.55;
}

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

  .es015-tabs {
    display: grid;
    border-radius: 12px;
  }

  .es015-tab {
    border-radius: 10px;
    text-align: left;
  }
}

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

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

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

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

  .es015-muted {
    color: rgba(226, 232, 240, 0.82);
  }

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

  .es015-tab {
    color: rgba(226, 232, 240, 0.92);
  }

  .es015-error {
    color: #fecaca;
  }

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

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

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

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

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

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

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