/* 経営管理端（/keiei, /portal）の水色テーマ。
   nunokawa.css（緑）の色を水色に置き換えたもの＋経営画面の部品。乗務員・運行管理の画面は nunokawa.css のまま。 */
:root {
  --bg: #F2F8FB;
  --bg-deep: #E5EFF5;
  --surface: #fff;
  --ink: #072F45;
  --muted: #325467;
  --line: #D1E2EC;
  --primary: #2298DA;
  --primary-press: #167EB9;
  --text: #085C8B;
  --done: #053B5A;
  --tint: #E5F1F8;
  --danger: #B42318;
  --danger-hot: #C2362F;
  --danger-bg: #FDECEA;
  --amber: #7A4E00;
  --amber-bg: #FFF6DE;
  --mark: #F6E7A2;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --shadow: 0 1px 2px rgba(7, 47, 69, .04), 0 8px 24px rgba(7, 47, 69, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  color-scheme: light;
}
body.driver { background: var(--bg-deep); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--done); outline-offset: 2px; }
::selection { background: #C7E2F1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabular { font-variant-numeric: tabular-nums; }

.envbar {
  background: repeating-linear-gradient(-45deg, #F5C400 0 12px, #FFD84A 12px 24px);
  color: #3A2C00;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  padding: 6px 10px;
}
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
body.driver .app { box-shadow: 0 0 0 1px var(--line); }
.pad { padding: 8px 18px 32px; }
.pad > * + * { margin-top: 14px; }

.brandbar, .subbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 6px;
}
.mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; flex: none;
}
.brandbar strong, .subbar .co { font-size: 16px; }
.office { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 700; }
.back {
  width: 44px; height: 44px; margin-left: -8px;
  display: grid; place-items: center;
  color: var(--ink); text-decoration: none; border-radius: 12px;
}
h1 { font-size: 28px; font-weight: 800; letter-spacing: .01em; line-height: 1.3; }
.lede { color: var(--muted); font-size: 15px; }
.subbar h1 { font-size: 22px; }

.stephead { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; margin: 18px 0 8px; }
.stephead .n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.stepper { display: flex; gap: 8px; align-items: center; font-weight: 800; color: #83A1B2; font-size: 14px; }
.stepper .on { color: var(--text); }
.stepper .done { color: var(--primary); }
.savestate { color: var(--text); font-size: 13px; min-height: 1.2em; }
.savestate.ing { color: var(--amber); }
.savestate.fail { color: var(--danger); }

.combo {
  background: #fff; border: 2px solid var(--primary); border-radius: 14px;
  min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px;
}
.combo input {
  border: 0; flex: 1; min-width: 0; background: transparent;
  font-size: 18px; font-weight: 800; padding: 12px 0;
}
.combo input:focus { outline: none; }
.combo:focus-within { outline: 3px solid var(--done); outline-offset: 2px; }
.iconbtn {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; border-radius: 10px;
}
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.hint.bad { color: var(--danger); }
.listbox {
  margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: 320px; overflow: auto; padding: 6px;
}
.listbox .count { color: var(--muted); font-size: 13px; padding: 8px 10px; }
.listbox [role="option"] {
  width: 100%; text-align: left; border: 0; background: transparent;
  display: block; padding: 12px 10px; border-radius: 10px;
  font-weight: 800; font-size: 18px; cursor: pointer;
}
.listbox [role="option"].is-on,
.listbox [role="option"][aria-selected="true"] { background: var(--tint); }
.listbox mark { background: var(--mark); color: inherit; border-radius: 3px; }

.field { display: block; }
.field .label, .label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; margin-bottom: 6px;
}
.req, .opt {
  font-size: 11px; font-weight: 800; border-radius: 4px; padding: 1px 6px; color: #fff;
}
.req { background: var(--danger-hot); }
.opt { background: var(--text); }
.field input, .field select, .field textarea, .suffix input, .input, select.input, textarea.input {
  width: 100%; min-height: 52px;
  border: 2px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: #fff; font-size: 18px;
}
textarea.input, .field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .suffix input:focus, .input:focus {
  border-color: var(--primary); outline: 3px solid var(--done); outline-offset: 1px;
}
.reg { font-size: 28px; font-weight: 800; letter-spacing: .04em; }
.suffix { position: relative; }
.suffix span.unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 800; pointer-events: none;
}
.suffix input { padding-right: 64px; }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px;
  align-items: end;
}
.pair > .field { min-width: 0; }
.pair input, .pair select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  padding: 10px 6px;
}
.help, .card, .strip, .note, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.help { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.help b, .note b { color: var(--ink); display: block; }
.idcard { width: 72px; height: 54px; flex: none; }
.ex {
  display: inline-block; background: #F5C400; color: #3A2C00;
  font-size: 12px; font-weight: 800; border-radius: 4px; padding: 1px 6px; vertical-align: middle;
}
.pins { display: flex; gap: 10px; }
.pinbox {
  width: 64px; height: 64px; text-align: center; font-size: 28px;
  border-radius: 14px; border: 2px solid var(--line); background: #fff;
}
.pinbox.filled { border-color: var(--primary); }
.textlink {
  background: none; border: 0; padding: 8px 0; color: var(--text);
  font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.remember { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.remember input { width: 22px; height: 22px; accent-color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 20px;
  text-decoration: none; padding: 0 16px;
}
.btn:hover { background: #1A89C8; }
.btn:active { background: var(--primary-press); }
.btn:disabled { background: #B1CBDA; }
.btn.ghost {
  width: auto; min-height: 44px; background: #fff; color: var(--text);
  border: 2px solid var(--primary); font-size: 15px;
}
.btn.ghost.block { width: 100%; }
.btn.small, .row-actions .btn { width: auto; min-height: 40px; font-size: 14px; padding: 0 12px; }
.center { text-align: center; }
.veh-strong { font-weight: 800; font-size: 18px; }
.iconbtn.up { transform: rotate(180deg); }
.cam-top .iconbtn { color: #fff; }
.tablehead { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 14px; }
form.stack > .btn { margin-top: 4px; }

.error, .dangerbox {
  background: var(--danger-bg); color: var(--danger);
  border-radius: 14px; padding: 12px 14px; font-weight: 700;
}
.amber, .due-amber {
  background: var(--amber-bg); color: var(--amber); border-radius: 14px; padding: 14px;
}
.note { background: var(--tint); color: var(--text); }
.paycard p + p { margin-top: 6px; }
.paycard b { font-size: 22px; }
.action.record { min-height: 76px; }
.action.record .t { font-size: 20px; }
.action.record .icon:last-child { margin-left: auto; width: 22px; height: 22px; color: var(--muted); }
.tag.new { background: #5C4D9A; color: #fff; vertical-align: 2px; }
.monthnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; }
.monthnav a, .monthnav .is-off {
  min-width: 64px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px;
}
.monthnav .is-off { color: #83A1B2; }
.monthnav strong { font-size: 18px; }
.stats { display: grid; grid-template-columns: 1.15fr 1fr .72fr; gap: 8px; }
.stats p { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stats b { display: block; margin-top: 4px; color: var(--text); font-size: 18px; line-height: 1.2; }
.stats small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.record {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  text-decoration: none; color: inherit;
}
.record .meta { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.record .nums { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; }
.record .nums b { display: block; color: var(--text); font-size: 16px; }
.record > .icon { width: 20px; height: 20px; color: var(--muted); }
.payhero { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.payhero .big { margin: 4px 0; font-size: 36px; font-weight: 800; color: var(--text); line-height: 1.1; }
.note b { margin-bottom: 4px; }
.strip { background: var(--tint); border-color: transparent; }
.strip b { font-size: 16px; }
.done {
  background: var(--tint); border-radius: 16px; padding: 16px;
  display: flex; gap: 12px; align-items: center;
}
.tick {
  width: 36px; height: 36px; border-radius: 50%; background: var(--done); color: #fff;
  display: grid; place-items: center; flex: none;
}
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who .name { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; }
.who .date { color: var(--muted); margin-top: 2px; }
.section-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: 14px; }
.notice {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; text-decoration: none; color: inherit;
}
.notice .meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.notice b { display: block; }
.tag, .pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.tag.red, .pill.alert { background: var(--danger-bg); color: var(--danger); }
.tag.amber, .pill.wait { background: var(--amber-bg); color: var(--amber); }
.tag.ok, .pill.ok { background: var(--done); color: #fff; }
.pill.muted { background: #E6ECEF; color: var(--muted); }
.draftbar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--amber-bg); color: var(--amber); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; font-weight: 800;
}
.action {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 84px; border-radius: 16px; padding: 16px 18px;
  text-decoration: none; color: #fff; background: var(--primary); border: 0; text-align: left;
}
.action .t { display: block; font-size: 22px; font-weight: 800; }
.action .s { display: block; font-size: 14px; opacity: .92; }
.action.locked { background: #E2EBF0; color: #77909E; }
.action.quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.action .badge { margin-left: auto; background: var(--tint); color: var(--text); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.one { grid-template-columns: 140px; }
.shot {
  aspect-ratio: 1; border-radius: 12px; background: #123346; color: #fff;
  border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-weight: 800; position: relative; overflow: hidden; padding: 8px;
}
.shot .icon { width: 28px; height: 28px; }
.shot.filled { padding: 0; }
.shot.filled img { width: 100%; height: 100%; object-fit: cover; }
.shot-label, .shot-actions {
  position: absolute; left: 6px; right: 6px;
}
.shot-label { bottom: 6px; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 2px 6px; font-size: 12px; width: max-content; }
.shot-actions { top: 6px; display: flex; gap: 4px; }
.shot-actions button {
  border: 0; background: rgba(255, 255, 255, .92); color: var(--ink);
  border-radius: 8px; padding: 4px 6px; font-size: 12px; font-weight: 800;
}
.payline, .sumline {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.payline input { width: 140px; text-align: right; }
.sumline { border-bottom: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.kv { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 800; }
.prose { white-space: pre-wrap; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs figure { margin: 0; width: 96px; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #123346; }
.thumbs figcaption { font-size: 12px; color: var(--muted); }

.cam {
  position: fixed; inset: 0; z-index: 40; background: #07161F; color: #fff;
  display: flex; flex-direction: column; padding: 12px; gap: 12px;
}
.cam-top, .cam-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cam-stage { position: relative; flex: 1; min-height: 0; display: flex; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 12px; }
#stampLive {
  position: absolute; left: 12px; bottom: 12px; margin: 0;
  background: rgba(3, 32, 48, .72); color: #fff; padding: 8px 10px;
  border-radius: 8px; font-size: 12px; white-space: pre-wrap;
}
#shutter {
  width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff;
  background: var(--primary); color: #fff; font-weight: 800; margin: 0 auto 8px;
}

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  background: var(--bg); border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { display: flex; gap: 8px; align-items: center; padding: 4px 8px 8px; }
.side .brand small { display: block; color: var(--muted); font-size: 12px; }
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.sidenav a {
  display: flex; gap: 8px; align-items: center;
  text-decoration: none; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 800;
}
.sidenav a small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.sidenav a[aria-current="page"] { background: var(--done); color: #fff; }
.sidenav a[aria-current="page"] small { color: rgba(255, 255, 255, .8); }
.sidefoot { margin-top: auto; color: var(--muted); font-size: 13px; padding: 8px; }
.main { padding: 16px 20px 40px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.topbar h1 { font-size: 26px; }
.topbar .lead { color: var(--muted); font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.samplechip, .avatar {
  background: #F5C400; color: #3A2C00; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 13px;
}
.adminwho { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: var(--tint); color: var(--done); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi .k { color: var(--muted); font-size: 13px; font-weight: 800; }
.kpi .v { font-size: 32px; font-weight: 800; margin-top: 4px; line-height: 1.1; }
.kpi .v em { font-style: normal; font-size: 16px; margin-left: 2px; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.kpi.hot .v { color: var(--danger-hot); }
.toolbar, .tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs button {
  border: 0; background: transparent; font-weight: 800; color: var(--muted);
  border-bottom: 3px solid transparent; padding: 8px 10px; border-radius: 0;
}
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--primary); }
.tablewrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; }
table.data.wide { min-width: 1280px; }
table.data th, table.data td { padding: 10px; text-align: left; white-space: nowrap; }
table.data th { background: var(--tint); color: var(--text); font-weight: 800; position: sticky; top: 0; }
table.data td { border-top: 1px solid #E2EEF5; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-weight: 800; background: var(--tint); }
table.data tr.is-open td { background: #F6FAFD; }
table.data tr.row-red td { background: #FFF6F5; }
table.data tr.row-amber td { background: #FFFCF3; }
table.data a { font-weight: 800; }
.dash { color: #83A1B2; }
.due { border: 1px solid transparent; }
.due-red { background: var(--danger-bg); color: var(--danger); }
.due h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-bottom: 8px; }
.due ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.due li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.due a { color: inherit; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.flash { border-radius: 12px; padding: 10px 12px; background: var(--tint); color: var(--done); font-weight: 800; }
.flash.bad { background: var(--danger-bg); color: var(--danger); }
.modal {
  position: fixed; inset: 0; background: rgba(7, 22, 31, .45);
  display: grid; place-items: center; z-index: 30; padding: 18px;
}
.modal-card { background: #fff; border-radius: 16px; max-width: 860px; width: min(860px, 100%); max-height: 90vh; overflow: auto; padding: 16px; }
.modal-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checkline input { width: 20px; height: 20px; accent-color: var(--primary); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 5; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .sidenav { flex-direction: row; overflow-x: auto; }
  .sidenav a small, .sidefoot, .side .brand small { display: none; }
  .sidenav a { white-space: nowrap; }
  .grid2 { grid-template-columns: 1fr; }
  .main { padding: 12px; }
}
@media (max-width: 380px) {
  .pins { gap: 6px; }
  .pinbox { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* v0.02: 日付と時刻を1行に、バージョン表示 */
.kv dd.nowrap { white-space: nowrap; }
.kv:has(dd.nowrap) { grid-template-columns: 7em minmax(0, 1fr); }
@media (max-width: 374px) { .kv dd.nowrap { font-size: 14px; } }
.appver { margin: auto 0 0; padding: 8px 18px 14px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sidefoot .appver, .verline { padding: 0; margin: 4px 0 0; text-align: left; font-size: 12px; color: var(--muted); }

/* v0.02: 24時間の時刻入力、帰庫写真の案内 */
.time24 { display: flex; align-items: center; gap: 4px; }
.field .time24 select { flex: 1 1 0; min-width: 0; width: auto; padding: 12px 6px; text-align: center; text-align-last: center; font-variant-numeric: tabular-nums; }
.time24 .colon { font-weight: 800; font-size: 20px; }
.photo-remind { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #E5F1F8; border: 2px solid #2298DA; font-weight: 800; color: #043048; }

body.keiei { background: var(--bg); }
.keiei .main { padding: 18px 24px 40px; }
.keiei .topbar h1 { font-size: 26px; margin: 0; }
.keiei .topbar .lead { margin: 4px 0 0; }
.monthsw { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.monthsw button { border: 0; background: var(--tint); color: var(--text); font-weight: 800; border-radius: 8px; padding: 6px 10px; }
.monthsw button.off { background: transparent; color: #95ABB8; }
.monthsw b { padding: 0 10px; font-size: 16px; }
.kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.kpis.k7 .kpi { padding: 12px 12px; }
.kpis.k7 .kpi .k { font-size: 12px; min-height: 32px; }
.kpis.k7 .kpi .v { font-size: 19px; font-variant-numeric: tabular-nums; }
.kpis.k7 .kpi .sub { font-size: 11px; margin-top: 4px; }
.kpi.hl { border: 2px solid var(--primary); background: #F6FAFD; }
.kpi.hl .v { color: var(--done); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 14px; }
.panel h2 { font-size: 17px; margin: 0; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ph .sub, .sub { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.grid-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.grid-main .panel { margin-top: 14px; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.a { background: #2298DA; } .sw.b { background: #6CAFD4; }
table.flow { font-size: 13px; } table.flow td { padding: 6px 4px; }
table.flow tr.strong td { font-weight: 800; color: var(--done); border-top: 2px solid var(--primary); }
table.flow tr.muted td, .muted { color: var(--muted); }
table.alloc { font-size: 15px; } table.alloc td, table.alloc th { padding: 12px 14px; }
table.alloc td.num { font-size: 18px; font-weight: 800; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.toolbar { margin-bottom: 10px; justify-content: space-between; }
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-weight: 800; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--done); color: #fff; }
th.sorted { background: #D0E6F3 !important; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #EDF3F6; font-weight: 800; font-size: 12px; color: var(--muted); }
.rank.r1 { background: #E8B400; color: #fff; } .rank.r2 { background: #A6B0B5; color: #fff; } .rank.r3 { background: #C98B4E; color: #fff; }
td.barcell { position: relative; min-width: 170px; }
td.barcell .bar { position: absolute; left: 8px; top: 9px; bottom: 9px; background: #D9EAF4; border-radius: 4px; z-index: 0; }
td.barcell b { position: relative; z-index: 1; }
tr.low td { background: #FFFCF0; }
tr.avg td { background: #FFF6DE; font-weight: 800; color: #5A3D00; border-top: 0; }
.cmp { font-weight: 800; font-size: 12px; border-radius: 6px; padding: 1px 6px; }
.cmp.up { background: #D9EAF4; color: #053B5A; } .cmp.down { background: #FDECEA; color: #B42318; } .cmp.flat { background: #EDF0F2; color: #687A84; }
.grid-cost { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 14px; border-radius: 10px; width: 100%; }
.input.sm.num { text-align: right; width: 140px; font-variant-numeric: tabular-nums; }
.yen { position: relative; display: inline-block; }
.yen::before { content: "¥"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
table.cost td { vertical-align: middle; padding: 7px 10px; }
table.cost tr.unk td { background: #FFFCF0; }
.ok { color: var(--done); font-weight: 800; font-size: 12px; }
.chk { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.side-sum .kv { grid-template-columns: 7.5em 1fr; font-size: 14px; margin-top: 10px; }
.side-sum dd { text-align: right; font-variant-numeric: tabular-nums; }
tr.cur td { background: #F2F8FB; }
.dlgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dlcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dlcard span { color: var(--muted); font-size: 12.5px; }
.btn.small { min-height: 34px; padding: 4px 14px; font-size: 13px; width: auto; }
.tablewrap.flat { border: 0; border-radius: 0; }
.who { font-weight: 800; color: var(--ink); }
.zh { font-size: 12px; color: var(--muted); }
/* login */
.login-page .loginwrap { min-height: calc(100vh - 40px); display: grid; place-items: center; background: linear-gradient(160deg, #F2F8FB, #DFEDF5); }
.logincard { width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.logincard .brand { display: flex; gap: 10px; align-items: center; }
.logincard .brand small { display: block; color: var(--muted); font-size: 12px; }
.logincard h1 { font-size: 24px; margin: 8px 0 0; }
.logincard .lead { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.6; }
.logincard .note { background: var(--tint); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--done); line-height: 1.6; }
.logincard code { background: #fff; border-radius: 4px; padding: 0 4px; }
.logincard .foot { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }
.grid-main > * { min-width: 0; }
table.alloc th, table.flow td { white-space: normal; }
table.alloc td, table.alloc th { padding: 10px 10px; }
table.alloc td.num { font-size: 16px; }
.top-actions { flex: none; }
.monthsw, .samplechip { white-space: nowrap; }
.keiei .topbar > div:first-child { min-width: 0; }
table.cost { table-layout: fixed; }
table.cost td:first-child { white-space: normal; }
td.two small { color: var(--muted); font-size: 12px; }
.keiei table.data th { white-space: normal; vertical-align: bottom; }
table.rep th, table.rep td { padding: 9px 6px; font-size: 12.5px; white-space: nowrap; }
table.rep th small { font-weight: 700; }
table.cost .yen { display: block; }
table.cost .input.sm.num { width: 100%; padding-left: 22px; }
table.cost td:nth-child(4) { white-space: normal; }
.keiei table.data.rep th, .keiei table.data.rep td { white-space: nowrap; }
.keiei table.data.cost .input.sm.num { width: 100%; box-sizing: border-box; }
.keiei table.data.cost td { overflow: hidden; }
/* shared login */
.logincard h1 { font-size: 26px; letter-spacing: .02em; }
.logincard .field { display: block; font-weight: 800; position: relative; }
.logincard .zh { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.dd { display: flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fff; font-size: 18px; }
.dd.open, .dd.chosen { border-color: var(--primary); }
.dd .ph { color: #83A1B2; font-weight: 600; }
.dd .rl { font-weight: 800; }
.dd .caret { margin-left: auto; color: var(--muted); }
.ddlist { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 2px solid var(--primary); border-radius: 14px; box-shadow: 0 12px 30px rgba(7, 47, 69,.18); overflow: hidden; z-index: 5; }
.ddlist .role { color: var(--ink); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 4px; align-items: baseline; }
.ddlist .role + .role { border-top: 1px solid var(--line); }
.ddlist .role b { font-size: 17px; }
.ddlist .role small { grid-column: 1 / -1; color: var(--muted); font-weight: 600; font-size: 12px; margin-top: 2px; }
.ddlist .role:nth-child(3) { background: var(--tint); }
.btn[disabled] { opacity: .45; }
.input.pw { letter-spacing: .2em; }
/* permissions */
.keiei table.perm { table-layout: fixed; width: 100%; }
.keiei table.perm th, .keiei table.perm td { text-align: center; vertical-align: middle; white-space: normal; padding: 14px 8px; }
.keiei table.perm th.role { text-align: left; width: 150px; }
.keiei table.perm th small.zh, .keiei table.perm th.role small.zh { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin: 2px 0 0; }
.keiei table.perm .where { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.keiei table.perm th.sens, .keiei table.perm td:nth-child(n+5) { background: #F3F7F9; }
.keiei table.perm thead th.sens { background: #D8E9F3; }
.pm .sym, .legend2 .s { font-size: 22px; font-weight: 900; line-height: 1; display: inline-block; }
.pm small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.pm.ok .sym, .legend2 .ok { color: #1089CD; }
.pm.view .sym, .legend2 .view { color: #B7791F; }
.pm.ng .sym, .legend2 .ng { color: #C53030; }
.pm.na .sym, .legend2 .na { color: #96A9B3; }
.legend2 { display: flex; gap: 16px; font-size: 13px; font-weight: 700; align-items: center; }
.legend2 .s { font-size: 16px; margin-right: 2px; }
.pnotes { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-weight: 700; line-height: 1.6; }
.pnotes small.zh { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* 経営: 水色テーマの濃色を少し明るく（白文字のコントラストは確保） */
body.keiei, body.login-page { --done: #0E6A9E; }
/* v1.1: 大きいKPI（2段×3枚）とパートナー分配カード */
.kpis.k6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpis.k6 .kpi { padding: 20px 24px 18px; border-radius: 18px; }
.kpis.k6 .kpi .k { font-size: 16px; font-weight: 800; }
.kpis.k6 .kpi .v { font-size: 40px; font-weight: 900; margin-top: 6px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis.k6 .kpi .sub { font-size: 13px; margin-top: 6px; }
.kpis.k6 .kpi.hl { border: 2px solid var(--primary); background: #F4FAFE; }
.pcards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pcard { border: 2px solid var(--line); border-radius: 16px; padding: 16px 20px; background: #fff; }
.pcard.total { background: var(--tint); border-color: transparent; }
.pc-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.pc-h b { font-size: 22px; }
.pc-h .pct { font-size: 20px; font-weight: 900; color: var(--done); }
.pc-amt { display: grid; gap: 10px; }
.pc-amt .k { font-size: 13px; color: var(--muted); font-weight: 800; display: flex; gap: 6px; align-items: center; }
.pc-amt .v { font-size: 38px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-amt .v.sm { font-size: 28px; color: var(--text); }
.flowpanel { margin-top: 14px; } .flowpanel table.flow { max-width: 760px; }
/* 日の種別の色（平日=白/グレー、土曜=水色、日曜・祝日=薄い赤） */
.sw.wd { background: #D3DAE0; border: 1px solid #9AA7B2; } .sw.sat { background: #A8D2FF; border: 1px solid #3F86D9; } .sw.hol { background: #F8B9B9; border: 1px solid #D9605F; }
.legend { font-size: 13px; font-weight: 700; gap: 8px; } .legend .sw { margin-left: 6px; }
.cal-t { font-size: 15px; margin: 14px 0 8px; } .cal-t small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 800; color: #4A5866; padding: 2px 0; }
.cal-h.sat { color: #1D5FAE; } .cal-h.hol { color: #B42318; }
.cal-c { border: 1px solid #DDE3E8; border-radius: 10px; padding: 6px 10px; background: #fff; display: flex; justify-content: space-between; align-items: baseline; min-height: 40px; font-variant-numeric: tabular-nums; }
.cal-c.empty { border: 0; background: transparent; }
.cal-c.wd { background: #FFFFFF; }
.cal-c.sat { background: #E3F0FF; border-color: #8DBDF0; }
.cal-c.hol { background: #FDE8E8; border-color: #F0A8A8; }
.cal-c .dn { font-size: 13px; font-weight: 800; color: #4A5866; display: flex; flex-direction: column; line-height: 1.15; }
.cal-c.sat .dn { color: #1D5FAE; } .cal-c.hol .dn { color: #B42318; }
.cal-c .dn em { font-style: normal; font-size: 10px; font-weight: 700; }
.cal-c b { font-size: 17px; font-weight: 800; } .cal-c b small { font-size: 11px; margin-left: 1px; color: var(--muted); }
.cal-c .pend { font-size: 11px; color: #9AA7B2; }
/* 共通ログインの選択ボタン（本番用） */
.logincard .field > span:first-child { display: block; }
button.dd { width: 100%; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.ddlist .role { cursor: pointer; }
.ddlist .role.hover, .ddlist .role[aria-selected="true"] { background: var(--tint); }
.ddlist .role:nth-child(3):not([aria-selected="true"]):not(.hover) { background: #fff; }
.logincard form { display: flex; flex-direction: column; gap: 12px; }
.logincard .appver { margin-top: 4px; }
/* 本番用の補足 */
.monthsw a.mbtn, .monthsw span.mbtn { border: 0; background: var(--tint); color: var(--text); font-weight: 800; border-radius: 8px; padding: 6px 10px; text-decoration: none; font-size: 14px; }
.monthsw span.mbtn.off { opacity: .4; }
table.cost col.c1 { width: 23%; } table.cost col.c2 { width: 29%; } table.cost col.c3 { width: 20%; } table.cost col.c4 { width: 15%; } table.cost col.c5 { width: 13%; }
.keiei .row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.keiei .row-actions a.btn { text-decoration: none; }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; max-width: 640px; }
.pform .row-actions { grid-column: 1 / -1; }
.readout { font-size: 22px; font-weight: 800; padding: 8px 0; }
.settings-k + .panel { margin-top: 14px; }
.keiei .flowpanel .ph { display: flex; justify-content: space-between; align-items: center; }

/* ---------- v0.04 日別明細・クリックできるカレンダー・日付ピッカー・時間あたり売上（デザイン案 keiei mock v2.3 より） */
.muted-v{color:#9AA7B2!important}
.newtag{display:inline-block;margin-left:10px;font-size:12px;font-weight:800;color:#fff;background:#2298DA;border-radius:999px;padding:2px 10px;vertical-align:2px}
.lg-warn{margin-left:8px;color:#7A4E00;background:#FFF6DE;border-radius:6px;padding:1px 6px;font-weight:800}
a.cal-c{text-decoration:none;color:inherit;position:relative;cursor:pointer}
a.cal-c .go{position:absolute;right:6px;top:3px;font-size:13px;font-weight:900;color:#2298DA}
a.cal-c b{margin-right:6px;margin-top:10px}
a.cal-c:hover,a.cal-c:focus-visible{border:2px solid #072F45;box-shadow:0 4px 14px rgba(7,47,69,.18);transform:translateY(-1px)}
a.cal-c:hover .go{color:#072F45}
a.cal-c:hover::after{content:"日別明細を見る ›";position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);white-space:nowrap;background:#072F45;color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:8px}
.cal-c .warn{display:inline;margin-left:6px;font-style:normal;font-size:13px;color:#B7791F;font-weight:900}
a.cal-c.ng{box-shadow:inset 0 0 0 2px #F0C35A}
a.cal-c .dn{flex-direction:row!important;align-items:baseline}
div.cal-c .dn{flex-direction:column!important;display:flex}
.cal-c .pend{white-space:nowrap}
.cal-c{min-height:46px}
/* 日別一覧: 金額は円で正確に表示（6桁でも折り返さない）。日付・⚠・祝日名は上の行、金額は下の行の右寄せ。 */
a.cal-c{flex-direction:column;align-items:stretch;justify-content:space-between;gap:4px;padding:5px 8px 6px;min-height:54px;container-type:inline-size}
a.cal-c .go{line-height:1}
a.cal-c .dn{padding-right:12px;min-width:0;white-space:nowrap}
a.cal-c .dn em{overflow:hidden;text-overflow:ellipsis;min-width:0;margin-left:4px;align-self:center}
a.cal-c .warn{margin-left:4px}
a.cal-c b.amt{margin:0;text-align:right;white-space:nowrap;font-size:16px;letter-spacing:-.01em;line-height:1.1}
@container (max-width: 92px){a.cal-c b.amt{font-size:14px}}
@container (max-width: 78px){a.cal-c b.amt{font-size:12px;letter-spacing:-.02em}}
@container (max-width: 66px){a.cal-c b.amt{font-size:11px;letter-spacing:-.03em}}
@container (max-width: 56px){a.cal-c b.amt{font-size:10px;letter-spacing:-.04em}}
.mini{display:inline-block;color:#2298DA;font-weight:900}
.howto{display:grid;grid-template-columns:1.4fr 1.2fr .8fr;gap:10px;margin-top:12px}
.howto>div{background:#F4FAFE;border:1px solid #D1E2EC;border-radius:12px;padding:10px 12px;font-size:12.5px;color:#325467;line-height:1.55}
.howto b{display:block;color:#072F45;font-size:13px;margin-bottom:2px}
/* day page */
.topbar>div:first-child{flex:1;min-width:0}
.backlink{display:inline-block;font-size:13.5px;font-weight:800;text-decoration:none;color:#085C8B;margin-bottom:4px;white-space:nowrap}
.topbar h1{display:flex;align-items:center;gap:10px;white-space:nowrap}
.dtype{font-size:13px;font-weight:800;border-radius:8px;padding:3px 10px}
.dtype.hol{background:#F8B9B9;color:#8F1B12}.dtype.sat{background:#A8D2FF;color:#1D5FAE}.dtype.wd{background:#E7ECF0;color:#4A5866}
.daynav{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px}
.daynav .mbtn{text-decoration:none;background:var(--tint);color:var(--text);font-weight:800;border-radius:8px;padding:5px 10px;font-size:13.5px;display:flex;flex-direction:column;align-items:center;line-height:1.15;white-space:nowrap}
.daynav .mbtn small{font-size:10px;color:#7B92A1;font-weight:700}
.alertbar{background:#FFF6DE;border:2px solid #E3B341;color:#5C3B00;border-radius:14px;padding:12px 16px;margin-bottom:14px;font-size:14.5px;line-height:1.6}
.alertbar b{color:#7A4E00}
.daykpi{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.6fr);gap:14px}
.kpi.hero{background:linear-gradient(160deg,#2298DA,#167EB9);color:#fff;border:0;border-radius:20px;padding:20px 24px;display:flex;flex-direction:column;box-shadow:0 8px 24px rgba(34,152,218,.28)}
.kpi.hero .k{color:#E5F4FD;font-size:17px;font-weight:900;display:flex;align-items:center;gap:8px}
.kpi.hero .k .icon{width:22px;height:22px;stroke:#fff}
.keytag{background:#FFD84A;color:#3A2C00;font-size:11.5px;font-weight:900;border-radius:999px;padding:1px 9px}
.kpi.hero .v{font-size:64px;font-weight:900;line-height:1.05;margin-top:12px;letter-spacing:-.015em;font-variant-numeric:tabular-nums;white-space:nowrap}
.kpi.hero .v em{font-style:normal;font-size:22px;margin-left:4px;font-weight:800;color:#E5F4FD}
.kpi.hero .sub{color:#E5F4FD;font-size:13px;margin-top:8px}
.kpi.hero .cmp{margin-top:auto;padding-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.kpi.hero .cmp span{background:rgba(255,255,255,.18);border-radius:8px;padding:3px 10px;font-size:13px;font-weight:800}
.kpis.k4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kpis.k4 .kpi{padding:14px 18px;border-radius:16px}
.kpis.k4 .kpi .k{font-size:14.5px;font-weight:800}
.kpis.k4 .kpi .v{font-size:32px;font-weight:900;margin-top:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kpis.k4 .kpi .sub{font-size:12px;margin-top:4px}
.kpis.k4 .kpi.hl{background:#F4FAFE;border:2px solid #2298DA}
.daystrip{display:grid;grid-template-columns:repeat(7,1fr);background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:12px;overflow:hidden}
.daystrip>div{padding:9px 14px;border-left:1px solid var(--line)}
.daystrip>div:first-child{border-left:0}
.daystrip span{display:block;font-size:12px;color:var(--muted);font-weight:800}
.daystrip b{font-size:18px;font-variant-numeric:tabular-nums}
table.rtab{width:100%;border-collapse:collapse}
table.rtab th,table.rtab td{padding:9px 8px;border-bottom:1px solid #EEF3F6;font-size:14px;white-space:nowrap;text-align:left}
table.rtab th{font-size:12px;color:var(--muted);font-weight:800;background:#F7FBFD}
table.rtab .num{text-align:right;font-variant-numeric:tabular-nums}
table.rtab th.perh{background:#2298DA;color:#fff;font-size:13px;border-radius:8px 8px 0 0}
table.rtab td.perh{background:#E5F1F8;border-left:2px solid #2298DA;border-right:2px solid #2298DA}
table.rtab td.perh b{font-size:20px;color:#053B5A}table.rtab td.perh small{font-size:11px;color:var(--muted);margin-left:2px}
table.rtab tbody tr:last-child td.perh{border-bottom:2px solid #2298DA}
table.rtab tr.ng td:first-child{box-shadow:inset 4px 0 0 #E3B341}
.door.sm{background:#072F45;color:#fff;border-radius:6px;padding:1px 7px;font-weight:800;font-size:13px}
.okt{color:#053B5A;font-weight:900}
.sech{display:flex;align-items:baseline;justify-content:space-between;margin:20px 2px 0}
.sech h2{font-size:18px;margin:0}
.panel.rep{padding:0;overflow:hidden}
.panel.rep.ng{border:2px solid #E3B341}
.rep-h{display:flex;align-items:center;gap:18px;padding:12px 18px;background:#F4FAFE;border-bottom:1px solid var(--line)}
.panel.rep.ng .rep-h{background:#FFFBEF}
.who2{display:flex;align-items:baseline;gap:10px}
.who2 .no{font-size:13px;color:var(--muted);font-weight:800}
.who2 .nm{font-size:22px;font-weight:900}
.who2 .code{font-size:12.5px;color:var(--muted);font-weight:700;background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 7px}
.veh{font-size:16px;font-weight:800;display:flex;align-items:center;gap:8px}
.veh .door{background:#072F45;color:#fff;border-radius:8px;padding:2px 10px;font-size:18px;font-variant-numeric:tabular-nums}
.perh-chip{background:#2298DA;color:#fff;border-radius:10px;padding:3px 12px;font-size:12.5px;font-weight:800}
.perh-chip b{font-size:18px;margin-left:4px}.perh-chip small{font-size:11px;margin-left:1px}
.rep-h .status{margin-left:auto;display:flex;align-items:center;gap:8px}
.st{font-weight:900;border-radius:999px;padding:4px 12px;font-size:14px}
.st.ng{background:#B7791F;color:#fff}.st.ok{background:#E5F1F8;color:#053B5A;border:1px solid #9CCBE8}
.st-note{font-size:12.5px;color:#7A4E00;font-weight:700}
.rep-g{display:grid;grid-template-columns:1fr 1.05fr 1.15fr}
.rep-g .col{padding:14px 18px;border-left:1px solid var(--line)}
.rep-g .col:first-child{border-left:0}
.rep-g h3{font-size:13px;color:var(--muted);margin:0 0 6px;font-weight:800}
.rep-g h3:not(:first-child){margin-top:14px}
.rep-g .kv{display:grid;grid-template-columns:auto 1fr;gap:3px 14px;margin:0;align-items:baseline}
.rep-g .kv dt{color:var(--muted);font-size:13px;font-weight:700}
.rep-g .kv dd{margin:0;text-align:right;font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.rep-g .kv dd.big{font-size:20px;color:#053B5A}
.rep-g .kv dt.hl{color:#085C8B;font-weight:900}.rep-g .kv dd.hl{color:#167EB9}.rep-g .kv dd small{font-size:11px;color:var(--muted)}
.thumbs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ph-thumb{height:92px;border:1.5px dashed #9CCBE8;border-radius:10px;background:repeating-linear-gradient(45deg,#F4FAFE 0 8px,#EAF4FA 8px 16px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#325467;text-align:center}
.ph-thumb .icon{width:24px;height:24px;stroke:#2298DA}
.ph-thumb b{font-size:12.5px}.ph-thumb small{font-size:10.5px;color:#7B92A1}
table.pay,.rep-g table.flow{width:100%;border-collapse:collapse}
table.pay td,.rep-g table.flow td{padding:5px 2px;border-bottom:1px solid #EEF3F6;font-size:14px}
table.pay td.num,.rep-g table.flow td.num{text-align:right;font-weight:800;font-variant-numeric:tabular-nums;font-size:15.5px}
table.pay tr.zero td{color:#A9B7C1}table.pay tr.zero td.num{font-weight:600}
table.pay tr.sum td{border-top:1.5px solid #9CCBE8;background:#F7FBFD;font-weight:800}
table.pay tr.diff td{background:#FFF1D6;color:#7A4E00;font-weight:900;font-size:15px}
table.pay tr.diff td.num{font-size:18px;color:#B42318}
table.pay tr.okrow td{color:#053B5A;font-weight:800;background:#EEF7FC}
table.pay tr.etc td{color:#325467;border-bottom:0;padding-top:10px;font-size:13px}
.rep-g table.flow tr.strong td{border-top:2px solid #2298DA;font-weight:900;color:#053B5A;font-size:15.5px}
.rep-g table.flow tr.strong td.num{font-size:20px}
.drvbox{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;background:#F4FAFE;border:1px solid var(--line);border-radius:10px;padding:8px 12px}
.drvbox span{font-size:13px;font-weight:800;color:var(--muted)}.drvbox b{font-size:20px;font-variant-numeric:tabular-nums}
.altcalc{margin-top:10px;background:#FFFBEF;border:1px dashed #E3B341;border-radius:10px;padding:8px 12px;font-size:12.5px;color:#5C3B00;line-height:1.55}
.altcalc b,.altcalc span,.altcalc small{display:block}.altcalc span{font-weight:800;font-variant-numeric:tabular-nums}.altcalc small{color:#8A6A2A}
.footnav{display:flex;justify-content:space-between;margin-top:16px}
.footnav .btn{text-decoration:none;display:inline-flex;align-items:center}
/* date picker */
.picker{position:relative}
.pk-face{display:flex;align-items:center;gap:6px;background:#fff;border:2px solid #2298DA;border-radius:12px;padding:6px 12px;font-weight:800;font-size:14.5px;color:#053B5A;white-space:nowrap;cursor:pointer}
.pk-face .icon{width:18px;height:18px;stroke:#2298DA}
.pk-face .caret{color:#2298DA;margin-left:2px}
.picker.open .pk-face{background:#E5F1F8}
.pk-pop{position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 6px);z-index:20;width:330px;background:#fff;border:1px solid #9CCBE8;border-radius:14px;box-shadow:0 12px 32px rgba(7,47,69,.22);padding:12px}
.pk-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.pk-top b{font-size:15px}.pk-m{background:#E5F1F8;color:#085C8B;font-weight:900;border-radius:8px;padding:2px 10px}.pk-m.off{background:transparent;color:#B9C9D3}
.pk-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.pk-h{text-align:center;font-size:11px;font-weight:800;color:#4A5866}.pk-h.sat{color:#1D5FAE}.pk-h.hol{color:#B42318}
.pk-d{position:relative;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;border:1px solid #DDE3E8;background:#fff;color:#4A5866;font-variant-numeric:tabular-nums}
.pk-d.sat{background:#E3F0FF;border-color:#8DBDF0;color:#1D5FAE}.pk-d.hol{background:#FDE8E8;border-color:#F0A8A8;color:#B42318}
.pk-d.none{opacity:.38;font-weight:600}.pk-d.fut{opacity:.2}
.pk-d.has{border-width:2px}
.pk-d u{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:#2298DA}
.pk-d i{position:absolute;top:-3px;right:-2px;font-style:normal;font-size:11px;color:#B7791F;background:#FFF6DE;border-radius:6px;padding:0 2px;line-height:1.3}
.pk-d.sel{outline:3px solid #072F45;outline-offset:1px}
.pk-lg{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:10px;font-size:11.5px;color:#325467;font-weight:700}
.pk-lg u{display:inline-block;width:5px;height:5px;border-radius:50%;background:#2298DA;margin-right:4px;vertical-align:1px}
.pk-lg .g{color:#9AA7B2}.pk-lg .w{color:#7A4E00}
.pk-ft{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #E2EEF5;font-size:12px;color:#325467;font-weight:700}
.pk-in{border:1.5px solid #D1E2EC;border-radius:8px;padding:4px 8px;font-weight:800;color:#072F45}
.pk-btn{margin-left:auto;background:#2298DA;color:#fff;border-radius:8px;padding:4px 10px;font-weight:800}
/* v2.3 mode switch + period/list mode */
.modesw{display:inline-flex;margin-left:14px;background:#E5EFF5;border-radius:10px;padding:3px;gap:2px}
.modesw a{font-size:13px;font-weight:800;text-decoration:none;color:#325467;padding:4px 12px;border-radius:8px}
.modesw a.on{background:#fff;color:#053B5A;box-shadow:0 1px 3px rgba(7,47,69,.18)}
.fbar{display:flex;align-items:flex-end;gap:18px;margin-top:0;margin-bottom:14px;position:relative;z-index:5}
.fgrp label{display:block;font-size:12px;font-weight:800;color:var(--muted);margin-bottom:4px}
.fdd{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:170px;border:2px solid #D1E2EC;border-radius:10px;padding:7px 12px;font-weight:800;font-size:14.5px;background:#fff}
.fdd .caret{color:#2298DA}
.fdd.open{border-color:#2298DA;background:#F4FAFE}
.fdd-pop{position:absolute;left:-2px;top:calc(100% + 6px);width:260px;background:#fff;border:1px solid #9CCBE8;border-radius:12px;box-shadow:0 12px 32px rgba(7,47,69,.22);padding:6px;z-index:30}
.fdd-o{position:relative;padding:8px 10px;border-radius:8px}
.fdd-o b{display:block;font-size:14.5px}.fdd-o small{font-size:11.5px;color:var(--muted);font-weight:700}
.fdd-o.on{background:#E5F1F8}.fdd-o .chk{position:absolute;right:10px;top:12px;color:#2298DA;font-weight:900}
.fdd-note{font-size:11px;color:#7B92A1;padding:6px 10px 2px;border-top:1px solid #EEF3F6;margin-top:4px}
.prange{display:flex;align-items:center;gap:6px}
.pdate{display:flex;align-items:center;gap:6px;border:2px solid #D1E2EC;border-radius:10px;padding:7px 10px;font-weight:800;font-size:14.5px;background:#fff;white-space:nowrap}
.pdate .icon{width:16px;height:16px;stroke:#2298DA}
.til{color:var(--muted);font-weight:800}
.fgrp.per{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:end}
.fgrp.per label{grid-column:1/-1}
.qbs{display:flex;gap:4px}
.qb{border:1.5px solid #9CCBE8;border-radius:8px;padding:6px 10px;font-size:13px;font-weight:800;color:#085C8B;background:#fff;white-space:nowrap}
.qb.on{background:#2298DA;border-color:#2298DA;color:#fff}
.fres{margin-left:auto;text-align:right;line-height:1.35}
.fres b{display:block;font-size:16px}.fres small{display:block;font-size:12px;color:var(--muted);font-weight:700}.fres a{font-size:12.5px;font-weight:800}
.daykpi.pk6{grid-template-columns:minmax(0,1fr) minmax(0,1.9fr)}
.kpis.k5{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.kpis.k5 .kpi{padding:14px 18px;border-radius:16px}
.kpis.k5 .kpi.c2{grid-column:span 2}.kpis.k5 .kpi.c3{grid-column:span 3}
.kpis.k5 .kpi .k{font-size:14.5px;font-weight:800}
.kpis.k5 .kpi .v{font-size:30px;font-weight:900;margin-top:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kpis.k5 .kpi .v em{font-style:normal;font-size:15px;margin:0 2px;color:var(--muted)}
.kpis.k5 .kpi .sub{font-size:12px;margin-top:4px}
.kpis.k5 .kpi.hl{background:#F4FAFE;border:2px solid #2298DA}
.daykpi.pk6 + .panel{margin-top:14px}
.dpill{display:inline-block;font-weight:800;border-radius:8px;padding:2px 9px;font-size:13.5px;border:1px solid #DDE3E8;background:#fff;color:#4A5866}
.dpill.sat{background:#A8D2FF;border-color:#3F86D9;color:#1D5FAE}.dpill.hol{background:#F8B9B9;border-color:#D9605F;color:#8F1B12}
table.ptab tr.link td{cursor:pointer}
table.ptab tr.link:hover td{background:#F4FAFE}
table.ptab tr.link:hover td.perh{background:#D6EAF6}
table.ptab td.go{color:#2298DA;font-weight:900;font-size:18px;text-align:center}
table.ptab tr.link:hover td.go{color:#072F45}
table.ptab tr.tot td{font-weight:900;background:#F7FBFD;border-top:2px solid #9CCBE8}
table.ptab tr.tot td.perh{background:#D6EAF6}
.stn{display:block;font-size:11px;color:#7A4E00;font-weight:700;margin-left:6px}
.fres{white-space:nowrap}.fdd{min-width:150px}

/* v0.04 実装用の追加 */
.pdate input{border:0;font:inherit;font-weight:800;color:#072F45;background:transparent;padding:0}
.fsel{min-width:150px;border:2px solid #D1E2EC;border-radius:10px;padding:7px 12px;font-weight:800;font-size:14.5px;background:#fff;color:#072F45}
.fsel:focus{border-color:#2298DA;outline:0}
button.qb{cursor:pointer;font:inherit;font-size:13px;font-weight:800}
button.pk-face{font:inherit;font-weight:800}
.pk-pop[hidden]{display:none}
button.pk-m,button.pk-btn{border:0;cursor:pointer;font:inherit;font-weight:900}
a.pk-d{text-decoration:none;cursor:pointer}
.pk-in{font:inherit;font-weight:800}
.ph-thumb.real{padding:0;overflow:hidden;border-style:solid;background:#F4FAFE;text-decoration:none;position:relative}
.ph-thumb.real img{width:100%;height:100%;object-fit:cover;display:block}
.ph-thumb.real b{position:absolute;left:6px;bottom:6px;background:rgba(7,47,69,.78);color:#fff;border-radius:6px;padding:1px 8px;font-size:12px}
.revbtn{border:1.5px solid #9CCBE8;background:#fff;color:#085C8B;border-radius:999px;padding:3px 10px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.revbtn.ng{border-color:#E3B341;color:#7A4E00;background:#FFF6DE}
.revform{display:flex;gap:8px;align-items:center;padding:10px 18px;background:#FFFBEF;border-bottom:1px solid var(--line)}
.revform input{flex:1;border:1.5px solid #D1E2EC;border-radius:8px;padding:6px 10px;font:inherit}
.revform[hidden]{display:none}
.revnote{padding:8px 18px;background:#FFF6DE;border-bottom:1px solid #F0C35A;color:#5C3B00;font-size:13.5px;font-weight:700}
svg.clickchart a rect.bar:hover{stroke:#072F45;stroke-width:2}
svg.clickchart a{cursor:pointer}
.empty-day{padding:28px;text-align:center;color:var(--muted);font-weight:700}
@media (max-width: 1100px){.daykpi,.daykpi.pk6{grid-template-columns:1fr}.rep-g{grid-template-columns:1fr}.rep-g .col{border-left:0;border-top:1px solid var(--line)}.daystrip{grid-template-columns:repeat(4,1fr)}.kpis.k5{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis.k5 .kpi.c2,.kpis.k5 .kpi.c3{grid-column:span 1}.fbar{flex-wrap:wrap}.tablewrap.scroll{overflow-x:auto}}
.rep-h{flex-wrap:wrap;row-gap:8px}
.who2 .nm,.who2 .code,.veh,.perh-chip,.st,.revbtn{white-space:nowrap}
.st-note{max-width:320px}
.fbar{flex-wrap:wrap;row-gap:12px}
.fsel{min-width:130px;max-width:220px}
.pdate input{width:8.6em}
.ph .sub .seg{display:inline-flex;vertical-align:middle}
/* v0.04: 幅の広いフォント（Mac など）でも重ならないように */
body.keiei .topbar{flex-wrap:wrap;row-gap:10px}
body.keiei .topbar>div:first-child{flex:1 1 520px}
body.keiei .topbar h1{flex-wrap:wrap;white-space:normal;row-gap:6px}
.kpi.hero .v{font-size:clamp(42px,4.4vw,60px)}
.daykpi.pk6 .kpi.hero .v{font-size:clamp(40px,4vw,54px)}
.pdate input{width:10em}
.tablewrap.scroll{overflow-x:auto}
table.rtab th,table.rtab td{padding:9px 6px}
body.keiei .topbar>div:first-child{min-width:min(100%,600px)}
.daykpi.pk6 .kpi.hero .v{font-size:44px}
table.ptab th,table.ptab td{font-size:13.5px;padding:9px 5px}
table.ptab td:nth-child(3){white-space:normal;min-width:8em}
table.ptab td.perh b{font-size:18px}
