section header {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    gap: 1em;
    margin: 1em 0;
}

header .logo {
    max-width: 10em;
    max-height: 10em;
}

.agencias header .logo img {
    width: 100%;
    margin: 0 auto;
}

header h3 {
    flex: 1;
    font-size: 2em;
    margin: 0;
}

header .actions {
    display: flex;
    gap: 0.5em;
    margin-left: auto;
}

.cards {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
    margin: 1em 0;
    padding: 0;
}

.cards li,
.card {
    display: flex;
    border-radius: 0.75em;
    background-color: var(--surface-color);
    padding: 1em;
    flex: 1;
    flex-flow: column nowrap;
    align-content: flex-start;
}

.agencias header ul.indicadores {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    font-family: var(--font-title);
}

.agencias header ul.indicadores li {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    border-right: 1px solid var(--border-color);
    padding: 0.25rem 2rem;
}

.agencias header ul.indicadores li:last-child {
    border-right: none;
}

.agencias header ul.indicadores li strong {
    font-size: 2.5em;
    color: var(--color-link);
}

.agencias header ul.indicadores li span {
    color: var(--text-color);
}

.indicadores li {
    align-items: center;
    gap: 0.25em;
    justify-content: space-between;
    flex-flow: row wrap;
}

.indicadores small {
    text-transform: uppercase;
    font-size: 0.6em;
    letter-spacing: 0.5px;
    font-weight: 500;
    flex: 1 0 100%;
    color: var(--text-color-weak);
}

.indicadores output {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-base-text);
}

.indicadores a {
    font-size: 0.7em;
    color: var(--color-accent);
    text-decoration: none;
    flex: 0 1 50%;
    font-weight: 600;
    text-align: right;
    line-height: 1.15;
}

.tools .filtro-nome {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.tools .filtro-nome input {
    flex: 1;
}

.tools .filtro-uf {
    display: none;
}

.filtro-uf button.selected {
    background-color: var(--color-link);
    color: var(--color-link-inverse);
}

footer.checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 1em;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 1em;
    z-index: 1;
}

.tabela .peca {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.tabela .peca figure {
    width: 3em;
    height: 3em;
    border-radius: 0.5em;
    overflow: hidden;
    flex-shrink: 0;
}

.tabela .peca img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

dialog.checkout-dialog {
    width: min(96vw, 78rem);
    max-width: min(96vw, 78rem);
    min-height: min(90vh, 46rem);
    max-height: 92vh;
    overflow: auto;
}

.checkout-dialog-header {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.checkout-dialog-header h2,
.checkout-dialog-header p {
    margin: 0;
    flex: 1 1 100%;
}

.checkout-dialog-header .checkout-breadcrumb {
    font-size: 0.85em;
    opacity: 0.9;
}

.checkout-dialog-content>section {
    width: 100%;
}

.checkout-layout {
    display: grid;
    /* grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr); */
    gap: 1rem;
}

.checkout-col {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
}

.checkout-col .card {
    flex: 1 1 calc(50% - 0.5rem);
}

small.positivo {
    color: var(--color-status-positivo-text);
}

#dialog_checkout_pagamento .checkout-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-direction: column;
    margin: 0.75rem 0;
}

#dialog_checkout_pagamento .checkout-buttons button[type="submit"] {
    order: unset;
    margin: unset;
}

.checkout-items-table-wrapper {
    max-height: 16rem;
    overflow: auto;
}

.checkout-items-table-wrapper table {
    width: 100%;
}

.checkout-methods {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    width: 100%;
}

.checkout-method-card {
    flex: 1 1 calc(33% - 0.5rem);
}

.checkout-method-card.active {
    border: 2px solid var(--color-differentiate);
    background-color: var(--color-differentiate);
    color: var(--color-differentiate-over);
}

.checkout-method-content {
    margin-top: 1rem;
}

.checkout-method-area h4 {
    margin: 0 0 0.5rem 0;
}

.checkout-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.checkout-card-grid .field {
    margin: 0;
}

.checkout-mp-mount {
    margin-top: 0.75rem;
}

.checkout-items-table-wrapper {
    width: 100%;
}

#tabela_inscricoes table th:first-child {
    width: 8.5rem;
}

#dialog_checkout_pagamento h3 {
    margin: 0 0 0.5rem 0;
    width: 100%;
}

#dialog_checkout_pagamento h3 span {
    display: inline;
}

#dialog_checkout_pagamento p {
    margin: 0.5rem 0;
}

@media (max-width: 860px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .checkout-card-grid {
        grid-template-columns: 1fr;
    }
}