/* 販売王 販売実績 共有ページ（元気でんきブランド準拠・抜粋） */
:root {
  --orange: #eb6600; --charcoal: #333333; --warmgray: #f4f4f1;
  --line: #808080; --line-soft: #ededed; --border: #cccccc;
  --blue-soft: #e8f0fb; --muted: #666666;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif; color: var(--charcoal); background: var(--warmgray); font-size: 15px; line-height: 1.7; }
.num { font-family: Roboto, 'Noto Sans JP', sans-serif; }
.muted { color: var(--muted); }
.mini { font-size: 12px; color: var(--muted); }

.topbar { background: var(--charcoal); color: #fff; border-bottom: 3px solid var(--orange); padding: 10px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; color: #fff; }
.topbar img.logo { height: 26px; filter: brightness(0) invert(1); }
.today-label { font-size: 13px; color: #cfcfcf; font-family: Roboto, 'Noto Sans JP', sans-serif; }
.spacer { flex: 1; }

.wrap { max-width: 1400px; margin: 16px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 12px; font-size: 16px; border-left: 4px solid var(--orange); padding-left: 8px; }
.stock-h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-note { margin-top: 4px; }

/* ボタン */
.btn { background: var(--charcoal); color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.btn:hover { filter: brightness(0.95); }
.btn.ghost { background: #fff; color: var(--charcoal); border: 1px solid var(--border); }
.btn:disabled { opacity: 0.5; cursor: default; }
.stock-refresh { font-size: 12px; padding: 4px 12px; }
.stock-refresh:disabled { opacity: 0.6; cursor: default; }

/* 全拠点合計ブロック（一段大きく強調） */
.sales-total-block { margin-bottom: 14px; }
.sales-total-block .sales-store-h { color: var(--orange); font-size: 18px; }
.sales-total-block .sales-store-h .mini { font-size: 15px; }
.sales-total-block .tk-table-wrap { border: 2px solid var(--orange); }
.sales-total-block .tk-table td { font-size: 16px; }
.sales-total-block tr.stock-total td { font-size: 18px; }

footer { background: var(--charcoal); color: #cfcfcf; text-align: center; padding: 16px; font-size: 12px; margin-top: 32px; }
footer .num { color: #fff; }

/* タブ */
.tk-views { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.tk-views .pv { border: none; background: #fff; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); }
.tk-views .pv.active { background: var(--orange); color: #fff; font-weight: 700; }
.sales-tabs { margin: 4px 0 12px; }

/* テーブル */
.tk-table-wrap { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.tk-table { width: 100%; border-collapse: collapse; }
.tk-table th, .tk-table td { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.tk-table th { background: var(--warmgray); font-weight: 700; font-size: 12px; line-height: 1.2; color: var(--muted); }
.tk-table td.num, .tk-table th.num { text-align: right; font-family: Roboto, sans-serif; }
.price-table .price-cell { font-weight: 700; }
.price-table tr.stock-total td { border-top: 2px solid var(--border); font-weight: 700; font-size: 16px; background: var(--warmgray); }

/* 販売実績 3店グリッド */
.sales-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .sales-grid { grid-template-columns: 1fr; } }
.sales-store-h { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.sales-store-h .mini { font-weight: 400; font-size: 14px; color: var(--charcoal); }
.sales-amount { font-weight: 700; }
.sales-count { font-weight: 700; }
.sales-total-block .sales-amount, .sales-total-block .sales-count { color: var(--orange); }
