/* TRACKBASE UI foundation
   読み込み: mock.css の後。AdminLTE の .card .btn .table .nav-link は上書きしない。
   トークンは .tb-root とPP用スコープで共有し、:root と body へは出さない。
   数値は assets/mock.css の採用値。第1弾はヘッダー、サイドバー、CURRENT_HOME、施設詳細。
*/

/* 1. Design Tokens — mock.css :root 1–36行、および同ファイル内の採用色 */
.tb-root,
.tb-ui-header,
.tb-ui-sidebar,
.pp-home,
.pp-booth-detail {
  --tb-brand: #168ed1;
  --tb-brand-dark: #0c6fa8;
  --tb-navy: #26394b;
  --tb-teal: #4f9a94;
  --tb-green: #2f9d72;
  --tb-orange: #f0a53b;
  --tb-red: #d85b5b;
  --tb-ink: #27313b;
  --tb-muted: #6f7a84;
  --tb-line: #dfe4e8;
  --tb-page: #f3f5f8;
  --tb-panel: #fff;
  --tb-sidebar: 250px;
  --tb-header: 57px;
  --tb-shadow: 0 1px 4px rgba(28, 39, 49, .11);
  --tb-space-1: 4px;
  --tb-space-2: 8px;
  --tb-space-3: 12px;
  --tb-space-4: 16px;
  --tb-space-5: 24px;
  --tb-space-6: 32px;
  --tb-radius-sm: 4px;
  --tb-radius-md: 8px;
  --tb-radius-lg: 12px;
  --tb-control-height: 40px;
  --tb-button-height: 40px;
  --tb-button-height-sm: 34px;
  --tb-font-page-title: 26px;
  --tb-font-section-title: 15px;
  --tb-font-body: 15px;
  --tb-font-table: 14px;
  --tb-font-label: 13px;
  --tb-font-caption: 12px;
  --tb-font-button: 14px;
  --tb-font-control: 14px;
  --tb-line-body: 1.55;
  --tb-line-title: 1.3;
  --tb-nav: #3e464d;
  --tb-nav-hover: #f1f4f6;
  --tb-nav-active: #606266;
  --tb-nav-new: #087bbd;
  --tb-header-line: #e8ebee;
  --tb-sidebar-line: #e0e4e7;
  --tb-card-line: #dde2e6;
  --tb-card-head: #949494;
  --tb-icon: #727d85;
  --tb-icon-hover: #eef3f6;
  --tb-focus: #168ed1;
}

/* 2. Typography — mock.css 896–945行の採用サイズ。html / body は変更しない */
.tb-page-title { font-size: var(--tb-font-page-title); line-height: var(--tb-line-title); }
.tb-page-lead { font-size: var(--tb-font-label); line-height: var(--tb-line-body); }
.tb-card-head { font-size: var(--tb-font-section-title); line-height: 1.4; }
.tb-btn { font-size: var(--tb-font-button); }
.tb-btn-sm { font-size: var(--tb-font-label); }
.tb-label { font-size: var(--tb-font-label); }
.tb-control { font-size: var(--tb-font-control); }
.tb-help,
.tb-sync-info,
.tb-tag,
.tb-kana { font-size: var(--tb-font-caption); line-height: 1.5; }
.tb-status-label { font-size: var(--tb-font-label); }
.tb-table,
.tb-facts { font-size: var(--tb-font-table); line-height: var(--tb-line-body); }
.tb-notice { font-size: var(--tb-font-label); line-height: 1.65; }

/* 3. Layout — mock.css 92–109行 */
.tb-main { min-height: 100vh; margin-left: var(--tb-sidebar); padding-top: var(--tb-header); }
.tb-content { width: calc(100% - 8px); margin: 0 auto; padding: 14px 0 38px; }
.tb-grid { display: grid; gap: var(--tb-space-3); }
.tb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); }

/* 4. Header — mock.css 51–67行 */
.tb-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--tb-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 10px; background: var(--tb-panel); border-bottom: 1px solid var(--tb-header-line);
}
.tb-header-start { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tb-brand { display: flex; align-items: center; min-width: 0; }
.tb-brand img { width: 155px; max-width: 100%; height: auto; }
.tb-top-actions { display: flex; align-items: center; gap: var(--tb-space-2); color: #7c858c; }
.tb-header-user {
  display: flex; align-items: center; max-width: 12em; margin-right: var(--tb-space-2);
  color: var(--tb-nav); font-size: var(--tb-font-button); font-weight: 600;
}
.tb-header-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-header-icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--tb-radius-sm); color: var(--tb-icon);
}
.tb-header-icon:hover { background: var(--tb-icon-hover); color: var(--tb-brand-dark); }
.tb-header-icon svg { width: 17px; height: 17px; fill: currentColor; }
.tb-menu-toggle { display: none; border: 0; background: transparent; font-size: 20px; color: #68727b; }
.tb-header-icon:focus-visible,
.tb-menu-toggle:focus-visible,
.tb-nav-link:focus-visible { outline: 2px solid var(--tb-focus); outline-offset: 2px; }

/* 5. Sidebar — mock.css 69–90行。is-future-feature と nav-new は維持 */
.tb-sidebar {
  position: fixed; left: 0; top: var(--tb-header); bottom: 0; z-index: 25; width: var(--tb-sidebar);
  overflow-x: hidden; overflow-y: auto; padding: 9px 8px 14px;
  background: var(--tb-panel); border-right: 1px solid var(--tb-sidebar-line);
}
.tb-account {
  display: flex; align-items: center; gap: 9px; min-height: 52px;
  padding: 9px 16px 11px; margin-bottom: 7px; border-bottom: 1px solid #eceff1;
  font-size: 16px; font-weight: 600;
}
.tb-account img { width: 28px; height: 28px; flex: 0 0 28px; }
.tb-brand-name { min-width: 0; overflow-wrap: anywhere; }
.tb-nav-section {
  margin: 10px 16px 5px; color: #8b949b; font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.tb-nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px 8px 16px;
  margin-bottom: 2px; border-radius: var(--tb-radius-sm); color: var(--tb-nav);
  font-size: 16px; line-height: 1.25;
}
.tb-nav-link:hover { background: var(--tb-nav-hover); }
.tb-nav-link.nav-new { color: var(--tb-nav-new); font-weight: 800; }
.tb-nav-link.is-future-feature { color: var(--tb-brand); font-weight: 600; }
.tb-nav-link.is-future-feature .tb-nav-icon,
.tb-nav-link.is-future-feature .ui-icon { color: inherit; }
.tb-nav-link.active {
  color: #fff; background: var(--tb-nav-active); box-shadow: var(--tb-shadow); font-weight: 700;
}
.tb-nav-icon {
  display: grid; place-items: center; flex: 0 0 26px; width: 26px; text-align: center; font-size: 18px;
}
.tb-nav-icon .ui-icon { width: 18px; height: 18px; }
.tb-nav-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tb-nav-divider { margin: 6px 8px; border-top: 1px solid var(--tb-line); }

/* 6. Page Head / Section — mock.css 94–104行 */
.tb-syncbar {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: var(--tb-space-3);
}
.tb-sync-info { display: flex; align-items: center; gap: 9px; color: #53616c; }
.tb-sync-pill { padding: 8px 11px; border-radius: 5px; background: var(--tb-panel); }
.tb-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--tb-space-4);
  margin: var(--tb-space-2) 0 var(--tb-space-4);
}
.tb-page-title { margin: 0; color: #222d37; letter-spacing: .02em; }
.tb-page-lead { margin: 5px 0 0; color: var(--tb-muted); }

/* 7. Card — mock.css 116–123行 */
.tb-card {
  overflow: hidden; background: var(--tb-panel); border: 1px solid var(--tb-card-line);
  border-radius: var(--tb-radius-md); box-shadow: var(--tb-shadow);
}
.tb-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tb-space-3);
  min-height: 44px; padding: var(--tb-space-2) var(--tb-space-4);
  background: var(--tb-card-head); color: #fff; font-weight: 700;
}
.tb-card-head-light {
  background: var(--tb-panel); color: #242d35; border-bottom: 1px solid var(--tb-line);
}
.tb-card-body { padding: var(--tb-space-4); }

/* 8. Button — mock.css 125–136行 */
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tb-space-2);
  min-height: var(--tb-button-height); padding: 8px 16px; border: 1px solid #cbd2d8;
  border-radius: var(--tb-radius-sm); background: var(--tb-panel); color: #3c4852;
  cursor: pointer; font-weight: 600;
}
.tb-btn:hover { filter: brightness(.97); }
.tb-btn-primary { border-color: var(--tb-brand); background: var(--tb-brand); color: #fff; }
.tb-btn-navy { border-color: var(--tb-navy); background: var(--tb-navy); color: #fff; }
.tb-btn-green { border-color: var(--tb-green); background: var(--tb-green); color: #fff; }
.tb-btn-danger { border-color: #efc7c7; color: var(--tb-red); }
.tb-btn-sm { min-height: var(--tb-button-height-sm); padding: 6px 12px; }
.tb-btn-block { width: 100%; }

/* 9. Table — mock.css 330–334、843–847行 */
.tb-table-wrap { overflow-x: auto; border-radius: 0 0 var(--tb-radius-md) var(--tb-radius-md); }
.tb-table { width: 100%; border-collapse: collapse; }
.tb-table th {
  padding: 10px var(--tb-space-3); background: #92979b; color: #fff; text-align: left; white-space: nowrap;
}
.tb-table td {
  padding: 12px var(--tb-space-3); border-bottom: 1px solid #e7ebee; vertical-align: middle; white-space: nowrap;
}
.tb-table tr:hover td { background: #fafcfd; }
.tb-table tbody tr:last-child td { border-bottom: 0; }
.tb-table th:first-child,
.tb-table td:first-child { padding-left: var(--tb-space-4); }
.tb-table th:last-child,
.tb-table td:last-child { padding-right: var(--tb-space-4); }

/* 10. Form — mock.css 254–264、875行。ラベル下余白6pxは mock.css 256行の採用値 */
.tb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tb-space-4); }
.tb-field-full { grid-column: 1 / -1; }
.tb-label { display: block; margin-bottom: 6px; color: #505c66; font-weight: 700; }
.tb-required { margin-left: var(--tb-space-1); color: var(--tb-red); }
.tb-control {
  width: 100%; min-height: var(--tb-control-height); padding: 8px 12px; border: 1px solid #ccd4da;
  border-radius: var(--tb-radius-sm); background: var(--tb-panel); color: var(--tb-ink); outline: none;
}
.tb-control:focus { border-color: var(--tb-brand); box-shadow: 0 0 0 3px rgba(22, 142, 209, .11); }
.tb-control-month { width: 155px; min-height: var(--tb-button-height-sm); }
.tb-help { margin-top: var(--tb-space-2); color: #84909a; }
.tb-help-right { text-align: right; }
.tb-check { display: inline-flex; align-items: center; gap: var(--tb-space-1); min-height: 24px; line-height: 1; cursor: pointer; }
.tb-check input { flex: 0 0 auto; margin: 0; accent-color: var(--tb-brand); width: 16px; height: 16px; }

/* 11. Status — mock.css 243–252、504、852行の後勝ち値 */
.tb-tag {
  display: inline-flex; align-items: center; gap: var(--tb-space-1); min-height: 24px;
  padding: 3px 9px; border-radius: 999px; color: #52616d; background: #edf1f4; font-weight: 700; white-space: nowrap;
}
.tb-tag-blue { color: #1579b2; background: #e6f3fb; }
.tb-tag-green { color: #217c59; background: #e5f4ed; }
.tb-tag-orange { color: #9b691b; background: #fff1d9; }
.tb-tag-red { color: #a63e3e; background: #fbe8e8; }
.tb-status-label { color: var(--tb-muted); line-height: 1.4; }
.tb-status-value { margin-top: var(--tb-space-2); font-size: 20px; font-weight: 800; line-height: 1.2; }
.tb-status-value small { font-weight: 500; color: var(--tb-muted); font-size: var(--tb-font-caption); }
.tb-notice {
  padding: 12px 16px; border-left: 4px solid var(--tb-brand); border-radius: var(--tb-radius-sm);
  background: #eaf6fc; color: #31576c;
}

/* 12. CURRENT_HOME — mock.css 343–401、488–502行。静的な9月列色はモック確認用で、現行PPへは移さない */
.pp-home .tb-metric {
  padding: 16px; border: 1px solid #e1e6ea; border-radius: 8px; background: #f8f9fc;
  box-shadow: none; color: #27313b;
}
.pp-home .metric-band + .metric-band,
.pp-home .tb-metric-pair { margin-top: 12px; }
@media (min-width: 768px) {
  .pp-home .tb-metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pp-home .tb-metric-pair > .metric-band { margin-top: 0; }
}
.pp-home .tb-metric-value { margin-top: 5px; color: #27313b; font-size: 25px; font-weight: 800; line-height: 40px; }
.pp-home .tb-metric-value small { font-size: 20.8333px; font-weight: 800; line-height: 1.6; }
.pp-home .tb-metric-sub { margin-left: 8px; color: #6f7a84; font-size: 10px; font-weight: 800; line-height: 16px; }
.pp-home .tb-metric-note { display: block; margin: 8px 0 0; }
.pp-home .tb-mini-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pp-home .tb-mini-kpi > div { padding: 12px; border: 1px solid #e2e7ea; border-radius: 4px; background: #fff; }
.pp-home .tb-mini-kpi .tb-status-label { color: #6f7a84; font-size: 13px; font-weight: 400; line-height: 18.2px; }
.pp-home .tb-mini-kpi b { display: block; margin-top: 4px; color: #27313b; font-size: 17px; font-weight: 700; line-height: 1.5; }
.pp-home .tb-dash-pair { align-items: stretch; }
.pp-home .tb-dash-pair > .tb-card { height: 100%; }
.pp-home .tb-toolbar { display: flex; align-items: center; gap: var(--tb-space-2); }
.pp-home .tb-ranking { display: flex; flex-direction: column; }
.pp-home .tb-ranking .tb-table-wrap { flex: 1; }
.pp-home .tb-rank-table td:first-child { width: 44px; text-align: center; font-weight: 800; }
.pp-home .tb-rank-table th:nth-child(n+3),
.pp-home .tb-rank-table td:nth-child(n+3) { text-align: right; }
.pp-home .tb-ranking .tb-table td { padding-top: 11px; padding-bottom: 11px; }
.pp-home .tb-ranking .tb-table th { font-size: var(--tb-font-label); }
.pp-home .tb-rank-medal {
  display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #efc449; color: #fff;
}
.pp-home .tb-rank-table tr:nth-child(2) .tb-rank-medal { background: #aeb8bf; }
.pp-home .tb-rank-table tr:nth-child(3) .tb-rank-medal { background: #b98759; }
.pp-home .tb-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); overflow: hidden;
  border: 1px solid #d8e0e5; border-radius: 7px; background: #dfe4e8; gap: 1px;
}
.pp-home .tb-calendar > div { min-height: 72px; padding: 7px; border: 0; background: #fff; font-size: 10px; }
.pp-home .tb-calendar .dow { min-height: auto; padding: 7px; background: #e9eef2; text-align: center; font-weight: 800; }
.pp-home .tb-calendar > div:nth-child(7n+1) { color: #d85b5b; }
.pp-home .tb-calendar > div:nth-child(7n) { color: #2586bf; }
.pp-home .tb-calendar .other { color: #bdc4c9; background: #fafafa; }
.pp-home .tb-calendar .day { cursor: pointer; }
.pp-home .tb-calendar .day:hover { background: #edf7fc; }
.pp-home .tb-calendar .day.selected {
  position: relative; z-index: 1; outline: 2px solid var(--tb-brand); outline-offset: -2px;
  background: #eaf5fb; box-shadow: inset 0 0 0 1px #fff;
}
.pp-home .tb-calendar-et {
  display: block; width: max-content; min-width: 30px; margin: 8px auto 0; padding: 3px 6px;
  color: #19876a; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.1;
}
.pp-home .tb-calendar-et::after { content: none; display: none; }
.pp-home .tb-daily .tb-card-body { padding: 10px 8px 12px; }
.pp-home .tb-contract { margin-top: var(--tb-space-3); border: 1px solid #e0e5e8; border-radius: 5px; overflow: hidden; }
.pp-home .tb-contract:first-child { margin-top: 0; }
.pp-home .tb-contract-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tb-space-3);
  padding: 11px 13px; background: #fbfcfd; border-bottom: 1px solid #e5eaed;
}
.pp-home .tb-contract-head strong { font-size: var(--tb-font-body); }
.pp-home .tb-venue-link { color: var(--tb-brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.pp-home .tb-contract-head small { color: #388d82; font-weight: 700; }
.pp-home .tb-daily .tb-table th { background: #f1f4f8; color: var(--tb-navy); text-align: center; }
.pp-home .tb-daily .tb-table td { text-align: center; }
.pp-home .tb-annual { table-layout: fixed; width: 100%; min-width: 980px; }
.pp-home .tb-annual th,
.pp-home .tb-annual td { width: 6.6%; text-align: right; }
.pp-home .tb-annual th:first-child,
.pp-home .tb-annual td:first-child {
  position: sticky; left: 0; z-index: 1; width: 14.2%; text-align: left; background: #f0f2f4; font-weight: 800;
}
.pp-home .tb-annual th:first-child { background: #72777b; }
.pp-home .tb-annual thead th { background: #858b90; border-right: 1px solid rgba(255, 255, 255, .28); }
.pp-home .tb-annual tbody tr:nth-child(even) td:not(:first-child) { background: #fafbfc; }
.pp-home .tb-annual th:last-child { background: #555b60; color: #fff; font-weight: 800; }
.pp-home .tb-annual td:last-child { background: #f0f0f0; color: #222d37; font-weight: 800; }

/* 13. Venue Detail — mock.css 315–328行 */
.pp-booth-detail .tb-kana { margin: var(--tb-space-1) 0 0; color: var(--tb-muted); }
.pp-booth-detail .tb-page-head .tb-kana { font-size: var(--tb-font-label); line-height: var(--tb-line-body); }
.pp-booth-detail .tb-meta { display: flex; flex-wrap: wrap; gap: var(--tb-space-2); margin-top: var(--tb-space-2); }
.pp-booth-detail .tb-facts { margin: var(--tb-space-3) 0 0; padding: 0; list-style: none; }
.pp-booth-detail .tb-facts li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--tb-space-3);
  padding: var(--tb-space-3) 0; border-bottom: 1px solid #edf0f2;
}
.pp-booth-detail .tb-facts li:last-child { border-bottom: 0; }
.pp-booth-detail .tb-facts li > b { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.pp-booth-detail .tb-facts li > span { flex: 0 0 7.5em; color: var(--tb-muted); }
.pp-booth-detail .tb-note { margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.pp-booth-detail .tb-map {
  display: grid; place-items: center; min-height: 180px; padding: var(--tb-space-4);
  border: 1px dashed var(--tb-line); border-radius: var(--tb-radius-md); background: #f7f9fb;
  color: var(--tb-muted); text-align: center; line-height: 1.6;
}
.pp-booth-detail .tb-related { margin: 0; padding: 0; list-style: none; }
.pp-booth-detail .tb-related li + li { margin-top: var(--tb-space-2); }
.pp-booth-detail .tb-empty { color: var(--tb-muted); font-weight: 600; }
.pp-booth-detail .tb-block { margin-top: var(--tb-space-4); }
.pp-booth-detail .tb-block:first-child { margin-top: 0; }

/* 14. Responsive — mock.css 198–234、947–950、965–1182行の第1弾該当分 */
@media (min-width: 768px) and (max-height: 880px) {
  .tb-sidebar { padding: 7px 8px 9px; }
  .tb-account { min-height: 46px; padding: 7px 16px 9px; margin-bottom: 4px; }
  .tb-nav-link {
    min-height: clamp(30px, calc((100dvh - 225px) / 16), 38px);
    padding: 5px 16px; margin-bottom: 2px; font-size: 16px;
  }
  .tb-nav-divider { margin: 5px 8px; }
  .tb-nav-section { margin: 7px 16px 3px; }
}

@media (min-width: 768px) and (max-height: 700px) {
  .tb-account { min-height: 40px; padding: 4px 16px 6px; margin-bottom: 2px; }
  .tb-account img { width: 25px; height: 25px; }
  .tb-nav-link { min-height: 31px; padding: 4px 14px; margin-bottom: 1px; font-size: 15px; }
  .tb-nav-icon { width: 24px; font-size: 16px; }
  .tb-nav-divider { margin: 3px 8px; }
  .tb-nav-section { margin: 3px 14px 2px; font-size: 10px; }
}

@media (min-width: 768px) and (max-height: 620px) {
  .tb-account { min-height: 35px; padding-top: 2px; padding-bottom: 3px; font-size: 14px; }
  .tb-account img { width: 22px; height: 22px; }
  .tb-nav-link { min-height: 26px; padding-top: 2px; padding-bottom: 2px; font-size: 14px; }
  .tb-nav-divider { margin: 2px 8px; }
  .tb-nav-section { display: none; }
}

@media (max-width: 900px) {
  .tb-grid-main,
  .tb-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .tb-root,
  .tb-ui-header,
  .tb-ui-sidebar,
  .pp-home,
  .pp-booth-detail { --tb-sidebar: 252px; --tb-header: 52px; }
  .tb-topbar { height: var(--tb-header); padding: 0 10px; }
  .tb-menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; }
  .tb-brand img { width: 138px; }
  .tb-header-user { display: none; }
  .tb-top-actions { gap: 5px; }
  .tb-header-icon { width: 44px; height: 44px; }
  .tb-header-icon svg { width: 20px; height: 20px; }
  .tb-sidebar {
    top: var(--tb-header); width: var(--tb-sidebar); transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 5px 0 20px rgba(0, 0, 0, .15);
  }
  .tb-account { min-height: 42px; padding: 5px 13px 7px; margin-bottom: 2px; }
  .tb-account img { width: 25px; height: 25px; }
  .tb-nav-link {
    min-height: clamp(28px, calc((100dvh - 225px) / 16), 38px);
    padding: 4px 13px; margin-bottom: 1px; font-size: 16px;
  }
  .tb-nav-icon { width: 23px; font-size: 16px; }
  .tb-nav-divider { margin: 3px 7px; }
  .tb-nav-section { margin: 4px 13px 2px; font-size: 10px; }
  body.menu-open .tb-sidebar { transform: translateX(0); }
  .tb-main { margin-left: 0; padding-top: var(--tb-header); }
  .tb-content { width: 100%; padding: 10px 8px 28px; }
  .tb-syncbar { min-height: 54px; }
  .tb-sync-info { display: none; }
  .tb-page-head { align-items: stretch; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
  .tb-page-title { font-size: 24px; }
  .tb-page-lead,
  .pp-booth-detail .tb-page-head .tb-kana { font-size: 14px; line-height: var(--tb-line-body); }
  .tb-page-head > .tb-btn { align-self: stretch; }
  .tb-card { border-radius: 7px; }
  .tb-card-head { min-height: 42px; padding: 9px 11px; font-size: var(--tb-font-section-title); }
  .tb-card-body { padding: var(--tb-space-3); }
  .tb-btn { min-height: 44px; padding: 9px 12px; font-size: var(--tb-font-body); }
  .tb-btn-sm { min-height: 38px; padding: 7px 10px; font-size: var(--tb-font-table); }
  .tb-control { min-height: 46px; padding: 10px 11px; font-size: 16px; }
  .tb-label { font-size: var(--tb-font-table); }
  .tb-help { font-size: var(--tb-font-caption); line-height: 1.5; }
  .tb-tag { font-size: var(--tb-font-caption); }
  .tb-notice { font-size: var(--tb-font-label); line-height: var(--tb-line-body); }
  .tb-status-label { font-size: var(--tb-font-label); }
  .tb-facts li { gap: var(--tb-space-3); padding: 11px 1px; font-size: var(--tb-font-label); }
  .pp-home .tb-calendar > div { min-height: 55px; padding: 4px 2px; font-size: 11px; }
  .pp-home .tb-calendar-et { min-width: 0; margin-top: 5px; padding: 2px; font-size: 14px; }
  .pp-home .tb-calendar-et::after { display: block; font-size: 7px; }
  .pp-home .tb-mini-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .pp-home .tb-mini-kpi > div { padding: 8px 6px; }
  .pp-home .tb-mini-kpi b { font-size: var(--tb-font-body); }
  .pp-home .tb-ranking .tb-table { font-size: var(--tb-font-table); }
  .pp-home .tb-rank-table th,
  .pp-home .tb-rank-table td { padding: 9px 5px; }
  .tb-table-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .tb-table-wrap > .tb-table { width: max-content; min-width: 760px; }
  .pp-home .tb-rank-table { min-width: 620px; }
  .pp-home .tb-daily .tb-table { min-width: 1040px; }
  .pp-home .tb-annual { min-width: 820px; }
  .pp-home .tb-annual-scroll .tb-table-wrap::after { content: none; display: none; }
  .pp-home .tb-annual th,
  .pp-home .tb-annual td { padding: 8px 6px; font-size: var(--tb-font-caption); }
  .tb-table-wrap::after {
    content: "左右にスワイプできます"; display: block; position: sticky; left: 8px;
    width: max-content; margin: 7px 8px; color: #77858f; font-size: 11px;
  }
  .tb-form-grid { grid-template-columns: 1fr; }
}

/* ========================================
   PP CURRENT DOM ADAPTER
   AdminLTE compatibility
   モックの .tb-* には当てない。現行PPの id と、追加予定 class だけを使う。
   開閉の幅と transform は AdminLTE の PushMenu に残す。
======================================== */

/* A. Header — nav.main-header.tb-ui-header */
.tb-ui-header {
  background: var(--tb-panel);
  border-bottom: 1px solid var(--tb-header-line);
  min-height: var(--tb-header);
  box-shadow: none;
}
.tb-ui-header .navbar-nav {
  align-items: center;
}
.tb-ui-header .nav-link,
.tb-ui-header [data-widget="pushmenu"] {
  color: var(--tb-icon);
}
.tb-ui-header .nav-link:hover,
.tb-ui-header [data-widget="pushmenu"]:hover {
  background: var(--tb-icon-hover);
  color: var(--tb-brand-dark);
}
.tb-ui-header .nav-link:focus-visible,
.tb-ui-header [data-widget="pushmenu"]:focus-visible {
  outline: 2px solid var(--tb-focus);
  outline-offset: 2px;
}
.tb-ui-header img {
  width: 155px;
  max-width: 100%;
  height: auto;
}

/* B. Sidebar — aside.main-sidebar.tb-ui-sidebar */
.tb-ui-sidebar {
  background: var(--tb-panel);
  border-right: 1px solid var(--tb-sidebar-line);
}
.tb-ui-sidebar .brand-link {
  color: var(--tb-nav);
  font-weight: 600;
  border-bottom-color: #eceff1;
}
.tb-ui-sidebar .brand-text {
  color: var(--tb-nav);
}
.tb-ui-sidebar .nav-sidebar > .nav-item > .nav-link {
  color: var(--tb-nav);
  border-radius: var(--tb-radius-sm);
  font-size: 16px;
  line-height: 1.25;
}
.tb-ui-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  color: inherit;
}
.tb-ui-sidebar .nav-pills .nav-link:not(.active):hover {
  background: var(--tb-nav-hover);
}
.tb-ui-sidebar.sidebar-light-olive .nav-sidebar > .nav-item > .nav-link.active,
.tb-ui-sidebar .nav-treeview > .nav-item > .nav-link.active {
  color: #fff;
  background: var(--tb-nav-active);
  font-weight: 700;
}
.tb-ui-sidebar .nav-treeview > .nav-item > .nav-link {
  color: var(--tb-nav);
  border-radius: var(--tb-radius-sm);
  font-size: var(--tb-font-table);
}

/* C. CURRENT_HOME — body.pp-home。現行 id を Ajax 後も使う */
.pp-home #latest_update {
  color: #53616c;
  font-size: var(--tb-font-caption);
  line-height: 1.5;
}
.pp-home .content-header .dropdown-toggle,
.pp-home #btn_sync_mirror {
  border-radius: var(--tb-radius-sm);
  font-weight: 600;
}
.pp-home #view_tabs {
  background: var(--tb-panel);
  border: 1px solid var(--tb-card-line);
  border-radius: var(--tb-radius-md);
  box-shadow: var(--tb-shadow);
}
.pp-home #view_tabs .section_change.nav-link.active {
  color: #fff;
  background: var(--tb-nav-active);
  border-color: var(--tb-nav-active);
}
.pp-home .monthly-strip {
  padding: var(--tb-space-4);
  border: 1px solid #e1e6ea;
  border-radius: var(--tb-radius-md);
  background: #f8f9fc;
  box-shadow: none;
}
.pp-home .monthly-strip .strip-num {
  font-size: 25px;
  font-weight: 800;
  color: var(--tb-ink);
}
.pp-home .monthly-strip .meta-label,
.pp-home .monthly-strip .meta-unit,
.pp-home .monthly-strip .strip-unit {
  color: var(--tb-muted);
}
.pp-home #btn_prev_month,
.pp-home #btn_next_month,
.pp-home #btn_search_clear {
  min-height: var(--tb-button-height-sm);
  border-radius: var(--tb-radius-sm);
  font-weight: 600;
}
.pp-home #btn_search_clear {
  background: var(--tb-navy);
  border-color: var(--tb-navy);
  color: #fff;
}
.pp-home #form_input_month {
  min-height: var(--tb-button-height-sm);
  border-radius: var(--tb-radius-sm);
  font-size: var(--tb-font-control);
}
.pp-home #calendar {
  --fc-border-color: #e6eaed;
  border: 1px solid #e3e7ea;
  border-radius: 7px;
  background: #fff;
}
.pp-home #calendar .fc-scrollgrid,
.pp-home #calendar.fc-theme-standard td,
.pp-home #calendar.fc-theme-standard th {
  border-color: #e6eaed;
}
.pp-home #calendar .fc-col-header-cell {
  background: #f7f8f9;
}
.pp-home #calendar .fc-col-header-cell-cushion {
  padding: 7px;
  color: #3c4852;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}
.pp-home #calendar .fc-daygrid-day-number {
  padding: 7px 7px 0;
  color: #3c4852;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}
.pp-home #calendar .fc-day-sat .fc-col-header-cell-cushion,
.pp-home #calendar .fc-day-sat .fc-daygrid-day-number {
  color: #3d7ea6;
}
.pp-home #calendar .fc-day-sun .fc-col-header-cell-cushion,
.pp-home #calendar .fc-day-sun .fc-daygrid-day-number {
  color: #c45b5b;
}
.pp-home #calendar .fc-day-today,
.pp-home #calendar .fc-selected-highlight,
.pp-home #calendar .fc-today-highlight {
  background: #e7f3fb !important;
}
.pp-home #calendar .fc-selected-highlight {
  box-shadow: inset 0 0 0 2px #8ec3e4;
}
.pp-home #calendar a.birthday {
  border: 0;
  border-radius: 4px;
  background: #fdecef;
}
.pp-home #calendar a.birthday .fc-event-title {
  color: #8d5360;
  font-size: 10px;
  font-weight: 600;
}
.pp-home #ranking {
  max-height: none;
  overflow: visible;
}
.pp-home #ranking_list {
  font-size: 14px;
}
.pp-home #ranking_list thead th {
  padding: 10px 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.pp-home #ranking_list tbody td {
  padding: 4px 6px;
  color: #27313b;
  font-size: 14px;
  line-height: 1.55;
}
.pp-home #ranking_list thead th.rank-col,
.pp-home #ranking_list thead th.name-col { background: #bdbcbc; }
.pp-home #ranking_list thead th.workdays-col { background: #2f8a45; }
.pp-home #ranking_list thead th.et-col { background: #5d6cb5; }
.pp-home #ranking_list thead th.ok-col { background: #3d82b8; }
.pp-home #ranking_list thead th.okrate-col,
.pp-home #ranking_list thead th.okave-col { background: #4e8eb4; }
.pp-home #ranking_list tbody tr:nth-child(odd) td { background: #f3f4f5; }
.pp-home #ranking_list tbody tr:nth-child(even) td { background: #fff; }
.pp-home #ranking_list tbody tr:nth-child(n+11) td { padding-top: 6px; padding-bottom: 6px; }
.pp-home #ranking_list tbody tr:nth-child(-n+3) .ranking-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .pp-home #ranking_list .name-col { width: 23%; }
  .pp-home #ranking_list .workdays-col { width: 11%; }
  .pp-home #ranking_list thead th {
    overflow: visible;
    text-overflow: clip;
    padding-right: 1px;
    padding-left: 1px;
  }
}
.pp-home #ranking_list tbody td.name-col a,
.pp-home #ranking_list tbody td.name-col a:visited {
  color: #388d82;
  font-weight: 600;
  text-decoration: none;
}
.pp-home #ranking_list tbody td.name-col a:hover {
  color: #388d82;
  text-decoration: underline;
}
.pp-home #daily_data,
.pp-home #day-details {
  color: var(--tb-ink);
}
.pp-home #individual_daily_list {
  font-size: var(--tb-font-table);
}
.pp-home #individual_daily_list th {
  background: #f1f4f8;
  color: var(--tb-navy);
  text-align: center;
}
.pp-home #individual_daily_list .js-daily-row[data-has-detail="1"] {
  cursor: pointer;
}
.pp-home #individual_daily_list tr.row_cancel td {
  background: #eeeeee;
  color: #7b8288;
}
.pp-home #individual_daily_list tr.detail-row td {
  background: #f7f7f7;
  color: #6b7379;
  text-align: left;
}
.pp-home #total_count_list {
  font-size: var(--tb-font-table);
}
.pp-home #total_count_list thead th {
  background: #858b90;
  color: #fff;
}
.pp-home #yearly-chart,
.pp-home #paykind-chart-dl,
.pp-home #status-chart {
  color: var(--tb-ink);
}

/* 残りのCURRENT_HOMEカードと更新バー。既存id・classは残す */
.pp-home #latest_update {
  padding: 6px 10px;
  border: 1px solid var(--tb-line);
  border-radius: 999px;
  background: var(--tb-panel);
}
.pp-home .content-header .btn-outline-primary {
  border-color: var(--tb-brand);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-panel);
  color: var(--tb-brand-dark);
  font-weight: 600;
}
.pp-home .content-header .btn-outline-primary:hover {
  border-color: var(--tb-brand);
  background: var(--tb-brand);
  color: #fff;
}
.pp-home .content .card {
  border: 1px solid var(--tb-card-line);
  border-radius: var(--tb-radius-md);
  box-shadow: var(--tb-shadow);
}
.pp-home .content .card > .card-header,
.pp-home .card.card-gray:not(.card-outline) > .card-header {
  background: var(--tb-panel);
  color: var(--tb-navy);
  border-bottom: 1px solid var(--tb-line);
}
.pp-home .content .card > .card-header .card-title,
.pp-home .content .card > .card-header .text-sm {
  color: var(--tb-navy);
}
.pp-home .content .card > .card-header .card-title {
  font-size: var(--tb-font-section-title);
  font-weight: 700;
}
.pp-home .kpi.kpi-compare {
  border-radius: var(--tb-radius-md);
}
.pp-home .content-wrapper {
  background: var(--tb-page);
}
.pp-home #calendar_col > .tb-card,
.pp-home #right_col > .tb-card {
  height: 100%;
}
@media (max-width: 1199.98px) {
  .pp-home #calendar_col,
  .pp-home #right_col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}
@media (min-width: 1280px) {
  .pp-home #calendar_col,
  .pp-home #right_col {
    display: flex;
    flex-direction: column;
  }
  .pp-home #calendar_col > .tb-card,
  .pp-home #right_col > .tb-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-bottom: 0;
  }
  .pp-home #calendar_card,
  .pp-home #ranking {
    flex: 1 1 auto;
  }
}
.pp-home .tb-card > .card-footer {
  background: var(--tb-panel);
  border-top: 1px solid var(--tb-line);
  color: var(--tb-muted);
}
.pp-home .card.card-outline.card-warning.tb-card {
  border-top: 1px solid var(--tb-card-line);
}
.pp-home .tb-annual-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pp-home .tb-annual-scroll > .tb-table-wrap {
  overflow: visible;
  width: 980px;
  min-width: 100%;
  max-width: none;
}
.pp-home .tb-annual-scroll > .tb-table-wrap + .tb-table-wrap {
  margin-top: 16px;
}
.pp-home .tb-annual-scroll > .tb-table-wrap::after {
  content: none;
  display: none;
}
.pp-home .tb-annual,
.pp-home .tb-annual-live {
  width: 100%;
  max-width: none;
  min-width: 980px;
  table-layout: fixed;
  margin-bottom: 0;
  border-color: #e3e7ea;
}
.pp-home .tb-annual-live:last-child {
  margin-bottom: 0;
}
.pp-home #total_count_list.tb-annual-live {
  width: 100%;
  max-width: none;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.pp-home #total_count_list.tb-annual-live th,
.pp-home #total_count_list.tb-annual-live td {
  width: 6.6%;
  min-width: 0;
  padding: 12px;
  border-color: #e3e7ea;
  border-top-width: 0;
  vertical-align: middle;
}
.pp-home #ranking_list th,
.pp-home #ranking_list td {
  border-top-width: 0;
}
.pp-home #total_count_list.tb-annual-live th:first-child,
.pp-home #total_count_list.tb-annual-live td:first-child {
  width: 14.2%;
}
.pp-home #total_count_list.tb-annual-live td {
  text-align: right;
}
.pp-home #total_count_list.tb-annual-live tbody tr:nth-child(odd) td:not(.highlight):not(:last-child) {
  background: #f4f5f6;
}
.pp-home #total_count_list.tb-annual-live tbody tr:nth-child(even) td:not(.highlight):not(:last-child) {
  background: #fff;
}
.pp-home #total_count_list.tb-annual-live thead th.yearly {
  background: #555b60;
}
.pp-home #total_count_list.tb-annual-live td:last-child {
  background: #f0f0f0;
  color: #222d37;
  font-weight: 800;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live thead th.highlight {
  background-color: #1579b2 !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live tbody td.highlight {
  background-color: #c5e4f6 !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
}
.pp-home #daily_card {
  padding-top: 16px;
}
@media (max-width: 767.98px) {
  .pp-home #daily_card {
    padding-top: 12px;
  }
}
.pp-home .tb-annual-live th:first-child,
.pp-home .tb-annual-live td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
}
.pp-home #total_count_list.tb-annual-live th:last-child,
.pp-home #total_count_list.tb-annual-live td:last-child {
  position: static;
  right: auto;
}
.pp-home .tb-annual-live thead th:first-child {
  z-index: 2;
}
.pp-home #total_count_list.tb-annual-live {
  border-collapse: separate;
  border-spacing: 0;
}
.pp-home #total_count_list.tb-annual-live tbody th {
  padding-left: 22px;
}
.pp-home #total_count_list.tb-annual-live tbody tr:last-child > :first-child {
  border-bottom-left-radius: 8px;
  overflow: hidden;
}
.pp-home #total_count_list.tb-annual-live tbody tr:last-child > :last-child {
  border-bottom-right-radius: 8px;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .pp-home #ranking {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  .pp-home #ranking::after,
  .pp-home #ranking .tb-table-wrap::after {
    content: none;
    display: none;
  }
  .pp-home #ranking_list {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 14.4px;
  }
  .pp-home #ranking_list thead th {
    padding: 6px 1px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
  }
  .pp-home #ranking_list tbody td,
  .pp-home #ranking_list tbody td.name-col,
  .pp-home #ranking_list tbody td.et-col,
  .pp-home #ranking_list tbody td.ok-col,
  .pp-home #ranking_list tbody td.workdays-col,
  .pp-home #ranking_list tbody td.okrate-col,
  .pp-home #ranking_list tbody td.okave-col {
    padding: 4px 1px;
    font-size: 14.4px;
    font-weight: 400;
    line-height: 1.55;
  }
  .pp-home #ranking_list tbody td.name-col a {
    padding: 0;
    font-size: 14.4px;
    font-weight: 400;
    line-height: 1.55;
  }
  .pp-home #ranking_list tbody td.name-col {
    padding-left: 4px;
  }
  .pp-home #ranking_list tbody tr:nth-child(-n+3) td {
    height: auto;
  }
  .pp-home #ranking_list tbody td.rank-col {
    font-size: 0;
    line-height: 0;
    padding: 4px 0;
  }
  .pp-home #ranking_list .rank-col { width: 9%; }
  .pp-home #ranking_list .name-col { width: 34%; }
  .pp-home #ranking_list .workdays-col { width: 10%; }
  .pp-home #ranking_list .et-col,
  .pp-home #ranking_list .ok-col { width: 8%; }
  .pp-home #ranking_list .okrate-col { width: 15%; }
  .pp-home #ranking_list .okave-col { width: 16%; }
  .pp-home #ranking_list td.name-col a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pp-home #ranking_list .ranking-icon {
    display: block;
    margin: 0 auto;
  }
  .pp-home #ranking_list tbody tr:nth-child(-n+3) .ranking-icon {
    width: 24px;
    height: 24px;
  }
  .pp-home .tb-syncbar .btn,
  .pp-home .tb-toolbar .btn {
    min-height: 44px;
  }
  .pp-home .wrapper,
  .pp-home .content-wrapper,
  .pp-home .content {
    max-width: 100%;
    overflow-x: hidden;
  }
  .pp-home .tb-annual-scroll > .tb-table-wrap {
    overflow: visible;
    width: 820px;
    min-width: 100%;
    max-width: none;
  }
  .pp-home .tb-annual-scroll > .tb-table-wrap::after {
    content: none;
    display: none;
  }
  .pp-home #total_count_list.tb-annual-live {
    width: 100%;
    max-width: none;
    min-width: 820px;
    table-layout: fixed;
  }
  .pp-home #total_count_list.tb-annual-live th,
  .pp-home #total_count_list.tb-annual-live td {
    width: 6.6%;
    min-width: 0;
    padding: 8px 6px;
    font-size: var(--tb-font-caption);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  .pp-home #total_count_list.tb-annual-live th:first-child,
  .pp-home #total_count_list.tb-annual-live td:first-child {
    width: 14.2%;
    padding-left: 22px;
    text-align: left;
    white-space: nowrap;
  }
  .pp-home .card-body#number:has(.tb-annual-scroll) {
    padding: 12px;
  }
  .pp-home .tb-annual-m,
  .pp-home .tb-annual-u {
    display: inline;
  }
  .pp-home .tb-daily .tb-table-wrap::after,
  .pp-home #day-details .tb-table-wrap::after {
    content: none;
    display: none;
  }
  .pp-home .tb-daily .tb-table-wrap,
  .pp-home #day-details .tb-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}

.pp-home #sync_mirror_overlay {
  background: rgba(243, 245, 248, .72);
}

/* D. Venue — body.pp-booth-detail。#main_form は画面rootにしない */
.pp-booth-detail .breadcrumb {
  background: transparent;
  font-size: var(--tb-font-label);
}
.pp-booth-detail .breadcrumb a {
  color: var(--tb-brand-dark);
}
.pp-booth-detail .content-header h1 {
  margin: 0;
  color: #222d37;
  font-size: var(--tb-font-page-title);
  line-height: var(--tb-line-title);
  letter-spacing: .02em;
}
.pp-booth-detail #detail_page .card {
  background: var(--tb-panel);
  border: 1px solid var(--tb-card-line);
  border-radius: var(--tb-radius-md);
  box-shadow: var(--tb-shadow);
}
.pp-booth-detail #detail_page .card-header {
  min-height: 44px;
  background: var(--tb-panel);
  color: #242d35;
  border-bottom: 1px solid var(--tb-line);
  font-size: var(--tb-font-section-title);
  font-weight: 700;
}
.pp-booth-detail #detail_page h4 {
  color: #222d37;
  font-size: var(--tb-font-page-title);
  line-height: var(--tb-line-title);
}
.pp-booth-detail #view_kana,
.pp-booth-detail #view_attr,
.pp-booth-detail #view_region {
  color: var(--tb-muted);
}
.pp-booth-detail #detail_page .alert-warning {
  border-left: 4px solid var(--tb-orange);
  border-radius: var(--tb-radius-sm);
  background: #fff6e7;
  color: #745929;
}
.pp-booth-detail #related_item_list a,
.pp-booth-detail #hotel_list a {
  color: var(--tb-brand-dark);
}
.pp-booth-detail #gmap_iframe {
  border-radius: var(--tb-radius-md);
}
.pp-booth-detail #agent_memo_view {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.pp-booth-detail #form_input_agent_memo {
  min-height: 72px;
  border: 1px solid #ccd4da;
  border-radius: var(--tb-radius-sm);
  color: var(--tb-ink);
}
.pp-booth-detail #form_input_agent_memo:focus {
  border-color: var(--tb-brand);
  box-shadow: 0 0 0 3px rgba(22, 142, 209, .11);
}
.pp-booth-detail #btn_edit_agent_memo,
.pp-booth-detail #btn_cancel_agent_memo,
.pp-booth-detail .btn_back_action {
  min-height: var(--tb-button-height-sm);
  border-radius: var(--tb-radius-sm);
  font-weight: 600;
}
.pp-booth-detail #btn_save_agent_memo {
  min-height: var(--tb-button-height-sm);
  border-radius: var(--tb-radius-sm);
  border-color: var(--tb-brand);
  background: var(--tb-brand);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .tb-ui-header {
    min-height: 52px;
  }
  .tb-ui-header [data-widget="pushmenu"],
  .tb-ui-header .nav-link[title="HOME"],
  .tb-ui-header .nav-link[aria-label="ログアウト"] {
    min-width: 44px;
    min-height: 44px;
  }
  .tb-ui-header img {
    width: 138px;
  }
  .pp-home #individual_daily_list,
  .pp-home #ranking_list,
  .pp-home #total_count_list {
    font-size: var(--tb-font-table);
  }
  .pp-home #calendar .fc-daygrid-day-number {
    font-size: 11px;
  }
  .pp-booth-detail .content-header h1,
  .pp-booth-detail #detail_page h4 {
    font-size: 24px;
  }
  .pp-booth-detail .btn_back_action,
  .pp-booth-detail #btn_save_agent_memo {
    min-height: 44px;
  }
}

/* CURRENT_HOME 組織切替。既存 .active を選択状態にする。is-active は使わない。 */
.pp-home #view_tabs.tb-org-switcher .tb-org-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tb-space-2);
  align-items: start;
  margin: 0;
}
.pp-home #view_tabs.tb-org-switcher .tb-org-branch {
  display: flex;
  flex-direction: column;
  gap: var(--tb-space-2);
  min-width: 0;
}
.pp-home #view_tabs.tb-org-switcher .tb-org-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
}
.pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tb-button-height);
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-panel);
  box-shadow: none;
  color: var(--tb-ink);
  font-size: var(--tb-font-button);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab:hover:not(.active) {
  border-color: var(--tb-brand);
  background: var(--tb-nav-hover);
  color: var(--tb-brand-dark);
}
.pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab:focus-visible {
  outline: 2px solid var(--tb-navy);
  outline-offset: 2px;
}
.pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab.active {
  border-color: var(--tb-brand);
  background: var(--tb-brand);
  box-shadow: none;
  color: #fff;
  font-weight: 700;
}
.pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab.active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 9px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .pp-home #view_tabs.tb-org-switcher .tb-org-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-home #view_tabs.tb-org-switcher a.section_change.nav-link.tb-org-tab {
    min-height: 44px;
    padding: 10px 12px;
    font-size: var(--tb-font-body);
  }
}

/* ステージング確認用。システム側の a.section_change には当てない */
.pp-home .tb-org-preview .tb-org-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tb-space-2);
  align-items: start;
  margin: 0;
}
.pp-home .tb-org-preview .tb-org-branch {
  display: flex;
  flex-direction: column;
  gap: var(--tb-space-2);
  min-width: 0;
}
.pp-home .tb-org-preview .tb-org-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
}
.pp-home .tb-org-preview .tb-org-tabs .tb-org-tab {
  white-space: normal;
  overflow-wrap: anywhere;
  padding-right: 4px;
  padding-left: 4px;
}
.pp-home .tb-org-preview .tb-org-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tb-button-height);
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-panel);
  box-shadow: none;
  color: var(--tb-ink);
  font-size: var(--tb-font-button);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.pp-home .tb-org-preview .tb-org-tab.active {
  border-color: var(--tb-brand);
  background: var(--tb-brand);
  color: #fff;
  font-weight: 700;
}
.pp-home .tb-org-preview .tb-org-tab.active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 9px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
@media (max-width: 991.98px) {
  .pp-home .tb-org-preview .tb-org-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767.98px) {
  .pp-home .tb-org-preview .tb-org-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-home .tb-org-preview .tb-org-tab {
    min-height: 44px;
    padding: 10px 12px;
    font-size: var(--tb-font-body);
  }
}

/* 実DOMの月間KPI・FullCalendar・日別カードをmockの面に合わせる */
.pp-home section.kpi.kpi-compare.tb-metric {
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  background: #f8f9fc;
  box-shadow: none;
  padding: 16px;
}
.pp-home section.kpi.kpi-compare .kpi-head {
  padding: 0 0 8px;
  border-bottom: 0;
  background: transparent;
}
.pp-home section.kpi.kpi-compare .kpi-title {
  color: #1579b2;
  font-size: 13px;
  font-weight: 700;
}
.pp-home section.kpi.kpi-olive.kpi-compare .kpi-title {
  color: #2f9d72;
}
.pp-home section.kpi.kpi-compare .kpi-compare-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pp-home section.kpi.kpi-compare .metric {
  border: 1px solid #e2e7ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.pp-home section.kpi.kpi-compare .metric-num {
  font-size: 17px;
  font-weight: 800;
}
.pp-home #calendar .fc-button-primary {
  border-color: #d5dde3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #26394b;
  font-weight: 600;
}
.pp-home #calendar .fc-button-primary:not(:disabled):hover {
  border-color: #168ed1;
  background: #eef3f6;
  color: #0c6fa8;
}
.pp-home #calendar .fc-button-primary:disabled {
  border-color: #26394b;
  background: #26394b;
  color: #fff;
  opacity: 1;
}
.pp-home #calendar .fc-toolbar-title {
  color: #222d37;
  font-size: 16px;
  font-weight: 700;
}
.pp-home .tb-daily .daily-info.tb-contract-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid #e5eaed;
  background: #fbfcfd;
  font-size: 15px;
  line-height: 1.55;
}
.pp-home .tb-daily .tb-contract-head small {
  color: #388d82;
  font-size: 13px;
  font-weight: 700;
}
.pp-home .tb-daily .daily-info p {
  margin-bottom: 4px;
}
.pp-home .tb-daily .nodata-msg {
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f4f5f6;
  color: #6f7a84;
}
.pp-home .tb-daily .tb-contract {
  margin-bottom: 12px;
  border: 1px solid #e0e5e8;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
.pp-home .tb-daily .tb-contract > .card-body {
  padding: 0;
}

/* 残差4領域。情報とFullCalendarは残し、面・余白・見出しの優先度だけを揃える */
.pp-home .monthly-strip .strip-title {
  color: #1579b2;
  font-size: 13px;
  font-weight: 700;
}
.pp-home .monthly-strip .strip-unit {
  color: #6f7a84;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}
.pp-home .monthly-strip .meta-label,
.pp-home .monthly-strip .meta-unit {
  color: #6f7a84;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}
.pp-home .kpi-compare-grid {
  gap: 12px;
  margin-top: 12px;
}
.pp-home section.kpi.kpi-compare .metric-label {
  color: #6f7a84;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.pp-home section.kpi.kpi-compare .kpi-sub-text,
.pp-home section.kpi.kpi-compare .kpi-meta {
  color: #6f7a84;
  font-size: 12px;
  font-weight: 600;
}
.pp-home section.kpi.kpi-compare .metric-num,
.pp-home section.kpi.kpi-compare .metric-card-rate {
  color: #27313b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}
.pp-home section.kpi.kpi-compare .metric-unit,
.pp-home section.kpi.kpi-compare .kpi-head-ave .meta-unit {
  color: #6f7a84;
  font-size: 12px;
  font-weight: 600;
}
.pp-home section.kpi.kpi-compare .kpi-head-ave {
  color: #27313b;
  font-size: 15px;
  font-weight: 800;
}
.pp-home section.kpi.kpi-compare .kpi-meta {
  margin: 6px 0 0;
}
.pp-home #calendar .fc-toolbar.fc-header-toolbar {
  margin: 0 0 8px;
  padding: 0 2px 8px;
}
.pp-home #calendar .fc-button {
  min-height: 34px;
  font-size: 13px;
}
.pp-home #calendar .fc-daygrid-day-top {
  background: transparent;
}
.pp-home #calendar .fc-daygrid-day-frame {
  min-height: 108px;
}
.pp-home #calendar .day-checkmark-icon {
  display: none;
}
.pp-home #calendar .fc-daygrid-day {
  border-top-width: 0;
  border-bottom-width: 0;
  box-shadow: inset 0 -1px 0 rgb(230, 234, 237);
}
.pp-home #calendar .fc-daygrid-day:hover {
  background: #f4fafd;
}
.pp-home #calendar .fc-event,
.pp-home #calendar .fc-h-event {
  border: 0;
  border-radius: 4px;
  background: #e7f3fb;
}
.pp-home #calendar .fc-event-title {
  color: #116f9f;
  font-size: 11px;
  font-weight: 700;
}
.pp-home #calendar .fc-event.acquired {
  width: max-content;
  min-width: 30px;
  margin: 8px auto 0;
  border: 0;
  background: transparent;
}
.pp-home #calendar .fc-event.acquired .fc-event-title {
  display: inline-block;
  padding: 3px 6px;
  color: #19876a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.pp-home #calendar .fc-event.acquired .fc-event-title::after {
  content: none;
  display: none;
}
@media (min-width: 768px) and (max-width: 900px) {
  .pp-home #calendar .fc-event.acquired .fc-event-title {
    font-size: 16px;
  }
}
.pp-home #detail-date.selected_highlight {
  padding: 2px 8px;
  border-radius: 4px;
  background: #e7f3fb;
  color: #26394b;
}
.pp-home #individual_daily_list th,
.pp-home #individual_daily_list td {
  padding: 8px 10px;
  border-color: #e3e7ea;
}
.pp-home #individual_daily_list tr.row_cancel td {
  background: #eeeeee;
  color: #7b8288;
}
.pp-home .tb-daily .tb-contract.card + .tb-contract.card {
  margin-top: 12px;
}
.pp-home .card.card-outline.card-warning.tb-card > .card-body {
  padding: 12px 16px 16px;
  background: #fff;
}
.pp-home #yearly-chart,
.pp-home #paykind-chart-dl,
.pp-home #status-chart {
  margin: 0;
}
.pp-home,
.pp-home .table,
.pp-home #calendar,
.pp-home #calendar .fc,
.pp-home .fc-col-header-cell-cushion,
.pp-home .fc-daygrid-day-number,
.pp-home .fc-event-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
}
.pp-home .tb-ui-header {
  font-size: 15px;
  line-height: 1.55;
}
.pp-home #ranking_list tbody td.name-col {
  font-weight: 400;
}
.pp-home #ranking_list tbody td.name-col a {
  font-weight: 600;
}
.pp-home .content {
  color: #27313b;
  font-size: 15px;
  line-height: 1.55;
}
.pp-home .content .card > .card-header .card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.pp-home .content .card.tb-card {
  border-color: #dde2e6;
}
@media (max-width: 767.98px) {
  .pp-home #calendar .fc-col-header-cell-cushion {
    font-size: 11px;
    line-height: 1.6;
  }
  .pp-home #calendar .fc-daygrid-day-number {
    padding: 2px 2px 0;
    font-size: 13px;
    line-height: 1.3;
  }
  .pp-home #calendar .fc-daygrid-day-events {
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .pp-home #calendar .fc-daygrid-day {
    min-height: 55px;
  }
  .pp-home #calendar .fc-daygrid-event-harness {
    margin-top: 0;
  }
  .pp-home #calendar .fc-daygrid-event {
    margin-top: 2px;
  }
  .pp-home #calendar a.birthday .fc-event-title {
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
  }
  .pp-home #calendar .fc-event.acquired {
    min-width: 0;
    margin-top: 5px;
  }
  .pp-home #calendar .fc-event.acquired .fc-event-title {
    padding: 2px;
    font-size: 14px;
  }
  .pp-home #calendar .fc-event.acquired .fc-event-title::after {
    content: none;
    display: none;
  }
  .pp-home #calendar .fc-daygrid-day-frame {
    min-height: 0;
  }
  .pp-home section.kpi.kpi-compare .metric-num,
  .pp-home section.kpi.kpi-compare .metric-card-rate {
    font-size: 15px;
  }
}

/* HOMEカード見出し。MOCK .card-head が唯一の担当 */
.pp-home .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  background: #949494;
  color: #fff;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}
.pp-home .card-head.tb-card-head-light {
  background: #fff;
  color: #242d35;
  border-bottom: 1px solid #d5dde3;
}
.pp-home .tb-card-head:not(.tb-card-head-light) .tb-tag {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.pp-home .tb-calendar-frame {
  width: 100%;
  min-width: 0;
}
.pp-home #ranking > .tb-table-wrap {
  overflow: visible;
}
.pp-home .tb-annual-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pp-home .tb-annual-stack .tb-annual-live {
  margin-bottom: 0;
}
.pp-home .tb-schedule-preview {
  padding-bottom: 0;
}
.pp-home .tb-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pp-home .tb-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  background: #fff;
}
.pp-home .tb-schedule-day {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #e8f4fb;
  color: #1579b2;
  font-size: 22px;
  font-weight: 800;
}
.pp-home .tb-schedule-item:nth-child(2) .tb-schedule-day {
  background: #e8f5f2;
  color: #217c59;
}
.pp-home .tb-schedule-item:nth-child(3) .tb-schedule-day {
  background: #fff2de;
  color: #d98b20;
}
.pp-home .tb-schedule-title {
  color: #222d37;
  font-weight: 800;
}
.pp-home .tb-schedule-note {
  margin-top: 3px;
  color: #6f7a84;
  font-size: 12px;
}
.pp-home .tb-chart-grid {
  margin-right: 0;
  margin-left: 0;
}
@media (max-width: 767.98px) {
  .pp-home .tb-schedule-grid {
    grid-template-columns: 1fr;
  }
}

.pp-home .tb-annual-scroll #total_count_list.tb-annual-live thead th.highlight {
  background-color: #1579b2 !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live tbody td:nth-child(odd).highlight {
  background-color: #c5e4f6 !important;
  color: #2c3e50 !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
  font-weight: 700 !important;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live tbody td:nth-child(even).highlight {
  background-color: #e5f1f8 !important;
  color: #2c3e50 !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
  font-weight: 700 !important;
}

.pp-home .tb-annual-scroll #total_count_list.tb-annual-live thead th.viewmonth {
  background-color: #3f829f !important;
  color: #fff !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
  font-weight: 700 !important;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live tbody tr:nth-child(odd) td.viewmonth {
  background-color: #f1f9fc !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
  font-weight: 700 !important;
}
.pp-home .tb-annual-scroll #total_count_list.tb-annual-live tbody tr:nth-child(even) td.viewmonth {
  background-color: #fbfeff !important;
  box-shadow: inset 1px 0 #b8d8e6, inset -1px 0 #b8d8e6;
  font-weight: 700 !important;
}
