/*
==============================================================================
Cash/Frontend/corporate/cash_corporate-styles.css
==============================================================================
What:
    Page-specific styles for the Internal Corporate Cash Services dashboard
    (P6.5). Extends the hex-design-system.css and hex-components.css globals.

Depends:
    /shared/css/hex-design-system.css
    /shared/css/hex-components.css
    /shared/css/hex-utilities.css
==============================================================================
*/

/* ── Order-book panel ─────────────────────────────────────────────────────── */
.order-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.order-type-collection {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.order-type-delivery {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ── Status badges ─────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.status-auto-accepted {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}
.status-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}
.status-other {
    background: rgba(107, 114, 128, 0.18);
    color: #9ca3af;
}

/* ── Dispatch within-cap badge ───────────────────────────────────────────── */
.cap-ok-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.30);
}

/* ── SLA gauge headline ─────────────────────────────────────────────────── */
.sla-headline {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0 4px 0;
}
.sla-metric {
    text-align: center;
}
.sla-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
}
.sla-metric-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ── Advisory location cards ─────────────────────────────────────────────── */
.advisory-card {
    background: var(--surface-2, rgba(255,255,255,0.04));
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.advisory-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #e6edf3);
    margin-bottom: 2px;
}
.advisory-card-sub {
    font-size: 11px;
    color: var(--text-dim, #8b949e);
    margin-bottom: 12px;
}
.advisory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .advisory-grid { grid-template-columns: 1fr; }
}
.advisory-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 14px;
}
.advisory-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan, #22d3ee);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.advisory-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #e6edf3);
}
.advisory-unit {
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    margin-top: 2px;
}
.advisory-basis {
    font-size: 10px;
    color: var(--text-dim, #8b949e);
    margin-top: 6px;
    line-height: 1.4;
}
.denom-chip {
    display: inline-block;
    padding: 2px 7px;
    margin: 2px 3px 2px 0;
    border-radius: 4px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
}

/* ── Filter controls ─────────────────────────────────────────────────────── */
.corp-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.corp-select {
    background: var(--surface-2, rgba(255,255,255,0.04));
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.12));
    border-radius: 6px;
    color: var(--text-primary, #e6edf3);
    padding: 6px 12px;
    font-size: 13px;
    min-width: 160px;
}
.corp-select:focus { outline: none; border-color: var(--accent-cyan, #22d3ee); }
