/* 570ui — 管理画面の組み立て (枠・箱・表・見出し・余白・格子・文字の小物)。部品は suite.css が正で、ここには書かない。
 *
 * 読み込む順: base.css → suite.css → ui570.css。色はアプリが --s-band / --s-accent / --s-deep の 3 つを上書きするだけ。
 * 組み立ての正は Pink (pink.css + docs/suite-design/UIルール.md の 置-11・字-1・字-2・置-8)。Pink に無い物だけ他から拾う
 * (知らせの帯 = Kabosu の .notice)。明るい表示だけ。
 *
 * btn / card / form-control などの名前を受け取る: 画面を書き直さずに Tabler から引っ越すため。
 * Tabler と同じページに置かない (suite.css は button などタグ全体に効く)。 */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ui-line: #d9dee3; --ui-text: #24292f; --ui-muted: #6b7280;
  --ui-bg: color-mix(in srgb, var(--s-accent) 4%, #fff);
  --ui-th: color-mix(in srgb, var(--s-accent) 10%, #fff);
  --ui-th-hover: color-mix(in srgb, var(--s-accent) 18%, #fff);
  --ui-side: color-mix(in srgb, var(--s-band) 16%, #fff);
  --ui-side-on: color-mix(in srgb, var(--s-accent) 20%, #fff);
  /* 引っ越しの橋: 画面の小さな style に残っている Tabler の変数名を受ける。-rgb は色を変えたアプリが一緒に上書きする */
  --tblr-border-color: var(--ui-line); --tblr-primary: var(--s-accent); --tblr-primary-rgb: 102, 102, 102;
  --tblr-secondary: var(--ui-muted); --tblr-body-color: var(--ui-text);
  --tblr-bg-surface-secondary: #f6f7f8; --tblr-bg-surface-tertiary: #eef0f2;
}
body {
  margin: 0; font-family: var(--base-font, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
  font-size: 14px; line-height: 1.5; color: var(--ui-text); background: var(--ui-bg);
}
p { margin: 0 0 10px; } ul, ol { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
a { color: var(--s-accent); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 枠 (帯なしでも使える) */
.ui-layout { display: flex; min-height: 100vh; }
.page { display: flex; flex-direction: column; min-height: 100vh; flex: 1; min-width: 0; }
.page-wrapper { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-center { justify-content: center; }
.page-header { padding: 20px 24px 0; }
.page-body { padding: 16px 24px 60px; }
.page-pretitle { font-size: 12px; line-height: 16px; color: var(--ui-muted); min-height: 16px; }   /* 置-8 戻るは見出しの上の左 */
.page-title { font-size: 20px; color: var(--s-ink-mute); }   /* 字-2 */
.page-title:empty { display: none; }
.container, .container-fluid, .container-xl { width: 100%; }   /* 幅の上限は置かない (Pink 2026-09-23) */
.container-tight { max-width: 400px; margin: 0 auto; padding: 24px 16px; }

/* 左の帯 (3 部署の骨格。幅 180・項目 13px・選択 = 地色 + 左 5px)。navbar-vertical からの引っ越し先 */
.sidenav { width: 180px; flex: none; background: var(--ui-side); display: flex; flex-direction: column; }
.sidenav .side-logo { height: 133px; padding: 20px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--s-ink); }
.sidenav .side-logo img { display: block; max-width: 100%; max-height: 100%; }
.sidenav a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--ui-muted); font-size: 13px; }
.sidenav a:hover { background: rgba(0, 0, 0, .08); text-decoration: none; }
.sidenav a.side-logo:hover { background: none; }
.sidenav a.active, .sidenav a.active:hover { background: var(--ui-side-on); color: var(--ui-text); border-left: 5px solid var(--s-accent); padding-left: 7px; }
.sidenav .ico[data-icon] { color: inherit; vertical-align: 0; }
.sidenav .nav-account { margin-top: auto; position: sticky; bottom: 0; background: var(--ui-side); padding: 10px 12px; font-size: 12px; color: var(--ui-muted); overflow-wrap: anywhere; }
@media (max-width: 700px) {   /* 置-10 上の帯は横 1 列の横スクロール */
  .ui-layout { flex-direction: column; }
  .sidenav { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidenav .side-logo { height: 44px; padding: 6px 10px; }
  .sidenav a { white-space: nowrap; }
  .sidenav .nav-account { margin: 0 0 0 auto; position: static; white-space: nowrap; }
  .page-header { padding: 12px 12px 0; } .page-body { padding: 12px 12px 40px; }
}

/* ---------------------------------------------------------------- 箱。入力の塊だけ枠あり、表の箱は枠なし (置-11) */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--ui-line); border-radius: 6px; }
.card-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ui-line); }
.card-title { font-size: 15px; font-weight: 400; color: var(--s-ink-mute); margin: 0; }   /* 字-2・字-3 */
.card-subtitle { color: var(--ui-muted); font-size: 12px; }
.card-actions { margin-left: auto; }
.card-body { flex: 1; padding: 16px; min-width: 0; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--ui-line); }
.card-img-top { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.card-md { padding: 8px; }
.card:has(> .table-responsive) { background: none; border: 0; border-radius: 0; }
.card:has(> .table-responsive) > .card-header { padding: 0 0 8px; border-bottom: 0; flex-wrap: wrap; }
.card:has(> .table-responsive) > .card-body { padding: 0 0 12px; border-bottom: 0 !important; }
.card:has(> .table-responsive) > .card-footer { padding: 10px 0 0; border-top: 0; }
.row-cards > * > .card { height: auto; }

/* ---------------------------------------------------------------- 表 (字-1: 13px・行 35px・見出し 11px 薄字) */
.table-responsive { overflow-x: auto; }
.card-table { margin: 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 7px 9px; border-bottom: 1px solid var(--ui-line); text-align: left; font-size: 13px; }
.table th { background: var(--ui-th); font-weight: 400; color: var(--ui-muted); font-size: 11px; white-space: nowrap; }
.table td a { color: inherit; } .table td a:hover { color: var(--s-accent); }
.table-vcenter td, .table-vcenter th { vertical-align: middle; }
.table-sm th, .table-sm td { padding: 4px 6px; }
.table th.text-end, .table td.text-end { text-align: right; } .table th.text-center, .table td.text-center { text-align: center; }
.table th.sortable { cursor: pointer; user-select: none; } .table th.sortable:hover { background: var(--ui-th-hover); }   /* 部-13 */
.table th.sortable.on { color: var(--ui-text); }
.table th.sortable .sort-mark { display: inline-block; width: 10px; height: 10px; margin-left: 3px; vertical-align: -1px; color: #9aa3ab; }
.table th.sortable:not(.on) .sort-mark { opacity: 0; } .table th.sortable:not(.on):hover .sort-mark { opacity: .6; }
.table-rows { table-layout: fixed; min-width: 720px; }   /* 机で見る表はスマホで横スクロール (置-10)。無いと幅の決まっていない題の列が 0 に潰れる */
.table-rows td { padding-top: 3px; padding-bottom: 3px; height: 35px; }
.table-rows.with-photo td { height: 46px; }
.table-rows .photo-cell { padding-right: 4px; padding-left: 6px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #f1f3f5; max-width: none; }
.table-rows .thumb { width: 40px; height: 40px; vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.list-group { display: flex; flex-direction: column; border: 1px solid var(--ui-line); border-radius: 6px; background: #fff; }
.list-group-flush { border: 0; border-radius: 0; }
.list-group-item { display: block; padding: 8px 12px; border-bottom: 1px solid var(--ui-line); color: inherit; }
.list-group-item:last-child { border-bottom: 0; }
.list-group-item-action:hover { background: var(--s-hover); text-decoration: none; }

/* ---------------------------------------------------------------- ボタン (部-1: 主 = 塗り・副 = 白地に部署の色の枠・危険 = 赤枠)。a / label でも同じ形に */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 14px; line-height: 20px; padding: 7px 16px;
  border-radius: var(--s-radius); cursor: pointer; white-space: nowrap; background: #fff; border: 1px solid var(--s-accent); color: var(--s-accent); text-decoration: none; vertical-align: middle; }
.btn:hover:not(:disabled) { background: var(--s-hover); text-decoration: none; }
.btn-primary { background: var(--s-accent); border-color: var(--s-accent); color: #fff; font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--s-deep); border-color: var(--s-deep); }
.btn-outline-primary { color: var(--s-accent); }
.btn-sm { padding: 3px 9px; font-size: 12px; line-height: 20px; }   /* 28px = mini */
.btn-danger { background: var(--s-danger); border-color: var(--s-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #8f1414; border-color: #8f1414; }
.btn-outline-danger, .btn-ghost-danger { background: #fff; border-color: var(--s-danger); color: var(--s-danger); }
.btn-outline-danger:hover:not(:disabled), .btn-ghost-danger:hover:not(:disabled) { background: var(--s-warn-bg); }
.btn-outline-secondary, .btn-ghost-secondary { background: #fff; border-color: var(--s-ink-mute); color: var(--s-ink-mute); }
.btn-outline-secondary:hover:not(:disabled), .btn-ghost-secondary:hover:not(:disabled) { background: #f6f6f6; }
.btn-ghost-danger, .btn-ghost-secondary { border-color: transparent; background: none; }
.btn-link { border-color: transparent; background: none; color: var(--s-accent); }
.btn-icon { width: 36px; padding-left: 0; padding-right: 0; }
.btn.disabled, a.disabled { opacity: .45; pointer-events: none; }
.btn-group { display: inline-flex; } .btn-group > .btn { border-radius: 0; margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: var(--s-radius) 0 0 var(--s-radius); margin-left: 0; } .btn-group > .btn:last-child { border-radius: 0 var(--s-radius) var(--s-radius) 0; }
svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------------------------------------------------------------- 欄 (枠・高さは suite.css。ここは幅と、suite に無い種類) */
.form-control, .form-select { display: block; width: 100%; min-width: 0; }
input.form-control, select.form-select { height: 36px; padding: 7px 9px; border: 1px solid var(--s-grey); border-radius: var(--s-radius); font: inherit; font-size: 14px; background-color: #fff; color: var(--s-ink); }
input[type="datetime-local"].form-control { -webkit-appearance: none; appearance: none; line-height: 20px; }
.form-control:focus, .form-select:focus { border-color: var(--s-accent); box-shadow: inset 0 0 0 1px var(--s-accent); outline: none; }
input.form-control-sm, select.form-select-sm { height: 28px; padding: 3px 7px; font-size: 12px; }
select.form-select-sm { padding-right: 24px; background-position: right 7px center; }
input.form-control-lg { height: 44px; font-size: 18px; }
.form-control-plaintext { display: block; width: 100%; padding: 7px 0; line-height: 20px; }
.form-label { display: flow-root; font-size: 12px; color: var(--ui-muted); margin: 0 0 3px; }   /* .fl と同じ (置-2)。flow-root = 右に浮かせた説明文が長くて折り返しても、次の欄が横に回り込まない（2026-11-06） */
.form-label.required::after { content: " *"; color: var(--s-danger); }
.form-label-description { float: right; font-size: 11px; color: var(--ui-muted); }
.form-hint { font-size: 11px; color: var(--ui-muted); margin-top: 2px; }
.form-check { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-bottom: 4px; cursor: pointer; }
.form-check-input { flex: none; }
.form-check-inline { display: inline-flex; margin-right: 12px; }
.form-check-label { font-size: 13px; }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > .form-select { flex: 1; width: 1%; }
.input-group > * { border-radius: 0 !important; margin-left: -1px; } .input-group > *:first-child { border-radius: var(--s-radius) 0 0 var(--s-radius) !important; margin-left: 0; }
.input-group > *:last-child { border-radius: 0 var(--s-radius) var(--s-radius) 0 !important; } .input-group > *:only-child { border-radius: var(--s-radius) !important; }
.input-group-text { display: flex; align-items: center; padding: 0 9px; font-size: 13px; color: var(--ui-muted); background: #f6f7f8; border: 1px solid var(--s-grey); white-space: nowrap; }
.input-group-sm > .form-control, .input-group-sm > .form-select, .input-group-sm > .input-group-text { height: 28px; font-size: 12px; padding-top: 3px; padding-bottom: 3px; }
.autosave-msg { margin-left: 8px; font-size: 12px; white-space: nowrap; }
.autosave-msg[data-kind="busy"] { color: var(--ui-muted); } .autosave-msg[data-kind="ok"] { color: var(--s-ok-fg); } .autosave-msg[data-kind="ng"] { color: var(--s-danger); }
.imgblk { border: 1px dashed var(--ui-line); border-radius: 8px; padding: 8px; text-align: center; }
.imgblk.dropready { border-color: var(--s-accent); background: var(--s-hover); }
.imgblk-preview { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; }

/* ---------------------------------------------------------------- タブ・知らせの帯 */
.nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-tabs { gap: 4px; border-bottom: 1px solid var(--s-grey); width: 100%; }
.nav-tabs .nav-link { display: block; border: 1px solid var(--s-grey); border-bottom: 0; background: var(--s-thead); color: var(--s-accent); font-size: 14px; line-height: 1; padding: 9px 22px;
  border-radius: var(--s-radius-tab) var(--s-radius-tab) 0 0; min-width: 120px; text-align: center; }
.nav-tabs .nav-link:hover { background: var(--s-hover); text-decoration: none; }
.nav-tabs .nav-link.active { background: #fff; color: var(--s-deep); font-weight: 700; border-color: var(--s-accent); border-bottom: 2px solid #fff; margin-bottom: -1px; }
.card-header-tabs { margin: 0; }
@media (max-width: 500px) { .nav-tabs .nav-item { flex: 1; } .nav-tabs .nav-link { min-width: 0; padding: 9px 10px; } }
.alert { padding: 10px 14px; margin-bottom: 12px; border-radius: var(--s-radius); font-size: 13px; background: var(--s-info-bg); color: var(--s-info-fg); }
.alert-success { background: var(--s-ok-bg); color: var(--s-ok-fg); }
.alert-danger { background: var(--s-warn-bg); color: var(--s-warn-fg); }
.alert-warning { background: var(--s-todo-bg); color: var(--s-todo-fg); }
.spinner-border { display: inline-block; width: 24px; height: 24px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin .75s linear infinite; }
.spinner-border-sm { width: 14px; height: 14px; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- 札の色 (意味の色は suite の値) */
.bg-green-lt { background: var(--s-ok-bg) !important; color: var(--s-ok-fg) !important; }
.bg-red-lt { background: var(--s-warn-bg) !important; color: var(--s-warn-fg) !important; }
.bg-orange-lt, .bg-yellow-lt { background: var(--s-todo-bg) !important; color: var(--s-todo-fg) !important; }
.bg-azure-lt, .bg-blue-lt { background: var(--s-info-bg) !important; color: var(--s-info-fg) !important; }
.bg-secondary-lt { background: var(--s-off-bg) !important; color: var(--s-off-fg) !important; }
.bg-primary-lt { background: var(--s-tint) !important; color: var(--s-deep) !important; }
.bg-purple-lt { background: #f1e6fb !important; color: #6b3fa0 !important; }
.bg-pink-lt { background: #fde7f0 !important; color: #9d174d !important; }
.bg-green { background: var(--s-ok-fg) !important; color: #fff !important; }
.bg-pink { background: #d6336c !important; color: #fff !important; }
.bg-surface-secondary { background: var(--tblr-bg-surface-secondary) !important; }

/* ---------------------------------------------------------------- 文字の小物 */
.small { font-size: 12px; } .h2 { font-size: 20px; } .fs-3 { font-size: 15px; }
.text-secondary { color: var(--ui-muted) !important; } .text-white { color: #fff !important; }
.text-red, .text-danger { color: var(--s-danger) !important; } .text-green, .text-success { color: var(--s-ok-fg) !important; } .text-primary { color: var(--s-accent) !important; }
.text-end { text-align: right !important; } .text-center { text-align: center !important; }
.text-nowrap { white-space: nowrap !important; } .text-decoration-none { text-decoration: none !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-normal, .fw-medium { font-weight: 400 !important; } .fw-bold { font-weight: 700 !important; }
.user-select-all { user-select: all; } .align-top { vertical-align: top !important; } .rounded { border-radius: 6px !important; }
.border { border: 1px solid var(--ui-line) !important; } .border-top { border-top: 1px solid var(--ui-line) !important; } .border-bottom { border-bottom: 1px solid var(--ui-line) !important; }
.border-danger { border-color: var(--s-danger) !important; }
.w-100 { width: 100% !important; } .w-auto { width: auto !important; } .mx-auto { margin-left: auto !important; margin-right: auto !important; }
.d-flex { display: flex !important; } .d-block { display: block !important; } .d-inline { display: inline !important; } .d-inline-block { display: inline-block !important; }
.flex-wrap { flex-wrap: wrap !important; } .flex-column { flex-direction: column !important; } .flex-fill { flex: 1 1 auto !important; }
.align-items-center { align-items: center !important; } .align-items-start { align-items: flex-start !important; } .align-items-end { align-items: flex-end !important; } .align-items-baseline { align-items: baseline !important; }
.justify-content-end { justify-content: flex-end !important; } .justify-content-between { justify-content: space-between !important; }
.collapse:not(.show) { display: none; }
@media print { .d-print-none { display: none !important; } }

/* ---------------------------------------------------------------- 暦と時刻の小窓 (js/date-layer.js。家族共有の形が標準・2026-11-01)。下は家族共有の app.css の写し */
:root { --ui-sun: #e03e3e; --ui-sat: #2f6fd6; }
.hint { font-size: 11px; color: var(--ui-muted); }
.ui-datetime { display: flex; gap: 8px; }
.ui-datetime .datefield { flex: 1; min-width: 0; }
.ui-datetime .datefield.tm { flex: 0 0 104px; }
.datefield input { width: 100%; }
.datefield input[readonly] { background: #fff; color: var(--s-ink); }
.datefield .dicon:disabled { opacity: .35; }
.datefield { position: relative; }
.datefield input { padding-right: 40px; cursor: pointer; }
.datefield .dicon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; padding: 0; color: #555; display: inline-flex; align-items: center; justify-content: center; }
.datefield .dicon svg { width: 20px; height: 20px; }
.modal.datelayer { z-index: 2600; align-items: center; padding: 16px; background: rgba(0,0,0,.45); }
.modal.datelayer .sheet { max-width: 340px; border-radius: 14px; padding: 14px 14px 10px; transform: none; }
.dl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dl-head .ym { font-size: 17px; font-weight: 700; }
.dl-head .nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ui-line); background: #fff; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.dl-dow, .dl-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dl-dow span { text-align: center; font-size: 11px; color: var(--ui-muted); padding: 4px 0 6px; }
.dl-dow span:first-child { color: var(--ui-sun); } .dl-dow span:last-child { color: var(--ui-sat); }
.dl-days button { display: block; width: 40px; height: 40px; margin: 1px auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ui-text); font-size: 15px; }
.dl-days .out { color: #c4c8cd; }
.dl-days .sun:not(.out), .dl-days .hol:not(.out) { color: var(--ui-sun); } .dl-days .sat:not(.out) { color: var(--ui-sat); }
.dl-days .dis { color: #c4c8cd !important; text-decoration: line-through; pointer-events: none; }
.dl-days .today { box-shadow: inset 0 0 0 1.5px #222; }
.dl-days .on, .dl-days .on.sun, .dl-days .on.sat, .dl-days .on.hol { background: var(--s-accent); color: #fff; }
/* 期間: 間の日は薄い緑の帯、両端は丸。帯は左右いっぱいに伸ばして繋げる */
.dl-days .mid, .dl-days .mid.sun, .dl-days .mid.sat, .dl-days .mid.hol { background: var(--s-tint); border-radius: 0; width: 100%; color: var(--s-deep); }
.dl-days .r-start { background: linear-gradient(to right, transparent 50%, var(--s-tint) 50%); width: 100%; border-radius: 0; }
.dl-days .r-end { background: linear-gradient(to left, transparent 50%, var(--s-tint) 50%); width: 100%; border-radius: 0; }
.dl-days .r-start::after, .dl-days .r-end::after { content: attr(data-d); }
.dl-days .r-start, .dl-days .r-end { position: relative; color: #fff; }
.dl-days .r-start::before, .dl-days .r-end::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--s-accent); z-index: -1; }
.dl-days .r-start, .dl-days .r-end { isolation: isolate; }
.tl-head { text-align: center; margin-bottom: 8px; }
.tl-head .ym { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-grid { display: grid; gap: 6px; grid-template-columns: 34px repeat(6, 1fr); align-items: stretch; }   /* 見出し 1 列 + 6 列 (2026-10-18) */
.tl-grid .tl-lbl { display: flex; align-items: center; font-size: 12px; color: var(--ui-muted); }
.tl-grid .tl-lbl.two { grid-row: span 2; }
.tl-grid button { padding: 6px 0 5px; border-radius: 8px; background: #f3f4f6; font-size: 15px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tl-grid.hours button small { display: block; font-size: 10px; line-height: 12px; color: var(--ui-muted); min-height: 12px; }   /* 午後の 12 時間の呼び方 (13 → 1) */
.tl-grid.hours button.night { color: #9aa0a6; }   /* 0〜5 時は夜中。薄く */
.tl-grid.mins button { padding: 10px 0; }
.tl-grid.mins button.big { font-size: 17px; font-weight: 700; }   /* 00・30 */
.tl-grid.mins button.mid { font-weight: 600; }                    /* 15・45 */
.tl-grid.mins button.lite { color: #8a9096; }                     /* 05・10・20 … */
.tl-grid button.on { background: var(--s-accent); color: #fff; font-weight: 700; }
.tl-grid button.on small { color: rgba(255,255,255,.85); }
.tl-grid button:disabled { color: #c3c7cc; background: #f8f9fa; }   /* 始まりより前の時刻（終わりの欄）*/
.tl-grid button:disabled small { color: #d5d8dc; }
.tl-sep { font-size: 12px; color: var(--ui-muted); margin: 10px 0 6px; }
.dl-days button.mark { position: relative; box-shadow: inset 0 0 0 1.5px #b07cd8; }          /* 印の日（例: 前の ver.） */
.dl-days .dl-mk { position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%); padding: 0 4px; border-radius: 6px; background: #f3e8ff; color: #6b21a8; font-size: 9px; line-height: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.dl-days .on .dl-mk { background: #fff; }
.dl-marks { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; color: #555; }
.dl-marks i { font-style: normal; display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 6px; background: #f3e8ff; color: #6b21a8; font-size: 10px; font-weight: 700; }
.dl-sum { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; }
.dl-sum .hint { margin: 0 0 0 auto; }
.dl-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ui-line); }
.dl-foot .spacer { flex: 1; }
.dl-foot button { padding: 8px 14px; }

/* ---------------------------------------------------------------- 余白 (0 / 4 / 8 / 16 / 24px) */
.m-0 { margin: 0 !important; } .m-1 { margin: 4px !important; } .m-2 { margin: 8px !important; } .m-3 { margin: 16px !important; } .m-4 { margin: 24px !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px !important; } .mt-2 { margin-top: 8px !important; } .mt-3 { margin-top: 16px !important; } .mt-4 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; }
.ms-0 { margin-left: 0 !important; } .ms-1 { margin-left: 4px !important; } .ms-2 { margin-left: 8px !important; } .ms-3 { margin-left: 16px !important; } .ms-4 { margin-left: 24px !important; }
.me-0 { margin-right: 0 !important; } .me-1 { margin-right: 4px !important; } .me-2 { margin-right: 8px !important; } .me-3 { margin-right: 16px !important; } .me-4 { margin-right: 24px !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; } .mx-1 { margin-left: 4px !important; margin-right: 4px !important; } .mx-2 { margin-left: 8px !important; margin-right: 8px !important; } .mx-3 { margin-left: 16px !important; margin-right: 16px !important; } .mx-4 { margin-left: 24px !important; margin-right: 24px !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-1 { margin-top: 4px !important; margin-bottom: 4px !important; } .my-2 { margin-top: 8px !important; margin-bottom: 8px !important; } .my-3 { margin-top: 16px !important; margin-bottom: 16px !important; } .my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.p-0 { padding: 0 !important; } .p-1 { padding: 4px !important; } .p-2 { padding: 8px !important; } .p-3 { padding: 16px !important; } .p-4 { padding: 24px !important; }
.pt-0 { padding-top: 0 !important; } .pt-1 { padding-top: 4px !important; } .pt-2 { padding-top: 8px !important; } .pt-3 { padding-top: 16px !important; } .pt-4 { padding-top: 24px !important; }
.pb-0 { padding-bottom: 0 !important; } .pb-1 { padding-bottom: 4px !important; } .pb-2 { padding-bottom: 8px !important; } .pb-3 { padding-bottom: 16px !important; } .pb-4 { padding-bottom: 24px !important; }
.ps-0 { padding-left: 0 !important; } .ps-1 { padding-left: 4px !important; } .ps-2 { padding-left: 8px !important; } .ps-3 { padding-left: 16px !important; } .ps-4 { padding-left: 24px !important; }
.pe-0 { padding-right: 0 !important; } .pe-1 { padding-right: 4px !important; } .pe-2 { padding-right: 8px !important; } .pe-3 { padding-right: 16px !important; } .pe-4 { padding-right: 24px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; } .px-1 { padding-left: 4px !important; padding-right: 4px !important; } .px-2 { padding-left: 8px !important; padding-right: 8px !important; } .px-3 { padding-left: 16px !important; padding-right: 16px !important; } .px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-1 { padding-top: 4px !important; padding-bottom: 4px !important; } .py-2 { padding-top: 8px !important; padding-bottom: 8px !important; } .py-3 { padding-top: 16px !important; padding-bottom: 16px !important; } .py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.ms-auto { margin-left: auto !important; } .me-auto { margin-right: auto !important; } .mt-auto { margin-top: auto !important; }
.gap-1 { gap: 4px !important; } .gap-2 { gap: 8px !important; } .gap-3 { gap: 16px !important; } .gap-4 { gap: 24px !important; }
@media (min-width: 992px) { .pt-lg-2 { padding-top: 8px !important; } }

/* ---------------------------------------------------------------- 格子 (12 列) */
.row { --ui-g: 16px; display: flex; flex-wrap: wrap; margin: calc(var(--ui-g) / -2); }
.row > * { width: 100%; max-width: 100%; min-width: 0; padding: calc(var(--ui-g) / 2); }
.row.g-2 { --ui-g: 8px; } .row.g-3 { --ui-g: 16px; } .row-cards { --ui-g: 16px; }
.col { flex: 1 0 0%; } .col-auto { flex: 0 0 auto; width: auto; } .row > .col-auto { width: auto; } .col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) { .row > .col-sm-1 { flex: 0 0 auto; width: 8.3333%; } .row > .col-sm-2 { flex: 0 0 auto; width: 16.6667%; } .row > .col-sm-3 { flex: 0 0 auto; width: 25.0000%; } .row > .col-sm-4 { flex: 0 0 auto; width: 33.3333%; } .row > .col-sm-5 { flex: 0 0 auto; width: 41.6667%; } .row > .col-sm-6 { flex: 0 0 auto; width: 50.0000%; } .row > .col-sm-7 { flex: 0 0 auto; width: 58.3333%; } .row > .col-sm-8 { flex: 0 0 auto; width: 66.6667%; } .row > .col-sm-9 { flex: 0 0 auto; width: 75.0000%; } .row > .col-sm-10 { flex: 0 0 auto; width: 83.3333%; } .row > .col-sm-11 { flex: 0 0 auto; width: 91.6667%; } .row > .col-sm-12 { flex: 0 0 auto; width: 100.0000%; } }
@media (min-width: 768px) { .row > .col-md-1 { flex: 0 0 auto; width: 8.3333%; } .row > .col-md-2 { flex: 0 0 auto; width: 16.6667%; } .row > .col-md-3 { flex: 0 0 auto; width: 25.0000%; } .row > .col-md-4 { flex: 0 0 auto; width: 33.3333%; } .row > .col-md-5 { flex: 0 0 auto; width: 41.6667%; } .row > .col-md-6 { flex: 0 0 auto; width: 50.0000%; } .row > .col-md-7 { flex: 0 0 auto; width: 58.3333%; } .row > .col-md-8 { flex: 0 0 auto; width: 66.6667%; } .row > .col-md-9 { flex: 0 0 auto; width: 75.0000%; } .row > .col-md-10 { flex: 0 0 auto; width: 83.3333%; } .row > .col-md-11 { flex: 0 0 auto; width: 91.6667%; } .row > .col-md-12 { flex: 0 0 auto; width: 100.0000%; } }
@media (min-width: 992px) { .row > .col-lg-1 { flex: 0 0 auto; width: 8.3333%; } .row > .col-lg-2 { flex: 0 0 auto; width: 16.6667%; } .row > .col-lg-3 { flex: 0 0 auto; width: 25.0000%; } .row > .col-lg-4 { flex: 0 0 auto; width: 33.3333%; } .row > .col-lg-5 { flex: 0 0 auto; width: 41.6667%; } .row > .col-lg-6 { flex: 0 0 auto; width: 50.0000%; } .row > .col-lg-7 { flex: 0 0 auto; width: 58.3333%; } .row > .col-lg-8 { flex: 0 0 auto; width: 66.6667%; } .row > .col-lg-9 { flex: 0 0 auto; width: 75.0000%; } .row > .col-lg-10 { flex: 0 0 auto; width: 83.3333%; } .row > .col-lg-11 { flex: 0 0 auto; width: 91.6667%; } .row > .col-lg-12 { flex: 0 0 auto; width: 100.0000%; } }
@media (min-width: 1200px) { .row > .col-xl-1 { flex: 0 0 auto; width: 8.3333%; } .row > .col-xl-2 { flex: 0 0 auto; width: 16.6667%; } .row > .col-xl-3 { flex: 0 0 auto; width: 25.0000%; } .row > .col-xl-4 { flex: 0 0 auto; width: 33.3333%; } .row > .col-xl-5 { flex: 0 0 auto; width: 41.6667%; } .row > .col-xl-6 { flex: 0 0 auto; width: 50.0000%; } .row > .col-xl-7 { flex: 0 0 auto; width: 58.3333%; } .row > .col-xl-8 { flex: 0 0 auto; width: 66.6667%; } .row > .col-xl-9 { flex: 0 0 auto; width: 75.0000%; } .row > .col-xl-10 { flex: 0 0 auto; width: 83.3333%; } .row > .col-xl-11 { flex: 0 0 auto; width: 91.6667%; } .row > .col-xl-12 { flex: 0 0 auto; width: 100.0000%; } }
