nav .navbar-brand
{
    /* size for brand */
    font-size: xx-large;
}

/* colors for brand */
nav .navbar-brand .blue
{
    color: #537fbe;
}
nav .navbar-brand .red
{
    color: #ea433b;
}
nav .navbar-brand .yellow
{
    color: #f5b82e;
}
nav .navbar-brand .green
{
    color: #2e944b;
}

main .form-control
{
    /* center form controls */
    display: inline-block;

    /* override Bootstrap's 100% width for form controls */
    width: auto;
}

main
{
    /* scroll horizontally as needed */
    overflow-x: auto;

    /* center contents */
    text-align: center;
}

main img
{
    /* constrain images on small screens */
    max-width: 100%;
}


/* Administrator search, table and pagination components */
.admin-page {
    text-align: left;
}

.admin-filter-bar .form-control {
    width: 100%;
}

.admin-filter-bar label {
    font-weight: 600;
}

.admin-table-container {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
}

.admin-actions {
    min-width: 180px;
    white-space: nowrap;
}

.admin-summary-card {
    border: 1px solid #dee2e6;
}

.admin-summary-card .display-4 {
    font-size: 2.25rem;
    font-weight: 600;
}

.admin-page .badge {
    font-size: 0.82rem;
    padding: 0.45em 0.65em;
}

@media (max-width: 767.98px) {
    main.container {
        padding: 1.25rem !important;
    }

    .admin-actions {
        min-width: 150px;
    }
}

/* Payment-compliance statement */
.statement-page {
    max-width: 1100px;
    margin: 0 auto;
}

.statement-toolbar .btn {
    margin-left: 0.35rem;
}

.statement-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #234f7d;
}

.statement-brand {
    color: #234f7d;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.statement-header h1 {
    font-size: 1.65rem;
    margin: 0.2rem 0 0;
}

.statement-meta div,
.statement-details div {
    display: grid;
    grid-template-columns: minmax(100px, 145px) 1fr;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.statement-meta dt,
.statement-details dt {
    color: #6c757d;
    font-weight: 600;
    margin: 0;
}

.statement-meta dd,
.statement-details dd {
    margin: 0;
}

.statement-card .card-header {
    background: #eef4f9;
    color: #234f7d;
}

.statement-summary-grid span {
    display: block;
    color: #6c757d;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.statement-summary-grid strong {
    display: block;
    font-size: 1.35rem;
    margin-top: 0.2rem;
}

.statement-details-compact div {
    grid-template-columns: minmax(145px, 190px) 1fr;
}

.statement-table th {
    background: #f4f6f8;
    white-space: nowrap;
}

.statement-notice {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .statement-header {
        display: block;
    }

    .statement-meta {
        margin-top: 1rem;
    }

    .statement-toolbar .btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    nav,
    footer,
    .no-print,
    header[role="alert"] {
        display: none !important;
    }

    main.container {
        width: 100%;
        max-width: none;
        padding: 0 !important;
        overflow: visible;
    }

    .statement-page {
        max-width: none;
    }

    .statement-card,
    .admin-table-container {
        break-inside: avoid;
        box-shadow: none;
    }

    .statement-table {
        font-size: 10pt;
    }

    a[href]::after {
        content: none !important;
    }
}

.statement-amount-toggle {
    padding-top: 0.55rem;
}

.statement-amount-value {
    font-size: 1.55rem;
}

@media print {
    .statement-amounts {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
