/* Yakamoo! Filament Compact Theme Overrides */

/* ==========================================
   1. Table Density Overrides
   ========================================== */

/* Table Headers */
.fi-ta-table th {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.fi-ta-header-cell-content-wrapper {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Table Cells */
.fi-ta-table td {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Inner containers of table cells (often contains text, icons, actions) */
.fi-ta-table td > div,
.fi-ta-table td > a,
.fi-ta-cell-content,
.fi-ta-text,
.fi-ta-text-item,
.fi-ta-actions,
.fi-ta-actions-cell {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* SVGs inside table cells */
.fi-ta-table td svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

/* Compact filters, search, and bulk actions bar */
.fi-ta-header-toolbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Reduce general vertical margins of sections */
.fi-section-header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* ==========================================
   2. Sidebar Compact Overrides
   ========================================== */

/* Spacing between sidebar navigation groups */
.fi-sidebar-nav-groups,
.fi-sidebar-nav {
    gap: 0.375rem !important; /* Default tailwind gap-y-6 or gap-y-4 is too wide */
}

/* Navigation Groups */
.fi-sidebar-group {
    margin-top: 0.125rem !important;
    margin-bottom: 0.125rem !important;
    gap: 0.25rem !important;
}

/* Navigation Group Header Buttons / Labels */
.fi-sidebar-group-button,
.fi-sidebar-group-header,
.fi-sidebar-group-label {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* Reduce size of group header label text if needed */
.fi-sidebar-group-label span,
.fi-sidebar-group-header span {
    font-size: 0.75rem !important; /* Smaller label text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Spacing between list items inside a group */
.fi-sidebar-group-items {
    gap: 0.125rem !important;
}

/* Individual Navigation Link Items */
.fi-sidebar-item {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}

/* Reduce vertical padding of the sidebar item links/buttons */
.fi-sidebar-item-button,
.fi-sidebar-item a,
.fi-sidebar-item button {
    padding-top: 0.375rem !important; /* Compact item padding */
    padding-bottom: 0.375rem !important;
    min-height: 2.25rem !important; /* Avoid huge items */
}

/* Sidebar Item Icons */
.fi-sidebar-item-icon,
.fi-sidebar-item svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

/* Sidebar Item Labels */
.fi-sidebar-item-label {
    font-size: 0.875rem !important;
}
