/* ================================================================
   GENBA-HUB アプリケーション共通スタイル
   ================================================================ */

/* ── 全体 ─────────────────────────────────────────────────── */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
               'Hiragino Sans', Meiryo, sans-serif;
  font-size: 0.9rem;
  background-color: #f4f6f9;
}

/* ── ナビゲーション ─────────────────────────────────────────── */
.navbar-brand {
  letter-spacing: 1px;
}

/* ── カード ─────────────────────────────────────────────────── */
.card {
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
}
.card-header {
  background-color: #fff;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
}

/* ── テーブル ───────────────────────────────────────────────── */
.table th {
  background-color: #f8f9fa;
  white-space: nowrap;
  font-size: 0.82rem;
}
.table td {
  vertical-align: middle;
}

/* ── バッジ（ステータス） ───────────────────────────────────── */
.badge {
  font-size: 0.75em;
  font-weight: 500;
}

/* ── プログレスバー ─────────────────────────────────────────── */
.progress {
  height: 8px;
  border-radius: 4px;
}

/* ── ガントチャートラッパー ─────────────────────────────────── */
.gantt-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
}

/* ガントバーのカスタムスタイル（カテゴリ色を CSS 変数で管理） */
.gantt-wrapper svg .bar-group .bar {
  rx: 4;
  ry: 4;
}
.gantt-wrapper svg .bar-label {
  font-size: 11px;
  font-family: inherit;
}

/* 読み取り専用ガント（スマホ・客先ユーザー） */
.gantt-readonly .bar-wrapper {
  cursor: default !important;
  pointer-events: none !important;
}
.gantt-readonly .handle {
  display: none !important;
}

/* ── フォーム ───────────────────────────────────────────────── */
.form-label {
  font-weight: 500;
  font-size: 0.85rem;
}
.form-control,
.form-select {
  font-size: 0.875rem;
}

/* ── ページヘッダ ────────────────────────────────────────────── */
.page-header {
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── カテゴリ色見本 ─────────────────────────────────────────── */
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,.15);
}

/* ── アクションボタン群 ─────────────────────────────────────── */
.btn-action-group .btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
}

/* ── レスポンシブ対応 ───────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hide-mobile {
    display: none !important;
  }
  .table-scroll-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── PDF出力ボタン ──────────────────────────────────────────── */
.btn-pdf {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.btn-pdf:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: #fff;
}

/* ── ガントビューモード切替 ─────────────────────────────────── */
.gantt-view-controls .btn {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

/* ── ソートハンドル（drag） ─────────────────────────────────── */
.drag-handle {
  cursor: grab;
  color: #adb5bd;
}
.drag-handle:active {
  cursor: grabbing;
}
