/* Global styling */

/* Admin logo size */
nav#nav-sidebar > div:first-of-type > div:first-of-type div:first-of-type img {
    height: 40px;
}

/* Fix row height inconsistency for read-only users (Unfold theme bug) */
@media (min-width: 1024px) {
    #result_list tr {
        height: 32px;
    }
}

/* Specify the column width for the changelist */
#result_list td, #result_list th {
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Custom action buttons in changelist */
.custom-action-buttons-wrapper {
    padding: 2px;
}

.custom-action-button {
    min-width: 130px;
    display: inline-block;
    text-align: center;
    text-wrap: nowrap;
    margin: 1px 0 1px 0;
    line-height: 1.1rem;
    font-size: 90%;
}

/* Header in inlines */
.js-inline-admin-formset > fieldset > div > div > h3 { background-color: var(--color-base-50); }

/* Hide theme header when printing */
@media print {
    #main > :first-child {
        display: none;
    }
}

/* Force scrollbar to always be visible to prevent layout shift */
html {
    overflow-y: scroll;
}
