.calc-detail-card .table {
    font-variant-numeric: tabular-nums;
}

.calc-detail-card .table th {
    font-size: .75rem;
    white-space: nowrap;
}

/* The speed-up breakdown keeps the owned stock and the allocated part apart, so
   a separator marks where the allocation columns start. Only the first
   allocation column carries the separator, so the two allocated columns read
   as one group. */
.calc-speedups .speedup-allocation-col {
    border-left: 3px solid var(--bs-border-color);
}

/* The compact table cells leave only a hair of room between the right-aligned
   owned time and the separator, so the column before it gets extra padding. */
.calc-speedups .speedup-owned-time-col {
    padding-right: 0.75rem;
}

/* The explanation of the owned and allocated columns lives in a tooltip next to
   the breakdown heading, so it needs room to wrap into a readable paragraph. */
.tooltip.speedups-info-tooltip {
    --bs-tooltip-max-width: 20rem;
}

/* A narrow screen has no room to spare, so the breakdown uses the full width of
   the card instead of leaving a quarter of it empty next to the resource names. */
@media (max-width: 767.98px) {
    .calc-speedups {
        width: calc(100% - 0.5rem) !important;
    }
}

.calc-resource-tokens th:first-child {
    min-width: 15rem;
}

.calc-scrapping-options .scrap-ship-cell {
    min-width: 11rem;
}

.calc-scrapping-options .scrap-time,
.calc-scrapping-options .scrap-total-time {
    max-width: 13rem;
    min-width: 9rem;
    overflow-wrap: anywhere;
}

.calc-scrapping-options .scrap-contribution-label {
    max-width: 14rem;
    white-space: normal;
    overflow-wrap: anywhere;
}
