/* 電気代計算：配置と使いやすさのための最小限の見た目（色はサイト全体の変数を使う） */
.sub-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.sub-nav a {
  font-size: 14px; text-decoration: none; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface);
}
.sub-nav a[aria-current=page] { background: var(--accent); color: #fff; border-color: var(--accent); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 14px; align-items: center; }
.quick .k { font-size: 13px; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.numtable td:not(:first-child), .numtable th:not(:first-child) { text-align: right; white-space: nowrap; }
.numtable th:first-child, .numtable td:first-child { white-space: nowrap; }
.numtable tr.best td { font-weight: 700; }
.sentence { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result .big { overflow-wrap: anywhere; }
details.box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 0 0 12px; }
details.box summary { font-size: 15px; }
.wd { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wd label { font-weight: 400; display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.bar { display: inline-block; height: 8px; background: var(--accent); border-radius: 4px; vertical-align: middle; }
.line-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 8px; }
.line-row .field { flex: 1 1 120px; margin: 0; }
.line-row .btn { margin-bottom: 4px; }
h2.sub { font-size: 18px; margin: 24px 0 8px; }
/* 精算表 */
.sheet input, .sheet select { padding: 6px 6px; font-size: 14px; min-width: 0; }
.sheet td { padding: 4px 3px; vertical-align: middle; }
.sheet .w-date { width: 9.5em; }
.sheet .w-yen { width: 6.5em; }
.sheet .w-way { width: 5.5em; }
.sheet td.amt { text-align: right; white-space: nowrap; font-weight: 600; }
.sheet .del { padding: 4px 8px; }
@media print {
  .sub-nav, .quick, .tabs { display: none !important; }
  .sheet input, .sheet select { border: none; background: none; padding: 0; }
}

/* スマホでは入力欄を2つずつ並べて、結果が早く目に入るようにする */
@media (max-width: 600px) { .row > .field { flex: 1 1 140px; min-width: 0; } .row > .field label { font-size: 13px; } }
