/* =====================================================
   QFrost CRM — density / compact theme override
   Tot scrisul mai mic, mai multe rânduri pe ecran.
   ===================================================== */

:root.fi {
    --font-size-base: 13px;
}

html.fi,
.fi-body {
    font-size: 13px;
}

/* ---- TABELE ---- */
.fi-ta-table {
    font-size: 12.5px;
}
.fi-ta-header-cell,
.fi-ta-cell {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    line-height: 1.15 !important;
}
.fi-ta-header-cell {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fi-ta-row {
    min-height: 0 !important;
}
.fi-ta-text {
    font-size: 12.5px !important;
}
.fi-ta-text-item-label {
    font-size: 12.5px !important;
}
.fi-ta-empty-state {
    padding: 1.25rem !important;
}

/* ---- FORMULARE ---- */
.fi-input,
.fi-select-input-wrp .fi-input,
.fi-fo-text-input .fi-input,
.fi-fo-textarea textarea,
.fi-fo-select select {
    font-size: 12.5px !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    min-height: 0 !important;
}
.fi-fo-field-label,
.fi-fo-field-label-content {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    margin-bottom: 0.15rem !important;
}
.fi-fo-field {
    --form-field-gap: 0.25rem;
}
.fi-input-wrp {
    min-height: 0 !important;
}
textarea.fi-input {
    line-height: 1.3 !important;
}

/* ---- SECTIONS / PAGE ---- */
.fi-section-content {
    padding: 0.65rem 0.9rem !important;
}
.fi-section-header {
    padding: 0.55rem 0.9rem !important;
}
.fi-section-header-heading {
    font-size: 13px !important;
    font-weight: 600 !important;
}
.fi-header-heading {
    font-size: 16px !important;
}
.fi-page-header {
    margin-bottom: 0.5rem !important;
}

/* ---- TABS ---- */
.fi-tabs-tab {
    font-size: 12px !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
}

/* ---- BUTONS ---- */
.fi-btn {
    font-size: 12px !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    min-height: 0 !important;
}
.fi-btn .fi-icon {
    width: 14px !important;
    height: 14px !important;
}
.fi-icon-btn {
    padding: 0.3rem !important;
    min-height: 0 !important;
}

/* ---- SIDEBAR (când e deschis) ---- */
.fi-sidebar-item .fi-sidebar-item-button {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}
.fi-sidebar-item-icon {
    width: 16px !important;
    height: 16px !important;
}
.fi-sidebar-group-label {
    font-size: 10.5px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 0.5rem !important;
    padding-bottom: 0.25rem !important;
}

/* ---- BADGE ---- */
.fi-badge {
    font-size: 10.5px !important;
    padding: 0.1rem 0.45rem !important;
    line-height: 1.3 !important;
}

/* ---- TOGGLE column în table ---- */
.fi-fo-toggle button {
    transform: scale(0.85);
}

/* ---- INFOLIST entries ---- */
.fi-in-text {
    font-size: 12.5px !important;
}
.fi-in-entry-label {
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

/* ---- PAGINATION ---- */
.fi-pagination-records-per-page-select,
.fi-pagination {
    font-size: 12px !important;
}

/* ---- TOP BAR ---- */
.fi-topbar {
    min-height: 2.75rem !important;
}
.fi-topbar nav {
    min-height: 2.75rem !important;
}

/* ---- DASHBOARD widgets gap ---- */
.fi-wi {
    font-size: 12.5px;
}

/* ====================================================
   Forțăm full width pe pagini Create/Edit/View resource
   (default Filament le pune cu maxw-7xl)
   ==================================================== */
.fi-main,
.fi-main > section,
.fi-resource-create-record-page,
.fi-resource-edit-record-page,
.fi-resource-view-record-page,
.fi-page main,
.fi-page main > div {
    max-width: 100% !important;
    width: 100% !important;
}
.fi-fo {
    width: 100% !important;
}

/* ====================================================
   Sidebar density — spacing redus
   ==================================================== */
.fi-sidebar-nav {
    gap: 0.15rem !important;
}
.fi-sidebar-nav-groups,
.fi-sidebar-nav-groups-ctn {
    gap: 0.15rem !important;
}
.fi-sidebar-group {
    margin-bottom: 0 !important;
}
.fi-sidebar-group-button,
.fi-sidebar-group-collapse-button {
    padding-top: 0.35rem !important;
    padding-bottom: 0.15rem !important;
}
.fi-sidebar-group-label {
    padding-top: 0.3rem !important;
    padding-bottom: 0.1rem !important;
    font-size: 9.5px !important;
    letter-spacing: 0.06em;
}
.fi-sidebar-group-items {
    gap: 0 !important;
    margin-top: 0 !important;
}
.fi-sidebar-item {
    margin: 0 !important;
}
.fi-sidebar-item-button,
.fi-sidebar-item .fi-sidebar-item-button {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}
.fi-sidebar-header {
    padding-top: 0.6rem !important;
    padding-bottom: 0.4rem !important;
}
/* Dashboard 'Panoul de control' la fel */
.fi-sidebar > nav > ul > li {
    margin: 0 !important;
}

/* NIR & form gap reduction */
.fi-section-content .fi-sc-has-gap {
    gap: 0.5rem !important;
}
.fi-sc-has-gap > .fi-grid + .fi-grid {
    margin-top: 0 !important;
}
.fi-fo-field {
    --form-field-gap: 0.15rem !important;
}

/* ====================================================
   Inter Tight global (mai îngust, mai dens)
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800&display=swap');

html.fi,
html.fi body,
.fi,
.fi-body,
.fi-panel-admin {
    font-family: 'Inter Tight', 'Inter Variable', 'Inter', system-ui, -apple-system, sans-serif !important;
    --font-family: 'Inter Tight', 'Inter Variable', 'Inter', system-ui, sans-serif;
}

/* Ușor letter-spacing negativ pentru senzație și mai compactă */
.fi-section-header-heading,
.fi-header-heading,
.fi-ta-header-cell {
    letter-spacing: -0.01em;
}

/* ====================================================
   Compactare form: spațiu vertical redus între secțiuni
   ==================================================== */
.fi-fo > .fi-fo-component-ctn,
.fi-fo-grid,
.fi-fo .fi-section {
    gap: 0.5rem !important;
}
.fi-section + .fi-section,
.fi-section + .fi-fo-section,
.fi-fo-section + .fi-section,
.fi-fo-section + .fi-fo-section {
    margin-top: 0.5rem !important;
}
.fi-section-content {
    padding: 0.75rem !important;
}
.fi-section-header {
    padding: 0.5rem 0.75rem !important;
}
.fi-fo-field-wrp {
    --row-gap: 0.25rem;
}

/* Centrare conținut Placeholder marcat cu qf-center-placeholder */
.qf-center-placeholder .fi-fo-placeholder,
.qf-center-placeholder > div,
.qf-center-placeholder {
    text-align: center !important;
    font-weight: 600;
    font-size: 1rem;
    align-self: center;
}
