/* ══════════════════════════════════════════════════════════════
   Shared Regulatory Grid Styles
   Used by SEC-SA, ERBA, and future regulatory tabs.
   ══════════════════════════════════════════════════════════════ */

/* ── Hint Text ── */

.reg-hint {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 4px;
}

/* ── Section Title ── */

.reg-section-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 12px 0 8px;
}

/* ── Grid Wrapper ── */

.reg-grid-wrapper {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
}

/* ── Grid Base ── */

.reg-grid {
    font-family: 'Segoe UI', Arial, sans-serif;
    border-collapse: collapse;
    font-size: 12px;
}

.reg-grid th,
.reg-grid td {
    padding: 6px 8px;
    border: 1px solid #E9ECEF;
    text-align: center;
    white-space: nowrap;
}

.reg-grid tbody td {
    padding: 6px 8px;
}

/* ── Header: all header cells ── */

.reg-grid thead th {
    background: #eef5ff;
    font-weight: 600;
    font-size: 11px;
    color: var(--text);
}

/* ── Sticky first-column header ── */

.reg-grid thead tr:first-child th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #eef5ff;
}

.reg-grid thead tr:first-child th:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 1px;
    background: #E9ECEF;
}

/* ── Body rows ── */

.reg-grid tbody tr {
    transition: background 0.2s ease;
}

.reg-grid tbody tr:hover {
    background: #eef5ff;
}

/* ── Sticky first-column body cell ── */

.reg-sticky-cell {
    font-weight: 600;
    color: var(--text);
    background: #fff;
    text-align: left !important;
    position: sticky;
    left: 0;
    z-index: 2;
    transition: background 0.2s ease;
}

.reg-sticky-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 1px;
    background: #E9ECEF;
}

.reg-grid tbody tr:hover .reg-sticky-cell {
    background: #eef5ff;
}

/* ── Number inputs: compact, borderless, mockup-style ── */

.reg-grid fluent-text-field {
    min-height: 0;
    height: auto;
}

.reg-grid fluent-text-field::part(root) {
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    min-height: 0;
    height: auto;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.reg-grid fluent-text-field:hover::part(root) {
    border-color: var(--border);
    background: #fff;
}

.reg-grid fluent-text-field:focus-within::part(root) {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 94, 255, 0.12);
}

.reg-grid fluent-text-field::part(control) {
    border: none;
    background: transparent;
    padding: 3px 4px;
    min-height: 0;
    height: auto;
    line-height: 1.2;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    text-align: center;
    color: var(--text);
}
