/* DynamoDB Capacity & Throttles — Phase 9 (lp-render adoption).
   Dropped: status-token redecls (sd-tokens-reserved.css), table-frame
   + thead/tbody styling (lp-render injected CSS). Kept: per-cell
   bespoke patterns (capacity bars, mode pills, feature badges, drawer). */

.lp-pane {
    container-type: inline-size;
}

.lp-ddb-summary {
    font-size: var(--lp-pane-fs-meta);
    color: var(--lp-fn-ink-dim);
    text-align: center;
    margin-bottom: var(--lp-pane-gap);
}
.lp-ddb-tag-footnote { margin: 8px 0 0; }

/* Table name + mode pill stacked vertically — pill sits below the
   name so a long table name doesn't get crowded by the pill, and
   short names don't centre the pill in dead space. */
.lp-ddb-name-block {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 4px;
}
.lp-ddb-name {
    font-family: var(--lp-pane-font-mono);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}
.lp-ddb-mode {
    font-size: 10px;
    font-weight: var(--lp-pane-fw-emphasis);
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: var(--lp-pane-letter-spacing-uppercase);
    align-self: flex-start;
}
.lp-ddb-mode--on-demand   { background: var(--lp-fn-pill-bg);   color: var(--lp-fn-pill-ink); }
.lp-ddb-mode--provisioned { background: var(--lp-status-info-bg); color: var(--lp-status-info-ink); }

/* Capacity bars */
.lp-ddb-cap {
    display: flex; flex-direction: column; gap: 3px;
    min-width: 120px;
}
.lp-ddb-cap-row {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--lp-pane-fs-pill);
}
.lp-ddb-cap-label {
    width: 22px;
    color: var(--lp-fn-ink-dim);
    font-weight: var(--lp-pane-fw-head);
    text-transform: uppercase;
    letter-spacing: var(--lp-pane-letter-spacing-uppercase);
    white-space: nowrap;     /* "RCU" / "WCU" never wrap to two lines */
}
.lp-ddb-cap-track {
    flex: 1; height: 4px;
    background: var(--lp-fn-bg-soft);
    border-radius: 2px;
    min-width: 50px;
}
.lp-ddb-cap-fill { height: 100%; background: var(--lp-fn-table-frame-color); border-radius: 2px; }
.lp-ddb-cap-fill--high { background: var(--lp-status-danger-ink); }
.lp-ddb-cap-text {
    font-size: 10px;
    color: var(--lp-fn-ink);
    font-variant-numeric: tabular-nums;
    width: 60px;
    text-align: right;
}
.lp-ddb-cap-text--auto {
    text-align: left;
    width: auto;
    color: var(--lp-fn-ink-dim);
}

/* Throttle counts */
.lp-ddb-throttles--ok   { color: var(--lp-status-ok-ink);     font-weight: var(--lp-pane-fw-head); }
.lp-ddb-throttles--crit { color: var(--lp-status-danger-ink); font-weight: var(--lp-pane-fw-head); }

/* Feature badges */
.lp-ddb-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.lp-ddb-badge {
    font-size: 10px;
    font-weight: var(--lp-pane-fw-head);
    background: var(--lp-fn-pill-bg);
    color: var(--lp-fn-pill-ink);
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: var(--lp-pane-letter-spacing-uppercase);
}
.lp-ddb-no-badges {
    color: var(--lp-fn-ink-dim);
    font-size: var(--lp-pane-fs-pill);
}

/* Drawer detail now uses expandableTable's native responsive detail table
   (lpPane detailPairs → .lp-xtable-detail-table--wide); the old bespoke
   .lp-ddb-detail* text block was removed 2026-07-17. */

/* Legend strip below the table */
.lp-ddb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--lp-fn-divider);
    font-size: var(--lp-pane-fs-pill);
    color: var(--lp-fn-ink-dim);
}
.lp-ddb-legend strong {
    color: var(--lp-fn-ink-emphasis);
    font-weight: var(--lp-pane-fw-head);
    margin-right: 4px;
    font-family: var(--lp-pane-font-mono);
}

/* Narrow-width column collapse is handled by expandableTable's
   responsiveColumns (columns fold into the drawer) — no bespoke CSS needed. */
