/* Point-in-Time Stock Report (Views/FacilityReports/Partials/_StockTable.cshtml). One section per facility;
   section headings, cards and tables come from analytics.css / facilities.css / table.css, this file only lays
   out the columns and the cards' breakdown line. */

/* Containers and packs side by side within a facility. They are different kinds of stock counted in different
   units, and a single shared table blurred them together. */
stock-facility-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

/* flex-basis 28rem: two columns share the row equally, a facility holding only one kind of stock gets a single
   full-width column, and on narrow screens the two stack instead of squeezing the tables. min-width: 0 lets the
   inner .table-container scroll horizontally rather than push the column past its share. */
stock-facility-columns > stock-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 28rem;
    min-width: 0;
}

stock-facility-columns .numeric {
    text-align: right;
}

/* Per-facility content-type total cards. The containers/packs breakdown needs its own element rather than a span:
   facilities.css sizes every span inside an insight as the 2.5rem headline. Kept quiet so it qualifies the
   headline instead of competing with it. */
.stock-content-totals insight-note {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--font-size-small);
    color: var(--light-global-font-color);
}

.stock-content-totals insight-icon img {
    object-fit: contain;
}