html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    /* Clear fixed navbar (legacy theme.scss margin-top: 70px) */
    padding-top: 70px;
}

main.app-main {
    flex: 1 0 auto;
}

/* Legacy theme.scss .buttonbox — action buttons flush right */
.buttonbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Legacy theme.scss thumb sizes */
.file-thumb-cell {
    width: 10px;
}

.thumb {
    width: 128px;
    border: 2px solid #808080;
    padding: 2px;
    max-width: none;
    box-sizing: content-box;
}

.thumb-square {
    width: 128px;
    height: 128px;
    object-fit: cover;
}

.page-breadcrumb {
    margin-bottom: 1rem;
}

.page-breadcrumb a {
    text-decoration: none;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.permission-add-card {
    margin-bottom: 1.5rem;
}

.permission-table .btn {
    white-space: nowrap;
}

/* Readonly URL fields — muted background + open-in-new-tab control */
.form-control.url-field[readonly] {
    background-color: var(--bs-secondary-bg, #e9ecef);
    cursor: text;
}

