/* Cost Calculator — tool-specific styles.
   Layout, sidebar sections, inputs, tabs, result cards and the
   breakdown table come from shared/theme.css (body.mt-app). */

.input-panel { --panel-w: 360px; }

/* motor-type tabs: three labels, keep them on one line */
.mode-tab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.collapsible-header .section-title { flex: 1; }

/* ── Editable price tables (steel / magnet grades) ── */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}
.grade-table th {
  color: var(--text2);
  font-family: var(--sans);
  font-weight: 600;
  text-align: right;
  padding: 4px;
  border-bottom: 1px solid var(--border);
}
.grade-table th:first-child { text-align: left; }
.grade-table td { padding: 3px 4px; }
.ge-input {
  width: 100%;
  height: 30px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-align: right;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border-s);
  border-radius: var(--r-sm);
  padding: 0 6px;
  outline: none;
}
.ge-input.ge-grade { text-align: left; }
.ge-input:focus { border-color: var(--accent); background: var(--surface); }
.ge-del {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.ge-del:hover { color: var(--red); }
.add-row-btn {
  width: 100%;
  height: 32px;
  margin-top: 8px;
  background: none;
  border: 1px dashed var(--border-s);
  border-radius: var(--r-md);
  color: var(--text2);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.add-row-btn:hover { border-color: var(--accent); color: var(--accent); }
.price-table-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}
.price-table-group { margin-top: 12px; }
.price-table-cols .price-table-group,
.price-table-group:first-child { margin-top: 0; }
.price-table-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

/* ── Results ── */
.warning-box[hidden] { display: none; }
.result-card-body {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.25;
}

/* breakdown table: item names are words, not numbers */
.sweep-table td:first-child { font-family: var(--sans); }

/* pie chart */
.chart-wrap { position: relative; height: 260px; }
