/*
 * System Admin tables use a quieter header divider than the default admin grid.
 * Keep the scope on the active System Admin layout, including portal-rendered dialogs.
 */
.admin-layout.system-admin-layout table > thead > tr > th,
.admin-layout.system-admin-layout .e-grid .e-headercell,
body:has(.admin-layout.system-admin-layout) .e-dialog table > thead > tr > th,
body:has(.admin-layout.system-admin-layout) .e-dialog .e-grid .e-headercell {
    border-bottom-color: #edf2f7 !important;
}

.admin-layout.system-admin-layout .e-grid .e-gridheader,
.admin-layout.system-admin-layout .e-grid .e-headercontent,
body:has(.admin-layout.system-admin-layout) .e-dialog .e-grid .e-gridheader,
body:has(.admin-layout.system-admin-layout) .e-dialog .e-grid .e-headercontent {
    border-bottom-color: #edf2f7 !important;
}

.admin-layout.system-admin-layout .system-library-page {
    padding-bottom: var(--evosoft-admin-page-padding-bottom);
}

.admin-layout.system-admin-layout .system-library-count-detail {
    display: grid;
    gap: 2px;
}

.admin-layout.system-admin-layout .system-library-count-detail small {
    color: var(--evosoft-admin-text-secondary);
    font-size: 12px;
    line-height: 18px;
}

.admin-layout.system-admin-layout .system-library-thumbnail {
    background: var(--evosoft-admin-surface-muted);
    border-radius: var(--evosoft-admin-radius);
    display: block;
    height: 48px;
    margin: 0 auto;
    object-fit: contain;
    width: 80px;
}
