:root {
  --navy: #0b3d5c; --navy2: #14577f; --accent: #e8590c; --bg: #f3f6f9; --card: #fff;
  --line: #dbe3ea; --text: #17222d; --sub: #5d6b78; --ok: #1b7f4b; --err: #c92a2a;
  --tab-h: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; }
button, input, select { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }

.shell { min-height: 100vh; }
.side { display: none; }
.main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.top h1 { font-size: 18px; font-weight: 700; }
.brand-sm { font-size: 12px; opacity: .7; letter-spacing: .08em; }
#view { padding: 14px 14px 0; max-width: 1100px; margin: 0 auto; }
.dev { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff3bf; color: #6b5300; font-size: 12px; padding: 6px 14px; }
.dev select { font-size: 13px; padding: 2px 4px; }

/* タブバー(スマホ) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.navbtn { flex: 1; min-height: var(--tab-h); border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sub); cursor: pointer; }
.navbtn .ni { font-size: 20px; line-height: 1; }
.navbtn .nt { font-size: 11px; }
.navbtn.on { color: var(--navy); font-weight: 700; }

/* ボタン */
.btn { border: 1px solid transparent; border-radius: 10px; padding: 12px 18px; min-height: 46px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn.big { width: 100%; min-height: 52px; font-size: 16px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ホーム */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; border-radius: 16px; padding: 18px 16px 16px; }
.hello { font-size: 18px; font-weight: 700; }
.period { font-size: 13px; opacity: .8; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; }
.stat .num { font-size: 34px; font-weight: 800; line-height: 1.1; }
.stat .unit { font-size: 13px; margin-left: 2px; }
.stat .cap { grid-column: 1 / -1; font-size: 11px; opacity: .8; }
.quick { display: grid; gap: 10px; margin: 14px 0 6px; }
.sec { font-size: 15px; margin: 18px 2px 8px; color: var(--navy); }

/* カード */
.cards { display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.card:active { background: #eef3f7; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cname { font-size: 16px; }
.card-meta { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.card-sub { font-size: 12.5px; color: var(--sub); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #e8f0f6; color: var(--navy); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.pt { display: inline-block; min-width: 38px; text-align: center; border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: 13px; background: #eceff2; color: var(--sub); }
.pt1 { background: #e3f2fd; color: #1565c0; } .pt2 { background: #fff0d6; color: #a65b00; } .pt3 { background: #ffe0d1; color: #c2410c; }
.pt.lg { font-size: 18px; padding: 4px 16px; }
.empty { text-align: center; color: var(--sub); padding: 28px 8px; }
.count { font-size: 13px; color: var(--sub); margin: 8px 2px; }
.tablewrap { display: none; }

/* 検索・絞り込み */
.searchbar input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; }
.filters { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.filters summary { padding: 10px 0; cursor: pointer; color: var(--navy); font-weight: 700; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fsel { display: grid; gap: 2px; font-size: 12px; color: var(--sub); }
.fsel select { padding: 9px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 15px; color: var(--text); }
.filters .btn { margin-bottom: 10px; }

/* フォーム */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c5d0; border-radius: 10px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .searchbar input:focus { outline: 2px solid var(--navy2); outline-offset: 0; border-color: var(--navy2); }
.field textarea { resize: vertical; line-height: 1.5; font-family: inherit; }
.field .static { padding: 10px 12px; background: #f1f4f7; border-radius: 10px; }
.field .static small { color: var(--sub); margin-left: 6px; }
.req { background: var(--err); color: #fff; font-size: 10px; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.adm { background: #e8f0f6; color: var(--navy); font-size: 10px; border-radius: 4px; padding: 0 5px; }
.ptmark { background: #e3f2fd; color: #1565c0; font-size: 10px; border-radius: 4px; padding: 0 5px; }
.has-error input, .has-error select { border-color: var(--err); background: #fff5f5; }
.err { color: var(--err); font-size: 13px; margin-top: 4px; }
.pt-preview { background: #f1f6fa; border-radius: 10px; padding: 10px 14px; text-align: center; margin-bottom: 14px; }
.pt-preview b { font-size: 22px; color: var(--accent); }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn { flex: 1; }
.form-actions .primary { flex: 2; }

/* 詳細 */
.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.detail-head h2 { font-size: 20px; }
.dl { margin: 6px 0 16px; }
.dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
.dl dt { color: var(--sub); font-size: 13px; }
.dl dd { margin: 0; word-break: break-all; }
.dl a { color: var(--navy2); }
.dl i { font-style: normal; font-size: 11px; border-radius: 4px; padding: 0 5px; }
.dl i.ok { background: #e3f2fd; color: #1565c0; } .dl i.zero { background: #eceff2; color: var(--sub); }
.none { color: #9aa6b1; }

/* ランキング */
.rank-head { display: grid; gap: 6px; margin-bottom: 10px; }
.note { font-size: 12.5px; color: var(--sub); margin-top: 8px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rank .pos { width: 32px; height: 32px; border-radius: 50%; background: #eceff2; display: grid; place-items: center; font-weight: 800; }
.rank .r1 .pos { background: #f6c945; } .rank .r2 .pos { background: #cfd6dc; } .rank .r3 .pos { background: #e0b48a; }
.rank .who { font-weight: 700; } .rank em { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.rank .cnt { color: var(--sub); font-size: 13px; } .rank .sc b { font-size: 22px; color: var(--navy); margin-right: 2px; }
.rank li.me { border-color: var(--accent); background: #fff8f3; }
.stafflist { list-style: none; margin: 0 0 8px; padding: 0; }
.stafflist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
.stafflist li span:first-child { flex: 1; font-weight: 700; }
.stafflist .cnt { color: var(--sub); font-size: 13px; }

/* 削除 */
.btn.danger { background: #fff; border-color: #e3a0a0; color: var(--err); width: 100%; margin-top: 14px; }
.btn.danger.solid { background: var(--err); color: #fff; border-color: var(--err); margin: 0; width: auto; }
.overlay { position: fixed; inset: 0; background: rgba(10,25,40,.55); z-index: 60; display: grid; place-items: center; padding: 20px; }
.dialog { background: #fff; border-radius: 14px; padding: 20px; max-width: 360px; width: 100%; }
.dialog h2 { font-size: 17px; margin-bottom: 8px; } .dialog p { margin-bottom: 16px; color: var(--sub); }
/* トースト */
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; max-width: 92vw; padding: 12px 18px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; transition: .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { background: var(--ok); } #toast.error { background: var(--err); }

/* PC */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 220px 1fr; }
  .side { display: block; background: var(--navy); color: #fff; min-height: 100vh; position: sticky; top: 0; align-self: start; padding: 20px 12px; }
  .brand { font-weight: 800; font-size: 18px; margin: 0 8px 24px; display: flex; align-items: center; gap: 10px; }
  .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
  #sidenav { display: grid; gap: 4px; }
  #sidenav .navbtn { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #cfe0ec; }
  #sidenav .navbtn.on { background: rgba(255,255,255,.14); color: #fff; }
  #sidenav .nt { font-size: 15px; }
  .tabbar { display: none; }
  .main { padding-bottom: 40px; }
  .brand-sm { display: none; }
  .top { position: static; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  #view { padding: 20px 24px 0; }
  #toast { bottom: 24px; }
  .quick { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .panel { max-width: 720px; }
  .fgrid { grid-template-columns: repeat(6, 1fr); }
  .cards { display: none; }
  .tablewrap { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
  .hero { max-width: 720px; }
  .hero + .quick + .sec + .cards { display: grid; max-width: 720px; }
  .rank, .rank-head { max-width: 640px; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
  .tbl th { text-align: left; background: #f1f5f8; color: var(--sub); font-size: 12.5px; padding: 10px 12px; position: sticky; top: 0; }
  .tbl td { padding: 10px 12px; border-top: 1px solid #eef1f4; }
  .tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover { background: #f5f9fc; }
  .tbl .r { text-align: right; }
}

/* ログイン */
[hidden] { display: none !important; }
#login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--navy), var(--navy2)); }
.login-card { background: #fff; border-radius: 16px; padding: 24px 20px; width: 100%; max-width: 380px; display: grid; gap: 14px; }
.login-card h1 { text-align: center; font-size: 22px; color: var(--navy); }
.login-card .logo.big { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; font-size: 28px; display: grid; place-items: center; margin: 0 auto; }
.login-card label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.login-card input { min-height: 46px; padding: 10px 12px; border: 1px solid #b9c5d0; border-radius: 10px; font-size: 16px; }
.login-card .err { min-height: 1.2em; margin: 0; } .login-card .note { text-align: center; margin: 0; }
.userbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.userbox .btn.small { min-height: 30px; padding: 2px 10px; }
@media (min-width: 900px) { .top { gap: 12px; } .brand-sm { display: none; } .userbox { margin-left: auto; color: var(--sub); } }

.count { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.count .btn { margin: 0; }
.more { width: 100%; margin: 12px 0; }

/* 管理者: Excel */
.cbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.warn { background: #fff3bf; color: #6b5300; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.filebtn { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.howto { margin: 10px 0; font-size: 13.5px; } .howto summary { cursor: pointer; color: var(--navy); font-weight: 700; padding: 6px 0; }
.howto ol, .howto ul { margin: 6px 0; padding-left: 20px; }
.plan { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.plansum { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; margin: 8px 0; }
.plansum li { background: #f1f6fa; border-radius: 10px; padding: 8px 12px; } .plansum li b { font-size: 20px; margin-right: 4px; }
.plansum li.bad { background: #ffe3e3; color: var(--err); }
.plist { margin: 6px 0; padding-left: 18px; font-size: 13px; } .plan details { margin: 8px 0; } .plan summary { cursor: pointer; font-weight: 700; }

/* 出勤表 */
.shiftbar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.shiftbar b { font-size: 18px; min-width: 7.5em; text-align: center; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head span { text-align: center; font-size: 12px; font-weight: 700; padding: 6px 0; background: #f1f5f8; color: var(--sub); }
.cal-head .sat, .cal-cell.sat .dn { color: #1565c0; } .cal-head .sun, .cal-cell.sun .dn { color: #c92a2a; }
.cal-empty, .cal-cell { min-height: 58px; border-top: 1px solid #eef1f4; border-left: 1px solid #eef1f4; }
.cal-cell { background: #fff; border-right: 0; border-bottom: 0; padding: 4px 2px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.cal-cell .dn { font-weight: 700; font-size: 14px; }
.cal-cell .cn { font-size: 11px; background: #e8f0f6; color: var(--navy); border-radius: 999px; padding: 0 7px; }
.cal-cell .cnames { display: none; }
.cal-cell.today .dn { background: var(--accent); color: #fff; border-radius: 999px; min-width: 24px; line-height: 24px; }
.cal-cell.sel { outline: 2px solid var(--navy2); outline-offset: -2px; background: #f3f9fd; }
.cal-cell.mine::after { content: '●'; position: absolute; top: 2px; right: 4px; font-size: 8px; color: var(--accent); }
.legend-me { color: var(--accent); }
.shift-actions { margin: 12px 0; }
.shift-actions .btn { width: 100%; }
.shiftlist { list-style: none; margin: 0 0 10px; padding: 0; }
.shiftlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
.shiftlist .who { font-weight: 700; } .shiftlist .tm { color: var(--navy); font-variant-numeric: tabular-nums; }
.shiftlist li.me { background: #fff8f3; margin: 0 -8px; padding: 9px 8px; border-radius: 8px; }
.shiftlist em { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.shiftlist .chip { justify-self: start; } .shiftlist .btn { grid-column: 2; grid-row: 1 / span 2; }
.dialog.wide { max-width: 420px; max-height: 92vh; overflow: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tplbox { background: #f1f6fa; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.wdchips { display: flex; gap: 6px; margin: 8px 0 12px; }
.wdchip { flex: 1; min-height: 44px; border: 1px solid #b9c5d0; background: #fff; border-radius: 10px; font-weight: 700; cursor: pointer; }
.wdchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.bulkdays { display: grid; gap: 6px; margin: 8px 0 14px; }
.bulkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bulkrow.on { background: #f3f9fd; border-color: #b6d4e8; } .bulkrow.has-error { border-color: var(--err); background: #fff5f5; }
.bulkrow .bd { font-weight: 700; min-width: 5.6em; display: flex; align-items: center; gap: 6px; } .bulkrow .bd.sat { color: #1565c0; } .bulkrow .bd.sun { color: #c92a2a; }
.bulkrow input[type=checkbox] { width: 22px; height: 22px; }
.bulkrow input[type=time], .bulkrow select { min-height: 40px; padding: 4px 6px; border: 1px solid #b9c5d0; border-radius: 8px; font-size: 15px; background: #fff; }
.bulkrow select { flex: 1; min-width: 9em; } .bulkrow .off { color: #9aa6b1; } .bulkrow .err { flex-basis: 100%; margin: 0; }
@media (min-width: 900px) {
  .cal-cell { min-height: 104px; align-items: stretch; text-align: left; padding: 6px; }
  .cal-cell .dn { align-self: flex-start; } .cal-cell .cn { position: absolute; top: 6px; right: 6px; }
  .cal-cell .cnames { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; overflow: hidden; }
  .cal-cell .cnames i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
  .cal-cell .cnames i.me { color: var(--accent); font-weight: 700; }
  .cal-cell.mine::after { display: none; }
  .shift-actions .btn { width: auto; }
  .cal, .daypanel, .shiftbar { max-width: 980px; } .shiftbar { justify-content: flex-start; }
  .bulkrow select { flex: 0 0 200px; }
}

/* 共有カレンダー(予定) */
.shiftlist li { grid-template-columns: 5.6em 1fr auto; align-items: start; }
.shiftlist .tm { font-size: 13px; padding-top: 2px; }
.shiftlist .what { grid-column: 2; grid-row: 1; line-height: 1.5; } .shiftlist .btn { grid-column: 3; grid-row: 1; }
.shiftlist .what .who { font-weight: 400; color: var(--sub); font-size: 13px; }
.evnote { color: var(--sub); font-size: 12.5px; white-space: pre-wrap; }
.minechk { margin-left: auto; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.field label.chk { display: flex; align-items: center; gap: 8px; font-weight: 700; } .field label.chk input { width: 22px; height: 22px; min-height: 0; }
.dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c5d0; border-radius: 10px; font-size: 16px; font-family: inherit; }
.dialog .field select, .dialog .field input[type=text], .dialog .field input[type=date] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c5d0; border-radius: 10px; font-size: 16px; background: #fff; }
.dialog .field select + input[type=text] { margin-top: 6px; }
.warnbox { background: #fff3bf; border: 1px solid #e6c84a; color: #5c4700; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.warnbox ul { margin: 6px 0; padding-left: 18px; } .warnbox p { margin: 4px 0 0; }
.btn.danger.inline { width: auto; margin: 0; flex: 0 0 auto; }
.cal-cell .cnames i.ev { color: #1b5e8a; }
.form-actions .danger.inline + .btn { flex: 1; }
@media (min-width: 900px) { .cal-cell .cnames i.ev { color: #1b5e8a; } }

.shiftbar { flex-wrap: wrap; } .shiftbar .btn { white-space: nowrap; }
.minechk { flex-basis: 100%; justify-content: center; margin: 4px 0 0; }
@media (min-width: 900px) { .minechk { flex-basis: auto; margin: 0 0 0 auto; } }

.staffsel { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-basis: 100%; justify-content: center; margin-top: 4px; }
.staffsel select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; max-width: 60vw; }
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
@media (min-width: 900px) { .staffsel { flex-basis: auto; margin: 0 0 0 auto; } .cal-cell .cnames i { border-left: 3px solid transparent; padding-left: 4px; } }

.navbtn { min-width: 0; padding: 0 1px; } .navbtn .nt { font-size: 10px; white-space: nowrap; letter-spacing: -0.02em; }
@media (min-width: 900px) { #sidenav .nt { font-size: 15px; letter-spacing: 0; } }

/* 日報・週報 */
.bigstat { background: #f1f6fa; border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; }
.bigstat .lbl { font-weight: 700; margin-right: 10px; } .bigstat .num { font-size: 36px; font-weight: 800; color: var(--navy); } .bigstat .unit { font-size: 14px; margin-left: 3px; }
.bigstat .note { margin: 4px 0 0; }
.tablewrap2 { overflow-x: auto; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 15px; }
.breakdown th, .breakdown td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.breakdown thead th { background: var(--navy); color: #fff; font-size: 13px; text-align: right; } .breakdown thead th:first-child, .breakdown tbody th, .breakdown tfoot th { text-align: left; }
.breakdown tbody th { font-weight: 600; } .breakdown tbody tr:nth-child(even) { background: #f7fafc; }
.breakdown tfoot th, .breakdown tfoot td { background: #e8f0f6; font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; }
@media (min-width: 900px) { #view .cards .card { max-width: 560px; } }

@media (min-width: 900px) { .reportlist .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 980px; } #view .reportlist .cards .card { max-width: none; } }

.breakdown thead th { white-space: nowrap; padding: 10px 6px; } .breakdown tbody th { min-width: 6em; }

.stafflist li.off { opacity: .6; } .selfmark { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.stafflist .btn.small { min-height: 32px; padding: 2px 10px; }
