/* JET Office 試作用 共通スタイル（配色は JET Clock 試作と同じ） */
:root {
  --navy: #1f2a44;
  --navy-2: #2a3756;
  --navy-sub: #aeb9cf;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #1f2933;
  --muted: #6b7684;
  --border: #e1e6ed;
  --primary: #14a3a3;
  --primary-press: #0f8686;
  --primary-soft: #e2f4f4;
  --ok: #12936f;
  --ok-soft: #e3f5ee;
  --warn: #7a5a00;
  --warn-soft: #fff4cc;
  --danger: #c93c3c;
  --danger-soft: #fdeaea;
  --g0: #6b7684; --g0-bg: #eef0f3;   /* 本社 */
  --g1: #ec7349; --g1-bg: #fdece5;   /* 人材サービス */
  --g2: #3f6fd8; --g2-bg: #e7eefc;   /* 物販 */
  --g3: #8a5cd6; --g3-bg: #f0e9fb;   /* 運営受託 */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: var(--primary-press); text-decoration: none; }
button { font: inherit; cursor: pointer; }

.demo-bar { background: #3b4252; color: #e5e9f0; font-size: 12px; padding: 6px 16px; display: flex; gap: 10px; align-items: center; }
.demo-bar select { font-size: 12px; padding: 2px 6px; border-radius: 6px; }

.app-header { background: var(--navy); color: #fff; height: 52px; display: flex; align-items: center; padding: 0 16px; gap: 16px; }
.app-header .brand { color: #fff; font-weight: 700; letter-spacing: .04em; display: flex; align-items: baseline; gap: 6px; }
.app-header .brand em { color: #5fd3cf; font-style: normal; }
.app-header .page { color: var(--navy-sub); font-size: 13px; }
.app-header .user { margin-left: auto; font-size: 13px; color: var(--navy-sub); }

.layout { display: flex; min-height: calc(100vh - 52px - 28px); }
.side { width: 210px; background: var(--surface); border-right: 1px solid var(--border); padding: 12px 0; flex-shrink: 0; }
.side .grp { font-size: 12px; color: #3d4754; padding: 14px 18px 5px; font-weight: 700; letter-spacing: .06em; margin-top: 6px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.side .grp::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--navy-sub); }
.side .grp + a { margin-top: 2px; }
.side a { padding-left: 27px !important; }
.side a { display: block; padding: 7px 18px; color: var(--text); font-size: 13px; border-left: 3px solid transparent; }
.side a:hover { background: var(--surface-2); }
.side a.on { border-left-color: var(--primary); background: var(--primary-soft); color: var(--primary-press); font-weight: 700; }
.side a.soon { color: #b0b8c3; pointer-events: none; }
.main { flex: 1; padding: 20px 24px 40px; min-width: 0; }

h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--muted); }

.btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 14px; color: var(--text); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--primary-press); }
select, input[type=text], input[type=number], input[type=date], input[type=month] {
  font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
input.num { text-align: right; font-variant-numeric: tabular-nums; width: 110px; }
label.f { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }

.tbl-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; background: #fff; }
.tbl th, .tbl td { border-bottom: 1px solid var(--border); padding: 6px 8px; white-space: nowrap; }
.tbl th { background: var(--surface-2); font-weight: 700; color: #3d4754; text-align: left; position: sticky; top: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.grp td { background: #f8f9fb; font-weight: 700; color: #3d4754; }
.tbl tr.sum td { font-weight: 700; background: #fafbfc; }
.tbl tr.child td:first-child { padding-left: 22px; color: var(--muted); }
.tbl tr.void td { color: #b0b8c3; text-decoration: line-through; }
.tbl tr:hover td { background: #f3f8f8; }
.tbl .neg { color: var(--danger); }
.tbl th.band { text-align: center; border-left: 2px solid #fff; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.tag.g0 { background: var(--g0-bg); color: var(--g0); }
.tag.g1 { background: var(--g1-bg); color: var(--g1); }
.tag.g2 { background: var(--g2-bg); color: var(--g2); }
.tag.g3 { background: var(--g3-bg); color: var(--g3); }
.tag.g9 { background: #f1f1f1; color: #9aa1aa; }
.chip { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ng { background: var(--danger-soft); color: var(--danger); }
.note { font-size: 12px; color: var(--muted); }
.alert { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
