.workshop-main { width: min(1180px, calc(100% - 32px)); }
.workshop-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.workshop-actions [data-message] { width: 100%; }
.workshop-report { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.report-header, .report-grid, .signature-area { display: grid; gap: 14px; }
.report-header { grid-template-columns: 1fr auto; align-items: start; border-bottom: 2px solid var(--text); padding-bottom: 14px; }
.report-header h1 { margin: 0; font-size: 28px; }
.report-header p { margin: 4px 0 0; color: var(--muted); }
.report-meta { text-align: right; }
.report-meta strong, .report-meta span, .report-card strong, .report-card span, .report-card small { display: block; }
.report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.report-card h2 { margin: 0; font-size: 18px; }
.report-card span, .report-card small { color: var(--muted); }
.report-alert, .production-block { padding: 14px; border-radius: 8px; border: 1px solid var(--line); }
.report-alert-danger, .production-block { border-color: rgba(180, 35, 24, 0.35); background: rgba(180, 35, 24, 0.08); color: var(--danger); font-weight: 700; }
.report-alert-warning { border-color: rgba(161, 92, 7, 0.35); background: rgba(161, 92, 7, 0.08); color: var(--warning); }
.production-block { text-align: center; font-size: 24px; letter-spacing: 0; }
.piece-list { display: grid; gap: 12px; }
.piece-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; break-inside: avoid; }
.piece-card-header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.risk-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; background: var(--surface-muted); font-weight: 700; }
.risk-normal { color: var(--success); }
.risk-warning { color: var(--warning); }
.risk-hard { color: var(--danger); }
.offer-table { width: 100%; border-collapse: collapse; }
.offer-table th, .offer-table td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
.signature-area { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.signature-area span { display: block; height: 72px; border-bottom: 1px solid var(--text); }
.print-only { display: none; }
@media (max-width: 760px) {
  .report-header, .report-grid, .signature-area { grid-template-columns: 1fr; }
  .report-meta { text-align: left; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #111; font-size: 12px; }
  .no-print, .topbar { display: none !important; }
  .print-only { display: block; }
  .main, .workshop-main { width: 100%; margin: 0; padding: 0; }
  .workshop-report, .report-card, .piece-card { box-shadow: none; border-color: #999; }
  .workshop-report { padding: 0; border: 0; }
  .report-card, .piece-card { break-inside: avoid; page-break-inside: avoid; }
}
