@import url('../vendor/ui/css/tokens.css');
@import url('../vendor/ui/css/bridge.css');
@import url('../vendor/ui/css/components.css');
@import url('../vendor/ui/css/shell.css');
@import url('../vendor/ui/css/primitives.css');
@import url('../vendor/ui/css/workspace.css');

/* ============================================================
   Slate client overrides — deep teal accent
   ============================================================ */

:root {
    --accent: #0f766e;
    --accent-dim: #115e59;
    --accent-glow: rgba(15, 118, 110, 0.08);
    --accent-surface: rgba(15, 118, 110, 0.06);
}

[data-theme="dark"] {
    --accent: #2dd4bf;
    --accent-dim: #14b8a6;
    --accent-glow: rgba(45, 212, 191, 0.12);
    --accent-surface: rgba(45, 212, 191, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --accent: #2dd4bf;
        --accent-dim: #14b8a6;
        --accent-glow: rgba(45, 212, 191, 0.12);
        --accent-surface: rgba(45, 212, 191, 0.08);
    }
}

/* Overview matrix */
.ov-grid-wrap {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.ov-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
    font-size: 0.78rem;
}

.ov-grid th, .ov-grid td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ov-grid thead th {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-align: right;
}

.ov-grid thead th:first-child,
.ov-grid tbody th {
    position: sticky;
    left: 0;
    background: var(--bg);
    text-align: left;
    z-index: 1;
    font-weight: 500;
    color: var(--text);
}

.ov-grid thead th:first-child { z-index: 3; }

.ov-grid td {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    cursor: pointer;
}

.ov-grid td.is-zero { color: var(--text-subtle); opacity: 0.45; }

.ov-grid td.is-neg {
    color: var(--danger);
    font-weight: 600;
    background: rgba(239, 68, 68, 0.07);
}

.ov-grid tbody tr:hover td,
.ov-grid tbody tr:hover th {
    background: var(--surface-hover, var(--surface));
}

.ov-sku-head { cursor: help; }
