@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Scheherazade+New:wght@400;500;600;700&display=swap');

html[lang='ps'],
html[lang='fa'] {
    --font-family: 'Amiri', 'Scheherazade New', Tahoma, Arial, sans-serif;
}

html[lang='ps'] body,
html[lang='fa'] body,
html[lang='ps'] button,
html[lang='fa'] button,
html[lang='ps'] input,
html[lang='fa'] input,
html[lang='ps'] textarea,
html[lang='fa'] textarea,
html[lang='ps'] select,
html[lang='fa'] select {
    font-family: var(--font-family);
}

html[lang='ps'] .fi-logo,
html[lang='fa'] .fi-logo,
html[lang='ps'] .fi-header-heading,
html[lang='fa'] .fi-header-heading,
html[lang='ps'] .fi-section-header-heading,
html[lang='fa'] .fi-section-header-heading,
html[lang='ps'] .fi-wi-chart-heading,
html[lang='fa'] .fi-wi-chart-heading,
html[lang='ps'] .fi-ta-header-heading,
html[lang='fa'] .fi-ta-header-heading {
    font-family: 'Amiri', 'Scheherazade New', Tahoma, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.75;
}

html[lang='ps'] .fi-sidebar,
html[lang='fa'] .fi-sidebar,
html[lang='ps'] .fi-topbar,
html[lang='fa'] .fi-topbar,
html[lang='ps'] .fi-main,
html[lang='fa'] .fi-main {
    letter-spacing: 0;
}

.fi-sidebar .fi-tenant-menu {
    display: none;
}

.business-logo-preview {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.dark .business-logo-preview {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

html[lang='ps'] .report-preview-panel,
html[lang='fa'] .report-preview-panel,
html[lang='ps'] .report-body,
html[lang='fa'] .report-body,
html[dir='rtl'] .report-print-page {
    direction: rtl;
    text-align: right;
}

html[lang='ps'] .report-preview-title-row,
html[lang='fa'] .report-preview-title-row,
html[lang='ps'] .report-preview-meta,
html[lang='fa'] .report-preview-meta,
html[lang='ps'] .report-preview-chip,
html[lang='fa'] .report-preview-chip,
html[lang='ps'] .report-preview-print-btn,
html[lang='fa'] .report-preview-print-btn,
html[lang='ps'] .report-preview-ranges .flex,
html[lang='fa'] .report-preview-ranges .flex,
.report-body[dir='rtl'] .report-section-heading,
.report-body[dir='rtl'] .report-section-title-group,
.report-body[dir='rtl'] .report-metric,
html[dir='rtl'] .report-print-page .header,
html[dir='rtl'] .report-print-page .brand,
html[dir='rtl'] .report-print-page .print-bar,
html[dir='rtl'] .report-print-page .print-bar-left,
html[dir='rtl'] .report-print-page .report-section-heading,
html[dir='rtl'] .report-print-page .report-section-title-group,
html[dir='rtl'] .report-print-page .summary {
    flex-direction: row-reverse;
}

html[lang='ps'] .report-preview-title-block,
html[lang='fa'] .report-preview-title-block,
html[lang='ps'] .report-preview-ranges,
html[lang='fa'] .report-preview-ranges,
.report-body[dir='rtl'] .report-table th,
.report-body[dir='rtl'] .report-table td,
html[dir='rtl'] .report-print-page .report-table th,
html[dir='rtl'] .report-print-page .report-table td {
    text-align: right;
}

.report-body[dir='rtl'] .report-metric-indicator,
html[dir='rtl'] .report-print-page .report-metric-bar {
    left: auto;
    right: 0;
}

.report-body[dir='rtl'] .report-metric-indicator {
    border-radius: 4px 0 0 4px;
}

html[dir='rtl'] .report-print-page .meta {
    text-align: left;
}

html[lang='ps'] .report-table th,
html[lang='fa'] .report-table th,
html[dir='rtl'] .report-print-page .report-table th,
html[lang='ps'] .report-metric-label,
html[lang='fa'] .report-metric-label,
html[dir='rtl'] .report-print-page .report-metric-label,
html[lang='ps'] .report-preview-eyebrow,
html[lang='fa'] .report-preview-eyebrow,
html[dir='rtl'] .report-print-page .summary-item strong {
    letter-spacing: 0;
    text-transform: none;
}

html[lang='ps'] .report-table td,
html[lang='fa'] .report-table td,
html[lang='ps'] .report-metric-value,
html[lang='fa'] .report-metric-value,
html[lang='ps'] .report-preview-chip,
html[lang='fa'] .report-preview-chip,
html[dir='rtl'] .report-print-page .report-table td,
html[dir='rtl'] .report-print-page .report-metric-value,
html[dir='rtl'] .report-print-page .summary-item span,
html[dir='rtl'] .report-print-page .meta p,
html[dir='rtl'] .report-print-page .footer {
    unicode-bidi: plaintext;
}

@media (max-width: 640px) {
    html[lang='ps'] .report-preview-header-inner,
    html[lang='fa'] .report-preview-header-inner {
        align-items: stretch;
    }

    html[lang='ps'] .report-preview-chip,
    html[lang='fa'] .report-preview-chip,
    html[lang='ps'] .report-preview-print-btn,
    html[lang='fa'] .report-preview-print-btn {
        justify-content: center;
    }
}
