/*
 * ==============================================================================
 * Cash/Frontend/position/cash_position-styles.css
 * ==============================================================================
 * What:
 *     Page-specific styles for the Position & Denomination dashboard (CC.4).
 *     Extends the shared hex design system.
 *
 * Depends:
 *     /shared/css/hex-design-system.css
 *     /shared/css/hex-components.css
 *     /shared/css/hex-utilities.css
 * ==============================================================================
 */

/* ── Denomination kind badges ──────────────────────────────────────────────── */
.denom-note {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.denom-coin {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.30);
}

/* ── Note/Coin summary strip ──────────────────────────────────────────────── */
.denom-strip {
    display: flex;
    gap: 16px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}

.denom-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 13px;
}

.denom-strip-label {
    color: #8b949e;
    font-size: 11px;
}

.denom-strip-value {
    color: #e6edf3;
    font-weight: 600;
}

/* ── Flow direction badges ────────────────────────────────────────────────── */
.flow-inbound {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.30);
}

.flow-outbound {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.30);
}

/* ── Balance color bands ──────────────────────────────────────────────────── */
.bal-high   { color: #34d399; }
.bal-medium { color: #fbbf24; }
.bal-low    { color: #f87171; }

/* ── Panel selectors row ──────────────────────────────────────────────────── */
.panel-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

.panel-controls label {
    font-size: 12px;
    color: #8b949e;
    white-space: nowrap;
}

.panel-controls select,
.panel-controls input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #c9d1d9;
    padding: 4px 8px;
    font-size: 12px;
}

/* ── Fleet position table ─────────────────────────────────────────────────── */
.sortable-th {
    cursor: pointer;
    user-select: none;
}

.sortable-th:hover {
    color: #e6edf3;
}
