.report-catalog { margin-bottom: 18px; }
.report-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.report-card > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}
.report-card > div { flex: 1; }
.report-card b { display: block; font-size: 14px; }
.report-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.report-card > strong { color: var(--primary); font-size: 12px; }
.button.disabled { color: #a0a3af; background: #eceef3; cursor: not-allowed; }

.report-readiness {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 13px;
  font-size: 12px;
}
.report-readiness b { display: block; font-size: 13px; }
.report-readiness small { margin-top: 4px; }
.report-readiness ul { margin: 0; padding-left: 18px; line-height: 1.55; }
.report-readiness.warning { background: var(--orange-soft); color: #8a541d; }
.report-readiness.ready { background: var(--green-soft); color: #26795a; }

.oo1-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-bottom: 18px; }
.oo1-balance { align-self: start; }
.balance-line { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.balance-line:first-of-type { border-top: 0; }
.balance-line.plus strong { color: var(--green); }
.balance-line.minus strong { color: var(--red); }
.balance-line.total { margin: 5px 0 16px; padding-top: 14px; font-size: 14px; }
.balance-line.total strong { color: var(--primary); font-size: 20px; }
.oo1-preview table { min-width: 760px; }
.oo1-preview td:first-child { width: 58%; color: #555a69; }
.oo1-preview td:last-child { line-height: 1.45; }

.report-flags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.report-flags label { position: relative; margin: 0; }
.report-flags input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.report-flags span {
  display: block;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: .15s;
}
.report-flags b { display: block; color: var(--ink); font-size: 12px; }
.report-flags small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.report-flags input:checked + span { border-color: #9b8fea; background: var(--violet-soft); box-shadow: 0 0 0 2px rgba(103, 87, 216, .08); }
.report-flags input:checked + span b { color: var(--primary); }
.repeater-fields { margin-top: 15px; }
.report-confirm { position: relative; margin-top: 16px; }
.report-confirm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.report-confirm span { display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.report-confirm b { display: block; color: var(--ink); font-size: 12px; }
.report-confirm small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.report-confirm input:checked + span { border-color: #81c8aa; background: var(--green-soft); }
.report-confirm input:checked + span b { color: var(--green); }
.page-actions { display: flex; gap: 9px; align-items: center; }
.oo1-editor { display: flex; flex-direction: column; gap: 18px; }
.oo1-inputs .panel-head { margin-bottom: 8px; }
.oo1-field-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.oo1-field { padding: 13px 0; border-top: 1px solid var(--line); }
.oo1-field:nth-child(-n+2) { border-top: 0; }
.oo1-field > span { display: block; min-height: 30px; color: #555a69; font-size: 11px; line-height: 1.4; }
.oo1-field textarea { min-height: 62px; resize: vertical; }
.oo1-field small { margin-top: 5px; color: #9a9eac; font-size: 9px; font-weight: 400; }
.oo1-save-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.print-title { display: none; }
.print-meta { display: none; }
.print-signature { display: none; }

@media (max-width: 1100px) {
  .report-flags { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .report-card { align-items: flex-start; }
  .report-card > strong { display: none; }
  .report-readiness { flex-direction: column; gap: 10px; }
  .oo1-layout { grid-template-columns: 1fr; }
  .report-flags { grid-template-columns: 1fr; }
  .oo1-field-list { grid-template-columns: 1fr; }
  .oo1-field { border-top: 1px solid var(--line) !important; }
  .oo1-field:first-child { border-top: 0 !important; }
  .oo1-save-actions { flex-direction: column-reverse; }
  .oo1-save-actions .button { width: 100%; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm 14mm; }
  body { background: #fff; }
  .sidebar, .mobile-header, .no-print { display: none !important; }
  .content { margin: 0 !important; padding: 0 !important; max-width: none !important; min-height: 0 !important; }
  .print-report { display: block !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .print-title { display: block; text-align: center; margin-bottom: 8mm; }
  .print-title h1 { margin: 0 0 2mm; font: 700 15pt Arial, sans-serif; }
  .print-title h2 { margin: 0; font: 700 11pt Arial, sans-serif; }
  .print-meta { display: block; margin: 0 0 7mm; }
  .print-meta div { display: grid; grid-template-columns: 55mm 1fr; margin: 1.2mm 0; }
  .print-meta dt { color: #555a69; font: 700 9pt Arial, sans-serif; }
  .print-meta dd { margin: 0; font: 400 9pt Arial, sans-serif; }
  .screen-preview { display: none !important; }
  .table-wrap { overflow: visible !important; }
  .oo1-preview table { min-width: 0 !important; width: 100% !important; table-layout: fixed; }
  .oo1-preview th { padding: 2mm; border: .3mm solid #333; color: #222; background: #edeafe !important; font: 700 8.5pt Arial, sans-serif; }
  .oo1-preview td { padding: 1.5mm 2mm; border: .3mm solid #333; font: 400 8.3pt Arial, sans-serif; line-height: 1.2; }
  .oo1-preview td:first-child { width: 52%; }
  .oo1-preview td:last-child { width: 48%; }
  .print-signature { display: block; margin-top: 8mm; font: 400 10pt Arial, sans-serif; }
}
