html, body {
    height: 100%;
    margin: 0;
}

body.admin-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body.admin-page main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

body.admin-page main .banner-image_contact {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

body.admin-page .page-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    height: 100%;
    min-height: 0;
}

    body.admin-page .page-container > .container-fluid {
        display: flex;
        flex-direction: column;
        flex: 1 1 0%;
        min-height: 0;
    }

    body.admin-page .page-container .row {
        flex: 1 1 0%;
        min-height: 0;
    }

    body.admin-page .page-container .row > [class*="col-"] {
        min-height: 0;
    }

    body.admin-page .page-container .card,
    body.admin-page .page-container .card-body {
        min-height: 0;
    }

/*---------------------------------------
  EVENT ADMIN COMPONENT - Table scrolling
---------------------------------------*/

.event-admin-container {
    flex: 1 1 0%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.event-admin-row {
    flex: 1 1 0%;
    height: 100%;
    min-height: 0;
    display: flex;
}

.event-admin-col-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

    .event-admin-col-list .card {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

.event-admin-list-card-body {
    flex: 1 1 0%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.event-admin-scroll-list {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.event-admin-scroll-list table {
    margin-bottom: 0;
}

.event-admin-scroll-list thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bs-body-bg);
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Prevent filter sections from growing */
.event-admin-list-card-body > .mb-3 {
    flex: 0 0 auto;
}

.button-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: stretch;
    gap: 0.5rem;
}

.btn-register {
    background-color: #253e67;
    color: white;
}

.btn-clear {
    background-color: #000000;
    color: white;
}

.status-message {
    width: 100%;
    height: 2.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.status-message .alert {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendee-table {
    width: auto;
}

.edit-icon {
    cursor: pointer;
}
