/* ============================================================================
   Customer Support — Card Inventory Lookup
   ============================================================================

   One tile look, used twice. `.cs-ci-tile` is the shared card — border, radius,
   label-over-count stacking, and the green "finished" treatment — and the two
   modifiers only change size and interactivity:

     .cs-ci-summary-tile — the two headline counts (cards, sets). Bigger value,
                           not clickable.
     .cs-ci-set-tile     — one per card set. Smaller, clickable, and outlined
                           while it is the active table filter.

   Everything else on the page uses the shared hrd-* components, and all colours
   come from hrd_design_system.css variables — no new palette here.
   ============================================================================ */

/* ---- Shared tile ---- */
.cs-ci-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    user-select: none;
}

/* A finished count: a 10/10 set, or an album/set total that is fully collected. */
.cs-ci-tile.complete {
    background: var(--success-light);
    border-color: var(--success);
}

.cs-ci-tile-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-ci-tile-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cs-ci-tile.complete .cs-ci-tile-value {
    color: #047857;
}

.cs-ci-tile-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Headline progress tiles ---- */
.cs-ci-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cs-ci-summary-tile {
    flex: 0 1 220px;
    padding: var(--spacing-md);
}

/* The two numbers read first on the page, so they carry the larger type. */
.cs-ci-summary-tile .cs-ci-tile-value {
    font-size: 30px;
    line-height: 1.15;
    margin: 2px 0;
}

/* ---- Set grid ---- */
.cs-ci-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.cs-ci-set-tile {
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cs-ci-set-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* The set currently filtering both tables. */
.cs-ci-set-tile.selected {
    border-color: var(--hrd-purple);
    box-shadow: 0 0 0 2px rgba(139, 47, 201, 0.25);
}

/* ---- Season dropdown ----
   Wide enough for the longest season label ('Season 17 — Summer 250 (active)'),
   which the Cards report's 160px filter dropdown truncated. */
.cs-ci-season-dropdown {
    width: 100%;
    min-width: 300px;
    max-width: 420px;
}

/* ---- Freshness / provenance line under the progress tiles. ---- */
.cs-ci-provenance {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
}
