.dashboard-page {
    max-width: 1450px;
    margin: 0 auto;
}

.dashboard-heading {
    margin-bottom: 25px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(35px, 4vw, 48px);
}

.dashboard-heading p {
    margin: 8px 0 0;
    color: var(--astru-muted);
    font-size: 16px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.dashboard-stat {
    position: relative;
    min-height: 155px;
    display: grid;
    grid-template-columns: 53px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 22px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--astru-border);
    border-top: 3px solid var(--astru-gold);
    border-radius: 17px;
    box-shadow: var(--astru-shadow-md);
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    top: -52px;
    right: -42px;
    width: 135px;
    height: 135px;
    background: rgba(200, 169, 106, 0.07);
    border-radius: 50%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--astru-gold);
    background: var(--astru-sage);
    border-radius: 14px;
    font-size: 22px;
    font-weight: 850;
}

.stat-label,
.stat-value,
.dashboard-stat small {
    display: block;
}

.stat-label {
    color: var(--astru-muted);
    font-size: 13px;
    font-weight: 750;
}

.stat-value {
    margin: 5px 0 3px;
    color: var(--astru-forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    line-height: 1;
}

.dashboard-stat small {
    color: #8b928c;
    font-size: 11px;
    line-height: 1.35;
}

.invoice-workspace-panel {
    overflow: hidden;
}

.workspace-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--astru-border);
}

.workspace-toolbar h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.workspace-toolbar p {
    margin: 5px 0 0;
    color: var(--astru-muted);
    font-size: 13px;
}

.toolbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.premium-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.premium-table th,
.premium-table td {
    padding: 15px 14px;
    border: 0;
    border-bottom: 1px solid #e6e9e4;
    vertical-align: middle;
}

.premium-table th {
    color: #617067;
    background: var(--astru-sage);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-align: left;
    text-transform: uppercase;
}

.premium-table tbody tr:hover {
    background: #faf8f1;
}

.premium-table tbody tr:last-child td {
    border-bottom: 0;
}

.checkbox-column {
    width: 72px;
    text-align: center !important;
}

.money-column {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.file-cell {
    max-width: 260px;
    color: #526159;
    font-size: 12px;
    word-break: break-word;
}

.muted-cell {
    color: var(--astru-muted);
    font-size: 12px;
}

.confidence-value {
    color: #53635a;
    font-weight: 750;
}

.dashboard-empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    text-align: center;
}

.empty-state-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: var(--astru-forest);
    background: var(--astru-champagne);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 12px 30px rgba(200, 169, 106, 0.22);
}

.dashboard-empty-state h2 {
    margin: 20px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
}

.dashboard-empty-state p {
    margin: 0 0 20px;
    color: var(--astru-muted);
}

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .toolbar-actions,
    .toolbar-actions .button {
        width: 100%;
    }
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.download-link {
    display: inline-flex;
    padding: 7px 11px;
    color: #6b5428;
    background: #f2e7cd;
    border-radius: 7px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.download-link:hover {
    color: #123126;
    background: #dfc48a;
}
