/* ========================================
   feedback.css - 個別フィードバック共通スタイル
   ======================================== */

/* サマリーカード */
.fb-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: white;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  overflow: hidden;
  margin-bottom: 16px;
}

.fb-summary-left {
  padding: 16px 20px;
  flex: 1;
}

.fb-staff-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.fb-patient-name {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 10px;
}

.fb-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.8125rem;
}

.fb-meta-label {
  color: #94a3b8;
  font-weight: 600;
}

.fb-meta-value {
  color: var(--text);
  font-weight: 500;
}

.fb-summary-right {
  background: var(--navy);
  color: white;
  padding: 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 140px;
}

.fb-grade-label {
  font-size: 0.6875rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.fb-grade-big {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.fb-grade-big.grade-s { color: #FFD700; }
.fb-grade-big.grade-a { color: #4CAF50; }
.fb-grade-big.grade-b { color: #64B5F6; }
.fb-grade-big.grade-c { color: #FF9800; }

.fb-score-range {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 4px;
}

.fb-grade-sub {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 2px;
}

/* 強み・改善リスト */
.fb-list {
  list-style: none;
  padding: 0;
}

.fb-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.fb-item:last-child {
  border-bottom: none;
}

.fb-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.6875rem;
  margin-top: 1px;
}

.fb-marker.good {
  background: #dcfce7;
  color: #16a34a;
}

.fb-marker.warn {
  background: #fef3c7;
  color: #d97706;
}

.fb-marker.action {
  background: var(--accent-orange);
  color: white;
}

.fb-item-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.fb-item-detail {
  color: #475569;
}

/* Before/After */
.ba-box {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ba-card {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.ba-card.before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ba-card.after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.ba-label {
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.ba-card.before .ba-label { color: #dc2626; }
.ba-card.after .ba-label { color: #16a34a; }

/* 総合所見 */
.fb-overall {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.8;
  padding: 14px 16px;
  background: #f0f4f8;
  border-radius: 6px;
  border-left: 4px solid var(--navy);
}

/* 一覧ページ */
.fb-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.fb-card-link:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(27, 46, 75, 0.1);
  transform: translateY(-1px);
}

.fb-card-link-info {
  flex: 1;
}

.fb-card-link-patient {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.fb-card-link-staff {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.fb-card-link-grade {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-card-link-grade-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: white;
}

.fb-card-link-arrow {
  color: #94a3b8;
  font-size: 1.25rem;
}

/* 担当者フォルダ一覧 */
.fb-folder-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-folder {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: transform 0.2s;
}

.fb-folder:hover {
  transform: translateY(-2px);
}

.fb-folder-tab {
  align-self: flex-start;
  background: var(--navy);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 24px 4px;
  border-radius: 8px 8px 0 0;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.fb-folder-body {
  background: white;
  border: 2px solid var(--navy);
  border-radius: 0 8px 8px 8px;
  padding: 16px 20px;
  position: relative;
}

.fb-folder-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.fb-folder-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.fb-folder-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.fb-folder-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.fb-folder-session-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.fb-folder-grades {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748b;
}

.fb-folder-grade-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.fb-folder-grade-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.fb-folder-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #94a3b8;
}

.fb-folder:hover .fb-folder-arrow {
  color: var(--navy);
}

/* パンくず */
.fb-breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 24px 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.fb-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.fb-breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.fb-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.fb-breadcrumb-current {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 600px) {
  .fb-summary-card {
    flex-direction: column;
  }
  .fb-summary-right {
    padding: 14px;
    flex-direction: row;
    gap: 12px;
  }
  .fb-meta-grid {
    grid-template-columns: 1fr;
  }
  .ba-box {
    grid-template-columns: 1fr;
  }
}

@media print {
  .screen-nav, .back-link-wrap {
    display: none !important;
  }
}
