.button-group {
    display: flex;
    justify-content: space-between;
}

.child-controls {
    display: flex;
    justify-content: space-between;
}



/* Parent Portal CSS */

/* XXL */
/* CUSTOM CSS */
.fr-table-alpha {
    /* Header */
    --header-background-color: var(--neutral-light);
    --header-block-padding: var(--space-s);
    /* Cells */
    --cell-inline-padding: var(--space-m);
    --cell-block-padding: var(--space-xs);
    /* Table */
    --table-border-width: 1px;
    --table-border-color: var(--black-trans-10);
    --caption-padding: var(--space-s);
    --alternating-row-color: var(--black-trans-10);
    /* Avatar */
    --avatar-size: 2em;
    --avatar-radius: 50vw;
}

/* To style the data attribute labels for mobile devices, scroll down and find ".fr-table-alpha td::before" area. */

/* NOTE: You won't be able to see labels on mobile in the builder canvas until Bricks fixes the bug with data attribute styling */

/* Table Style */

.fr-table-alpha table {
    border-collapse: collapse;
    border: var(--table-border-width) solid var(--table-border-color);
}

/* Table Header Styling */

.fr-table-alpha th[scope="col"] {
    background-color: var(--header-background-color);
}

/* Table Row Styling */

.fr-table-alpha tr:nth-of-type(even) {
    background-color: var(--alternating-row-color);
}

/* Table Data Styling */

.fr-table-alpha th,
.fr-table-alpha td {
    text-align: left;
    line-height: 1.1;
}

.fr-table-alpha th {
    padding: var(--header-block-padding) var(--cell-inline-padding);
}

.fr-table-alpha td {
    padding: var(--cell-block-padding) var(--cell-inline-padding);
    ;
}

/* Avatar */

.fr-table-alpha__avatar {
    width: var(--avatar-size);
    aspect-ratio: 1/1;
    border-radius: var(--avatar-radius);
}

/* Mobile */

@media (max-width: 767px) {

    /* Remove header on mobile */
    .fr-table-alpha thead {
        display: none;
    }

    /* Row style on mobile */
    .fr-table-alpha tr {
        display: grid;
        padding: var(--cell-inline-padding) var(--cell-block-padding);
    }

    /* Align cell content on mobile */
    .fr-table-alpha td {
        display: flex;
        flex-direction: column;
        gap: .5em;
    }

    /* Add Labels to Values on Mobile */
    .fr-table-alpha td::before {
        content: attr(data-cell);
        text-transform: uppercase;
        font-size: var(--text-xs);
        font-weight: 700;
    }

    /* Remove label from Avatar */
    .fr-table-alpha [data-cell="avatar"]::before {
        display: none;
    }

}

/* XXL */
.fr-table-alpha {
    max-width: 100%;
}



















@keyframes flash {
    0% {
        background-color: transparent;
    }

    15% {
        background-color: var(--base-light);
    }

    20% {
        background-color: var(--base-light);
    }

    25% {
        background-color: var(--base-light);
    }

    30% {
        background-color: var(--base-light);
    }

    35% {
        background-color: var(--base-light);
    }

    40% {
        background-color: var(--base-light);
    }

    45% {
        background-color: var(--base-light);
    }

    50% {
        background-color: var(--base-light);
    }

    55% {
        background-color: var(--base-light);
    }

    60% {
        background-color: var(--base-light);
    }

    75% {
        background-color: var(--base-light);
    }

    80% {
        background-color: var(--base-light);
    }

    85% {
        background-color: var(--base-light);
    }

    90% {
        background-color: var(--base-light);
    }

    100% {
        background-color: transparent;
    }
}

.flash {
    animation: flash 700ms ease-in-out;
}

fieldset {
    margin: var(--space-xs) 0px;
}

legend {
    font-weight: 500;
    background: var(--neutral) !important;
    border: 1px solid #cdcdcd;
    padding: var(--space-xs) !important;
    color: var(--base) !important;
}


div#newchild-form-container {
    width: 100%;
}


#newchild-form-container .child-container {
    display: inline-grid;
    width: 31.5%;
    margin: 0 2.5px;
}


#newchild-form-container .child-container .row {
    display: flex;
    justify-content: space-between;
}

#newchild-form-container .child-container .input-container {
    display: flex;
    flex-direction: column;
    width: 49%;
}

#newchild-form-container .child-container .input-container label,
#newchild-form-container .child-container .input-container input {
    flex: 1;
}



/* Thickbox Overlay */
#TB_overlay {
    background: var(--base-dark-trans-90) !important;
    opacity: 1 !important;
}


/* Thickbox Container */

#TB_window {
    background-image: url(../img/Agent_Card_Bg.png) !important;
	background-color: var(--base) !important;
    border-radius: var(--radius-s) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    width: 100% !important;
    max-width: 520px !important;
    background-size: cover;
    background-repeat: no-repeat;
    height: 620px;
}

#TB_title {
    background: #ffc400 !important;
    border-bottom: 1px solid #ddd;
    height: 70px !important;
}


#TB_ajaxContent {
	height: 100% !important;
}


#TB_ajaxContent img {
    border-radius: 50% !important;
    width: 18% !important;
    height: 17% !important;
    border: 10px solid #fff;
}








/* Loading Indicator */

#loadingIndicator {
    border: 1px solid #ffc400;
    background: #01364e;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 45%;
    z-index: 9999;
    padding: var(--space-s);
    text-align: center;
    border-radius: var(--radius-s);
}


#loadingIndicator h2 {
    color: #ffc400;
    font-weight: 700;
    margin: 0;
    font: .8em verdana;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/*
   * Loading Dots
   * Can we use pseudo elements here instead :after?
   */
#loadingIndicator span {
    display: inline-block;
    vertical-align: middle;
    width: 0.9em;
    height: .9em;
    margin: .19em;
    background: #007DB6;
    border-radius: .6em;
    animation: loading 1s infinite alternate;
    margin: 0.7em calc(1.27em - var(--space-xs)) 0em;
}

/*
   * Dots Colors
   * Smarter targeting vs nth-of-type?
   */
#loadingIndicator span:nth-of-type(2) {
    background: #008FB2;
    animation-delay: 0.2s;
}

#loadingIndicator span:nth-of-type(3) {
    background: #009B9E;
    animation-delay: 0.4s;
}

#loadingIndicator span:nth-of-type(4) {
    background: #00A77D;
    animation-delay: 0.6s;
}

#loadingIndicator span:nth-of-type(5) {
    background: #00B247;
    animation-delay: 0.8s;
}

#loadingIndicator span:nth-of-type(6) {
    background: #5AB027;
    animation-delay: 1.0s;
}

#loadingIndicator span:nth-of-type(7) {
    background: #A0B61E;
    animation-delay: 1.2s;
}

/*
   * Animation keyframes
   * Use transition opacity instead of keyframes?
   */
@keyframes loading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
