/* ===========================
   Ocean管理システム CSS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --primary: #2a7faa;
  --primary-dark: #1a5f82;
  --primary-light: #e8f4fb;
  --accent: #e05a7a;
  --accent-light: #fde8ed;
  --green: #3aaa6a;
  --green-light: #e6f7ee;
  --orange: #e88030;
  --orange-light: #fef3e2;
  --red: #d94040;
  --red-light: #fde8e8;
  --yellow: #d4a020;
  --yellow-light: #fef9e2;
  --gray-bg: #f0f4f8;
  --white: #ffffff;
  --border: #dde4ec;
  --text: #1a2635;
  --text2: #5a6a7a;
  --text3: #99aab8;
  --sidebar-w: 240px;
  --topbar-h: 52px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 2px 14px rgba(0,0,0,0.1);
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.07);
  --font: 'Noto Sans JP', sans-serif;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: var(--font); background: var(--gray-bg); color: var(--text); overflow-x: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ========== ログイン ========== */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 60%, #5bafd0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { font-size: 2.5rem; margin-bottom: 6px; }
.login-logo-text { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); }
.login-logo-sub { font-size: 0.75rem; color: var(--text3); margin-top: 4px; }
.login-error {
  background: var(--red-light); border: 1px solid #f0c0c0;
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 0.82rem; color: var(--red); margin-bottom: 14px;
}
.btn-login {
  width: 100%; background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius); padding: 13px;
  font-size: 0.95rem; font-weight: 700; margin-top: 8px;
  transition: background var(--transition);
}
.btn-login:hover { background: var(--primary-dark); }

/* ========== レイアウト ========== */
.app { display: flex; min-height: 100vh; }

/* サイドバー */
.sidebar {
  width: var(--sidebar-w);
  background: #1a2a3a;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo { font-size: 1.1rem; font-weight: 700; color: #7dd3f0; }
.sidebar-close {
  display: none;
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 1rem;
}
.sidebar-user {
  padding: 12px 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user strong { color: #fff; display: block; font-size: 0.88rem; margin-bottom: 2px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-nav a.active { background: rgba(125,211,240,0.12); color: #7dd3f0; border-left-color: #7dd3f0; }
.sidebar-nav .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav .nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  padding: 10px 16px 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar-bottom { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-logout {
  width: 100%; background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); padding: 8px;
  font-size: 0.8rem; transition: all var(--transition);
}
.btn-logout:hover { background: rgba(220,80,80,0.2); color: #ff8888; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }

/* トップバー */
.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.topbar-menu { display: none; background: none; border: none; font-size: 1.3rem; color: var(--text2); padding: 4px; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-date { font-size: 0.78rem; color: var(--text3); }
.topbar-sync { background: none; border: none; font-size: 1.1rem; color: var(--text3); transition: transform 0.4s; padding: 4px; }
.topbar-sync:hover { color: var(--primary); }
.topbar-sync.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.main-content { flex: 1; padding: 16px; overflow-x: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; min-width: 0; }

/* ========== カード・共通UI ========== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 14px; overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-bg);
}
.card-title {
  font-size: 0.88rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.card-body { padding: 14px 16px; }

/* ========== ダッシュボード ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-val {
  font-size: 1.8rem; font-weight: 700; line-height: 1;
  margin-bottom: 4px;
}
.stat-card .stat-lbl { font-size: 0.72rem; color: var(--text3); }
.stat-card.blue .stat-val { color: var(--primary); }
.stat-card.green .stat-val { color: var(--green); }
.stat-card.orange .stat-val { color: var(--orange); }
.stat-card.red .stat-val { color: var(--accent); }

/* ========== テーブル ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th {
  background: var(--gray-bg); color: var(--text2);
  font-weight: 600; padding: 9px 10px;
  text-align: left; white-space: nowrap;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0;
}
td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafd; }
.td-actions { display: flex; gap: 5px; flex-wrap: nowrap; }

/* ========== バッジ・ステータス ========== */
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-confirmed { background: var(--primary-light); color: var(--primary); }
.badge-inprogress { background: var(--orange-light); color: var(--orange); animation: pulse 1.5s infinite; }
.badge-done { background: var(--green-light); color: var(--green); }
.badge-cancelled { background: #f0f0f0; color: var(--text3); }
.badge-scheduled { background: var(--primary-light); color: var(--primary); }
.badge-working { background: var(--green-light); color: var(--green); }
.badge-absent { background: var(--red-light); color: var(--red); }
.badge-ng { background: var(--red-light); color: var(--red); font-size: 0.65rem; }
.badge-admin { background: #f0e0ff; color: #7030a0; }
.badge-manager { background: #fff0e0; color: #a06000; }
.badge-staff { background: var(--primary-light); color: var(--primary); }
.badge-driver { background: var(--green-light); color: var(--green); }
.badge-cast { background: var(--accent-light); color: var(--accent); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* ========== フォーム ========== */
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 0.76rem; font-weight: 600; color: var(--text2); margin-bottom: 4px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 8px 11px; font-size: 0.85rem;
  outline: none; transition: border-color var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(42,127,170,0.12); }
.form-row textarea { resize: vertical; min-height: 70px; }
.form-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ========== ボタン ========== */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(0.92); }
.btn-warning { background: var(--orange); color: #fff; }
.btn-warning:hover { filter: brightness(0.92); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(0.9); }
.btn-secondary { background: var(--gray-bg); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }
.btn-xs { padding: 2px 7px; font-size: 0.68rem; }

/* ========== 検索バー ========== */
.search-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-bar input { box-sizing: border-box; }
.search-input-wrap { position: relative; flex: 1; min-width: 160px; }
.search-input-wrap input {
  width: 100%; padding: 7px 10px 7px 32px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; background: var(--white); outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input-wrap input:focus {
  border-color: var(--primary);
  border-width: 1px;
}
.search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 0.9rem; pointer-events: none; }

/* ========== 予約タイムライン ========== */
.timeline-wrap { padding: 10px 0; }
.timeline-item {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background var(--transition);
}
.timeline-item:hover { background: #f8fafd; }
.timeline-time { font-size: 0.95rem; font-weight: 700; color: var(--primary); min-width: 50px; }
.timeline-body { flex: 1; }
.timeline-cast { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.timeline-detail { font-size: 0.75rem; color: var(--text2); margin-top: 2px; }
.timeline-badge { }

/* ========== 出勤ボード ========== */
.shift-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; padding: 12px; }
.shift-chip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  font-size: 0.78rem;
}
.shift-chip .sc-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.shift-chip .sc-time { color: var(--text2); }
.shift-chip.working { border-color: var(--green); background: var(--green-light); }
.shift-chip.working .sc-name { color: var(--green); }
.shift-chip.scheduled { border-color: var(--primary); }
.shift-chip.scheduled .sc-name { color: var(--primary); }
.shift-chip.driver-chip { border-color: var(--orange); }
.shift-chip.driver-chip.working { background: var(--orange-light); border-color: var(--orange); }
.shift-chip.driver-chip .sc-name { color: var(--orange); }

/* ========== モーダル ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
  /* スクロール位置に関わらず常に画面中央に */
  top: 0; left: 0; right: 0; bottom: 0;
}
.modal {
  background: var(--white); border-radius: 14px;
  width: 100%; max-width: 520px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  /* 画面内に必ず収める */
  position: relative;
  margin: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; color: var(--text3); padding: 4px; }
.modal-body { padding: 18px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #1a2a3a; color: #fff; border-radius: var(--radius);
  padding: 10px 22px; font-size: 0.85rem; z-index: 500;
  opacity: 0; transition: all 0.3s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
.toast.warn { background: var(--orange); }

.sync-status-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(18px);
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.28);
  padding: 11px 14px 12px;
  z-index: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sync-status-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.sync-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.sync-status-message {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.35;
}
.sync-status-track {
  height: 6px;
  margin-top: 9px;
  background: rgba(148,163,184,0.28);
  border-radius: 999px;
  overflow: hidden;
}
.sync-status-fill {
  width: 0;
  height: 100%;
  background: #38bdf8;
  border-radius: inherit;
  transition: width 0.25s ease;
}
.sync-status-bar.done .sync-status-fill { background: #22c55e; }
.sync-status-bar.err .sync-status-fill { background: #ef4444; }

/* ========== ユーティリティ ========== */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt8 { margin-top: 8px; }
.flex-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 50px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
.empty-msg { text-align: center; padding: 40px 20px; color: var(--text3); font-size: 0.88rem; }
.ng-row td { background: #fff0f0 !important; }

.caution-row td {
  background: #fff7ed !important;
}

.ng-row.caution-row td {
  background: #fff0f0 !important;
}

.customer-caution-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  animation: importantPulse 1.6s ease-in-out infinite;
}
.section-title { font-size: 0.8rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ========== ページ固有 ========== */
.page-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.page-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}

/* 顧客検索ハイライト */
.highlight { background: #fff3a0; border-radius: 2px; padding: 0 1px; }

/* 予約スプレッド：電話番号未入力セルを赤背景で警告 */
.col-tel input.tel-empty {
  background: #ef4444 !important;
  border-color: #991b1b !important;
  color: #fff !important;
}
.col-tel input.tel-empty::placeholder {
  color: #fecaca !important;
}
.col-tel input.tel-empty:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}

/* ========== スプレッドシート風予約表 ========== */
.res-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.res-date-input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
}
.res-date-input:focus { border-color: var(--primary); }

#resSpread { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.spread-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spread-table thead tr {
  background: #1e3a5f;
  color: #fff;
}
.spread-table th {
  padding: 8px 6px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  background: #1e3a5f;
  position: sticky;
  top: 0;
  z-index: 10;
}
.spread-table td {
  padding: 2px 3px;
  border: 1px solid #dde4ec;
  vertical-align: middle;
  background: #ffffff;
}
.spread-row-filled td { background: #fffdf5; }
.spread-row-filled .sc,
.spread-row-filled .cell-center,
.spread-row-filled .price-cell-total,
.spread-row-filled .price-cell-jokyu,
.spread-row-filled .price-cell-discount,
.spread-row-filled .sc-baseprice {
  font-weight: 700;
}
.spread-row-filled select.sc,
.spread-row-filled input.sc,
.spread-row-filled textarea.sc {
  color: #111827;
}
.spread-row:hover td { background: #f0f7ff !important; }
.spread-row-dirty td { background: #fffbe6 !important; }
.spread-row-active td { background: #fff8e1 !important; }
.spread-row-done td { background: #f0fff4 !important; }
.spread-row-cancel td { background: #f8f8f8 !important; color: var(--text3); }

/* スプレッドセル入力 */
.sc {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--text);
  padding: 4px 5px;
  outline: none;
  min-width: 0;
}
.sc:focus {
  background: #e8f4fb;
  border-radius: 3px;
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}
.sc-num { text-align: right; }
select.sc { cursor: pointer; }

/* 入室ボタン */
.btn-checkin {
  background: #fff8e1;
  color: #b45309;
  border: 1px solid #fcd34d;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 0.15s;
  width: 100%;
}
.btn-checkin:hover { background: #fef3c7; border-color: #f59e0b; }

/* 自動保存インジケーター */
#autoSaveIndicator { transition: opacity 0.5s; pointer-events: none; }

/* 時間プルダウン */
.col-time-hm { width: 130px; padding: 2px 3px !important; }
.time-hm-wrap {
  display: flex; align-items: center; gap: 1px;
}
.time-hm-wrap .sc-hour { width: 62px; padding: 3px 2px; font-size: 0.78rem; }
.time-hm-wrap .sc-min  { width: 58px; padding: 3px 2px; font-size: 0.78rem; }
.time-sep { font-size: 0.85rem; font-weight: 700; color: var(--text2); flex-shrink: 0; padding: 0 1px; }

/* お客様支払・女子給 視認性改善 */
.col-total {
  width: 100px;
  background: #e8f4ff !important;
  text-align: right;
  padding: 4px 8px !important;
}
.col-jokyu {
  width: 90px;
  background: #eaffef !important;
  text-align: right;
  padding: 4px 8px !important;
}
.price-cell-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a4fa0;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.price-cell-jokyu {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a7a3a;
  white-space: nowrap;
}
.spread-table th.col-total { background: #c8e4ff !important; color: #1a4fa0; }
.spread-table th.col-jokyu { background: #c8f0d8 !important; color: #1a7a3a; }
.spread-table th.col-other-discount { background: #ffe8d6 !important; color: #9a3412; }

/* 料金設定タブ */
.price-tab {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: var(--gray-bg);
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  transition: all var(--transition);
}
.price-tab.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  border-color: var(--border);
}
.price-tab-content.hidden { display: none; }

/* 既存列幅更新 */
.col-no      { width: 30px; text-align: center; }
.col-cast    { width: 90px; }
.col-rank    { width: 56px; }
.col-time    { width: 58px; }
.col-shime   { width: 50px; }
.col-course  { width: 80px; }
.col-hotel   { width: 160px; }
.col-price2  { width: 80px; text-align: right; padding-right: 6px !important; }
.col-discount{ width: 130px; }
.col-points  { width: 72px; text-align: right; }
.col-extension{ width: 130px; }
.col-trans   { width: 66px; }
.col-total   { width: 90px; text-align: right; padding-right: 6px !important; background: #f0f7ff !important; }
.col-disc-amt{ width: 72px; text-align: right; padding-right: 6px !important; background: #fdf4ff !important; }
.col-jokyu   { width: 80px; text-align: right; padding-right: 6px !important; background: #f0fff4 !important; }
.col-other-discount { width: 96px; text-align: right; padding-right: 6px !important; background: #fff7ed !important; }
.col-driver  { width: 88px; }
.col-memo    { width: 130px; }
.col-tel     { width: 120px; }
.col-cname   { width: 90px; }
.col-status  { width: 74px; }
.col-del     { width: 46px; }
.col-price   { width: 76px; }
.cell-center { text-align: center; font-size: 0.75rem; color: var(--text3); }
.cell-right  { text-align: right; }

/* 保存・削除ボタン */
.btn-spread-save {
  background: #dbeafe; color: #1d4ed8;
  border: 1px solid #93c5fd; border-radius: 4px;
  padding: 3px 7px; font-size: 0.75rem; cursor: pointer;
  font-family: var(--font); font-weight: 700;
  transition: background 0.15s;
}
.btn-spread-save:hover { background: #bfdbfe; }
.btn-spread-del {
  background: #fee2e2; color: #dc2626;
  border: 1px solid #fca5a5; border-radius: 4px;
  padding: 3px 7px; font-size: 0.75rem; cursor: pointer;
  font-family: var(--font); font-weight: 700;
  transition: background 0.15s;
}
.btn-spread-del:hover { background: #fecaca; }


.shift-chip-toggleable { position: relative; cursor: pointer; }
.dashboard-cast-actions {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 6px;
  flex-wrap: wrap;
}
.shift-chip-toggleable.open .dashboard-cast-actions { display: flex; }

/* ========== ガントチャート ========== */
.gantt-container {
  width: max-content;
  min-width: 100%;
  overflow-x: visible;
  position: relative;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
}


.gantt-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-width: var(--gantt-row-width, 2334px);
}
.gantt-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gantt-row {
  display: flex;
  align-items: stretch;
  min-height: 40px;
  min-width: var(--gantt-row-width, 2334px); /* label(110)+standby(72)+exit(52)+track */
}
.gantt-header {
  min-height: 36px;
  margin-bottom: 2px;
}
.gantt-label {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  padding-right: 8px;
  overflow: hidden;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  box-shadow: 2px 0 4px rgba(0,0,0,0.06);
  gap: 0;
  /* sticky が効くには overflow:scroll のコンテナ内で直接子である必要がある */
}
.gantt-standby-col {
  width: 72px;
  min-width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid #bfdbfe;
  background: #f0f9ff;
  padding: 2px 3px;
  min-height: 34px;
  overflow: hidden;
}
.gantt-driver-number-input {
  width: 100%;
  font-size: 0.62rem;
  line-height: 1.2;
  border: none;
  background: transparent;
  text-align: center;
  color: #92400e;
  font-weight: 400;
  padding: 1px 2px;
  outline: none;
}
.gantt-driver-number-input::placeholder {
  color: #92400e;
  font-weight: 400;
  opacity: 1;
}
.gantt-driver-number-input:not(:placeholder-shown) {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
}
.gantt-exit-col {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-right: 2px solid #fca5a5;
  background: #fff8f8;
  padding: 2px 4px;
  min-height: 34px;
}
.gantt-track {
  flex: 1 0 var(--gantt-track-width, 2100px);
  min-width: var(--gantt-track-width, 2100px);
  position: relative;
  background: #fff;
  border-radius: 4px;
  margin: 3px 0;
  min-height: 34px;
}
.gantt-bar {
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.gantt-bar:hover {
  filter: brightness(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10 !important;
}
.gantt-place-strong {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  color: #111827;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gantt-op-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 0 3px;
  border-radius: 3px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
}
.gantt-exit-strong {
  color: #b91c1c;
  font-weight: 800;
}
.gantt-grid-note-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 110px;
  max-width: 460px;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7c2d12;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0;
  outline: none;
  z-index: 8;
  pointer-events: auto;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.gantt-grid-note-input:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.gantt-hour-toggle {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  background: #eff6ff;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  z-index: 6;
}
.gantt-hour-toggle span::before,
.gantt-hour-toggle span::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  background: #2563eb;
  border-radius: 999px;
}
.gantt-hour-toggle.is-collapsed span::after {
  left: 7px;
  right: auto;
  top: 4px;
  width: 2px;
  height: 8px;
}

/* スティッキー名前列：各行の背景を継承して透け防止 */
.gantt-row:nth-child(even) .gantt-label {
  background: #fafafa;
}
.gantt-row:nth-child(odd) .gantt-label {
  background: #ffffff;
}
/* ガントチャート ヘッダー行の名前列（スティッキー） */
.gantt-header .gantt-label {
  background: #f8f8f8;
  z-index: 6;
}
/* セクションラベル（キャスト/スタッフ区切り）も固定 */
.gantt-section-label {
  position: sticky;
  left: 0;
  z-index: 4;
  background: inherit;
}

.gantt-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 2px;
  flex-wrap: wrap;
  min-width: 700px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.gantt-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text2);
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay.show { display: block; }
  .main-wrap { margin-left: 0; padding-top: var(--topbar-h); }
  .topbar { position: fixed; top: 0; left: 0; width: 100vw; }
  .topbar-menu { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-g2, .form-g3 { grid-template-columns: 1fr 1fr; }
  .modal { max-height: 95vh; width: calc(100vw - 32px) !important; max-width: 100% !important; margin: auto !important; }
  .main-content { padding: 10px; }

  /* カード */
  .card { margin-bottom: 10px; }
  .card-header { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
  .card-body { padding: 10px 12px; }

  /* ダッシュボード stat-grid */
  .stat-grid { gap: 8px; }
  .stat-card { padding: 10px 12px; }
  .stat-card .stat-val { font-size: 1.4rem; }

  /* 検索バー */
  .search-bar { padding: 8px 10px; gap: 6px; }
  .search-input-wrap { min-width: 100% !important; flex: 1 1 100% !important; }

  /* ページアクション */
  .page-actions { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .page-title { font-size: 1rem; }

  /* ボタンをタップしやすく */
  .btn { padding: 8px 12px; font-size: 0.82rem; min-height: 36px; }
  .btn-sm { padding: 6px 10px; font-size: 0.78rem; min-height: 32px; }
  .btn-xs { padding: 4px 8px; font-size: 0.72rem; min-height: 28px; }

  /* テーブルスクロール */
  .table-wrap, .page-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 0.78rem; }
  th, td { padding: 7px 8px; }

  /* ガントチャート */
  .gantt-wrap { overflow-x: visible; }
  .gantt-container { overflow-x: visible; width: max-content; min-width: 100%; }
  .gantt-label { min-width: 96px; width: 96px; font-size: 0.8rem; position: static; box-shadow: none; }
  .gantt-section-label { position: static; width: auto; }
  .gantt-standby-col { width: 56px; }
  .gantt-exit-col { width: 46px; }
  .gantt-exit-sticky { left: 96px; }
  .gantt-track { flex: 1 0 var(--gantt-track-width, 2100px) !important; min-width: var(--gantt-track-width, 2100px) !important; }
  .gantt-hour-label { font-size: 0.82rem !important; color: #334155 !important; font-weight: 700; }

  /* 顧客管理：sticky下段パネルをモバイル向けに */
  #customerReservationPanel { position: fixed !important; bottom: 0; left: 0; right: 0; z-index: 60; }
  #customerReservationTableWrap { max-height: 35vh !important; }

  /* 顧客一覧テーブル：固定パネル分の余白を確保してスクロール可能に */
  #customerTable {
    max-height: 42vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 顧客ページ全体：下部固定パネルに隠れないよう余白を追加 */
  #customerReservationPanel ~ * ,
  .customers-page-wrap {
    padding-bottom: 0;
  }

  /* 顧客ページのカード：固定パネル高さ分（約30vh）の余白 */
  body.has-sticky-panel .main-content {
    padding-bottom: 30vh;
  }

  /* 予約スプレッドのツールバー */
  .res-toolbar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .res-toolbar .flex-row { flex-wrap: wrap; gap: 4px; }

  /* calcInfo（集計バー）をモバイルで小さく */
  #calcInfo > div { padding: 6px 10px !important; gap: 6px !important; border-radius: 8px !important; }
  #calcInfo div[style*="font-size:1.3rem"] { font-size: 1.05rem !important; }
  #calcInfo div[style*="min-width:"] { min-width: 70px !important; }
  #calcInfo div[style*="height:36px"] { height: 24px !important; }

  /* フォームのgrid */
  .form-g2 { grid-template-columns: 1fr; }
  .form-g3 { grid-template-columns: 1fr; }
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; /* iOSズーム防止 */ }

  /* モーダル */
  .modal { width: 95vw; max-height: 90vh; }
  .modal-body { padding: 10px 12px; }

  /* シフトボード */
  .shift-board { gap: 6px; }
  .shift-chip { min-width: 100px; }

  /* 価格表タブ */
  .price-tab { padding: 6px 10px; font-size: 0.78rem; }

  /* キャストシフト表：ヘッダーと左固定列 */
  .cast-spread-table td, .cast-spread-table th { font-size: 0.68rem; padding: 3px 2px; }
  .cast-cell-input { width: 38px !important; font-size: 0.65rem !important; }

  /* 給料明細テーブル */
  #salaryDetailArea table { font-size: 0.72rem; }
  #salaryDetailArea th, #salaryDetailArea td { padding: 5px 6px; }

  /* flex-row の折り返し */
  .flex-row { flex-wrap: wrap; gap: 6px; }

  /* カード内ヘッダーボタン群 */
  .card-header { gap: 6px; }
  .card-header .btn { padding: 5px 8px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .main-content { padding: 6px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-card .stat-val { font-size: 1.2rem; }
  .stat-card .stat-lbl { font-size: 0.65rem; }
  .form-g3 { grid-template-columns: 1fr; }
  .table-wrap { font-size: 0.74rem; }
  td, th { padding: 5px 6px; }

  /* 顧客検索の年月日を小さく */
  #customerSearchYear { width: 62px !important; }
  #customerSearchMonth, #customerSearchDay { width: 52px !important; }

  /* 予約表ツールバーの並び替えボタン */
  .res-sort-btn { padding: 4px 6px; font-size: 0.68rem; }

  /* ガントチャートのラベルを非表示に（小さすぎる場合） */
  .gantt-label { font-size: 0.68rem; min-width: 70px; position: static; box-shadow: none; }
  .gantt-exit-col { width: 40px; }
  .gantt-exit-sticky { left: 70px; }

  /* topbarのタイトルを短く */
  .topbar-title { font-size: 0.88rem; }
  .topbar-date { display: none; }
  #autoSaveGlobal { font-size: 0.65rem; }

  /* 給料サマリーgrid */
  #salaryDetailArea div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }

  /* calcInfoをスクロール可能に */
  #calcInfo > div { flex-wrap: wrap !important; overflow-x: auto; }
}

@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .form-g3 { grid-template-columns: repeat(3, 1fr); }
}


.res-date-strip { display:flex; gap:8px; overflow-x:auto; padding:0 0 12px; margin-bottom:10px; }
.res-date-chip { min-width:72px; border:1px solid var(--border); background:#fff; border-radius:10px; padding:8px 10px; font-size:0.82rem; font-weight:700; color:var(--text2); display:flex; flex-direction:column; align-items:center; gap:2px; }
.res-date-chip span { font-size:0.68rem; font-weight:600; color:var(--text3); }
.res-date-chip.active { background:var(--primary-light); border-color:var(--primary); color:var(--primary-dark); }


.res-date-strip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.res-date-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 2px 0;
  scrollbar-width: none;
}
.res-date-strip::-webkit-scrollbar { display: none; }
.res-date-nav {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.res-date-nav:hover { background: var(--primary-light); }
.res-date-chip {
  min-width: 56px;
  white-space: nowrap;
}


#option-setting-body tr, [id^="price-tbody-"] tr { cursor: grab; }
#option-setting-body tr.dragging, [id^="price-tbody-"] tr.dragging { opacity: 0.45; }
.btn-xs{padding:4px 7px;font-size:.72rem;border-radius:6px;}


.page-scroll-x { width: 100%; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scroll-snap-type: none; }
.sheet-link-bar { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.sheet-link-bar .form-row { margin-bottom:0; flex:1; min-width:260px; }
.dragging { opacity: 0.45; }


.driver-month-table { min-width: max-content; width: max-content; }
.driver-month-table th,
.driver-month-table td { text-align: center; min-width: 68px; }
.driver-month-table .driver-name-cell { min-width: 110px; text-align: left; font-weight: 700; background: #fff; position: sticky; left: 0; z-index: 1; }
.driver-month-table th.selected-day { background: var(--primary-light); color: var(--primary-dark); }
.driver-month-table td.selected-day-cell { background: #f4fbff; }
.driver-month-table td.has-shift { background: #fff8e8; }
.driver-month-table td.selected-day-cell.has-shift { background: #eaf6ff; }
.shift-cell-line { white-space: nowrap; font-size: 0.72rem; line-height: 1.35; }


.driver-name-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.driver-name-wrap .btn {
  flex-shrink: 0;
}

/* キャストシフトスプレッド */
.hon-ranking-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.hon-ranking-card {
  margin: 0;
  padding: 10px 12px;
  width: clamp(340px, 50%, 720px);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hon-ranking-card.is-n-shimei {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #f7fbff, #eaf3ff);
}
.hon-ranking-card.is-total-shimei {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f6fff8, #eaffef);
}
.hon-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hon-ranking-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e3a5f;
}
.hon-ranking-sub {
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 2px;
}
.hon-ranking-total {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.hon-ranking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}
.hon-ranking-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.hon-ranking-item.top-1 { border-color: #fbbf24; background: #fffbeb; }
.hon-ranking-item.top-2 { border-color: #cbd5e1; background: #f8fafc; }
.hon-ranking-item.top-3 { border-color: #fdba74; background: #fff7ed; }
.hon-ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 800;
}
.hon-ranking-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}
.hon-ranking-count {
  color: #db2777;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}
.hon-ranking-count small {
  margin-left: 1px;
  font-size: 0.68rem;
  font-weight: 700;
}
.hon-ranking-empty {
  padding: 8px;
  border: 1px dashed #bfdbfe;
  border-radius: 6px;
  color: var(--text3);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  .hon-ranking-wrap {
    margin-bottom: 8px;
  }
  .hon-ranking-card {
    width: 100%;
  }
}
.cast-spread-table { border-collapse: collapse; }
.cast-spread-table th, .cast-spread-table td { border: 1px solid var(--border); }
.cast-spread-table thead th { background: #f8f8f8; }
/* データセルのz-indexを左固定セルより低く */
.cast-spread-table tbody td:not(:first-child) { position: relative; z-index: 1; }
/* 左固定セル（キャスト名列）のz-indexを高くしてボタンが見えるようにする */
.cast-spread-table tbody td:first-child { position: static !important; z-index: auto !important; overflow: visible; }
.cast-attr-btn { touch-action: manipulation; }
.cast-sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cast-memo-input.has-memo {
  border-color: #fca5a5 !important;
  background: #fff1f2 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
}
.cast-memo-open-btn.has-memo {
  border-color: #ef4444 !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}
.cast-memo-open-btn.has-memo:hover {
  background: #b91c1c !important;
}

/* オプション非対応警告ポップ */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.cast-opt-warn { animation: fadeInOut 3s ease forwards !important; }

/* 割引ソートボタンアクティブ */
.res-sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 顧客管理 */
.customer-master-table-wrap {
  max-height: 1180px; /* 約30件表示 */
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.customer-history-table-wrap {
  max-height: 1820px; /* 約50件表示 */
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.customer-master-table-wrap table,
.customer-history-table-wrap table {
  min-width: max-content;
}
/* メモ列・住所列が横に伸びすぎないよう制限 */
.customer-master-table-wrap td:nth-child(3),
.customer-master-table-wrap td:nth-child(8) {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-customer-row td {
  background: #eaf6ff !important;
}
.customer-master-table-wrap thead th,
.customer-history-table-wrap thead th {
  z-index: 2;
}

/* ========== モバイル追加スタイル ========== */
/* 予約スプレッドのタップ行ハイライト */
@media (max-width: 768px) {
  .spread-row:active td { background: #f0f7ff !important; }
  
  /* 入力フィールドを大きく（タップしやすく）*/
  .sc { min-height: 32px; }
  
  /* 顧客管理テーブルの高さをモバイル向けに */
  .customer-master-table-wrap { max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .customer-history-table-wrap { max-height: 34vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* 予約履歴テーブル：モバイルで日付・キャスト列を狭く */
  .customer-history-table-wrap th:nth-child(1),
  .customer-history-table-wrap td:nth-child(1) {
    min-width: 70px !important;
    max-width: 80px !important;
    font-size: 0.7rem !important;
    padding: 4px 4px !important;
    white-space: nowrap;
  }
  .customer-history-table-wrap th:nth-child(4),
  .customer-history-table-wrap td:nth-child(4) {
    min-width: 80px !important;
    max-width: 110px !important;
    font-size: 0.72rem !important;
    padding: 4px 4px !important;
    white-space: normal;
    word-break: break-word;
  }
  
  /* calcInfoをスクロール可能に */
  #calcInfo > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  /* 給料詳細グリッドを2列に */
  #salaryDetailArea .card-body > div[style*="grid"] {
    grid-template-columns: 1fr 1fr !important;
  }
  
  /* stat-gridのval文字縮小 */
  .stat-card .stat-val { font-size: 1.3rem; }
  
  /* シフトページのキャスト列固定 */
  .cast-spread-table td:first-child,
  .cast-spread-table th:first-child {
    min-width: 90px;
    max-width: 110px;
    word-break: break-all;
    font-size: 0.72rem;
  }
  
  /* 予約履歴の固定パネルをモバイル向けに最適化 */
  #customerReservationPanel .card {
    border-radius: 10px 10px 0 0;
    margin: 0;
  }
  
  /* ページタイトルを小さく */
  .page-title { font-size: 1rem !important; margin-bottom: 8px !important; }
  
  /* flexボタン群を折り返し */
  .page-actions { flex-wrap: wrap !important; }
  .page-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  
  /* ダッシュボードのガントチャート */
  .gantt-wrap { font-size: 0.72rem; }
  .gantt-label { min-width: 72px; font-size: 0.68rem; padding: 4px 6px; position: static; box-shadow: none; }
  .gantt-bar { font-size: 0.6rem !important; }
  
  /* モーダルを全画面に近く */
  .modal-overlay {
    padding: 8px;
    align-items: center;
    justify-content: center;
  }
  .modal {
    width: calc(100vw - 16px) !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    margin: auto !important;
    border-radius: 12px;
  }
  
  /* 検索バーのinputを大きく */
  .search-bar input { min-height: 38px; font-size: 15px; }
}


/* キャストシフト 左固定列の見やすさ */
.cast-name-sticky { position: static !important; left: auto !important; z-index: auto !important; }
.cast-sticky-inner { display:flex; flex-direction:column; gap:4px; }
.cast-sticky-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.cast-sticky-name { font-size:0.8rem; font-weight:700; white-space:nowrap; }
.cast-sticky-actions { display:flex; gap:4px; flex-wrap:wrap; align-items:center; }
.cast-sticky-meta { min-width:0; }
.cast-spread-table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; }
.cast-spread-table td[data-date], .cast-spread-table th[data-date] { position:relative; }
.cast-shift-scroll { overflow-x:auto; overflow-y:auto; max-height:72vh; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; overscroll-behavior-x:contain; }

/* 1日列の開閉 */
.cast-shift-collapse-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:14px; padding:0; line-height:1;
  border:1px solid #cbd5e1; background:#f1f5f9; color:#475569;
  border-radius:4px; cursor:pointer; font-size:0.62rem; font-weight:700;
}
.cast-shift-collapse-toggle:hover { background:#e0e7ff; color:#1d4ed8; }
.cast-spread-table th[data-date].is-collapsed,
.cast-spread-table td[data-date].is-collapsed {
  min-width:24px !important; width:24px !important; max-width:24px !important;
  padding:2px 0 !important; overflow:hidden;
}
.cast-spread-table th[data-date].is-collapsed .cast-shift-day-content,
.cast-spread-table td[data-date].is-collapsed .cast-shift-day-content {
  display:none !important;
}
.cast-spread-table th[data-date].is-collapsed .cast-shift-day-mini {
  display:flex !important;
}
.cast-shift-day-mini { display:none; flex-direction:column; align-items:center; gap:2px; font-size:0.6rem; }

/* 日付ヘッダー内の出勤キャスト（反映状態で色分け） */
.cast-shift-day-castname {
  font-size:0.62rem;
  line-height:1.3;
  white-space:nowrap;
  font-weight:700;
}
.cast-shift-day-casttime {
  font-size:0.58rem;
  line-height:1.2;
}
.cast-shift-day-castname.is-reflected { color:#166534; }
.cast-shift-day-casttime.is-reflected { color:#15803d; }
.cast-shift-day-castname.is-pending { color:#b91c1c; }
.cast-shift-day-casttime.is-pending { color:#dc2626; }

/* 次回シフト表示（各セル上部） */
.next-shift-pill {
  display:inline-block;
  font-size:0.58rem; line-height:1.2; font-weight:700;
  padding:1px 5px; border-radius:8px;
  background:#dbeafe; color:#1e40af; border:1px solid #93c5fd;
  white-space:nowrap;
}
.next-shift-pill.is-missing {
  background:#fef2f2; color:#b91c1c; border-color:#fca5a5;
}
.cast-spread-table th[data-date].is-collapsed .next-shift-pill,
.cast-spread-table td[data-date].is-collapsed .next-shift-pill { display:none; }

/* 新人期間バッジ（入店から10日目まで） */
.newcomer-day-badge {
  display:inline-block;
  font-size:0.6rem; line-height:1.2; font-weight:800;
  padding:1px 6px; border-radius:8px;
  background:linear-gradient(135deg, #fb923c, #f97316);
  color:#fff; border:1px solid #ea580c;
  box-shadow:0 1px 2px rgba(234,88,12,0.25);
  white-space:nowrap; letter-spacing:0.02em;
}
.cast-spread-table th[data-date].is-collapsed .newcomer-day-badge,
.cast-spread-table td[data-date].is-collapsed .newcomer-day-badge { display:none; }

@media (max-width: 768px) {
  .cast-name-sticky { min-width: 108px !important; max-width: 108px;  }
  .cast-sticky-head { align-items:flex-start; flex-direction:column; gap:4px; }
  .cast-sticky-name { white-space:normal; line-height:1.2; }
  .cast-sticky-actions { display:grid; grid-template-columns:1fr; gap:4px; }
  .cast-sticky-actions .btn { width:100%; justify-content:center; }
  .cast-cell-input { width: 52px !important; min-width:52px; font-size: 0.72rem !important; }
  .cast-sticky-head .plan-select, .cast-sticky-head select { width: 78px !important; min-width: 78px !important; font-size: 0.82rem !important; padding: 4px 6px !important; }
  .cast-sticky-actions .btn { min-height: 30px; padding: 4px 6px !important; font-size: 0.72rem !important; }
  .cast-sticky-meta { font-size: 0.56rem !important; line-height: 1.25; }
  .cast-spread-table td, .cast-spread-table th { padding: 4px 3px; }
}

@media (max-width: 480px) {
  .cast-name-sticky { min-width: 104px !important; max-width: 104px; padding: 6px 6px !important; }
  .cast-sticky-actions { grid-template-columns:1fr; }
  .cast-sticky-meta { font-size:0.58rem !important; }
}


/* 給料計算ページ モバイル表示最適化 */
body.salary-mobile-fit .main-content {
  width: 100%;
  max-width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.salary-mobile-fit .page-salary {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.salary-mobile-fit .page-salary .card,
body.salary-mobile-fit .page-salary .card-body,
body.salary-mobile-fit .page-salary .card-header,
body.salary-mobile-fit .page-salary .salary-scroll,
body.salary-mobile-fit .page-salary table {
  max-width: 100%;
  box-sizing: border-box;
}
body.salary-mobile-fit .page-salary .salary-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  body.salary-mobile-fit .page-salary .page-title { margin-bottom: 8px; }
  body.salary-mobile-fit .page-salary .salary-toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    align-items: stretch !important;
  }
  body.salary-mobile-fit .page-salary .salary-toolbar .form-row,
  body.salary-mobile-fit .page-salary .salary-toolbar button {
    width: 100%;
    min-width: 0 !important;
  }
  body.salary-mobile-fit .page-salary .salary-summary-grid {
    grid-template-columns: 1fr !important;
  }
  body.salary-mobile-fit .page-salary table {
    font-size: 0.72rem !important;
  }
  body.salary-mobile-fit .page-salary th,
  body.salary-mobile-fit .page-salary td {
    padding: 6px 6px !important;
    word-break: keep-all;
  }
}


.gantt-hour-label{position:absolute;top:0;font-size:0.78rem;color:#334155;font-weight:700;letter-spacing:0.01em;}
@media (max-width: 768px){
  .gantt-container{overflow-x:visible;width:max-content;min-width:100%;}
  .gantt-section-label,.gantt-row,.gantt-legend{min-width:var(--gantt-row-width, 2334px);}
  .gantt-track{min-height:42px;min-width:var(--gantt-track-width, 2100px);flex:1 0 var(--gantt-track-width, 2100px);}
  .gantt-hour-label{font-size:1rem !important;color:#1f2937 !important;font-weight:800 !important;}
  .gantt-label{width:92px;min-width:92px;font-size:0.76rem !important;color:#111827 !important;font-weight:700 !important;position:static !important;box-shadow:none !important;}
  .gantt-section-label{position:static !important;width:auto !important;}
  .gantt-bar{font-size:0.68rem !important;}
}

@media (min-width: 769px){
  .gantt-section-label,.gantt-row,.gantt-legend{min-width:var(--gantt-row-width, 980px);}
  .gantt-hour-label{font-size:0.82rem;color:#334155;font-weight:800;}
}

/* ガントチャート 名前列・退室列をスクロール時に左固定（PC） */
@media (min-width: 769px) {
  .gantt-sticky-left {
    position: sticky;
    left: 0;
    z-index: 6;
    background: var(--surface, #fff);
    border-right: 1px solid var(--border);
  }
  .gantt-exit-sticky {
    position: sticky;
    left: 110px;
    z-index: 5;
    background: #fff8f8;
    border-right: 2px solid #fca5a5;
  }
  .gantt-header .gantt-sticky-left,
  .gantt-header .gantt-exit-sticky {
    z-index: 8;
    background: #f8f8f8;
  }
}


.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.schedule-month-title{font-size:1.1rem;font-weight:800;letter-spacing:.02em;color:var(--text);min-width:140px;text-align:center;}
.schedule-legend{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px;}
.schedule-legend-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;font-size:.75rem;color:var(--text2);font-weight:700;}
.schedule-legend-dot{width:12px;height:12px;border-radius:999px;display:inline-block;border:1px solid rgba(15,23,42,.08);}
.schedule-week-header,.schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;}
.schedule-week-header{margin-bottom:8px;}
.schedule-week-header>div{padding:8px 4px;text-align:center;font-weight:800;color:var(--text2);background:var(--gray-bg);border:1px solid var(--border);border-radius:10px;}
.schedule-cell{min-height:132px;border:1px solid var(--border);border-radius:16px;padding:10px;cursor:pointer;transition:.15s ease;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 2px 10px rgba(15,23,42,.04);}
.schedule-cell:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.10);}
.schedule-cell.empty{background:#f8fafc;cursor:default;opacity:.55;box-shadow:none;}
.schedule-cell-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:8px;}
.schedule-day-num{font-size:1rem;font-weight:800;color:var(--text);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.75);backdrop-filter:blur(3px);}
.schedule-badge{font-size:.72rem;font-weight:700;color:#1d4ed8;background:rgba(255,255,255,.9);border:1px solid rgba(59,130,246,.22);border-radius:999px;padding:2px 7px;}
.schedule-cell-items{display:flex;flex-direction:column;gap:5px;}
.schedule-mini-item{font-size:.73rem;line-height:1.35;background:rgba(255,255,255,.92);border-radius:10px;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid rgba(255,255,255,.7);font-weight:600;}
@media (max-width: 768px){.schedule-week-header,.schedule-grid{min-width:840px;}.schedule-cell{min-height:110px;}}

.schedule-add-hint{position:absolute;right:10px;bottom:10px;font-size:.68rem;color:var(--text3);background:rgba(255,255,255,.88);padding:3px 7px;border-radius:999px;border:1px solid rgba(15,23,42,.08);}
.schedule-modal-list{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow:auto;}
.schedule-modal-item{border:1px solid var(--border);border-left-width:6px;border-radius:12px;padding:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.05);}
.schedule-modal-title{font-weight:800;font-size:.95rem;}
.schedule-modal-meta{font-size:.8rem;color:var(--text3);margin-top:4px;}
.schedule-modal-memo{font-size:.8rem;white-space:pre-wrap;margin-top:6px;line-height:1.55;}
.ocean-fullcalendar{--fc-border-color:var(--border);--fc-button-bg-color:#2563eb;--fc-button-border-color:#2563eb;--fc-button-hover-bg-color:#1d4ed8;--fc-button-hover-border-color:#1d4ed8;--fc-today-bg-color:#fef3c7;font-size:.86rem;}
.ocean-fullcalendar .fc-toolbar{gap:10px;flex-wrap:wrap;}
.ocean-fullcalendar .fc-toolbar-title{font-size:1.08rem;font-weight:800;color:var(--text);}
.ocean-fullcalendar .fc-button{border-radius:8px;font-weight:700;box-shadow:none;}
.ocean-fullcalendar .fc-event{border-radius:6px;padding:2px 4px;font-weight:700;cursor:pointer;}
.ocean-fullcalendar .fc-daygrid-day-number{font-weight:800;color:var(--text);}
.ocean-fullcalendar .fc-list-event-title,.ocean-fullcalendar .fc-list-event-time{font-weight:700;}
@media (max-width: 768px){.ocean-fullcalendar{min-width:920px;}.ocean-fullcalendar .fc-toolbar{align-items:flex-start;}.ocean-fullcalendar .fc-toolbar-chunk{display:flex;gap:6px;flex-wrap:wrap;}}
@media (max-width: 768px){.schedule-toolbar{align-items:stretch;}.schedule-month-title{width:100%;order:-1;}.schedule-week-header,.schedule-grid{min-width:920px;}.schedule-cell{min-height:126px;}}

/* キャスト列sticky完全解除 */
.cast-spread-table td:first-child,
.cast-spread-table th:first-child,
.cast-name-sticky {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
}

/* ダッシュボード：本日の予定＆伝達事項 2カラム */
@media (max-width: 640px) {
  .dashboard-schedule-memo-grid {
    grid-template-columns: 1fr !important;
  }
.dashboard-schedule-memo-grid > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
}

.menu-badge {
  display: none;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 700;
}

.todo-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.todo-tab-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.todo-select {
  min-width: 130px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.todo-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.todo-group-title {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text2);
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
}

.todo-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.todo-row:hover {
  background: #f8fafc;
}

.todo-row:last-child {
  border-bottom: none;
}

.todo-row-check {
  width: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.todo-row-main {
  flex: 1;
  min-width: 0;
}

.todo-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.todo-row-meta {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text2);
}

.todo-priority {
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
}

.priority-high,
.prio-high {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-mid,
.prio-mid {
  background: #fef3c7;
  color: #92400e;
}

.priority-low,
.prio-low {
  background: #e5e7eb;
  color: #374151;
}

.todo-category {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 1px 8px;
}

.todo-tag {
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
  padding: 1px 8px;
}

.due-overdue {
  color: #b91c1c;
  font-weight: 700;
}

.due-today {
  color: #c2410c;
  font-weight: 700;
}

.due-near {
  color: #a16207;
  font-weight: 700;
}

.due-normal,
.due-none {
  color: var(--text2);
}

.todo-form-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.todo-form-tab {
  border: 1px solid var(--border);
  background: var(--gray-bg);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.todo-form-tab.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.todo-inline-row,
.todo-link-edit-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.todo-link-edit-row {
  grid-template-columns: 120px 1fr 1fr auto;
}

.todo-inline-row input[type="text"],
.todo-link-edit-row input,
.todo-link-edit-row select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

.todo-weekday-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.todo-weekday-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}

.todo-detail-section {
  margin-top: 12px;
}

.todo-detail-desc {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.todo-subtask-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.todo-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.todo-attachment-thumb {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.todo-comment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.todo-comment-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.todo-comment-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.todo-comment-form textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.todo-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.todo-summary span {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}

.todo-summary .overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.todo-summary .today {
  background: #ffedd5;
  color: #9a3412;
}

.todo-summary .upcoming {
  background: #fef3c7;
  color: #92400e;
}

.todo-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.todo-preview li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.todo-preview li:hover {
  background: #f8fafc;
}

.todo-preview li.empty {
  cursor: default;
  color: var(--text3);
}

.todo-preview .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-preview .due {
  font-size: 0.72rem;
  color: var(--text2);
}

.todo-widget .card-body {
  padding-top: 10px;
}

/* 重要事項マークのパルスアニメーション */
@keyframes importantPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 0 0 rgba(220,38,38,0.55); }
  50%      { transform: scale(1.15); box-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 0 5px rgba(220,38,38,0); }
}

/* 退出予定10分前以内アラート（対応中バー） */
@keyframes endAlertPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.7; }
}

/* 「次回出勤未提出」赤点滅ラベル（ガントチャート キャスト行） */
@keyframes nextShiftMissingBlink {
  0%, 100% { opacity: 1; background: #dc2626; box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  50%      { opacity: 0.55; background: #f87171; box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}
.gantt-next-shift-missing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  background: #dc2626;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1.5px solid #ffffff;
  letter-spacing: 0.02em;
  animation: nextShiftMissingBlink 1.1s ease-in-out infinite;
}
