.cost-table-wrap {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    color: var(--generals-text);
}

.cost-table-header {
    flex: 0 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    padding-inline-end: var(--generals-scrollbar-width);
    background: #4f3625;
}

.cost-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.cost-table-scroll > .cost-table {
    min-height: 100%;
}

.cost-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--generals-text);
    font-size: clamp(12px, 1.15vw, 14px);
}

.cost-table th,
.cost-table td {
    height: 32px;
    padding: 5px 10px;
    border: 0;
    border-bottom: 1px solid rgba(215, 155, 66, 0.34);
    border-right: 1px solid rgba(215, 155, 66, 0.34);
    background: #4f3625;
    text-align: center;
    font-weight: 800;
    vertical-align: middle;
}

.cost-table th {
    background: #4f3625;
    border-bottom: 2px solid rgba(215, 155, 66, 0.52);
    color: var(--gf-gold-strong);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 850;
    text-shadow: none;
}

.cost-table th:last-child,
.cost-table td:last-child {
    border-right: 0;
}

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

.cost-table tbody tr:not(.cost-row-alt):not(.cost-total-row) td {
    background: linear-gradient(90deg, rgba(79, 54, 37, 0.96), rgba(79, 54, 37, 0.76));
}

.cost-table tbody tr.cost-row-alt td {
    background: linear-gradient(90deg, rgba(73, 49, 34, 0.96), rgba(73, 49, 34, 0.74));
}

.cost-table tbody tr:not(.cost-total-row):hover td {
    background: linear-gradient(90deg, rgba(86, 58, 39, 0.98), rgba(86, 58, 39, 0.82));
}

.cost-total-row td {
    background: linear-gradient(90deg, rgba(63, 43, 30, 0.97), rgba(63, 43, 30, 0.82));
    border-top: 2px solid rgba(215, 155, 66, 0.52);
    color: var(--gf-gold-strong);
    font-size: 14px;
    font-weight: 850;
}
