.report-tabs { margin-bottom: 20px; }
.report-tabs a { text-decoration: none; }
#report-form { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 18px; }
#report-form > .card { min-width: 0; }
#report-form h2 { margin-bottom: 14px; }
#report-form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
#report-form details { margin: 12px 0; }
#report-form summary { cursor: pointer; color: var(--green, #3f7954); padding: 7px 0; }
.report-mapping .table-wrap { max-height: 360px; overflow: auto; }
.report-mapping select { width: 100%; min-width: 210px; padding: 7px; }
.report-instructions { white-space: pre-wrap; max-height: 280px; overflow: auto; background: #f6f8f6; padding: 14px; font: inherit; font-size: 13px; line-height: 1.7; }
.report-check { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; font-size: 13px; line-height: 1.7; }
.report-check input { flex: 0 0 auto; margin-top: 5px; }
.report-preview { overflow: auto; max-width: 100%; max-height: 620px; margin: 14px 0; border: 1px solid #e1e7e0; border-radius: 8px; }
.report-preview .report-quote-col { min-width: 240px; }
.report-product { min-width: 210px; margin-bottom: 10px; }
.report-product .report-thumb { float: left; margin-right: 10px; }
.report-product small { display: block; }
.report-preview .field { margin-top: 8px; clear: both; }
.report-doc-text { width: 100%; min-height: 160px; resize: vertical; padding: 10px; }
.report-preview th { position: sticky; top: 0; z-index: 1; background: #f1f5ef; min-width: 135px; }
.report-preview th:first-child { min-width: 150px; }
.report-preview td { vertical-align: top; }
.report-preview textarea { min-width: 140px; width: 100%; min-height: 56px; padding: 7px; border: 1px solid #dce3da; border-radius: 5px; font: inherit; font-size: 12px; resize: vertical; }
.report-preview select { min-width: 140px; max-width: 240px; padding: 7px; }
.report-thumb { display: block; width: 84px; height: 76px; object-fit: contain; background: white; }
.report-actions { margin-top: 12px; flex-wrap: wrap; }
.report-stage[hidden] { display: none !important; }
.report-stepper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.report-step { display: flex; align-items: center; text-align: left; gap: 11px; border: 1px solid var(--line,#e1e7e0); background: #fff; border-radius: 12px; padding: 15px 16px; color: var(--muted,#777); cursor: pointer; font: inherit; }
.report-step > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; background: #f1f3ef; border-radius: 50%; font-size: 13px; }
.report-step b,.report-step small { display: block; }
.report-step b { font-size: 14px; color: var(--ink,#26352a); }
.report-step small { margin-top: 3px; font-size: 11px; }
.report-step.active { border-color: var(--accent-ink,#477858); background: #f4f8f1; }
.report-step.active > span { background: var(--accent-ink,#477858); color: white; }
.report-requirement { padding: 13px 16px; background: #f6f8f3; border-radius: 9px; margin: 6px 0 20px; }
.report-requirement b { font-size: 14px; }
.report-requirement p { color: var(--muted,#707970); font-size: 12px; line-height: 1.7; margin-top: 4px; }
.report-source-field { max-width: 600px; margin-top: 20px; }
.report-format-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line,#e1e7e0); margin-top: 22px; padding-top: 15px; }
.report-stage-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line,#e1e7e0); padding-top: 20px; margin-top: 24px; }
.report-advanced,.report-technical,.report-reference { border: 1px solid var(--line,#e1e7e0); border-radius: 8px; padding: 3px 14px; }
.report-products { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; margin: 16px 0; }
.report-result-summary { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line,#e1e7e0); }
.report-product-card { min-width: 0; border: 1px solid #e0e5dd; border-radius: 12px; background: #fff; padding: 16px; }
.report-product-card.selected { border-color: #9eaf90; background: #fbfcf9; }
.report-card-select { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--accent-ink,#477858); margin-bottom: 14px; cursor: pointer; }
.report-card-product { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 13px; align-items: start; min-height: 108px; }
.report-card-product h3 { font-size: 14px; line-height: 1.6; margin-bottom: 5px; }
.report-card-product p { margin-top: 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.report-card-image { width: 104px; height: 104px; object-fit: contain; border-radius: 8px; background: #fff; }
.report-image-missing { display: grid; place-items: center; color: #999; font-size: 12px; background: #f2f3ef; }
.report-card-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.report-card-prices .field { margin: 0 0 13px; }
.report-card-prices input { width: 100%; }
.report-product-card [data-report-total] { font-size: 13px; }
.report-product-card [data-report-margin] { font-size: 11px; }
.report-card-note,.report-image-warning { color: #8b6c3d; font-size: 11px; line-height: 1.65; margin-top: 12px; }
.report-image-warning { color: #b54f42; }
.report-image-error { border-color: #d9aaa0; }
.report-excluded .table-wrap { max-height: 360px; overflow: auto; }
@media(max-width: 650px) { #report-form .fields { grid-template-columns: 1fr; } .report-preview { max-height: 480px; } }
@media(max-width: 650px) { .report-stepper { gap: 6px; } .report-step { padding: 10px 8px; gap: 7px; } .report-step > span { width: 23px; height: 23px; } .report-step small { display: none; } .report-step b { font-size: 11px; } .report-products { grid-template-columns: minmax(0,1fr); } .report-stage-actions { flex-wrap: wrap; } }
