/* معاينة تقارير الإدارة — Fit to Screen */
.fe-report-viewer-modal {
    z-index: 2147482000;
}

.fe-report-viewer-content {
    width: min(96vw, 1180px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fe-report-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.fe-report-viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
}

.fe-report-search-wrap {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.fe-report-viewer-body {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-height: calc(94vh - 180px);
    direction: rtl;
    text-align: right;
}

.fe-report-viewer-body .fe-report-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.fe-report-viewer-body .fe-report-table th,
.fe-report-viewer-body .fe-report-table td {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    vertical-align: top;
    padding: 6px 8px;
}

.fe-report-viewer-body .fe-report-summary,
.fe-report-viewer-body .fe-report-group-title {
    width: 100%;
    max-width: 100%;
}

.fe-report-fit-stage {
    width: 100%;
    overflow: hidden;
    transform-origin: top center;
}

.fe-report-empty {
    text-align: center;
    color: #64748b;
    padding: 24px;
}
