/**
 * ePanel panel typography — Inter yerel versiyonu
 *
 * Filament LocalFontProvider bu dosyayi inject eder.
 * CSP 'self' kurali korunur; dis font CDN'lerine ihtiyac yoktur.
 *
 * Not:
 * - Dosya adi geriye donuk uyumluluk icin "outfit.css" olarak kaldi.
 * - Logo fontu bu dosyadan bagimsizdir; logo tarafinda Outfit kullanimi korunur.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/outfit/outfit-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/outfit/outfit-500.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/outfit/outfit-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/outfit/outfit-600.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit/outfit-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit/outfit-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Filament root font variable + body fallback enforcement */
:root {
    --font-family: 'Inter' !important;
}

html.fi,
html.fi body,
.fi-body {
    font-family: 'Inter', 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/*
 * Filament readability tuning for Inter.
 * Tables/forms dominate the product; make copy less tight.
 */
html.fi {
    font-size: 16px;
}

html.fi body,
.fi-body {
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.005em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Filament relies heavily on text-sm/text-xs; nudge them up for readability */
html.fi :where(.text-sm) {
    font-size: 0.9375rem;
    line-height: 1.45rem;
}

html.fi :where(.text-xs) {
    font-size: 0.8125rem;
    line-height: 1.2rem;
}

/* Keep controls legible without making headings heavy */
html.fi :where(.fi-btn, .fi-icon-btn) {
    font-weight: 500;
    letter-spacing: 0.01em;
}

html.fi :where(.fi-ta-cell, .fi-ta-text, .fi-input-wrp, .fi-fo-field-wrp-label) {
    letter-spacing: 0.004em;
    line-height: 1.45;
}

/*
 * Use Inter for both body copy and emphasized/structural text for a unified UI rhythm.
 * This targets headings, table headers, tab labels, and bold utility usage.
 */
html.fi :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    strong,
    b,
    th,
    .font-semibold,
    .font-bold,
    .fi-header-heading,
    .fi-section-header-heading,
    .fi-ta-header-cell,
    .fi-ta-header-cell-label,
    .fi-tabs-item,
    .fi-tabs-item-label,
    .fi-topbar-item-label,
    .fi-sidebar-group-label,
    .fi-sidebar-item-label
) {
    font-family: 'Inter', 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0.01em;
}

/*
 * Tablo toolbar: arama kutusunu sola, filtre/sutun yoneticisini sagda tut.
 * Yaklasim: child(2) display:contents ile duzlestir,
 *   search → order:-1 (en sol), actions → order:0 (searchin sagi),
 *   filtre/sutun → order:10 + ms-auto (en sag).
 * justify-content override: space-between yerine flex-start, ms-auto ile sag blok.
 */
html.fi .fi-ta-header-toolbar {
    justify-content: flex-start !important;
}

html.fi .fi-ta-header-toolbar > :nth-child(2) {
    display: contents !important;
}

html.fi .fi-ta-header-toolbar .fi-ta-search-field {
    order: -1 !important;
}

html.fi .fi-ta-header-toolbar > :nth-child(1) {
    order: 0 !important;
    margin-inline-start: 0 !important;
}

html.fi .fi-ta-header-toolbar .fi-ta-filters-modal,
html.fi .fi-ta-header-toolbar .fi-ta-filters-dropdown,
html.fi .fi-ta-header-toolbar .fi-ta-filters-trigger-action-ctn,
html.fi .fi-ta-header-toolbar .fi-ta-col-manager-modal,
html.fi .fi-ta-header-toolbar .fi-ta-col-manager-dropdown {
    order: 10 !important;
}

html.fi .fi-ta-header-toolbar .fi-ta-filters-modal,
html.fi .fi-ta-header-toolbar .fi-ta-filters-dropdown,
html.fi .fi-ta-header-toolbar .fi-ta-filters-trigger-action-ctn {
    margin-inline-start: auto !important;
}

/*
 * Tablo pagination yeniden siralama.
 * Filament kaynak: grid grid-cols-[1fr_auto_1fr]
 * Hedef: pagination (sol) | records-per-page (orta) | overview (sag)
 */
html.fi .fi-pagination .fi-pagination-items {
    justify-self: start !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html.fi .fi-pagination .fi-pagination-records-per-page-select-ctn {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
}

html.fi .fi-pagination .fi-pagination-overview {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
}
