.reports-documents-view { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(320px, .9fr); gap: 15px; align-items: stretch; }
.reports-main-card, .reports-preview-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.reports-main-card { padding: 17px; }
.reports-preview-card { display: flex; flex-direction: column; padding: 17px; }
.reports-section + .reports-section { margin-top: 17px; }
.reports-section h2, .reports-preview-card > h2 { margin: 0 0 11px; color: #183150; font-size: 15px; font-weight: 800; line-height: 1.3; }

.reports-upload-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(220px, .85fr); align-items: start; gap: 12px; }
.reports-dropzone { min-height: 126px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 8px 16px; border: 1px dashed #7eb6e8; border-radius: var(--radius); background: #fbfdff; color: var(--brand-dark); text-align: center; }
.reports-dropzone { position: relative; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.reports-dropzone:hover, .reports-dropzone:focus-visible, .reports-dropzone.is-dragging { border-color: var(--brand); background: #f5faff; box-shadow: 0 0 0 3px rgba(40, 127, 193, .1); outline: 0; }
.reports-dropzone.is-locked { opacity: .52; cursor: not-allowed; pointer-events: none; }
.reports-documents-view button:disabled, .reports-documents-view input:disabled { opacity: .5; cursor: not-allowed; }
.reports-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.reports-upload-icon { width: 32px; height: 28px; color: #176fbf; }
.reports-upload-icon svg { width: 100%; height: 100%; }
.reports-dropzone b { font-size: 13px; font-weight: 700; }
.reports-choose-button { min-height: 32px; padding: 5px 12px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; }
.reports-dropzone p, .reports-dropzone small { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.reports-note { min-height: 126px; padding: 12px 13px; border: 1px solid #d8e6f2; border-radius: var(--radius); background: #f8fbfe; color: #38506b; }
.reports-note h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 13px; }
.reports-note ul { display: grid; gap: 7px; margin: 0; padding-left: 15px; }
.reports-note li { font-size: 11px; line-height: 1.5; }
.reports-queue { margin-top: 12px; padding: 12px; border: 1px solid #cfe1f2; border-radius: var(--radius); background: #f8fbff; }
.reports-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }.reports-queue-heading > div { display: flex; align-items: center; gap: 8px; }.reports-queue-heading h3 { margin: 0; color: var(--brand-dark); font-size: 13px; }.reports-queue-heading span { color: var(--ink-soft); font-size: 11px; }.reports-queue-heading button { min-height: 32px; padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.reports-clear-queue { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }.reports-upload-stub { margin-left: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; }.reports-upload-stub:disabled { border-color: var(--line); background: #e8eef4; color: #91a0ae; cursor: not-allowed; }
.reports-queue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.reports-queue-item { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }.reports-queue-item .file-icon { width: 24px; height: 28px; }.reports-queue-item b, .reports-queue-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reports-queue-item b { color: var(--brand-dark); font-size: 12px; }.reports-queue-item small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }.reports-queue-status { padding: 3px 7px; border-radius: 999px; background: #e8f8ef; color: #168454; font-size: 10px; font-weight: 700; white-space: nowrap; }.reports-queue-item > button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 19px; line-height: 1; }.reports-queue-item > button:hover { background: var(--danger-soft); color: var(--danger); }

.reports-queue-item.is-uploading .reports-queue-status { background: #e8f2ff; color: var(--brand); }
.reports-queue-item.is-error { border-color: #f1b9bf; }
.reports-queue-item.is-error .reports-queue-status { background: var(--danger-soft); color: var(--danger); }
.reports-queue-item.is-error small { color: var(--danger); }

.reports-filter-row { display: grid; grid-template-columns: minmax(125px, .8fr) minmax(135px, .85fr) minmax(135px, .8fr) minmax(135px, .8fr) minmax(190px, 1.15fr) auto; gap: 9px; }
.reports-select, .reports-date-field, .reports-search, .reports-reset { height: var(--control-height); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 12px; }
.reports-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; text-align: left; }
.reports-date-field { position: relative; }
.reports-date-field > input[data-date-picker] { height: 100%; padding: 0 34px 0 11px; border: 0; background: transparent; font-size: 12px; }
.reports-date-field > svg, .reports-search svg, .reports-reset svg { width: 16px; height: 16px; color: var(--brand); }
.reports-search { position: relative; display: flex; align-items: center; }
.reports-search svg { position: absolute; left: 11px; color: var(--ink-soft); }
.reports-search input { width: 100%; height: 100%; padding: 0 10px 0 34px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.reports-reset { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; color: var(--brand-dark); font-weight: 700; white-space: nowrap; transition: border-color .14s ease, background-color .14s ease; }
.reports-reset:hover { border-color: #b8cfe3; background: var(--brand-soft); }

.reports-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.reports-list-state { min-height: 150px; display: grid; place-content: center; gap: 7px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-muted); color: var(--ink-soft); font-size: 12px; text-align: center; }
.reports-list-state b { color: var(--brand-dark); font-size: 13px; }.reports-list-state button { justify-self: center; min-height: 36px; padding: 7px 14px; border: 1px solid var(--brand); border-radius: 7px; background: var(--surface); color: var(--brand); font-size: 12px; font-weight: 700; }.reports-list-state.is-error { border-color: #f1b9bf; background: var(--danger-soft); }
.reports-preview-empty { min-height: 150px; display: grid; place-content: center; color: var(--ink-soft); font-size: 12px; text-align: center; }
.reports-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.reports-table th { padding: 10px; border-bottom: 1px solid var(--line); background: #f6f8fb; color: #52657c; font-size: 12px; font-weight: 800; letter-spacing: .01em; text-align: left; }
.reports-table td { height: 56px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: #304158; font-size: 12px; line-height: 1.35; vertical-align: middle; }
.reports-table tr:last-child td { border-bottom: 0; }
.reports-table tbody tr { transition: background-color .14s ease; }.reports-table tbody tr:hover td { background: #f8fbfe; }.reports-table tr.selected td { background: #f2f8ff; }
.reports-table tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.reports-table th:nth-child(1) { width: 24%; }.reports-table th:nth-child(2) { width: 8%; }.reports-table th:nth-child(3) { width: 13%; }.reports-table th:nth-child(4) { width: 10%; }.reports-table th:nth-child(5) { width: 12%; }.reports-table th:nth-child(6) { width: 14%; }.reports-table th:nth-child(7) { width: 12%; }.reports-table th:nth-child(8) { width: 9%; }
.reports-table td > b, .reports-table td > small { display: block; }
.reports-table td > small, .reports-source-badge + small { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.reports-file-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.reports-file-name > div { min-width: 0; }.reports-file-name b, .reports-file-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reports-file-name b { color: #18304e; font-size: 13px; }
.file-icon { width: 25px; height: 30px; flex: 0 0 25px; }.file-icon svg { width: 100%; height: 100%; }.file-icon.image, .file-kind.image { color: #1774cf; }.file-icon.pdf, .file-kind.pdf { color: #e54854; }.file-icon.word, .file-kind.word { color: #236ed2; }.file-icon.excel, .file-kind.excel { color: #15945b; }
.file-kind, .reports-source-badge, .document-status { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.file-kind.image, .file-kind.word { background: #e8f2ff; }.file-kind.pdf { background: #ffecef; }.file-kind.excel { background: #e8f8ef; }
.reports-source-badge { background: #eaf2fc; color: var(--brand-dark); }
.document-status.active { background: #e8f8ef; color: #168454; }.document-status.replaced { background: #fff3dd; color: #a96800; }.document-status.deleted { background: #edf2f7; color: #52677d; }
.reports-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }.reports-row-actions button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--brand-dark); }.reports-row-actions button:hover { background: var(--brand-soft); }.reports-row-actions svg { width: 16px; height: 16px; }
.reports-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--brand-dark); font-size: 12px; }
.reports-pagination > div { display: flex; align-items: center; gap: 7px; }.reports-pagination button { min-width: 31px; height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--brand-dark); }.reports-pagination button.active { border-color: var(--brand); background: var(--brand); color: #fff; }.reports-pagination .reports-page-size { margin-left: 8px; min-width: 86px; }

.reports-preview-image { position: relative; height: 196px; overflow: hidden; border-radius: 7px; background: var(--surface-muted); }
.reports-preview-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.reports-preview-message { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--text-muted); background: var(--surface-soft); }
.reports-preview-message a { color: var(--primary); font-weight: 700; text-decoration: none; }
.reports-preview-message.is-error { color: var(--danger); }
.reports-preview-image > div { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }.reports-preview-image button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: rgba(15, 23, 42, .74); color: #fff; }.reports-preview-image button:hover { background: rgba(15, 23, 42, .9); }.reports-preview-image svg { width: 15px; height: 15px; }
.reports-preview-name { display: flex; align-items: center; gap: 9px; padding: 13px 0 11px; border-bottom: 1px solid var(--line-soft); color: var(--brand-dark); }.reports-preview-name > span { width: 25px; height: 25px; color: var(--brand); }.reports-preview-name svg { width: 100%; height: 100%; }.reports-preview-name b { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.reports-metadata { display: grid; gap: 8px; margin: 12px 0 0; }.reports-metadata > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 9px; }.reports-metadata dt { color: var(--ink-soft); font-size: 12px; }.reports-metadata dd { margin: 0; color: #243b58; font-size: 12px; font-weight: 600; line-height: 1.4; }.reports-metadata dd > span + span { margin-left: 8px; font-weight: 500; }
.reports-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; padding-top: 16px; }.reports-preview-actions button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--brand); border-radius: 7px; background: var(--surface); color: var(--brand); font-size: 12px; font-weight: 700; }.reports-preview-actions svg { width: 16px; height: 16px; }.reports-preview-actions .replace { background: var(--brand); color: #fff; }.reports-preview-actions .delete { grid-column: 1 / -1; border-color: #e4a7aa; background: #fffafa; color: var(--danger); }
.reports-permission-note { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 11px; line-height: 1.55; text-align: center; }

@media (max-width: 1320px) {
  .reports-documents-view { grid-template-columns: minmax(0, 2fr) minmax(300px, .9fr); }
  .reports-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.reports-date-field, .reports-search { grid-column: span 1; }.reports-reset { justify-self: start; }
}
@media (max-width: 1040px) { .reports-documents-view { grid-template-columns: 1fr; }.reports-preview-card { min-height: 620px; }.reports-preview-image { height: 300px; } }
@media (max-width: 700px) { .reports-main-card, .reports-preview-card { padding: 12px; }.reports-upload-grid, .reports-filter-row, .reports-queue-list { grid-template-columns: 1fr; }.reports-filter-row > * { grid-column: auto; width: 100%; }.reports-pagination, .reports-queue-heading { align-items: flex-start; flex-direction: column; }.reports-preview-image { height: 220px; } }
