/* 株式会社スルミ 勤怠・報酬・シフト管理システム */
:root {
  --brand: #5b2ca0;
  --brand-2: #8a3fa8;
  --brand-3: #d06aa6;
  --grad: linear-gradient(100deg, #5b2ca0 0%, #8a3fa8 55%, #d06aa6 100%);
  --ink: #1f1a2b;
  --ink-2: #4d465c;
  --muted: #7c748c;
  --line: #e6e1ee;
  --bg: #f7f5fa;
  --card: #ffffff;
  --tint: #f3eefa;
  --ok: #1f8a5b;
  --ok-bg: #e5f5ed;
  --warn: #a86400;
  --warn-bg: #fff3dc;
  --err: #c0392b;
  --err-bg: #fdeaea;
  --info: #2c5ea0;
  --info-bg: #e8f0fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 20, 70, .06), 0 4px 16px rgba(40, 20, 70, .05);
  font-size: 15px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.tc { text-align: center; }

/* ---------- header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 60px;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { height: 26px; display: block; }
.brand span { font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.bell { position: relative; display: inline-flex; padding: 6px; border-radius: 8px; color: var(--ink-2); }
.bell:hover { background: var(--tint); text-decoration: none; }
.bell .dot { position: absolute; top: 0; right: -2px; background: var(--brand-3); color: #fff; font-size: .68rem;
  border-radius: 99px; padding: 0 6px; line-height: 1.5; }
.who { font-size: .85rem; color: var(--ink-2); text-align: right; line-height: 1.3; }
.who small { display: block; }
.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px 40px; }
.side h4 { font-size: .72rem; color: var(--muted); letter-spacing: .08em; margin: 16px 10px 6px; font-weight: 600; }
.side a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.side a:hover { background: var(--tint); text-decoration: none; }
.side a.on { background: var(--tint); color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.side .badge { margin-left: auto; }
main.content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; min-width: 0; }
.menu-toggle { display: none; }
.menu-btn { display: none; cursor: pointer; padding: 8px; border-radius: 8px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .side { display: none; position: fixed; top: 60px; left: 0; bottom: 0; width: 260px; z-index: 25; overflow: auto; box-shadow: var(--shadow); }
  .menu-toggle:checked ~ .layout .side { display: block; }
  main.content { padding: 16px 14px 60px; }
  .brand span { display: none; }
  .who { display: none; }
}

/* ---------- common blocks ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.stat .value small { font-size: .85rem; font-weight: 500; margin-left: 2px; }
.stat.accent { background: var(--grad); color: #fff; border: 0; }
.stat.accent .label { color: rgba(255, 255, 255, .85); }
.stat.alert .value { color: var(--err); }
a.stat:hover { text-decoration: none; border-color: var(--brand-2); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #faf8fd; color: var(--ink-2); font-weight: 600; font-size: .8rem; white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover { background: #fcfbfe; }
tr.sat td:first-child, td.sat { color: #2c5ea0; }
tr.sun td:first-child, td.sun, tr.hol td:first-child { color: #c0392b; }
tr.missing { background: #fff7f6; }
tfoot td { font-weight: 700; background: #faf8fd; }
table.compact th, table.compact td { padding: 6px 8px; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 99px; font-weight: 600; white-space: nowrap; line-height: 1.6;
  background: #eee; color: var(--ink-2); }
.b-ok, .b-approved, .b-working, .b-published, .b-confirmed, .b-paid { background: var(--ok-bg); color: var(--ok); }
.b-warn, .b-pending, .b-break, .b-draft, .b-review, .b-returned, .b-fixed { background: var(--warn-bg); color: var(--warn); }
.b-err, .b-rejected, .b-cancelled, .b-missing { background: var(--err-bg); color: var(--err); }
.b-info, .b-done, .b-exported { background: var(--info-bg); color: var(--info); }
.b-none, .b-superseded, .b-inactive { background: #efedf2; color: var(--muted); }
.b-brand { background: var(--tint); color: var(--brand); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); padding: 8px 14px; border-radius: 8px; font-size: .9rem; cursor: pointer; font-family: inherit; line-height: 1.3;
  text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); color: var(--brand); }
.btn.primary { background: var(--grad); color: #fff; border: 0; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.danger { color: var(--err); border-color: #f0c5c0; }
.btn.danger:hover { background: var(--err-bg); }
.btn.sm { padding: 4px 10px; font-size: .8rem; }
.btn.lg { padding: 12px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { font-size: .84rem; color: var(--ink-2); font-weight: 600; display: block; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date],
input[type=time], input[type=month], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d8d1e3; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(91, 44, 160, .25); border-color: var(--brand); }
textarea { min-height: 70px; }
.field { margin-bottom: 12px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input, .inline-form select { width: auto; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.check input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px; }
legend { font-weight: 700; font-size: .9rem; padding: 0 6px; color: var(--brand); }
details > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .88rem; }
details[open] > summary { margin-bottom: 8px; }

/* ---------- flash ---------- */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; font-size: .92rem; border: 1px solid transparent; }
.flash.success { background: var(--ok-bg); color: #145c3d; border-color: #bfe5d1; }
.flash.error { background: var(--err-bg); color: #8f2a20; border-color: #f2c4bf; }
.flash.info { background: var(--info-bg); color: #1f4579; border-color: #c7d8f1; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; font-size: .9rem; }
.alert.warn { background: var(--warn-bg); color: #6d4300; border: 1px solid #f3dcae; }
.alert.err { background: var(--err-bg); color: #8f2a20; border: 1px solid #f2c4bf; }
.alert.info { background: var(--info-bg); color: #1f4579; border: 1px solid #c7d8f1; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .92rem; }
.tabs a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.pager { display: inline-flex; align-items: center; gap: 6px; }
.pager strong { min-width: 120px; text-align: center; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 500px at 10% -10%, #efe6fb 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fbe7f2 0, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(60, 20, 100, .12); padding: 34px 30px; }
.auth-card .logo { display: block; margin: 0 auto 16px; height: 96px; }
.auth-card h1 { text-align: center; font-size: 1.1rem; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; font-size: .82rem; margin-top: 16px; color: var(--muted); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; background: var(--tint);
  padding: 10px 12px; border-radius: 8px; text-align: center; word-break: break-all; }

/* ---------- kiosk (打刻画面) ---------- */
body.kiosk { background: #f4f1f8; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.kiosk-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--grad); }
.kiosk-top img { height: 34px; }
.kiosk-top .site { color: var(--muted); font-size: .95rem; }
.kiosk-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding: 24px 28px; max-width: 1300px; margin: 0 auto; }
@media (max-width: 1000px) { .kiosk-main { grid-template-columns: 1fr; } }
.clock { background: var(--grad); color: #fff; border-radius: 18px; padding: 22px 26px; text-align: center; box-shadow: 0 8px 30px rgba(91, 44, 160, .25); }
.clock .date { font-size: 1.35rem; opacity: .95; }
.clock .time { font-size: 5.2rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock .note { font-size: .8rem; opacity: .8; }
.kpanel { background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.kpanel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.kpanel h2 .step { background: var(--brand); color: #fff; width: 30px; height: 30px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .95rem; }
.name-search { font-size: 1.2rem !important; padding: 12px 14px !important; margin-bottom: 12px; }
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.name-btn { font-size: 1.15rem; padding: 16px 10px; border: 2px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; font-family: inherit; color: var(--ink); }
.name-btn small { display: block; font-size: .75rem; color: var(--muted); }
.name-btn:hover, .name-btn.on { border-color: var(--brand); background: var(--tint); }
.kana-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kana-tabs button { font-family: inherit; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 1rem; cursor: pointer; }
.kana-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pin-display { font-size: 2.4rem; letter-spacing: .5em; text-align: center; padding: 8px 0 12px; min-height: 64px; font-family: ui-monospace, monospace; color: var(--brand); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 380px; margin: 0 auto; }
.pinpad button { font-size: 1.8rem; padding: 14px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.pinpad button:hover { background: var(--tint); }
.pinpad .go { background: var(--grad); color: #fff; border: 0; font-size: 1.2rem; font-weight: 700; }
.who-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--tint); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.who-card .nm { font-size: 1.6rem; font-weight: 700; }
.status-pill { font-size: 1.05rem; padding: 6px 16px; border-radius: 99px; font-weight: 700; }
.punch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.punch-btn { font-family: inherit; border: 0; border-radius: 16px; padding: 26px 10px; font-size: 1.7rem; font-weight: 800; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transition: transform .05s; }
.punch-btn small { display: block; font-size: .85rem; font-weight: 500; opacity: .9; }
.punch-btn:active { transform: scale(.98); }
.punch-btn[disabled] { background: #d9d5df !important; color: #9b95a5; box-shadow: none; cursor: not-allowed; }
.pb-in { background: linear-gradient(135deg, #2e9d6a, #1f7a50); }
.pb-out { background: linear-gradient(135deg, #5b2ca0, #8a3fa8); }
.pb-bs { background: linear-gradient(135deg, #e3923a, #c86f12); }
.pb-be { background: linear-gradient(135deg, #3a7bd5, #2a5ea8); }
.history { margin-top: 18px; }
.history li { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px dashed var(--line); font-size: 1.05rem; }
.history ul { list-style: none; margin: 0; padding: 0; }
.result { position: fixed; inset: 0; background: rgba(31, 18, 50, .55); display: none; place-items: center; z-index: 50; }
.result.show { display: grid; }
.result .box { background: #fff; border-radius: 20px; padding: 34px 44px; text-align: center; min-width: 380px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.result .icon { width: 72px; height: 72px; border-radius: 99px; display: grid; place-items: center; margin: 0 auto 12px; font-size: 2.4rem; color: #fff; }
.result.ok .icon { background: var(--ok); }
.result.ng .icon { background: var(--err); }
.result.cf .icon { background: var(--warn); }
.result .big { font-size: 1.9rem; font-weight: 800; margin: 6px 0; }
.result .t { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.kiosk-blocked { max-width: 640px; margin: 60px auto; text-align: center; }

/* ---------- shift board ---------- */
.timeline { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tl-inner { min-width: 980px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); min-height: 42px; }
.tl-row:last-child { border-bottom: 0; }
.tl-name { padding: 8px 10px; font-size: .88rem; border-right: 1px solid var(--line); background: #fcfbfe; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tl-track { position: relative; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 26 - 1px), #f0edf4 calc(100% / 26 - 1px), #f0edf4 calc(100% / 26)); }
.tl-head .tl-track { display: grid; grid-template-columns: repeat(13, 1fr); font-size: .75rem; color: var(--muted); background: none; }
.tl-head .tl-track span { padding: 6px 4px; border-left: 1px solid var(--line); }
.tl-wish { position: absolute; top: 6px; bottom: 6px; border: 2px dashed #c6b3e3; border-radius: 6px; background: rgba(198, 179, 227, .12); pointer-events: none; }
.tl-wish.no { border-color: #f0b8b0; background: repeating-linear-gradient(45deg, rgba(240, 184, 176, .2) 0 6px, transparent 6px 12px); }
.tl-bar { position: absolute; top: 8px; bottom: 8px; background: var(--grad); border-radius: 6px; color: #fff; font-size: .78rem; padding: 3px 8px;
  cursor: grab; user-select: none; white-space: nowrap; overflow: hidden; box-shadow: 0 2px 6px rgba(91, 44, 160, .3); touch-action: none; }
.tl-bar.warn { outline: 2px solid #e3923a; outline-offset: 1px; }
.tl-bar .h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.tl-bar .h.l { left: 0; } .tl-bar .h.r { right: 0; }
.tl-bar.dragging { opacity: .85; cursor: grabbing; }
.tl-cov { display: grid; grid-template-columns: repeat(26, 1fr); }
.tl-cov div { text-align: center; font-size: .75rem; padding: 4px 0; border-left: 1px solid #f0edf4; font-variant-numeric: tabular-nums; }
.tl-cov .over { background: var(--err-bg); color: var(--err); font-weight: 700; }
.tl-cov .under { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.tl-cov .ok { background: #f6fbf8; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { text-align: center; }
.cal td { vertical-align: top; height: 92px; padding: 6px; border: 1px solid var(--line); font-size: .82rem; }
.cal td.out { background: #faf9fc; color: #c8c2d2; }
.cal .dnum { font-weight: 700; }
.cal td.sun .dnum, .cal td.hol .dnum { color: #c0392b; }
.cal td.sat .dnum { color: #2c5ea0; }
.cal td.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .chip { display: block; background: var(--tint); color: var(--brand); border-radius: 5px; padding: 1px 5px; margin-top: 3px; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .chip.no { background: #f3f1f6; color: var(--muted); }
.wish-cell { cursor: pointer; }
.wish-cell:hover { background: #fcfaff; }
.wish-cell.sel { box-shadow: inset 0 0 0 2px var(--brand-3); background: #fff5fb; }
.heat td { text-align: center; font-size: .75rem; padding: 4px 2px; }
.mini { font-size: .78rem; }
.sticky-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 0 0 var(--radius) var(--radius); }

.foot { text-align: center; color: var(--muted); font-size: .75rem; padding: 18px; }
@media print { .side, .topbar, .no-print { display: none !important; } .layout { display: block; } }
.wish-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) {
  .wish-layout { grid-template-columns: minmax(0, 1fr); }
  .cal td { height: 62px; padding: 3px; font-size: .72rem; }
  .cal .chip { font-size: .6rem; padding: 0 2px; }
  .cal small.mini { display: none; }
  .clock .time { font-size: 3.4rem; }
  .punch-btn { padding: 18px 6px; font-size: 1.3rem; }
}
/* 業務周知・申し送り */
.notice-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.notice-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.notice-item.unread { border-left: 4px solid var(--brand-3); }
.notice-main { flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.notice-title { font-weight: 700; font-size: 1.02rem; margin-top: 4px; }
.notice-item.unread .notice-title::before { content: "●"; color: var(--brand-3); font-size: .7rem; margin-right: 6px; vertical-align: 2px; }
.notice-snip { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.notice-body { white-space: pre-wrap; line-height: 1.85; font-size: 1rem; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.confirm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 12px; }
.meter { height: 8px; background: #eee9f4; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--grad); }
.report-kind { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 700px) { .notice-item { flex-direction: column; align-items: stretch; } .notice-side { flex-direction: row; justify-content: space-between; align-items: center; } }
/* 閲覧専用ビューア */
.no-save, .no-save .viewer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.vpage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.vpage img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.vshield { position: absolute; inset: 0; background: transparent; }
.vnum { position: absolute; right: 10px; top: 10px; background: rgba(31, 26, 43, .7); color: #fff; font-size: .78rem; border-radius: 99px; padding: 2px 10px; }
@media print { .viewer, .vpage { display: none !important; } body.no-save::after { content: "このファイルは印刷できません。"; display: block; padding: 40px; font-size: 20px; } }
/* 座席表 */
.seat-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1000px) { .seat-layout { grid-template-columns: minmax(0, 1fr); } }
.seat-card { padding: 12px; }
.seatmap svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.seatmap .room { fill: #fbfaff; stroke: #1f1a2b; stroke-width: 4; stroke-linejoin: round; }
.seatmap .door-gap { stroke: #fff; stroke-width: 8; }
.seatmap .door-arc { fill: none; stroke: var(--brand-3); stroke-width: 2; stroke-dasharray: 4 3; }
.seatmap .door-label { font-size: 15px; fill: var(--brand-3); font-weight: 700; }
.seatmap .seat rect { fill: #e3efdc; stroke: #6d8a62; stroke-width: 1.5; }
.seatmap .seat.used rect { fill: #f3eefa; stroke: var(--brand); stroke-width: 2; }
.seatmap .seat.mine rect { fill: var(--brand); stroke: var(--brand); }
.seatmap .seat.mine text { fill: #fff !important; }
.seatmap .seat.admin rect { fill: #fff3dc; stroke: #c88a2a; }
.seatmap .seat.off rect { fill: #eeeeee; stroke: #bbb; stroke-dasharray: 5 4; }
.seatmap .seat.off text { fill: #999; }
.seatmap .seat-code { font-size: 13px; font-weight: 700; fill: #4d465c; }
.seatmap .seat-name { font-size: 15px; font-weight: 700; fill: #1f1a2b; }
.seatmap .seat-time { font-size: 11px; fill: #6b6478; }
.seatmap .st-working { fill: #1f8a5b; } .seatmap .st-break { fill: #c86f12; } .seatmap .st-none { fill: #8a8496; } .seatmap .st-done { fill: #2c5ea0; }
.seatmap [data-seat] { cursor: pointer; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: -1px; }
.legend .st-working { background: #1f8a5b; } .legend .st-break { background: #c86f12; } .legend .st-none { background: #8a8496; } .legend .st-done { background: #2c5ea0; }
.seat-shifts { display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.chip-shift { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--brand-3); border-radius: 8px; background: #fff; cursor: grab; font-size: .88rem; }
.chip-shift span { color: var(--muted); font-size: .8rem; grid-column: 1; }
.chip-shift em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: .8rem; color: var(--err); font-weight: 700; }
.chip-shift.done { border-left-color: #c9c2d9; opacity: .8; }
.chip-shift.done em { color: var(--brand); }
.chip-shift.picked { outline: 2px solid var(--brand); background: var(--tint); }
.my-seat { display: flex; gap: 24px; flex-wrap: wrap; background: var(--grad); color: #fff; border: 0; }
.my-seat div { display: flex; align-items: baseline; gap: 12px; }
.my-seat .muted { color: rgba(255,255,255,.85); }
.my-seat strong { font-size: 2rem; }
.kiosk-seat { margin-top: 14px; background: var(--grad); color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 1.4rem; font-weight: 800; text-align: center; }

/* ================================================================ KPI管理 */
.kpi-tabs { flex-wrap: wrap; }
.kpi-table td, .kpi-table th { white-space: nowrap; }
.kpi-table td.num, .kpi-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kpi-table td.c { text-align: center; }
.kpi-table tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.jd { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700; border-radius: 6px; padding: 0 4px; line-height: 1.5; }
.jd-ok { color: #1e7b34; background: #e5f5e9; }
.jd-mid { color: #7a5c00; background: #fff4d1; }
.jd-ng { color: #b03a2e; background: #fde8e5; }
td.j-ng { background: #fff6f5; }
td.j-ok { background: #f5fbf6; }
.kmeter { height: 4px; background: #eee9f5; border-radius: 2px; margin-top: 3px; overflow: hidden; }
.kmeter > i { display: block; height: 100%; background: #6a4ce2; border-radius: 2px; }
.dl dt { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.dl dd { margin: 2px 0 0; }
.pre { white-space: pre-wrap; }
.kpi-input input[type=number] { width: 78px; padding: 5px 6px; text-align: right; }
.kpi-input input.note { width: 160px; }
.kpi-input td.name { position: sticky; left: 0; background: #fff; z-index: 1; }
.kpi-input .prefill { background: #f4f0fb; }
.kpi-input tr.warn td { background: #fff6f5; }
.chart { margin: 0 0 8px; }
.chart figcaption { font-weight: 700; font-size: .9rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-legend { display: inline-flex; gap: 12px; font-weight: 400; font-size: .78rem; color: var(--muted); }
.ch-key { display: inline-flex; align-items: center; gap: 5px; }
.ch-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.ch-key i.k-a { background: #6a4ce2; }
.ch-key i.k-p { height: 0; border-top: 2px dashed #f47230; border-radius: 0; }
.ch-grid { stroke: #ececf2; stroke-width: 1; }
.ch-zero { stroke: #b9b6c4; }
.ch-tick { font-size: 11px; fill: #77737f; }
.ch-lab { font-size: 12px; fill: #2c2833; }
.ch-val { font-size: 11px; fill: #2c2833; font-weight: 700; }
.ch-a { fill: #6a4ce2; }
.ch-a-line { fill: none; stroke: #6a4ce2; stroke-width: 2; stroke-linejoin: round; }
.ch-a-dot { fill: #6a4ce2; stroke: #fff; stroke-width: 2; }
.ch-p-line { fill: none; stroke: #f47230; stroke-width: 2; stroke-dasharray: 6 4; }
.ch-p-dot { fill: #fff; stroke: #f47230; stroke-width: 2; }
.ch-hitbox { fill: transparent; }
.ch-cross { stroke: #b9b6c4; stroke-width: 1; opacity: 0; }
.ch-hit:hover .ch-hitbox { fill: rgba(106, 76, 226, .06); }
.ch-hit:hover .ch-cross { opacity: 1; }
.ch-empty { padding: 30px; text-align: center; color: var(--muted); background: #faf9fc; border-radius: 8px; }
.small-multiples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 900px) { .small-multiples { grid-template-columns: 1fr; } }
.kpi-notes textarea { min-height: 90px; }
@media print { .side, .topbar, .kpi-tabs, .page-head .row, .no-print { display: none !important; } }
.chart-h { max-width: 760px; }
.kpi-filter input, .kpi-filter select { width: auto; }
