/* 現場ReNote連携 — 工事ブロック（現行青の極淡色・白カードと差が分かる濃さ） */
.side-col .card.gn-br-card,
.card.gn-br-card {
  margin: 0;
  background: #e8f0fc !important;
  border-color: #c5d8f5 !important;
}
.side-col .card.gn-br-card .card-header,
.card.gn-br-card .card-header {
  background: #dce8fa !important;
  border-bottom-color: #c5d8f5 !important;
}
.gn-br-body { padding: 12px 14px; font-size: 12px; color: #4b5563; line-height: 1.65; background: transparent; }
.gn-br-proj { margin: 0 0 6px; font-weight: 700; color: #1f2937; font-size: 13px; }
.gn-br-muted { margin: 0 0 8px; color: #9ca3af; font-size: 11px; }
.gn-br-stats { width: 100%; border-collapse: collapse; }
.gn-br-stats th, .gn-br-stats td {
  border-bottom: 1px solid #d7e4f6; padding: 6px 0; text-align: left; vertical-align: top;
}
.gn-br-stats th { width: 42%; color: #6b7280; font-weight: 600; }
.gn-br-stats td { text-align: right; color: #111827; font-variant-numeric: tabular-nums; }
.gn-br-liaison { white-space: normal; color: #374151; }

/* 週間工程ガント（諸経費除く） */
.gn-br-week { margin-top: 4px; }
.gn-br-week-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-bottom: 8px;
}
.gn-br-week-label {
  flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: #1f2937;
  font-variant-numeric: tabular-nums;
}
.gn-br-week-btn {
  appearance: none; border: 1px solid #c5d8f5; background: #fff; color: #1f2937;
  border-radius: 6px; width: 28px; height: 26px; padding: 0; cursor: pointer;
  font-size: 12px; line-height: 1;
}
.gn-br-week-btn:hover { background: #e8f0fc; }
.gn-br-week-btn:disabled { opacity: .35; cursor: default; }
.gn-br-week-head,
.gn-br-week-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 4px; align-items: stretch;
}
.gn-br-week-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border: 1px solid #c5d8f5; border-radius: 4px; overflow: hidden; background: #fff;
}
.gn-br-week-day {
  text-align: center; font-size: 9px; line-height: 1.15; color: #6b7280;
  padding: 3px 0; border-right: 1px solid #e5eef9;
  background: #f8fafc;
}
.gn-br-week-day:last-child { border-right: 0; }
.gn-br-week-day .d { display: block; font-weight: 600; }
.gn-br-week-day .n { display: block; font-variant-numeric: tabular-nums; }
.gn-br-week-day.is-weekend { color: #dc2626; background: #fff5f5; }
.gn-br-week-day.is-today { color: #1d4ed8; font-weight: 700; background: #eff6ff; }
.gn-br-week-body { display: grid; gap: 5px; margin-top: 6px; }
.gn-br-hint {
  margin: 0 0 6px; font-size: 10px; color: #b45309; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 6px; padding: 6px 8px; line-height: 1.4;
}
.gn-br-week-row-label {
  font-size: 9px; color: #374151; line-height: 1.2;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-width: 0;
}
.gn-br-week-row-label .nm {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.gn-br-week-row-label .pd {
  color: #6b7280; font-variant-numeric: tabular-nums; font-size: 8px;
}
.gn-br-goto {
  appearance: none; margin-top: 1px; border: 1px solid #93c5fd; background: #eff6ff;
  color: #1d4ed8; border-radius: 4px; font-size: 8px; padding: 1px 4px; cursor: pointer;
  align-self: start; line-height: 1.3;
}
.gn-br-goto:hover { background: #dbeafe; }
.gn-br-ended { color: #9ca3af; font-size: 8px; }
.gn-br-week-track {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  height: 22px; border: 1px solid #c5d8f5; border-radius: 4px;
  background: #fff; overflow: hidden;
}
.gn-br-week-cell {
  border-right: 1px solid #eef3fb; min-width: 0;
  background: transparent;
}
.gn-br-week-cell:last-child { border-right: 0; }
.gn-br-week-cell.is-weekend { background: rgba(254, 226, 226, .45); }
.gn-br-week-cell.is-today { box-shadow: inset 0 0 0 1px #93c5fd; }
.gn-br-week-cell.is-marked { background: #2563eb; }
.gn-br-week-cell.is-marked.is-common { background: #64748b; }
.gn-br-week-cell.is-marked.is-struct { background: #2563eb; }
.gn-br-week-cell.is-marked.is-seal { background: #0891b2; }
.gn-br-week-cell.is-marked.is-tile { background: #ca8a04; }
.gn-br-week-cell.is-marked.is-paint { background: #16a34a; }
.gn-br-week-cell.is-marked.is-other { background: #9333ea; }
.gn-br-week-btn { position: relative; z-index: 2; }

/* 現場ReNote結線ランプ：黄点滅＝結線／灰＝未結線 */
.card.gn-br-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card.gn-br-card .card-header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: none;
}
/* 閲覧者が多い画面では点滅しない（点灯のみ） */
.gn-br-link {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  flex: none;
}
.gn-br-link.is-on {
  background: #eab308;
}
.gn-br-link.is-off {
  background: #9ca3af;
}

@media (max-width: 900px) {
  .gn-br-week-head,
  .gn-br-week-row { grid-template-columns: 72px 1fr; }
}
