/*
 * Keroshe panel theme (D-027): Vazirmatn served from public/fonts so
 * the panel never waits on a font CDN, plus small polish on top of
 * the default Filament layout. No Tailwind build — the panel
 * stylesheet ships through the LocalFontProvider link, and this file
 * only layers on top of Filament's own CSS.
 */

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
}

html {
    direction: rtl;
}

body {
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Persian digits read badly in data tables; amounts and ids stay
   Latin and left-aligned. */
.fi-ta-text-column:not(.-align-right) {
    text-align: start;
}

table td.-align-end,
table th.-align-end {
    direction: ltr;
    text-align: end;
    font-variant-numeric: tabular-nums;
}

/* Slightly tighter widget cards so a four-stat overview keeps one
   row on wide screens. */
.fi-widget {
    gap: 0.5rem;
}
