/* ---- page-range extract: training (1 blocks) ---- */
/* block 1 */

.trn-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.trn-hero {
  background: linear-gradient(135deg, #0f2744 0%, #1e40af 55%, #2563eb 100%);
  color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.trn-hero h1 { margin: 0; font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.trn-hero p { margin: 6px 0 0; opacity: .9; font-size: .92rem; }
.trn-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.trn-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; min-width: 88px; padding: 10px 14px; text-align: center;
}
.trn-stat b { display: block; font-size: 1.25rem; }
.trn-stat span { font-size: .75rem; opacity: .85; }
.trn-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.trn-tab {
  border: 1px solid #dbe3f0; background: #fff; color: #1e3a8a; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.trn-tab.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.trn-panel { display: none; }
.trn-panel.active { display: block; }
.trn-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 39, 68, .06); padding: 18px;
}
.trn-card h2 { margin: 0 0 14px; font-size: 1.05rem; color: #0f2744; display: flex; align-items: center; gap: 8px; }
.trn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trn-field { display: flex; flex-direction: column; gap: 6px; }
.trn-field.full { grid-column: 1 / -1; }
.trn-field label { font-size: .82rem; color: #475569; font-weight: 600; }
.trn-field input, .trn-field select, .trn-field textarea {
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font-size: .92rem;
  background: #f8fafc; color: #0f172a;
}
.trn-field textarea { min-height: 78px; resize: vertical; }
.trn-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.trn-btn {
  border: none; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700; font-size: .9rem;
}
.trn-btn.primary { background: #1e40af; color: #fff; }
.trn-btn.secondary { background: #e2e8f0; color: #1e3a8a; }
.trn-btn.danger { background: #fee2e2; color: #b91c1c; }
.trn-btn.ghost { background: transparent; border: 1px solid #cbd5e1; color: #334155; }
.trn-toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.trn-toolbar input, .trn-toolbar select {
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; background: #fff; min-width: 180px;
}
.trn-table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.trn-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.trn-table th, .trn-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; text-align: right; font-size: .88rem; }
.trn-table th { background: #f1f5f9; color: #334155; position: sticky; top: 0; }
.trn-table tr:hover td { background: #f8fbff; }
.trn-badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: #e0e7ff; color: #1e3a8a;
}
.trn-badge.done { background: #dcfce7; color: #166534; }
.trn-badge.warn { background: #fef3c7; color: #92400e; }
.trn-badge.out { background: #fee2e2; color: #991b1b; }
.trn-empty { text-align: center; color: #64748b; padding: 28px 12px; }
.trn-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.trn-list { display: flex; flex-direction: column; gap: 10px; }
.trn-item {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc;
}
.trn-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.trn-item-meta { font-size: .78rem; color: #64748b; }
.trn-file-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
  .trn-grid, .trn-detail-grid { grid-template-columns: 1fr; }
  .trn-table { min-width: 640px; }
}
