.header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.header p {
    margin-bottom: 2px;
    margin-top: 20px;
    font-family: Helvetica;
    color: #6366f1;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;

}

.header h1 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: Helvetica;
    font-size: 32px;
    font-weight: 700;
    color: #111827;

}

.header span {
    font-family: Helvetica;
    font-size: 15px;
    color: #64748b;
}

.notice {
    width: min(1110px, 100%);
    margin: 24px auto 0;
    border: 1px solid #e5e7eb;
    padding: 24px;
    font-family: Helvetica;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.notice strong {
    color: #0f172a;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.box{
    width: 240px;
    height: 120px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    text-align: center;
    font-family: Helvetica;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.box p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.box h2 {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: 28px;
}

.box small {
    display: block;
    margin-top: 8px;
    color: #6366f1;
    font-size: 12px;
}


body {
    background: #f8fafc;
    margin: 0;
    padding: 40px 32px;
}

.table {
    display: flex;
    flex-direction: column;
    /* stretch, not flex-start: the rows wrapper needs the full width or every
       data row ends up narrower than the header above it. */
    align-items: stretch;
    width: min(1110px, 100%);
    min-height: 260px;
    margin: 20px auto 0;
    border: 1px solid #e5e7eb;
    padding: 24px;
    font-family: Helvetica;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.table h3 {
    font-size: 16px;
    text-align:left;
    margin: 0;
}

.table input {
    width: 220px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: Helvetica;
    font-size: 14px;
    box-sizing: border-box;
}

/* The header and the rows share one column track list, so they always line up. */
.innertableheader,
.innertablebox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 130px 110px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 16px;
    box-sizing: border-box;
}

.innertableheader {
    margin-top: 32px;
    background: #f8fafc;
}

.innertablebox {
    margin-top: 8px;
}

.innertableheader p,
.innertablebox p {
    margin: 0;
    font-size: 14px;
    color: #111827;
}

.client {
    /* Long client names get an ellipsis instead of pushing the other columns. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.date {
    text-align: right;
    white-space: nowrap;
}

.status {
    text-align: right;
}

/* The "no results" row spans the whole grid instead of sitting in column one. */
.innertablebox .empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
}

/* Scoped to the row so these beat the shared `.innertablebox p` colour above,
   which is otherwise more specific than a single status class on its own. */
.innertablebox .status-completed {
    color: #16a34a;
    text-transform: capitalize;
}

.innertablebox .status-failed {
    color: #dc2626;
    text-transform: capitalize;
}

.innertablebox .status-pending {
    color: #d97706;
    text-transform: capitalize;
}

/* On narrow screens the date and status columns are the first to get squeezed,
   so drop to a two-column layout instead of letting the text collide. */
@media (max-width: 640px) {
    body {
        padding: 24px 16px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table input {
        width: 100%;
    }

    .innertableheader,
    .innertablebox {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 4px 12px;
        padding: 12px 16px;
    }

    .innertableheader .date,
    .innertableheader .status {
        display: none;
    }

    .innertablebox .date {
        text-align: left;
        font-size: 13px;
        color: #64748b;
    }
}