/* Таблица заказов и переключатель месяцев. */
.orders-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.orders-section {
    padding: 0;
    overflow: hidden;
}

.orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 23px 26px;
}

.orders-head h2 { margin: 0; }
.orders-caption { color: #64748b; font-size: 13px; margin: 0; }
.orders-scroll { overflow-x: auto; }

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.orders-table th {
    text-align: left;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    padding: 15px 20px;
}

.orders-table td {
    padding: 18px 20px;
    border-top: 1px solid #edf1f5;
    font-size: 14px;
}

.orders-table td:nth-child(3),
.orders-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
}

.orders-table .right { text-align: right; }

.orders-table tfoot td {
    background: #f8fafc;
    font-weight: 700;
    border-top: 1px solid #e2e8f0;
}

.orders-table tfoot .sum { font-size: 21px; color: #0f172a; }

.details {
    display: inline-block;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    padding: 9px 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.details:hover,
.month-link:hover { background: #f1f5f9; }

.months {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.month-link {
    display: inline-block;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
}

.month-link.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.orders-empty {
    text-align: center;
    color: #64748b;
    padding: 35px !important;
}

@media (max-width: 600px) {
    .orders-head { padding: 18px; }
    .orders-table th,
    .orders-table td { padding: 14px 12px; }
}

/* Отдельный финансовый блок под списком заказов */
.payment-summary-section {
    margin-top: 20px;
}

.payment-summary-table {
    table-layout: fixed;
    min-width: 440px;
}

.payment-summary-table th,
.payment-summary-table td {
    width: 25%;
    text-align: left;
}

.payment-summary-table tbody td {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
