/* Narrower sidebar when open */
.fi-main-sidebar.fi-sidebar-open {
    width: 13rem !important;
    min-width: 13rem !important;
}

/* Adjust main content area to match narrower sidebar */
.fi-main-sidebar.fi-sidebar-open ~ .fi-main-ctn {
    margin-inline-start: 13rem !important;
}

/* Make main content use full available width */
.fi-main-ctn {
    max-width: 100% !important;
}

/* Tighter page header */
.fi-header {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    gap: 0.5rem !important;
}

.fi-page-header-main-ctn {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
}

/* Smaller page title */
.fi-header-heading {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
}

/* Smaller header action buttons */
.fi-header .fi-btn.fi-size-md {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    font-size: 0.8rem !important;
}

/* Smaller icons inside header buttons */
.fi-header .fi-btn .fi-icon.fi-size-md {
    width: 1rem !important;
    height: 1rem !important;
}

/* Reduce spacing between header and content */
.fi-page-content {
    padding-top: 0.25rem !important;
}

/* Tighter main content padding */
.fi-page-main {
    padding-top: 0.25rem !important;
}